{"schema":"apidocs/1","module":{"name":"truffle-api","version":"25.6.0-elide.4","languages":["java"]},"externals":[{"prefix":"java.io.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.annotation.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.classfile.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.classfile.attribute.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.classfile.constantpool.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.classfile.instruction.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.constant.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.foreign.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.invoke.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.module.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.ref.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.reflect.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.lang.runtime.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.math.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.net.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.net.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.nio.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.nio.channels.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.nio.channels.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.nio.charset.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.nio.charset.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.nio.file.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.nio.file.attribute.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.nio.file.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.security.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.security.cert.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.security.interfaces.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.security.spec.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.text.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.text.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.time.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.time.chrono.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.time.format.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.time.temporal.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.time.zone.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.concurrent.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.concurrent.atomic.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.concurrent.locks.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.function.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.jar.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.random.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.regex.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.stream.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"java.util.zip.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.crypto.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.crypto.interfaces.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.crypto.spec.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.net.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.net.ssl.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.security.auth.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.security.auth.callback.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.security.auth.login.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.security.auth.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.security.auth.x500.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.security.cert.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/"},{"prefix":"javax.annotation.processing.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.compiler/"},{"prefix":"javax.lang.model.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.compiler/"},{"prefix":"javax.lang.model.element.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.compiler/"},{"prefix":"javax.lang.model.type.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.compiler/"},{"prefix":"javax.lang.model.util.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.compiler/"},{"prefix":"javax.tools.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.compiler/"},{"prefix":"java.awt.datatransfer.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.datatransfer/"},{"prefix":"java.applet.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.color.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.desktop.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.dnd.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.event.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.font.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.geom.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.im.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.im.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.image.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.image.renderable.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.awt.print.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.beans.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.beans.beancontext.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.accessibility.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.imageio.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.imageio.event.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.imageio.metadata.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.imageio.plugins.bmp.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.imageio.plugins.jpeg.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.imageio.plugins.tiff.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.imageio.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.imageio.stream.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.print.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.print.attribute.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.print.attribute.standard.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.print.event.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.sound.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.sound.midi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.sound.midi.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.sound.sampled.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.sound.sampled.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.border.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.colorchooser.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.event.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.filechooser.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.plaf.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.plaf.basic.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.plaf.metal.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.plaf.multi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.plaf.nimbus.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.plaf.synth.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.table.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.text.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.text.html.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.text.html.parser.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.text.rtf.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.tree.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"javax.swing.undo.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/"},{"prefix":"java.lang.instrument.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.instrument/"},{"prefix":"java.util.logging.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/"},{"prefix":"java.lang.management.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management/"},{"prefix":"javax.management.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management/"},{"prefix":"javax.management.loading.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management/"},{"prefix":"javax.management.modelmbean.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management/"},{"prefix":"javax.management.monitor.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management/"},{"prefix":"javax.management.openmbean.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management/"},{"prefix":"javax.management.relation.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management/"},{"prefix":"javax.management.remote.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management/"},{"prefix":"javax.management.timer.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management/"},{"prefix":"javax.management.remote.rmi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.management.rmi/"},{"prefix":"javax.naming.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.naming/"},{"prefix":"javax.naming.directory.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.naming/"},{"prefix":"javax.naming.event.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.naming/"},{"prefix":"javax.naming.ldap.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.naming/"},{"prefix":"javax.naming.ldap.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.naming/"},{"prefix":"javax.naming.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.naming/"},{"prefix":"java.net.http.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.net.http/"},{"prefix":"java.util.prefs.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.prefs/"},{"prefix":"java.rmi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.rmi/"},{"prefix":"java.rmi.dgc.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.rmi/"},{"prefix":"java.rmi.registry.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.rmi/"},{"prefix":"java.rmi.server.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.rmi/"},{"prefix":"javax.rmi.ssl.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.rmi/"},{"prefix":"javax.script.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.scripting/"},{"prefix":"javax.security.auth.kerberos.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.security.jgss/"},{"prefix":"org.ietf.jgss.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.security.jgss/"},{"prefix":"javax.security.sasl.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.security.sasl/"},{"prefix":"javax.smartcardio.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.smartcardio/"},{"prefix":"java.sql.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.sql/"},{"prefix":"javax.sql.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.sql/"},{"prefix":"javax.sql.rowset.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.sql.rowset/"},{"prefix":"javax.sql.rowset.serial.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.sql.rowset/"},{"prefix":"javax.sql.rowset.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.sql.rowset/"},{"prefix":"javax.transaction.xa.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.transaction.xa/"},{"prefix":"javax.xml.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.catalog.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.datatype.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.namespace.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.parsers.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.stream.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.stream.events.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.stream.util.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.transform.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.transform.dom.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.transform.sax.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.transform.stax.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.transform.stream.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.validation.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.xpath.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.w3c.dom.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.w3c.dom.bootstrap.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.w3c.dom.events.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.w3c.dom.ls.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.w3c.dom.ranges.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.w3c.dom.traversal.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.w3c.dom.views.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.xml.sax.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.xml.sax.ext.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"org.xml.sax.helpers.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/"},{"prefix":"javax.xml.crypto.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml.crypto/"},{"prefix":"javax.xml.crypto.dom.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml.crypto/"},{"prefix":"javax.xml.crypto.dsig.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml.crypto/"},{"prefix":"javax.xml.crypto.dsig.dom.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml.crypto/"},{"prefix":"javax.xml.crypto.dsig.keyinfo.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml.crypto/"},{"prefix":"javax.xml.crypto.dsig.spec.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.xml.crypto/"},{"prefix":"com.sun.java.accessibility.util.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.accessibility/"},{"prefix":"com.sun.tools.attach.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.attach/"},{"prefix":"com.sun.tools.attach.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.attach/"},{"prefix":"com.sun.source.doctree.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.compiler/"},{"prefix":"com.sun.source.tree.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.compiler/"},{"prefix":"com.sun.source.util.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.compiler/"},{"prefix":"com.sun.tools.javac.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.compiler/"},{"prefix":"jdk.dynalink.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.dynalink/"},{"prefix":"jdk.dynalink.beans.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.dynalink/"},{"prefix":"jdk.dynalink.linker.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.dynalink/"},{"prefix":"jdk.dynalink.linker.support.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.dynalink/"},{"prefix":"jdk.dynalink.support.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.dynalink/"},{"prefix":"com.sun.net.httpserver.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.httpserver/"},{"prefix":"com.sun.net.httpserver.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.httpserver/"},{"prefix":"jdk.incubator.vector.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.incubator.vector/"},{"prefix":"jdk.security.jarsigner.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jartool/"},{"prefix":"jdk.javadoc.doclet.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.javadoc/"},{"prefix":"com.sun.tools.jconsole.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jconsole/"},{"prefix":"com.sun.jdi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/"},{"prefix":"com.sun.jdi.connect.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/"},{"prefix":"com.sun.jdi.connect.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/"},{"prefix":"com.sun.jdi.event.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/"},{"prefix":"com.sun.jdi.request.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/"},{"prefix":"jdk.jfr.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jfr/"},{"prefix":"jdk.jfr.consumer.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jfr/"},{"prefix":"jdk.jshell.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jshell/"},{"prefix":"jdk.jshell.execution.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jshell/"},{"prefix":"jdk.jshell.spi.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jshell/"},{"prefix":"jdk.jshell.tool.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jshell/"},{"prefix":"netscape.javascript.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jsobject/"},{"prefix":"com.sun.management.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.management/"},{"prefix":"jdk.management.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.management/"},{"prefix":"jdk.management.jfr.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.management.jfr/"},{"prefix":"jdk.net.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.net/"},{"prefix":"jdk.nio.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.net/"},{"prefix":"jdk.nio.mapmode.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.nio.mapmode/"},{"prefix":"com.sun.nio.sctp.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.sctp/"},{"prefix":"com.sun.security.auth.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.security.auth/"},{"prefix":"com.sun.security.auth.callback.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.security.auth/"},{"prefix":"com.sun.security.auth.login.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.security.auth/"},{"prefix":"com.sun.security.auth.module.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.security.auth/"},{"prefix":"com.sun.security.jgss.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.security.jgss/"},{"prefix":"org.w3c.dom.css.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.xml.dom/"},{"prefix":"org.w3c.dom.html.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.xml.dom/"},{"prefix":"org.w3c.dom.stylesheets.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.xml.dom/"},{"prefix":"org.w3c.dom.xpath.","url":"https://docs.oracle.com/en/java/javase/25/docs/api/jdk.xml.dom/"},{"prefix":"org.graalvm.collections.","url":"https://graalvm.elide.help/25.6.0-elide.4/api/collections/"},{"prefix":"org.graalvm.home.","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/"},{"prefix":"org.graalvm.options.","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/"},{"prefix":"org.graalvm.polyglot.","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/"},{"prefix":"org.graalvm.polyglot.io.","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/"},{"prefix":"org.graalvm.polyglot.management.","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/"},{"prefix":"org.graalvm.polyglot.proxy.","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/"}],"packages":[{"id":"com.oracle.truffle.api","name":"com.oracle.truffle.api","doc":{"summary":[{"kind":"text","text":"Do you want to implement your own "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"Truffle based language"}]},{"kind":"text","text":"? In such case start "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"here"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Do you want to implement your own "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"Truffle based language"}]},{"kind":"text","text":"? In such case start "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"here"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.ArrayUtils","name":"ArrayUtils","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ArrayUtils"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.ArrayUtils#indexOf(java.lang.String,int,int,char...)","anchor":"indexOf(java.lang.String,int,int,char...)","kind":"method","name":"indexOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"indexOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"string"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"... "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"string","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"maxIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"values","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the first occurrence of any character contained in "},{"kind":"code","text":"values"},{"kind":"text","text":" in "},{"kind":"code","text":"string"},{"kind":"text","text":" that is greater than or equal to "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" and less than "},{"kind":"code","text":"maxIndex"},{"kind":"text","text":", or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if none of the characters occur."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the index of the first occurrence of any character contained in "},{"kind":"code","text":"values"},{"kind":"text","text":" in "},{"kind":"code","text":"string"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxIndex"},{"kind":"text","text":" (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the first occurrence of any character contained in "},{"kind":"code","text":"values"},{"kind":"text","text":" in "},{"kind":"code","text":"string"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxIndex"},{"kind":"text","text":" (exclusive)."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":118}},{"id":"com.oracle.truffle.api.ArrayUtils#indexOf(char[],int,int,char...)","anchor":"indexOf(char[],int,int,char...)","kind":"method","name":"indexOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"indexOf"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"array"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"... "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"array","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"maxIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"values","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the first occurrence of any character contained in "},{"kind":"code","text":"values"},{"kind":"text","text":" in "},{"kind":"code","text":"array"},{"kind":"text","text":" that is greater than or equal to "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" and less than "},{"kind":"code","text":"maxIndex"},{"kind":"text","text":", or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if none of the characters occur."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the index of the first occurrence of any character contained in "},{"kind":"code","text":"values"},{"kind":"text","text":" in "},{"kind":"code","text":"array"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxIndex"},{"kind":"text","text":" (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the first occurrence of any character contained in "},{"kind":"code","text":"values"},{"kind":"text","text":" in "},{"kind":"code","text":"array"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxIndex"},{"kind":"text","text":" (exclusive)."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":150}},{"id":"com.oracle.truffle.api.ArrayUtils#indexOf(byte[],int,int,byte...)","anchor":"indexOf(byte[],int,int,byte...)","kind":"method","name":"indexOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"indexOf"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"array"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"... "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"array","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"maxIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"values","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the first occurrence of any byte contained in "},{"kind":"code","text":"values"},{"kind":"text","text":" in "},{"kind":"code","text":"array"},{"kind":"text","text":" that is greater than or equal to "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" and less than "},{"kind":"code","text":"maxIndex"},{"kind":"text","text":", or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if none of the values occur."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the index of the first occurrence of any byte contained in "},{"kind":"code","text":"values"},{"kind":"text","text":" in "},{"kind":"code","text":"array"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxIndex"},{"kind":"text","text":" (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the first occurrence of any byte contained in "},{"kind":"code","text":"values"},{"kind":"text","text":" in "},{"kind":"code","text":"array"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxIndex"},{"kind":"text","text":" (exclusive)."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":170}},{"id":"com.oracle.truffle.api.ArrayUtils#indexOfWithOrMask(byte[],int,int,byte[],byte[])","anchor":"indexOfWithOrMask(byte[],int,int,byte[],byte[])","kind":"method","name":"indexOfWithOrMask","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"indexOfWithOrMask"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"haystack"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"needle"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"haystack","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"needle","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"mask","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the first region of "},{"kind":"code","text":"haystack"},{"kind":"text","text":" where for all indices "},{"kind":"code","text":"i"},{"kind":"text","text":" of "},{"kind":"code","text":"needle"},{"kind":"text","text":" "},{"kind":"code","text":"(haystack[index + i] | mask[i]) == needle[i]"},{"kind":"text","text":" holds, and "},{"kind":"code","text":"fromIndex <= index && index + needle.length <= fromIndex + length"},{"kind":"text","text":" holds, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if no such region is found."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the index of the first region of "},{"kind":"code","text":"haystack"},{"kind":"text","text":" that equals "},{"kind":"code","text":"needle"},{"kind":"text","text":" after being OR'ed with "},{"kind":"code","text":"mask"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"length"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the first region of "},{"kind":"code","text":"haystack"},{"kind":"text","text":" that equals "},{"kind":"code","text":"needle"},{"kind":"text","text":" after being OR'ed with "},{"kind":"code","text":"mask"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"length"},{"kind":"text","text":". Performs best if "},{"kind":"code","text":"needle"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":" are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":" with "},{"kind":"code","text":"dimensions = 1"},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":193}},{"id":"com.oracle.truffle.api.ArrayUtils#indexOfWithOrMask(char[],int,int,char[],char[])","anchor":"indexOfWithOrMask(char[],int,int,char[],char[])","kind":"method","name":"indexOfWithOrMask","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"indexOfWithOrMask"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"haystack"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"needle"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"haystack","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"needle","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]},{"name":"mask","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the first region of "},{"kind":"code","text":"haystack"},{"kind":"text","text":" where for all indices "},{"kind":"code","text":"i"},{"kind":"text","text":" of "},{"kind":"code","text":"needle"},{"kind":"text","text":" "},{"kind":"code","text":"(haystack[index + i] | mask[i]) == needle[i]"},{"kind":"text","text":" holds, and "},{"kind":"code","text":"fromIndex <= index && index + needle.length <= fromIndex + length"},{"kind":"text","text":" holds, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if no such region is found."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the index of the first region of "},{"kind":"code","text":"haystack"},{"kind":"text","text":" that equals "},{"kind":"code","text":"needle"},{"kind":"text","text":" after being OR'ed with "},{"kind":"code","text":"mask"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"length"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the first region of "},{"kind":"code","text":"haystack"},{"kind":"text","text":" that equals "},{"kind":"code","text":"needle"},{"kind":"text","text":" after being OR'ed with "},{"kind":"code","text":"mask"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"length"},{"kind":"text","text":". Performs best if "},{"kind":"code","text":"needle"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":" are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":" with "},{"kind":"code","text":"dimensions = 1"},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":251}},{"id":"com.oracle.truffle.api.ArrayUtils#indexOfWithOrMask(java.lang.String,int,int,java.lang.String,java.lang.String)","anchor":"indexOfWithOrMask(java.lang.String,int,int,java.lang.String,java.lang.String)","kind":"method","name":"indexOfWithOrMask","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"indexOfWithOrMask"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"haystack"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"needle"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"haystack","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"needle","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"mask","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the first region of "},{"kind":"code","text":"haystack"},{"kind":"text","text":" where for all indices "},{"kind":"code","text":"i"},{"kind":"text","text":" of "},{"kind":"code","text":"needle"},{"kind":"text","text":" "},{"kind":"code","text":"(haystack.charAt(index + i) | mask.charAt(i)) == needle.charAt(i)"},{"kind":"text","text":" holds, and "},{"kind":"code","text":"fromIndex <= index && index + needle.length() <= fromIndex + length"},{"kind":"text","text":" holds, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if no such region is found."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the index of the first region of "},{"kind":"code","text":"haystack"},{"kind":"text","text":" that equals "},{"kind":"code","text":"needle"},{"kind":"text","text":" after being OR'ed with "},{"kind":"code","text":"mask"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"length"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the first region of "},{"kind":"code","text":"haystack"},{"kind":"text","text":" that equals "},{"kind":"code","text":"needle"},{"kind":"text","text":" after being OR'ed with "},{"kind":"code","text":"mask"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"length"},{"kind":"text","text":". Performs best if "},{"kind":"code","text":"needle"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":" are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":308}},{"id":"com.oracle.truffle.api.ArrayUtils#regionEqualsWithOrMask(byte[],int,byte[],int,int,byte[])","anchor":"regionEqualsWithOrMask(byte[],int,byte[],int,int,byte[])","kind":"method","name":"regionEqualsWithOrMask","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"regionEqualsWithOrMask"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offsetA"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offsetB"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"offsetA","type":[{"kind":"keyword","text":"int"}]},{"name":"b","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"offsetB","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"mask","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" iff for all indices "},{"kind":"code","text":"i"},{"kind":"text","text":" from "},{"kind":"code","text":"0"},{"kind":"text","text":" (inclusive) to "},{"kind":"code","text":"length"},{"kind":"text","text":" (exclusive), "},{"kind":"code","text":"(a[offsetA + i] | mask[i]) == b[offsetB + i]"},{"kind":"text","text":" holds."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" iff for all indices "},{"kind":"code","text":"i"},{"kind":"text","text":" from "},{"kind":"code","text":"0"},{"kind":"text","text":" (inclusive) to "},{"kind":"code","text":"length"},{"kind":"text","text":" (exclusive), "},{"kind":"code","text":"(a[offsetA + i] | mask[i]) == b[offsetB + i]"},{"kind":"text","text":" holds. Performs best if "},{"kind":"code","text":"length"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":" are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":" with "},{"kind":"code","text":"dimensions = 1"},{"kind":"text","text":". If "},{"kind":"code","text":"mask"},{"kind":"text","text":" is "},{"kind":"code","text":"null"},{"kind":"text","text":", it is treated as if it was filled with zeroes."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":387}},{"id":"com.oracle.truffle.api.ArrayUtils#regionEqualsWithOrMask(char[],int,char[],int,int,char[])","anchor":"regionEqualsWithOrMask(char[],int,char[],int,int,char[])","kind":"method","name":"regionEqualsWithOrMask","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"regionEqualsWithOrMask"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offsetA"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offsetB"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]},{"name":"offsetA","type":[{"kind":"keyword","text":"int"}]},{"name":"b","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]},{"name":"offsetB","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"mask","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" iff for all indices "},{"kind":"code","text":"i"},{"kind":"text","text":" from "},{"kind":"code","text":"0"},{"kind":"text","text":" (inclusive) to "},{"kind":"code","text":"length"},{"kind":"text","text":" (exclusive), "},{"kind":"code","text":"(a[offsetA + i] | mask[i]) == b[offsetB + i]"},{"kind":"text","text":" holds."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" iff for all indices "},{"kind":"code","text":"i"},{"kind":"text","text":" from "},{"kind":"code","text":"0"},{"kind":"text","text":" (inclusive) to "},{"kind":"code","text":"length"},{"kind":"text","text":" (exclusive), "},{"kind":"code","text":"(a[offsetA + i] | mask[i]) == b[offsetB + i]"},{"kind":"text","text":" holds. Performs best if "},{"kind":"code","text":"length"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":" are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":" with "},{"kind":"code","text":"dimensions = 1"},{"kind":"text","text":". If "},{"kind":"code","text":"mask"},{"kind":"text","text":" is "},{"kind":"code","text":"null"},{"kind":"text","text":", it is treated as if it was filled with zeroes."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":410}},{"id":"com.oracle.truffle.api.ArrayUtils#regionEqualsWithOrMask(java.lang.String,int,java.lang.String,int,int,java.lang.String)","anchor":"regionEqualsWithOrMask(java.lang.String,int,java.lang.String,int,int,java.lang.String)","kind":"method","name":"regionEqualsWithOrMask","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"regionEqualsWithOrMask"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offsetA"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offsetB"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"offsetA","type":[{"kind":"keyword","text":"int"}]},{"name":"b","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"offsetB","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"mask","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" iff for all indices "},{"kind":"code","text":"i"},{"kind":"text","text":" from "},{"kind":"code","text":"0"},{"kind":"text","text":" (inclusive) to "},{"kind":"code","text":"length"},{"kind":"text","text":" (exclusive), "},{"kind":"code","text":"(a.charAt(offsetA + i) | mask.charAt(i)) == b.charAt(offsetB + i)"},{"kind":"text","text":" holds."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" iff for all indices "},{"kind":"code","text":"i"},{"kind":"text","text":" from "},{"kind":"code","text":"0"},{"kind":"text","text":" (inclusive) to "},{"kind":"code","text":"length"},{"kind":"text","text":" (exclusive), "},{"kind":"code","text":"(a.charAt(offsetA + i) | mask.charAt(i)) == b.charAt(offsetB + i)"},{"kind":"text","text":" holds. Performs best if "},{"kind":"code","text":"length"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":" are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":" with "},{"kind":"code","text":"dimensions = 1"},{"kind":"text","text":". If "},{"kind":"code","text":"mask"},{"kind":"text","text":" is "},{"kind":"code","text":"null"},{"kind":"text","text":", it is treated as if it was filled with zeroes."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":434}},{"id":"com.oracle.truffle.api.ArrayUtils#arraycopy(int[],int,int[],int,int)","anchor":"arraycopy(int[],int,int[],int,int)","kind":"method","name":"arraycopy","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"arraycopy"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"destination"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"destinationIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]},{"name":"sourceIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"destination","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]},{"name":"destinationIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Copies "},{"kind":"code","text":"length"},{"kind":"text","text":" elements from "},{"kind":"code","text":"source"},{"kind":"text","text":", starting at "},{"kind":"code","text":"sourceIndex"},{"kind":"text","text":", to "},{"kind":"code","text":"destination"},{"kind":"text","text":", starting at "},{"kind":"code","text":"destinationIndex"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies "},{"kind":"code","text":"length"},{"kind":"text","text":" elements from "},{"kind":"code","text":"source"},{"kind":"text","text":", starting at "},{"kind":"code","text":"sourceIndex"},{"kind":"text","text":", to "},{"kind":"code","text":"destination"},{"kind":"text","text":", starting at "},{"kind":"code","text":"destinationIndex"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is intended for performance-sensitive Truffle code that copies non-overlapping "},{"kind":"code","text":"int[]"},{"kind":"text","text":" regions and can benefit from compiler intrinsification, in particular for small constant-length copies. It is not a general replacement for "},{"kind":"link","target":{"id":"java.lang.System#arraycopy(java.lang.Object,int,java.lang.Object,int,int)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/System.html#arraycopy(java.lang.Object,int,java.lang.Object,int,int)"},"code":true,"children":[{"kind":"text","text":"System.arraycopy"}]},{"kind":"text","text":": use "},{"kind":"link","target":{"id":"java.lang.System#arraycopy(java.lang.Object,int,java.lang.Object,int,int)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/System.html#arraycopy(java.lang.Object,int,java.lang.Object,int,int)"},"code":true,"children":[{"kind":"text","text":"System.arraycopy"}]},{"kind":"text","text":" unless the stricter contract below is acceptable."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike "},{"kind":"link","target":{"id":"java.lang.System#arraycopy(java.lang.Object,int,java.lang.Object,int,int)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/System.html#arraycopy(java.lang.Object,int,java.lang.Object,int,int)"},"code":true,"children":[{"kind":"text","text":"System.arraycopy"}]},{"kind":"text","text":", this method is intrinsified in a manner that doesn't behave exactly as the scalar loop would: overlapping source and destination regions are not supported, and individual elements may be copied twice, which may be observable in multi-threading contexts."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":516}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"This class provides additional operations for "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" as well as character and byte arrays, which may be intrinsified by a compiler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This class provides additional operations for "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" as well as character and byte arrays, which may be intrinsified by a compiler."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/ArrayUtils.java","line":56}},{"id":"com.oracle.truffle.api.Assumption","name":"Assumption","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Assumption"}],"members":[{"id":"com.oracle.truffle.api.Assumption#ALWAYS_VALID","anchor":"ALWAYS_VALID","kind":"field","name":"ALWAYS_VALID","signature":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"ALWAYS_VALID"}],"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}],"doc":{"summary":[{"kind":"text","text":"An assumption that is always valid and fails with an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" if invalidated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An assumption that is always valid and fails with an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" if invalidated."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/Assumption.java","line":74}},{"id":"com.oracle.truffle.api.Assumption#NEVER_VALID","anchor":"NEVER_VALID","kind":"field","name":"NEVER_VALID","signature":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"NEVER_VALID"}],"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}],"doc":{"summary":[{"kind":"text","text":"An assumption that is never valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An assumption that is never valid."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/Assumption.java","line":81}},{"id":"com.oracle.truffle.api.Assumption#check()","anchor":"check()","kind":"method","name":"check","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"check"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"InvalidAssumptionException","ref":"com.oracle.truffle.api.nodes.InvalidAssumptionException"}],"throws":[{"type":[{"kind":"type","text":"InvalidAssumptionException","ref":"com.oracle.truffle.api.nodes.InvalidAssumptionException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"If the assumption is no longer valid."}]}]}],"doc":{"summary":[{"kind":"text","text":"Checks that this assumption is still valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks that this assumption is still valid. The method throws an exception, if this is no longer the case. This method is preferred over the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption#isValid()"},"code":true,"children":[{"kind":"text","text":"isValid()"}]},{"kind":"text","text":" method when writing guest language interpreter code. The catch block should perform a node rewrite (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T)"},"code":true,"children":[{"kind":"text","text":"Node.replace(Node)"}]},{"kind":"text","text":") with a node that no longer relies on the assumption."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/Assumption.java","line":102}},{"id":"com.oracle.truffle.api.Assumption#isValid()","anchor":"isValid()","kind":"method","name":"isValid","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isValid"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a boolean value indicating the validity of the assumption"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks whether the assumption is still valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether the assumption is still valid."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/Assumption.java","line":111}},{"id":"com.oracle.truffle.api.Assumption#invalidate()","anchor":"invalidate()","kind":"method","name":"invalidate","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"invalidate"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Invalidates this assumption."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invalidates this assumption. Performs no operation, if the assumption is already invalid."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/Assumption.java","line":118}},{"id":"com.oracle.truffle.api.Assumption#invalidate(java.lang.String)","anchor":"invalidate(java.lang.String)","kind":"method","name":"invalidate","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"invalidate"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a message stating the reason of the invalidation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invalidates this assumption."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invalidates this assumption. Performs no operation, if the assumption is already invalid."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/Assumption.java","line":126}},{"id":"com.oracle.truffle.api.Assumption#getName()","anchor":"getName()","kind":"method","name":"getName","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of the assumption"}]}]},"doc":{"summary":[{"kind":"text","text":"A name for the assumption that is used for debug output."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A name for the assumption that is used for debug output."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/Assumption.java","line":136}},{"id":"com.oracle.truffle.api.Assumption#isValidAssumption(com.oracle.truffle.api.Assumption)","anchor":"isValidAssumption(com.oracle.truffle.api.Assumption)","kind":"method","name":"isValidAssumption","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isValidAssumption"},{"kind":"punct","text":"("},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"param","text":"assumption"},{"kind":"punct","text":")"}],"params":[{"name":"assumption","type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks whether an assumption is not "},{"kind":"code","text":"null"},{"kind":"text","text":" and valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether an assumption is not "},{"kind":"code","text":"null"},{"kind":"text","text":" and valid."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/Assumption.java","line":144}},{"id":"com.oracle.truffle.api.Assumption#isValidAssumption(com.oracle.truffle.api.Assumption[])","anchor":"isValidAssumption(com.oracle.truffle.api.Assumption[])","kind":"method","name":"isValidAssumption","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isValidAssumption"},{"kind":"punct","text":"("},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":"[] "},{"kind":"param","text":"assumptions"},{"kind":"punct","text":")"}],"params":[{"name":"assumptions","type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks whether all assumptions in an array are not "},{"kind":"code","text":"null"},{"kind":"text","text":" and valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether all assumptions in an array are not "},{"kind":"code","text":"null"},{"kind":"text","text":" and valid. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" if the assumptions array itself is "},{"kind":"code","text":"null"},{"kind":"text","text":". This method is designed for compilation. Note that the provided assumptions array must be a compilation final array with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal#dimensions()"},"code":true,"children":[{"kind":"text","text":"dimensions"}]},{"kind":"text","text":" set to one."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/Assumption.java","line":156}},{"id":"com.oracle.truffle.api.Assumption#create()","anchor":"create()","kind":"method","name":"create","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new assumption with a name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new assumption with a name. Shortcut for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#createAssumption()"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.createAssumption()"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/Assumption.java","line":176}},{"id":"com.oracle.truffle.api.Assumption#create(java.lang.String)","anchor":"create(java.lang.String)","kind":"method","name":"create","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new assumption with a name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new assumption with a name. Shortcut for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#createAssumption(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.createAssumption(String)"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/Assumption.java","line":186}}],"doc":{"summary":[{"kind":"text","text":"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 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption#invalidate()"},"code":true,"children":[{"kind":"text","text":"Assumption.invalidate()"}]},{"kind":"text","text":")."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption#invalidate()"},"code":true,"children":[{"kind":"text","text":"Assumption.invalidate()"}]},{"kind":"text","text":"). Once invalidated, an assumption can never get valid again. Assumptions can be created using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#createAssumption()"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.createAssumption()"}]},{"kind":"text","text":" or the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#createAssumption(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.createAssumption(String)"}]},{"kind":"text","text":" method. The Truffle compiler has special knowledge of this class in order to produce efficient machine code for checking an assumption in case the assumption object is a compile time constant. Therefore, assumptions should be stored in final fields in Truffle nodes. All instances of classes implementing "},{"kind":"code","text":"Assumption"},{"kind":"text","text":" must be held in "},{"kind":"code","text":"final"},{"kind":"text","text":" fields for compiler optimizations to take effect."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Do not manually subclass the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]},{"kind":"text","text":" interface. This class is only intended to be subclassed by Truffle runtime implementations to avoid polymorphism in performance sensitive methods."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/Assumption.java","line":66}},{"id":"com.oracle.truffle.api.CallTarget","name":"CallTarget","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"CallTarget"}],"members":[{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)","anchor":"call(java.lang.Object...)","kind":"method","name":"call","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The arguments passed to the call, as an object array."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The result of the call."}]}]},"doc":{"summary":[{"kind":"text","text":"Calls the encapsulated root node with the given arguments and returns the result."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Calls the encapsulated root node with the given arguments and returns the result."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By calling this method, the call location is looked up using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference"},"code":true,"children":[{"kind":"text","text":"EncapsulatingNodeReference"}]},{"kind":"text","text":". Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"call(Node, Object...)"}]},{"kind":"text","text":" if the call location is already known."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Calling this method in partially evaluated code will allow it to get inlined if the receiver (this) is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#isPartialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"pe-constant"}]},{"kind":"text","text":". Call site "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCloningAllowed()"},"code":true,"children":[{"kind":"text","text":"cloning"}]},{"kind":"text","text":" is only supported if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":" is used instead."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"call(Node, Object...)"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CallTarget.java","line":86}},{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,java.lang.Object...)","anchor":"call(com.oracle.truffle.api.nodes.Node,java.lang.Object...)","kind":"method","name":"call","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" that identifies the location of this call. The location may be "},{"kind":"code","text":"null"},{"kind":"text","text":" if no location is available."}]}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The arguments passed to the call, as an object array."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The result of the call."}]}]},"doc":{"summary":[{"kind":"text","text":"Calls the encapsulated root node with an explicit call location and arguments, and returns the result."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Calls the encapsulated root node with an explicit call location and arguments, and returns the result."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should be preferred over "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"call(Object...)"}]},{"kind":"text","text":" if the current location is known, as it avoids looking up the current location from a thread-local."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"call(Object...)"}]}]]},"since":"24.1","source":{"path":"com/oracle/truffle/api/CallTarget.java","line":103}},{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])","anchor":"call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])","kind":"method","name":"call","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" that identifies the location of this call. The location may be "},{"kind":"code","text":"null"},{"kind":"text","text":" if no location is available."}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index associated with this call, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if no explicit bytecode index is available."}]}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments passed to the call, as an object array."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of the call."}]}]},"doc":{"summary":[{"kind":"text","text":"Calls the root node, preserving the explicit location and BCI for stack walking."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Calls the root node, preserving the explicit location and BCI for stack walking."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Callers that do not have an explicit bytecode index should pass "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"call(Node, Object...)"}]}]]},"since":"25.6","source":{"path":"com/oracle/truffle/api/CallTarget.java","line":121}}],"doc":{"summary":[{"kind":"text","text":"Represents the target of a call."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the target of a call. Call targets are created automatically from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"RootNode.getCallTarget()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A call target allows the runtime to employ a compilation heuristic to trigger partial evaluation of the underlying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":", typically in the background. Additionally, calling a call target builds a guest language level "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace"},"code":true,"children":[{"kind":"text","text":"stack trace"}]},{"kind":"text","text":" which can be inspected using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#getStackTrace(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"TruffleStackTrace.getStackTrace(Throwable)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Do not subclass "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" directly, as this interface is likely to become sealed in the future."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.IndirectCallNode"},"code":true,"children":[{"kind":"text","text":"IndirectCallNode"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CallTarget.java","line":67}},{"id":"com.oracle.truffle.api.CompilerAsserts","name":"CompilerAsserts","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"CompilerAsserts"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.CompilerAsserts#neverPartOfCompilation()","anchor":"neverPartOfCompilation()","kind":"method","name":"neverPartOfCompilation","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"neverPartOfCompilation"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Assertion that this code position should never be reached during compilation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Assertion that this code position should never be reached during compilation. It can be used for exceptional code paths or rare code paths that should never be included in a compilation unit. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreter()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.transferToInterpreter()"}]},{"kind":"text","text":" for the corresponding compiler directive."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#bailout(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.bailout(String)"}]},{"kind":"text","text":" should be used if failing compilation is desired, e.g., for testing. "},{"kind":"code","text":"neverPartOfCompilation()"},{"kind":"text","text":" must not be reachable for runtime compilation, see the TruffleCheckNeverPartOfCompilation option."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":67}},{"id":"com.oracle.truffle.api.CompilerAsserts#neverPartOfCompilation(java.lang.String)","anchor":"neverPartOfCompilation(java.lang.String)","kind":"method","name":"neverPartOfCompilation","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"neverPartOfCompilation"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"text associated with the bailout exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Assertion that this code position should never be reached during compilation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Assertion that this code position should never be reached during compilation. It can be used for exceptional code paths or rare code paths that should never be included in a compilation unit. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreter()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.transferToInterpreter()"}]},{"kind":"text","text":" for the corresponding compiler directive."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#bailout(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.bailout(String)"}]},{"kind":"text","text":" should be used if failing compilation is desired, e.g., for testing. "},{"kind":"code","text":"neverPartOfCompilation()"},{"kind":"text","text":" must not be reachable for runtime compilation, see the TruffleCheckNeverPartOfCompilation option."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":83}},{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)","anchor":"compilationConstant(java.lang.Object)","kind":"method","name":"compilationConstant","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"compilationConstant"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value that must be constant during compilation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Assertion that the corresponding value is reduced to a constant during compilation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Assertion that the corresponding value is reduced to a constant during compilation. This is, for example, useful to assert that an array has always the same size, although the actual value is only known at run-time. In most cases, it is preferred to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.partialEvaluationConstant(Object)"}]},{"kind":"text","text":" and its specialized variants."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.partialEvaluationConstant(Object)"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":96}},{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)","anchor":"partialEvaluationConstant(java.lang.Object)","kind":"method","name":"partialEvaluationConstant","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"partialEvaluationConstant"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value that must be constant during compilation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Assertion that the corresponding value is reduced to a constant during the initial partial evaluation phase."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Assertion that the corresponding value is reduced to a constant during the initial partial evaluation phase. Compared with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":", the constantness of the value is checked much earlier in the compilation pipeline. It should therefore be preferred, also because its specialized variants avoid boxing."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":112}},{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(boolean)","anchor":"partialEvaluationConstant(boolean)","kind":"method","name":"partialEvaluationConstant","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"partialEvaluationConstant"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value that must be constant during partial evaluation."}]}]}],"doc":{"summary":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"boolean"},{"kind":"text","text":" values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"boolean"},{"kind":"text","text":" values."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.partialEvaluationConstant(Object)"}]}]]},"since":"19.3","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":123}},{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(int)","anchor":"partialEvaluationConstant(int)","kind":"method","name":"partialEvaluationConstant","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"partialEvaluationConstant"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value that must be constant during partial evaluation."}]}]}],"doc":{"summary":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"int"},{"kind":"text","text":" values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"int"},{"kind":"text","text":" values."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.partialEvaluationConstant(Object)"}]}]]},"since":"19.3","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":134}},{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(float)","anchor":"partialEvaluationConstant(float)","kind":"method","name":"partialEvaluationConstant","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"partialEvaluationConstant"},{"kind":"punct","text":"("},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value that must be constant during partial evaluation."}]}]}],"doc":{"summary":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"float"},{"kind":"text","text":" values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"float"},{"kind":"text","text":" values."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.partialEvaluationConstant(Object)"}]}]]},"since":"19.3","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":145}},{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(long)","anchor":"partialEvaluationConstant(long)","kind":"method","name":"partialEvaluationConstant","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"partialEvaluationConstant"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value that must be constant during partial evaluation."}]}]}],"doc":{"summary":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"long"},{"kind":"text","text":" values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"long"},{"kind":"text","text":" values."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.partialEvaluationConstant(Object)"}]}]]},"since":"19.3","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":156}},{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(double)","anchor":"partialEvaluationConstant(double)","kind":"method","name":"partialEvaluationConstant","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"partialEvaluationConstant"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value that must be constant during partial evaluation."}]}]}],"doc":{"summary":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"double"},{"kind":"text","text":" values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" for "},{"kind":"code","text":"double"},{"kind":"text","text":" values."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.partialEvaluationConstant(Object)"}]}]]},"since":"19.3","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":167}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Assertions about the code produced by the Truffle compiler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Assertions about the code produced by the Truffle compiler. All operations have no effect when either executed in the interpreter or in the compiled code. The assertions are checked during code generation and the Truffle compiler produces for failing assertions a stack trace that identifies the code position of the assertion in the context of the current compilation."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerAsserts.java","line":51}},{"id":"com.oracle.truffle.api.CompilerDirectives","name":"CompilerDirectives","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"CompilerDirectives"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.CompilerDirectives#LIKELY_PROBABILITY","anchor":"LIKELY_PROBABILITY","kind":"field","name":"LIKELY_PROBABILITY","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"LIKELY_PROBABILITY"}],"type":[{"kind":"keyword","text":"double"}],"constant":"0.75","since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":65}},{"id":"com.oracle.truffle.api.CompilerDirectives#UNLIKELY_PROBABILITY","anchor":"UNLIKELY_PROBABILITY","kind":"field","name":"UNLIKELY_PROBABILITY","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"UNLIKELY_PROBABILITY"}],"type":[{"kind":"keyword","text":"double"}],"constant":"0.25","since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":67}},{"id":"com.oracle.truffle.api.CompilerDirectives#SLOWPATH_PROBABILITY","anchor":"SLOWPATH_PROBABILITY","kind":"field","name":"SLOWPATH_PROBABILITY","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"SLOWPATH_PROBABILITY"}],"type":[{"kind":"keyword","text":"double"}],"constant":"1.0E-4","since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":69}},{"id":"com.oracle.truffle.api.CompilerDirectives#FASTPATH_PROBABILITY","anchor":"FASTPATH_PROBABILITY","kind":"field","name":"FASTPATH_PROBABILITY","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"FASTPATH_PROBABILITY"}],"type":[{"kind":"keyword","text":"double"}],"constant":"0.9999","since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":71}},{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreter()","anchor":"transferToInterpreter()","kind":"method","name":"transferToInterpreter","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"transferToInterpreter"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Directive for the compiler to discontinue compilation at this code position and instead insert a transfer to the interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Directive for the compiler to discontinue compilation at this code position and instead insert a transfer to the interpreter."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":79}},{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()","anchor":"transferToInterpreterAndInvalidate()","kind":"method","name":"transferToInterpreterAndInvalidate","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"transferToInterpreterAndInvalidate"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":93}},{"id":"com.oracle.truffle.api.CompilerDirectives#inInterpreter()","anchor":"inInterpreter()","kind":"method","name":"inInterpreter","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inInterpreter"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" when executed in the interpreter, "},{"kind":"code","text":"false"},{"kind":"text","text":" in compiled code."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a boolean value indicating whether the method is executed in the interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a boolean value indicating whether the method is executed in the interpreter."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":107}},{"id":"com.oracle.truffle.api.CompilerDirectives#hasNextTier()","anchor":"hasNextTier()","kind":"method","name":"hasNextTier","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasNextTier"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" when executed in the first tier Truffle compilation, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a boolean value indicating whether the method is executed in a compilation tier which can be replaced with a higher tier (e.g."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a boolean value indicating whether the method is executed in a compilation tier which can be replaced with a higher tier (e.g. interpretation tier can be replaced by a first tier, a first tier by a second tier compilation)."}]}]},"since":"22.0.0","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":120}},{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()","anchor":"inCompiledCode()","kind":"method","name":"inCompiledCode","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inCompiledCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"false"},{"kind":"text","text":" when executed in the interpreter, "},{"kind":"code","text":"true"},{"kind":"text","text":" in compiled code."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a boolean value indicating whether the method is executed in the compiled code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a boolean value indicating whether the method is executed in the compiled code."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":130}},{"id":"com.oracle.truffle.api.CompilerDirectives#preserveFrameStateHere()","anchor":"preserveFrameStateHere()","kind":"method","name":"preserveFrameStateHere","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"preserveFrameStateHere"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Inserts a state-split marker at this program point so deoptimization restores frame state for the current bytecode location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Inserts a state-split marker at this program point so deoptimization restores frame state for the current bytecode location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This is intended for bytecode interpreters that need reliable transfer-to-interpreter transition reporting at specific program points."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":143}},{"id":"com.oracle.truffle.api.CompilerDirectives#inCompilationRoot()","anchor":"inCompilationRoot()","kind":"method","name":"inCompilationRoot","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inCompilationRoot"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"false"},{"kind":"text","text":" when executed in the interpreter or in an inlined "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":", "},{"kind":"code","text":"true"},{"kind":"text","text":" when in non-inlined compiled code."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a boolean value indicating whether the method is executed in the root of a Truffle compilation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a boolean value indicating whether the method is executed in the root of a Truffle compilation."}]}]},"since":"0.28 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":154}},{"id":"com.oracle.truffle.api.CompilerDirectives#isCompilationConstant(java.lang.Object)","anchor":"isCompilationConstant(java.lang.Object)","kind":"method","name":"isCompilationConstant","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCompilationConstant"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" when given value is seen as compilation constant, "},{"kind":"code","text":"false"},{"kind":"text","text":" if not compilation constant."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a boolean indicating whether or not a given value is seen as constant in optimized code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a boolean indicating whether or not a given value is seen as constant in optimized code. If this method is called in the interpreter this method will always return "},{"kind":"code","text":"true"},{"kind":"text","text":". Note that optimizations that a compiler will apply to code that is conditional on "},{"kind":"code","text":"isCompilationConstant"},{"kind":"text","text":" may be limited. For this reason "},{"kind":"code","text":"isCompilationConstant"},{"kind":"text","text":" is not recommended for use to select between alternate implementations of functionality depending on whether a value is constant. Instead, it is intended for use as a diagnostic mechanism."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":174}},{"id":"com.oracle.truffle.api.CompilerDirectives#isPartialEvaluationConstant(java.lang.Object)","anchor":"isPartialEvaluationConstant(java.lang.Object)","kind":"method","name":"isPartialEvaluationConstant","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isPartialEvaluationConstant"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" when given value is seen as compilation constant or in interpreter, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a boolean indicating whether a given value is seen as constant during the initial partial evaluation phase."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a boolean indicating whether a given value is seen as constant during the initial partial evaluation phase. If this method is called in the interpreter this method will always return "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Because of that one should consider if the code guarded by this check should be run in interpreter or not. If it's faster to not run the guarded code in interpreter one can use:"}]},{"kind":"code","text":"if (CompilerDirectives.inCompiledCode() && CompilerDirectives.isPartialEvaluationConstant(value)) {\n    // logic only run in compiled code if value is a PE constant\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"but beware that code is never run in interpreter and so might lead to subtle bugs and is harder to debug. If it does not matter much whether the code runs in interpreter it's best to just:"}]},{"kind":"code","text":"if (CompilerDirectives.isPartialEvaluationConstant(value)) {\n    // logic run in interpreter and in compiled code if value is a PE constant\n}"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":204}},{"id":"com.oracle.truffle.api.CompilerDirectives#interpreterOnly(java.lang.Runnable)","anchor":"interpreterOnly(java.lang.Runnable)","kind":"method","name":"interpreterOnly","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"interpreterOnly"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the closure that should only be executed in the interpreter"}]}]}],"doc":{"summary":[{"kind":"text","text":"Directive for the compiler that the given runnable should only be executed in the interpreter and ignored in the compiled code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Directive for the compiler that the given runnable should only be executed in the interpreter and ignored in the compiled code."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":215}},{"id":"com.oracle.truffle.api.CompilerDirectives#interpreterOnly(java.util.concurrent.Callable)","anchor":"interpreterOnly(java.util.concurrent.Callable)","kind":"method","name":"interpreterOnly","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"interpreterOnly"},{"kind":"punct","text":"("},{"kind":"type","text":"Callable","ref":"java.util.concurrent.Callable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Callable.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"callable"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"params":[{"name":"callable","type":[{"kind":"type","text":"Callable","ref":"java.util.concurrent.Callable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Callable.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the closure that should only be executed in the interpreter"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of executing the closure in the interpreter and null in the compiled code"}]}]},"throws":[{"type":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"If the closure throws an exception when executed in the interpreter."}]}]}],"doc":{"summary":[{"kind":"text","text":"Directive for the compiler that the given callable should only be executed in the interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Directive for the compiler that the given callable should only be executed in the interpreter."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":228}},{"id":"com.oracle.truffle.api.CompilerDirectives#injectBranchProbability(double,boolean)","anchor":"injectBranchProbability(double,boolean)","kind":"method","name":"injectBranchProbability","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"injectBranchProbability"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"probability"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"condition"},{"kind":"punct","text":")"}],"params":[{"name":"probability","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the probability value between 0.0 and 1.0 that should be injected"}]}]},{"name":"condition","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Injects a probability for the given condition into the probability information of the immediately succeeding branch instruction for the condition."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Injects a probability for the given condition into the probability information of the immediately succeeding branch instruction for the condition. The probability must be a value between 0.0 and 1.0 (inclusive). The condition should not be a combined condition. Example usage immediately before an if statement (it specifies that the likelihood for a to be greater than b is 90%): "},{"kind":"code","text":"\nif (injectBranchProbability(0.9, a > b)) {\n   // ...\n}\n"},{"kind":"text","text":" Example usage for a combined condition (it specifies that the likelihood for a to be greater than b is 90% and under the assumption that this is true, the likelihood for a being 0 is 10%): "},{"kind":"code","text":"\nif (injectBranchProbability(0.9, a > b) && injectBranchProbability(0.1, a == 0)) {\n   // ...\n}\n"},{"kind":"text","text":" There are predefined constants for commonly used probabilities (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#LIKELY_PROBABILITY"},"code":true,"children":[{"kind":"text","text":"LIKELY_PROBABILITY"}]},{"kind":"text","text":" , "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#UNLIKELY_PROBABILITY"},"code":true,"children":[{"kind":"text","text":"UNLIKELY_PROBABILITY"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#SLOWPATH_PROBABILITY"},"code":true,"children":[{"kind":"text","text":"SLOWPATH_PROBABILITY"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#FASTPATH_PROBABILITY"},"code":true,"children":[{"kind":"text","text":"FASTPATH_PROBABILITY"}]},{"kind":"text","text":" )."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":263}},{"id":"com.oracle.truffle.api.CompilerDirectives#bailout(java.lang.String)","anchor":"bailout(java.lang.String)","kind":"method","name":"bailout","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"bailout"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"reason"},{"kind":"punct","text":")"}],"params":[{"name":"reason","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the reason for the bailout"}]}]}],"doc":{"summary":[{"kind":"text","text":"Bails out of a compilation (e.g., for guest language features that should never be compiled)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Bails out of a compilation (e.g., for guest language features that should never be compiled)."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":274}},{"id":"com.oracle.truffle.api.CompilerDirectives#materialize(java.lang.Object)","anchor":"materialize(java.lang.Object)","kind":"method","name":"materialize","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"materialize"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the object to exclude from Escape Analysis"}]}]}],"doc":{"summary":[{"kind":"text","text":"Ensures that the given object is not virtual, i.e., not removed by Escape Analysis at the point of this call."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that the given object is not virtual, i.e., not removed by Escape Analysis at the point of this call."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":513}},{"id":"com.oracle.truffle.api.CompilerDirectives#ensureAllocatedHere(T)","anchor":"ensureAllocatedHere(T)","kind":"method","name":"ensureAllocatedHere","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureAllocatedHere"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Prevents the compiler from moving an allocation, enabling precise "},{"kind":"link","target":{"id":"java.lang.OutOfMemoryError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/OutOfMemoryError.html"},"code":true,"children":[{"kind":"text","text":"OutOfMemoryError"}]},{"kind":"text","text":" exception locations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prevents the compiler from moving an allocation, enabling precise "},{"kind":"link","target":{"id":"java.lang.OutOfMemoryError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/OutOfMemoryError.html"},"code":true,"children":[{"kind":"text","text":"OutOfMemoryError"}]},{"kind":"text","text":" exception locations. This intrinsic ensures the allocation's immobility and guarantees that the compiler's optimizations do not eliminate the allocation. Imposing such a restriction can hinder certain compiler optimizations, potentially degrading performance. If the intrinsic does not find an allocation as its argument, it causes a runtime compilation failure, invoking "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#bailout(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.bailout(String)"}]},{"kind":"text","text":". "},{"kind":"strong","children":[{"kind":"text","text":"Example usage:"}]}]},{"kind":"code","text":"int[] tryAllocateArray() {\n    int[] array;\n    try {\n        array = CompilerDirectives.ensureAllocatedHere(new int[42]);\n    } catch (OutOfMemoryError e) {\n        // handle out of memory errors to maintain consistency\n        array = null;\n    }\n    return array;\n}"}]},"since":"24.1.0","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":541}},{"id":"com.oracle.truffle.api.CompilerDirectives#ensureVirtualized(java.lang.Object)","anchor":"ensureVirtualized(java.lang.Object)","kind":"method","name":"ensureVirtualized","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureVirtualized"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Ensures that the given object will be virtual (escape analyzed) at all points that are dominated by the current position."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that the given object will be virtual (escape analyzed) at all points that are dominated by the current position."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":551}},{"id":"com.oracle.truffle.api.CompilerDirectives#ensureVirtualizedHere(java.lang.Object)","anchor":"ensureVirtualizedHere(java.lang.Object)","kind":"method","name":"ensureVirtualizedHere","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureVirtualizedHere"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Ensures that the given object will be virtual at the current position."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that the given object will be virtual at the current position."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":559}},{"id":"com.oracle.truffle.api.CompilerDirectives#blackhole(boolean)","anchor":"blackhole(boolean)","kind":"method","name":"blackhole","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"blackhole"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused. This should only be used for benchmarking purposes."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":568}},{"id":"com.oracle.truffle.api.CompilerDirectives#blackhole(byte)","anchor":"blackhole(byte)","kind":"method","name":"blackhole","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"blackhole"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused. This should only be used for benchmarking purposes."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":578}},{"id":"com.oracle.truffle.api.CompilerDirectives#blackhole(short)","anchor":"blackhole(short)","kind":"method","name":"blackhole","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"blackhole"},{"kind":"punct","text":"("},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"short"}]}],"doc":{"summary":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused. This should only be used for benchmarking purposes."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":588}},{"id":"com.oracle.truffle.api.CompilerDirectives#blackhole(char)","anchor":"blackhole(char)","kind":"method","name":"blackhole","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"blackhole"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"char"}]}],"doc":{"summary":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused. This should only be used for benchmarking purposes."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":598}},{"id":"com.oracle.truffle.api.CompilerDirectives#blackhole(int)","anchor":"blackhole(int)","kind":"method","name":"blackhole","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"blackhole"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused. This should only be used for benchmarking purposes."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":608}},{"id":"com.oracle.truffle.api.CompilerDirectives#blackhole(long)","anchor":"blackhole(long)","kind":"method","name":"blackhole","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"blackhole"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused. This should only be used for benchmarking purposes."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":618}},{"id":"com.oracle.truffle.api.CompilerDirectives#blackhole(float)","anchor":"blackhole(float)","kind":"method","name":"blackhole","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"blackhole"},{"kind":"punct","text":"("},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"doc":{"summary":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused. This should only be used for benchmarking purposes."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":628}},{"id":"com.oracle.truffle.api.CompilerDirectives#blackhole(double)","anchor":"blackhole(double)","kind":"method","name":"blackhole","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"blackhole"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"doc":{"summary":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused. This should only be used for benchmarking purposes."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":638}},{"id":"com.oracle.truffle.api.CompilerDirectives#blackhole(java.lang.Object)","anchor":"blackhole(java.lang.Object)","kind":"method","name":"blackhole","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"blackhole"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Consume a value, making sure the compiler doesn't optimize away the computation of this value, even if it is otherwise unused. This should only be used for benchmarking purposes."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":648}},{"id":"com.oracle.truffle.api.CompilerDirectives#castExact(java.lang.Object,java.lang.Class)","anchor":"castExact(java.lang.Object,java.lang.Class)","kind":"method","name":"castExact","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"castExact"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the object to be cast"}]}]},{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class to check against, must not be null"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the object after casting"}]}]},"throws":[{"type":[{"kind":"type","text":"ClassCastException","ref":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the object is non-null and not exactly of the given class"}]}]},{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the class argument is null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Casts the given object to the exact class represented by "},{"kind":"code","text":"clazz"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Casts the given object to the exact class represented by "},{"kind":"code","text":"clazz"},{"kind":"text","text":". The cast succeeds only if "},{"kind":"code","text":"object == null || object.getClass() == clazz"},{"kind":"text","text":" and thus fails for any subclass."}]}],"see":[[{"kind":"link","target":{"id":"java.lang.Class#cast(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html#cast(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Class.cast(Object)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":664}},{"id":"com.oracle.truffle.api.CompilerDirectives#isExact(java.lang.Object,java.lang.Class)","anchor":"isExact(java.lang.Object,java.lang.Class)","kind":"method","name":"isExact","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isExact"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the object to be cast"}]}]},{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class to check against, must not be null"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the class argument is null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Checks the given object to the exact class represented by "},{"kind":"code","text":"clazz"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks the given object to the exact class represented by "},{"kind":"code","text":"clazz"},{"kind":"text","text":". The method returns "},{"kind":"code","text":"true"},{"kind":"text","text":" only if "},{"kind":"code","text":"object != null && object.getClass() == clazz"},{"kind":"text","text":" and thus fails for any subclass."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":685}},{"id":"com.oracle.truffle.api.CompilerDirectives#shouldNotReachHere()","anchor":"shouldNotReachHere()","kind":"method","name":"shouldNotReachHere","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"kind":"punct","text":" "},{"kind":"name","text":"shouldNotReachHere"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}]},"doc":{"summary":[{"kind":"text","text":"Indicates a code path that is not supposed to be reached during compilation or interpretation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates a code path that is not supposed to be reached during compilation or interpretation. Reaching this method is considered a fatal internal error and execution should not continue. Transfers to interpreter and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"invalidates"}]},{"kind":"text","text":" the compiled code and always throws an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" when invoked."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method returns a runtime exception to be conveniently used in combination with Java throw statements, for example:"}]},{"kind":"code","text":"if (expectedCondition) {\n    return 42;\n} else {\n    throw shouldNotReachHere();\n}"}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":713}},{"id":"com.oracle.truffle.api.CompilerDirectives#shouldNotReachHere(java.lang.String)","anchor":"shouldNotReachHere(java.lang.String)","kind":"method","name":"shouldNotReachHere","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"kind":"punct","text":" "},{"kind":"name","text":"shouldNotReachHere"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an additional message for the exception thrown."}]}]}],"returns":{"type":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}]},"doc":{"summary":[{"kind":"text","text":"Indicates a code path that is not supposed to be reached during compilation or interpretation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates a code path that is not supposed to be reached during compilation or interpretation. Reaching this method is considered a fatal internal error and execution should not continue. Transfers to interpreter and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"invalidates"}]},{"kind":"text","text":" the compiled code and always throws an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" when invoked."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method returns a runtime exception to be conveniently used in combination with Java throw statements, for example:"}]},{"kind":"code","text":"if (expectedCondition) {\n    return 42;\n} else {\n    throw shouldNotReachHere(\"Additional message\");\n}"}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":739}},{"id":"com.oracle.truffle.api.CompilerDirectives#shouldNotReachHere(java.lang.Throwable)","anchor":"shouldNotReachHere(java.lang.Throwable)","kind":"method","name":"shouldNotReachHere","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"kind":"punct","text":" "},{"kind":"name","text":"shouldNotReachHere"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the cause if an exception was responsible for the unexpected case."}]}]}],"returns":{"type":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}]},"doc":{"summary":[{"kind":"text","text":"Indicates a code path that is not supposed to be reached during compilation or interpretation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates a code path that is not supposed to be reached during compilation or interpretation. Reaching this method is considered a fatal internal error and execution should not continue. Transfers to interpreter and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"invalidates"}]},{"kind":"text","text":" the compiled code and always throws an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" when invoked."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method returns a runtime exception to be conveniently used in combination with Java throw statements, for example:"}]},{"kind":"code","text":"if (expectedCondition) {\n    return 42;\n} else {\n    throw shouldNotReachHere(\"Additional message\");\n}"}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":765}},{"id":"com.oracle.truffle.api.CompilerDirectives#shouldNotReachHere(java.lang.String,java.lang.Throwable)","anchor":"shouldNotReachHere(java.lang.String,java.lang.Throwable)","kind":"method","name":"shouldNotReachHere","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"kind":"punct","text":" "},{"kind":"name","text":"shouldNotReachHere"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an additional message for the exception thrown."}]}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the cause if an exception was responsible for the unexpected case."}]}]}],"returns":{"type":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}]},"doc":{"summary":[{"kind":"text","text":"Indicates a code path that is not supposed to be reached during compilation or interpretation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates a code path that is not supposed to be reached during compilation or interpretation. Reaching this method is considered a fatal internal error and execution should not continue. Transfers to interpreter and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"invalidates"}]},{"kind":"text","text":" the compiled code and always throws an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" when invoked."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method returns a runtime exception to be conveniently used in combination with Java throw statements, for example:"}]},{"kind":"code","text":"if (expectedCondition) {\n    return 42;\n} else {\n    throw shouldNotReachHere(\"Additional message\");\n}"}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":793}},{"id":"com.oracle.truffle.api.CompilerDirectives#mergeExplodeKey(int)","anchor":"mergeExplodeKey(int)","kind":"method","name":"mergeExplodeKey","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"mergeExplodeKey"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the variable that should be used as the merge key."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unchanged value"}]}]},"doc":{"summary":[{"kind":"text","text":"Marks a local variable as the key used for merging loop iterations in methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#MERGE_EXPLODE"},"code":true,"children":[{"kind":"text","text":"LoopExplosionKind.MERGE_EXPLODE"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a local variable as the key used for merging loop iterations in methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#MERGE_EXPLODE"},"code":true,"children":[{"kind":"text","text":"LoopExplosionKind.MERGE_EXPLODE"}]},{"kind":"text","text":". Using this outside of merge exploded methods will lead to a compilation failure. Call this method once before the loop, preferably immediately before it, and assign the return value back to the variable:"}]},{"kind":"code","text":"int bci = 0;\n// ...\nbci = CompilerDirectives.mergeExplodeKey(bci);\nwhile (bci != END_BCI) {\n    // ...\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Direct adjacency is not required, but the marked value must reach the first loop header unchanged and must not be consumed by an intervening merge-exploded loop. Key discovery happens only at initial entry; calling this method inside the loop is too late. Later iterations track the current value at the discovered location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A nested "},{"kind":"code","text":"int"},{"kind":"text","text":" or "},{"kind":"code","text":"long"},{"kind":"text","text":" value stored in objects virtualized by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$EarlyEscapeAnalysis"},"code":true,"children":[{"kind":"text","text":"EarlyEscapeAnalysis"}]},{"kind":"text","text":" can also be marked, for example "},{"kind":"code","text":"state.inner.key =\nCompilerDirectives.mergeExplodeKey(state.inner.key);"},{"kind":"text","text":". This is only supported while every object on that access path remains virtual and never escapes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Only a single variable can currently be marked with this method; marking multiple variables causes a compilation failure. This restriction will be lifted in a future release."}]},{"kind":"paragraph","children":[{"kind":"text","text":"At every iteration, the key value must be a compile-time constant "},{"kind":"code","text":"int"},{"kind":"text","text":" or "},{"kind":"code","text":"long"},{"kind":"text","text":" so the compiler can create a distinct merge point for each key value and correctly handle irreducibly exploded structures. If this is not upheld, a compilation failure occurs."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Other variables must have the same value at every iteration where the key matches (e.g., partial evaluate to the same constant or remain unchanged). If a non-key variable changes while the key stays the same, a compilation failure occurs because the states cannot be merged. A way to explicitly mark a variable as exempt from the same-value requirement is planned."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#mergeExplodeKey(long)"},"code":true,"children":[{"kind":"text","text":"mergeExplodeKey(long)"}]}]]},"since":"25.5","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":852}},{"id":"com.oracle.truffle.api.CompilerDirectives#mergeExplodeKey(long)","anchor":"mergeExplodeKey(long)","kind":"method","name":"mergeExplodeKey","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"mergeExplodeKey"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the variable that should be used as the merge key."}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unchanged value"}]}]},"doc":{"summary":[{"kind":"text","text":"Marks a "},{"kind":"code","text":"long"},{"kind":"text","text":" variable as the key used for merging loop iterations in methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#MERGE_EXPLODE"},"code":true,"children":[{"kind":"text","text":"LoopExplosionKind.MERGE_EXPLODE"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a "},{"kind":"code","text":"long"},{"kind":"text","text":" variable as the key used for merging loop iterations in methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#MERGE_EXPLODE"},"code":true,"children":[{"kind":"text","text":"LoopExplosionKind.MERGE_EXPLODE"}]},{"kind":"text","text":". Using this outside of merge exploded methods will lead to a compilation failure."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The usage and restrictions are the same as for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#mergeExplodeKey(int)"},"code":true,"children":[{"kind":"text","text":"mergeExplodeKey(int)"}]},{"kind":"text","text":", including the requirement that the key be a compile-time constant at every loop header. For irreducible loops, "},{"kind":"code","text":"long"},{"kind":"text","text":" key values must also fit in the signed 32-bit "},{"kind":"code","text":"int"},{"kind":"text","text":" range. Values outside of this range will cause a compilation failure."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#mergeExplodeKey(int)"},"code":true,"children":[{"kind":"text","text":"mergeExplodeKey(int)"}]}]]},"since":"25.5","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":871}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Directives that influence the optimizations of the Truffle compiler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Directives that influence the optimizations of the Truffle compiler. All of the operations have no effect when executed in the Truffle interpreter."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":59}},{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal","name":"CompilerDirectives.CompilationFinal","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{FIELD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"CompilerDirectives.CompilationFinal"}],"enclosing":"com.oracle.truffle.api.CompilerDirectives","members":[{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal#dimensions()","anchor":"dimensions()","kind":"annotationElement","name":"dimensions","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"dimensions"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"-1"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"-1","doc":{"summary":[{"kind":"text","text":"Specifies the number of array dimensions to be marked as compilation final."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the number of array dimensions to be marked as compilation final. This value should be specified for all array-typed compilation-final fields and should be left unspecified for other field types for which it has no meaning. The allowed range is from 0 to the number of declared array dimensions (inclusive). Specifically, a "},{"kind":"code","text":"dimensions"},{"kind":"text","text":" value of 0 marks only the reference to the (outermost) array as final but not its elements, a value of 1 marks the outermost array and all its elements as final but not the elements of any nested arrays. For compatibility reasons, array-typed fields without an explicit "},{"kind":"code","text":"dimensions"},{"kind":"text","text":" parameter default to the number of array dimensions declared in the field type."}]}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":303}}],"doc":{"summary":[{"kind":"text","text":"Marks fields that should be considered final for a Truffle compilation although they are not final while executing in the interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks fields that should be considered final for a Truffle compilation although they are not final while executing in the interpreter. If the field type is an array type, the compiler considers reads with a constant index as constants."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":284}},{"id":"com.oracle.truffle.api.CompilerDirectives$EarlyEscapeAnalysis","name":"CompilerDirectives.EarlyEscapeAnalysis","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, CONSTRUCTOR}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"CompilerDirectives.EarlyEscapeAnalysis"}],"enclosing":"com.oracle.truffle.api.CompilerDirectives","doc":{"summary":[{"kind":"text","text":"Requests the Truffle compiler to run escape analysis on this method before partial evaluation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Requests the Truffle compiler to run escape analysis on this method before partial evaluation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When a method or constructor is annotated with "},{"kind":"code","text":"@EarlyEscapeAnalysis"},{"kind":"text","text":", a dedicated partial escape analysis phase is executed for that method before partial evaluation. This allows allocations that do not escape the method to be virtualized or eliminated, and their fields to be treated as partial-evaluation-time constants where possible."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Typical use cases"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Methods that allocate temporary objects whose fields are used only locally and are expected to become constants after partial evaluation."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Interpreters that keep loop state in a small object (for example a bytecode index), in combination with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop"},"code":true,"children":[{"kind":"text","text":"ExplodeLoop"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$EarlyInline"},"code":true,"children":[{"kind":"text","text":"EarlyInline"}]},{"kind":"text","text":", so that the state object can be fully scalar replaced."}]}]]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Example: non-escaping temporary object"}]},{"kind":"code","text":"&#64;EarlyEscapeAnalysis\nprivate static int computeConstant() {\n    TestEscape v = new TestEscape(42);\n    CompilerAsserts.partialEvaluationConstant(v.value);\n    // After early escape analysis and partial evaluation this method reduces to \"return 42\".\n    return v.value;\n}\n\nstatic final class TestEscape {\n    int value;\n\n    TestEscape(int value) {\n        this.value = value;\n    }\n}"},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Example: loop state object in a merge-exploded interpreter"}]},{"kind":"code","text":"\nstatic final class BytecodeIndex {\n    int bci;\n}\n\n&#64;CompilationFinal(dimensions = 1) private final byte[] bytecodes = new byte[]{0, 1, 4, 2, 3};\n\n&#64;ExplodeLoop(kind = LoopExplosionKind.MERGE_EXPLODE)\n&#64;EarlyEscapeAnalysis\nint execute(Boolean v) {\n    byte[] bc = this.bytecodes;\n    BytecodeIndex index = new BytecodeIndex();\n    while (true) {\n        CompilerAsserts.partialEvaluationConstant(index.bci);\n        switch (bc[index.bci]) {\n            case 0:\n                index.bci++;\n                break;\n            case 1:\n                // {@code branchTrue} is early inlined and sees the virtual {@code index}\n                // object.\n                branchTrue(bc, index, v);\n                break;\n            case 2:\n                return 41;\n            case 3:\n                return 42;\n            case 4:\n                throw CompilerDirectives.shouldNotReachHere();\n        }\n    }\n}\n\n@EarlyInline\nprivate static void branchTrue(byte[] bc, BytecodeIndex index, Boolean v) {\n    if (v) {\n        index.bci = bc[index.bci + 1];\n    } else {\n        index.bci = index.bci + 2;\n    }\n}"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":501}},{"id":"com.oracle.truffle.api.CompilerDirectives$EarlyInline","name":"CompilerDirectives.EarlyInline","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, CONSTRUCTOR}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"CompilerDirectives.EarlyInline"}],"enclosing":"com.oracle.truffle.api.CompilerDirectives","doc":{"summary":[{"kind":"text","text":"Marks a method or constructor as a candidate for early inlining during Truffle compilation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a method or constructor as a candidate for early inlining during Truffle compilation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Methods annotated with "},{"kind":"code","text":"@EarlyInline"},{"kind":"text","text":" are considered by a dedicated early inlining phase before partial evaluation. This exposes the helper's control flow and state updates directly in the caller so that other Truffle directives such as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop"},"code":true,"children":[{"kind":"text","text":"ExplodeLoop"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$EarlyEscapeAnalysis"},"code":true,"children":[{"kind":"text","text":"EarlyEscapeAnalysis"}]},{"kind":"text","text":" can see and optimize them."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Only direct calls whose target method is annotated are considered, and normal inlining preconditions still apply. Indirect calls, native methods, and methods that cannot be inlined are ignored."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Typical use cases"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Inlining small branch or bytecode handlers into a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#MERGE_EXPLODE"},"code":true,"children":[{"kind":"text","text":"merge-exploded"}]},{"kind":"text","text":" interpreter loop so that loop explosion can merge state across the helper call."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Inlining helpers that update non-escaping state objects in methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$EarlyEscapeAnalysis"},"code":true,"children":[{"kind":"text","text":"EarlyEscapeAnalysis"}]},{"kind":"text","text":", improving escape analysis and scalar replacement."}]}]]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Example: early inlining of a branch handler"}]},{"kind":"code","text":"\n&#64;CompilationFinal(dimensions = 1) private final byte[] bytecodes = new byte[]{0, 1, 4, 2, 3};\n\n&#64;ExplodeLoop(kind = LoopExplosionKind.MERGE_EXPLODE)\nint execute(Boolean v) {\n    byte[] bc = this.bytecodes;\n    int bci = 0;\n    while (true) {\n        CompilerAsserts.partialEvaluationConstant(bci);\n        switch (bc[bci]) {\n            case 0:\n                bci++;\n                break;\n            case 1:\n                // {@code branchTrue} is inlined before partial evaluation.\n                bci = branchTrue(bc, bci, v);\n                break;\n            case 2:\n                return 41;\n            case 3:\n                return 42;\n            default:\n                throw CompilerDirectives.shouldNotReachHere();\n        }\n    }\n}\n\n&#64;EarlyInline\nprivate static int branchTrue(byte[] bc, int bci, Boolean v) {\n    if (v) {\n        return bc[bci + 1];\n    } else {\n        return bci + 2;\n    }\n}"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":409}},{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary","name":"CompilerDirectives.TruffleBoundary","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, CONSTRUCTOR}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"CompilerDirectives.TruffleBoundary"}],"enclosing":"com.oracle.truffle.api.CompilerDirectives","members":[{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary#transferToInterpreterOnException()","anchor":"transferToInterpreterOnException()","kind":"annotationElement","name":"transferToInterpreterOnException","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"transferToInterpreterOnException"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"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 not transfer to the interpreter on exceptions for this method again."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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 not transfer to the interpreter on exceptions for this method again."}]}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":322}},{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary#allowInlining()","anchor":"allowInlining()","kind":"annotationElement","name":"allowInlining","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"allowInlining"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Considers this Truffle boundary invoke as an inlining candidate."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Considers this Truffle boundary invoke as an inlining candidate. Partial evaluation cannot inline a boundary, but a later inlining pass can."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":331}}],"doc":{"summary":[{"kind":"text","text":"Marks a method that it is considered as a boundary for Truffle partial evaluation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a method that it is considered as a boundary for Truffle partial evaluation."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":311}},{"id":"com.oracle.truffle.api.CompilerDirectives$ValueType","name":"CompilerDirectives.ValueType","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"CompilerDirectives.ValueType"}],"enclosing":"com.oracle.truffle.api.CompilerDirectives","doc":{"summary":[{"kind":"text","text":"Marks classes as value types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks classes as value types. Reference comparisons (==) between instances of those classes have undefined semantics and can either return true or false."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/CompilerDirectives.java","line":340}},{"id":"com.oracle.truffle.api.ContextLocal","name":"ContextLocal","kind":"class","language":"java","modifiers":["public","abstract"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ContextLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.ContextLocal#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"ContextLocal","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ContextLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"polyglotObject"},{"kind":"punct","text":")"}],"params":[{"name":"polyglotObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Custom subclasses of context local are not allowed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Custom subclasses of context local are not allowed."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextLocal.java","line":65}},{"id":"com.oracle.truffle.api.ContextLocal#get()","anchor":"get()","kind":"method","name":"get","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if assertions (-ea) are enabled and no current context is entered on the current thread, context locals have already been cleared for the current context, the corresponding instrument is not initialized, or the corresponding language is not created."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the context local value for the currently entered context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the context local value for the currently entered context. This method is intended to be used on compiled code paths. The return value is never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextLocal.java","line":82}},{"id":"com.oracle.truffle.api.ContextLocal#get(com.oracle.truffle.api.TruffleContext)","anchor":"get(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"get","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if assertions (-ea) are enabled and context locals have already been cleared for the specified context, the corresponding instrument is not initialized, or the corresponding language is not created."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the context local value for an explicit "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the context local value for an explicit "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":". This method is intended to be used on compiled code paths. The return value is never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextLocal.java","line":94}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A context local reference that refers to a value that is created for each polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A context local reference that refers to a value that is created for each polyglot context. Context references can be used to attach data to a polyglot context. That data can be retrieved efficiently for the current context using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextLocal#get()"},"code":true,"children":[{"kind":"text","text":"get()"}]},{"kind":"text","text":" or for other contexts using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextLocal#get(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"get(TruffleContext)"}]},{"kind":"text","text":". Context locals can be created for languages and instruments. See links below for usage examples."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"Usage with languages."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"Usage with instruments."}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextLocal.java","line":58}},{"id":"com.oracle.truffle.api.ContextThreadLocal","name":"ContextThreadLocal","kind":"class","language":"java","modifiers":["public","abstract"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ContextThreadLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.ContextThreadLocal#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"ContextThreadLocal","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ContextThreadLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"polyglotObject"},{"kind":"punct","text":")"}],"params":[{"name":"polyglotObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Custom subclasses of context local are not allowed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Custom subclasses of context local are not allowed."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextThreadLocal.java","line":66}},{"id":"com.oracle.truffle.api.ContextThreadLocal#get()","anchor":"get()","kind":"method","name":"get","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns the context thread local value for the currently entered context and thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the context thread local value for the currently entered context and thread. This method is intended to be used on compiled code paths. The return value is never "},{"kind":"code","text":"null"},{"kind":"text","text":". Throws "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if no current context is entered on the current thread."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextThreadLocal.java","line":80}},{"id":"com.oracle.truffle.api.ContextThreadLocal#get(java.lang.Thread)","anchor":"get(java.lang.Thread)","kind":"method","name":"get","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":")"}],"params":[{"name":"t","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns the context thread local value for the currently entered context and the given thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the context thread local value for the currently entered context and the given thread. This method is less efficient than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextThreadLocal#get()"},"code":true,"children":[{"kind":"text","text":"get()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextThreadLocal#get(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"get(TruffleContext)"}]},{"kind":"text","text":" as it requires synchronization between the threads. The return value is never "},{"kind":"code","text":"null"},{"kind":"text","text":". Throws "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if no current context is entered on the current thread."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextThreadLocal.java","line":90}},{"id":"com.oracle.truffle.api.ContextThreadLocal#get(com.oracle.truffle.api.TruffleContext)","anchor":"get(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"get","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":")"}],"params":[{"name":"t","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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. The return value is never "},{"kind":"code","text":"null"},{"kind":"text","text":". Throws "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if no current context is entered on the current thread."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextThreadLocal.java","line":100}},{"id":"com.oracle.truffle.api.ContextThreadLocal#get(com.oracle.truffle.api.TruffleContext,java.lang.Thread)","anchor":"get(com.oracle.truffle.api.TruffleContext,java.lang.Thread)","kind":"method","name":"get","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]},{"name":"t","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns the context thread local value for the given context and the given thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the context thread local value for the given context and the given thread. The context does not need to, but may be entered when retrieving the current context local. This method is less efficient than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextThreadLocal#get()"},"code":true,"children":[{"kind":"text","text":"get()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextThreadLocal#get(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"get(TruffleContext)"}]},{"kind":"text","text":" as it requires synchronization between the threads. The return value is never "},{"kind":"code","text":"null"},{"kind":"text","text":". Throws "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if no current context is entered on the current thread."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextThreadLocal.java","line":111}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A context thread local reference that refers to a value that is created for each polyglot context and thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A context thread local reference that refers to a value that is created for each polyglot context and thread. Context thread references can be used to attach data to a polyglot context for a thread. That data can be retrieved efficiently for the current context and thread using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextThreadLocal#get()"},"code":true,"children":[{"kind":"text","text":"get()"}]},{"kind":"text","text":" or less efficiently for other contexts and other threads using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextThreadLocal#get(com.oracle.truffle.api.TruffleContext,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"get(TruffleContext, Thread)"}]},{"kind":"text","text":". Context thread locals can be created for languages and instruments. See links below for usage examples."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"Usage with languages."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"Usage with instruments."}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/ContextThreadLocal.java","line":59}},{"id":"com.oracle.truffle.api.ExactMath","name":"ExactMath","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ExactMath"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.ExactMath#multiplyHigh(int,int)","anchor":"multiplyHigh(int,int)","kind":"method","name":"multiplyHigh","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"multiplyHigh"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"y"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"int"}]},{"name":"y","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":57}},{"id":"com.oracle.truffle.api.ExactMath#multiplyHighUnsigned(int,int)","anchor":"multiplyHighUnsigned(int,int)","kind":"method","name":"multiplyHighUnsigned","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"multiplyHighUnsigned"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"y"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"int"}]},{"name":"y","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":65}},{"id":"com.oracle.truffle.api.ExactMath#multiplyHigh(long,long)","anchor":"multiplyHigh(long,long)","kind":"method","name":"multiplyHigh","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"multiplyHigh"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"y"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"long"}]},{"name":"y","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":75}},{"id":"com.oracle.truffle.api.ExactMath#multiplyHighUnsigned(long,long)","anchor":"multiplyHighUnsigned(long,long)","kind":"method","name":"multiplyHighUnsigned","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"multiplyHighUnsigned"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"y"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"long"}]},{"name":"y","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":99}},{"id":"com.oracle.truffle.api.ExactMath#truncate(float)","anchor":"truncate(float)","kind":"method","name":"truncate","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"truncate"},{"kind":"punct","text":"("},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"float"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"doc":{"summary":[{"kind":"text","text":"Removes the decimal part (aka truncation or rounds towards zero) of the given float."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes the decimal part (aka truncation or rounds towards zero) of the given float."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This corresponds to the IEEE 754 "},{"kind":"code","text":"roundToIntegralTowardZero"},{"kind":"text","text":" operation (IEEE Std 754-2008, section 5.9, page 41)."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":128}},{"id":"com.oracle.truffle.api.ExactMath#truncate(double)","anchor":"truncate(double)","kind":"method","name":"truncate","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"truncate"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"double"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"doc":{"summary":[{"kind":"text","text":"Removes the decimal part (aka truncation or rounds towards zero) of the given double."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes the decimal part (aka truncation or rounds towards zero) of the given double."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This corresponds to the IEEE 754 "},{"kind":"code","text":"roundToIntegralTowardZero"},{"kind":"text","text":" operation (IEEE Std 754-2008, section 5.9, page 41)."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":140}},{"id":"com.oracle.truffle.api.ExactMath#truncateToUnsignedLong(double)","anchor":"truncateToUnsignedLong(double)","kind":"method","name":"truncateToUnsignedLong","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"truncateToUnsignedLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"input value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unsigned integer result, wrapped in a signed integer"}]}]},"doc":{"summary":[{"kind":"text","text":"Converts the double value to unsigned long with truncation (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the double value to unsigned long with truncation (i.e. rounding towards zero) and saturation of "},{"kind":"code","text":"NaN"},{"kind":"text","text":" and "},{"kind":"code","text":"x <= -1"},{"kind":"text","text":" to "},{"kind":"code","text":"0"},{"kind":"text","text":", and "},{"kind":"code","text":"x >= 2"},{"kind":"raw","html":"<sup>64</sup>","text":"64"},{"kind":"text","text":" to "},{"kind":"code","text":"2"},{"kind":"raw","html":"<sup>63</sup>","text":"63"},{"kind":"code","text":"-1"},{"kind":"text","text":" ("},{"kind":"code","text":"-1"},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Non-saturating (e.g. trapping) behavior can be implemented by checking the input for NaN, underflow ("},{"kind":"code","text":"x <= -1"},{"kind":"text","text":") and overflow ("},{"kind":"code","text":"x >= 0x1p64"},{"kind":"text","text":") first."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":156}},{"id":"com.oracle.truffle.api.ExactMath#truncateToUnsignedLong(float)","anchor":"truncateToUnsignedLong(float)","kind":"method","name":"truncateToUnsignedLong","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"truncateToUnsignedLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"input value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unsigned integer result, wrapped in a signed integer"}]}]},"doc":{"summary":[{"kind":"text","text":"Converts the float value to unsigned long with truncation (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the float value to unsigned long with truncation (i.e. rounding towards zero) and saturation of "},{"kind":"code","text":"NaN"},{"kind":"text","text":" and "},{"kind":"code","text":"x <= -1"},{"kind":"text","text":" to "},{"kind":"code","text":"0"},{"kind":"text","text":", and "},{"kind":"code","text":"x >= 2"},{"kind":"raw","html":"<sup>64</sup>","text":"64"},{"kind":"text","text":" to "},{"kind":"code","text":"2"},{"kind":"raw","html":"<sup>63</sup>","text":"63"},{"kind":"code","text":"-1"},{"kind":"text","text":" ("},{"kind":"code","text":"-1"},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Non-saturating (e.g. trapping) behavior can be implemented by checking the input for NaN, underflow ("},{"kind":"code","text":"x <= -1f"},{"kind":"text","text":") and overflow ("},{"kind":"code","text":"x >= 0x1p64f"},{"kind":"text","text":") first."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":180}},{"id":"com.oracle.truffle.api.ExactMath#truncateToUnsignedInt(double)","anchor":"truncateToUnsignedInt(double)","kind":"method","name":"truncateToUnsignedInt","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"truncateToUnsignedInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"input value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unsigned integer result, wrapped in a signed integer"}]}]},"doc":{"summary":[{"kind":"text","text":"Converts the double value to unsigned long with truncation (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the double value to unsigned long with truncation (i.e. rounding towards zero) and saturation of "},{"kind":"code","text":"NaN"},{"kind":"text","text":" and "},{"kind":"code","text":"x <= -1"},{"kind":"text","text":" to "},{"kind":"code","text":"0"},{"kind":"text","text":", and "},{"kind":"code","text":"x >= 2"},{"kind":"raw","html":"<sup>32</sup>","text":"32"},{"kind":"text","text":" to "},{"kind":"code","text":"2"},{"kind":"raw","html":"<sup>31</sup>","text":"31"},{"kind":"code","text":"-1"},{"kind":"text","text":" ("},{"kind":"code","text":"-1"},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Non-saturating (e.g. trapping) behavior can be implemented by checking the input for NaN, underflow ("},{"kind":"code","text":"x <= -1"},{"kind":"text","text":") and overflow ("},{"kind":"code","text":"x >= 0x1p32"},{"kind":"text","text":") first."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":204}},{"id":"com.oracle.truffle.api.ExactMath#truncateToUnsignedInt(float)","anchor":"truncateToUnsignedInt(float)","kind":"method","name":"truncateToUnsignedInt","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"truncateToUnsignedInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"input value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unsigned integer result, wrapped in a signed integer"}]}]},"doc":{"summary":[{"kind":"text","text":"Converts the float value to unsigned int with truncation (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the float value to unsigned int with truncation (i.e. rounding towards zero) and saturation of "},{"kind":"code","text":"NaN"},{"kind":"text","text":" and "},{"kind":"code","text":"x <= -1"},{"kind":"text","text":" to "},{"kind":"code","text":"0"},{"kind":"text","text":", and "},{"kind":"code","text":"x >= 2"},{"kind":"raw","html":"<sup>32</sup>","text":"32"},{"kind":"text","text":" to "},{"kind":"code","text":"2"},{"kind":"raw","html":"<sup>31</sup>","text":"31"},{"kind":"code","text":"-1"},{"kind":"text","text":" ("},{"kind":"code","text":"-1"},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Non-saturating (e.g. trapping) behavior can be implemented by checking the input for NaN, underflow ("},{"kind":"code","text":"x <= -1"},{"kind":"text","text":") and overflow ("},{"kind":"code","text":"x >= 0x1p64"},{"kind":"text","text":") first."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":228}},{"id":"com.oracle.truffle.api.ExactMath#unsignedToDouble(long)","anchor":"unsignedToDouble(long)","kind":"method","name":"unsignedToDouble","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"unsignedToDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"unsigned integer input, wrapped in a signed integer"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"code","text":"double"},{"kind":"text","text":" result"}]}]},"doc":{"summary":[{"kind":"text","text":"Converts the given unsigned "},{"kind":"code","text":"long"},{"kind":"text","text":" to the closest "},{"kind":"code","text":"double"},{"kind":"text","text":" value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the given unsigned "},{"kind":"code","text":"long"},{"kind":"text","text":" to the closest "},{"kind":"code","text":"double"},{"kind":"text","text":" value."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":247}},{"id":"com.oracle.truffle.api.ExactMath#unsignedToFloat(long)","anchor":"unsignedToFloat(long)","kind":"method","name":"unsignedToFloat","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"unsignedToFloat"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"unsigned integer input, wrapped in a signed integer"}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"code","text":"float"},{"kind":"text","text":" result"}]}]},"doc":{"summary":[{"kind":"text","text":"Converts the given unsigned "},{"kind":"code","text":"long"},{"kind":"text","text":" to the closest "},{"kind":"code","text":"float"},{"kind":"text","text":" value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the given unsigned "},{"kind":"code","text":"long"},{"kind":"text","text":" to the closest "},{"kind":"code","text":"float"},{"kind":"text","text":" value."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":265}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"This class contains exact math related methods that are generally useful for dynamic language implementations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This class contains exact math related methods that are generally useful for dynamic language implementations."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/ExactMath.java","line":49}},{"id":"com.oracle.truffle.api.HostCompilerDirectives","name":"HostCompilerDirectives","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.HostCompilerDirectives#inInterpreterFastPath()","anchor":"inInterpreterFastPath()","kind":"method","name":"inInterpreterFastPath","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inInterpreterFastPath"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if executed in the interpreter, "},{"kind":"code","text":"false"},{"kind":"text","text":" in compiled code."}]}]},"doc":{"summary":[{"kind":"text","text":"Indicates whether a branch is executed only in the interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates whether a branch is executed only in the interpreter. In addition to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inInterpreter()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.inInterpreter()"}]},{"kind":"text","text":", this method instructs the host compiler to treat the positive branch as frequently executed code of high importance. Branches protected by this method should be treated as if they were runtime compiled code paths, even if they may never actually be compiled. This means that slow-paths must be protected using either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.transferToInterpreterAndInvalidate()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"TruffleBoundary"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A common use case for this directive is in counting condition profiles, where counters must be protected by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inInterpreter()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.inInterpreter()"}]},{"kind":"text","text":" but also need to be optimized as fast-path by the host compiler. Without this directive, the host compiler may treat the branch as a slow-path branch."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":84}},{"id":"com.oracle.truffle.api.HostCompilerDirectives#markThreadedSwitch(int)","anchor":"markThreadedSwitch(int)","kind":"method","name":"markThreadedSwitch","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"markThreadedSwitch"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"input"},{"kind":"punct","text":")"}],"params":[{"name":"input","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Marks a switch statement within a loop as a candidate for threaded switch optimization."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a switch statement within a loop as a candidate for threaded switch optimization. Threaded switch replicates the switch statement at the end of each case, improving branch prediction at the processor level. Usage example:"}]},{"kind":"code","text":"while (cond) {\n  input = inlinedNextOpcode();\n  switch (markThreadedSwitch(input)) {\n    case op1: { body1; }\n    case op2: { body2; }\n  }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The compiler recognizes the code blocks from the loop header up to the switch and duplicates them into each case that continues the while loop. This effectively transforms the structure as follows:"}]},{"kind":"code","text":"if (cond) {\n  input = inlinedNextOpcode();\n  switch (markThreadedSwitch(input)) {\n    case op1: {\n        body1;\n        if (cond) {\n          input = inlinedNextOpcode();\n          switch (markThreadedSwitch(input)) // go to matching case of outer switch\n        }\n    }\n    case op2: {\n        body2;\n        if (cond) {\n          input = inlinedNextOpcode();\n          switch (markThreadedSwitch(input)) // go to matching case of outer switch\n        }\n    }\n  }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"When additional statements follow the switch block within a loop, the compiler may trigger an optimization to duplicate these statements into each case block. If this duplication does not occur, the compiler can still identify the loop as a candidate for threaded switch optimization and apply relevant optimizations to minimize overhead in the loop header, such as postponing register spilling from the loop header to cases with actual register pressure, even at the cost of code bloat. However, due to the presence of these tail statements, the loop has only one back edge, which effectively disables threading. The compiler may also reject candidates for threaded switch optimization if the identified code blocks, after inlining, contain complex control flow or operations beyond memory reads. To log decisions related to threaded switch optimization, use the Graal option "},{"kind":"code","text":"TraceThreadedSwitchOptimization"},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":149}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Directives that influence the optimizations of the host compiler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Directives that influence the optimizations of the host compiler. These operations affect how the Truffle interpreter is itself compiled."}]}]},"since":"21.0","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":56}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterFetchOpcode","name":"HostCompilerDirectives.BytecodeInterpreterFetchOpcode","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives.BytecodeInterpreterFetchOpcode"}],"enclosing":"com.oracle.truffle.api.HostCompilerDirectives","doc":{"summary":[{"kind":"text","text":"Annotates a method that fetches the next opcode."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotates a method that fetches the next opcode. The annotated method must be side-effect free, must not throw for valid interpreter state, and share the same signature with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandler"},"code":true,"children":[{"kind":"text","text":"BytecodeInterpreterHandler"}]},{"kind":"text","text":"-annotated methods in the same enclosing class. It will be inlined into Truffle interpreter bytecode handler stubs to enable tail call threading."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":470}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandler","name":"HostCompilerDirectives.BytecodeInterpreterHandler","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives.BytecodeInterpreterHandler"}],"enclosing":"com.oracle.truffle.api.HostCompilerDirectives","members":[{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandler#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"The handled bytecode's opcodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The handled bytecode's opcodes."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":242}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandler#threading()","anchor":"threading()","kind":"annotationElement","name":"threading","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"threading"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Indicates whether to enable tail call threading at the end of this handler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates whether to enable tail call threading at the end of this handler. If "},{"kind":"code","text":"false"},{"kind":"text","text":", the threading will terminate, and control will return to the switch-loop after this handler is executed. Alternatively, omitting the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandler"},"code":true,"children":[{"kind":"text","text":"BytecodeInterpreterHandler"}]},{"kind":"text","text":" annotation will cause control to return to the switch-loop before this handler is executed."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":251}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandler#safepoint()","anchor":"safepoint()","kind":"annotationElement","name":"safepoint","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"safepoint"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Indicates whether host safepoint should be inserted in the stub correspond to this handler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates whether host safepoint should be inserted in the stub correspond to this handler."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":257}}],"doc":{"summary":[{"kind":"text","text":"Annotates a method that serves as a Truffle interpreter bytecode handler, that is, a method implements the complete semantics of a single bytecode instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotates a method that serves as a Truffle interpreter bytecode handler, that is, a method implements the complete semantics of a single bytecode instruction."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For more details, see the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/OneCompilationPerBytecodeHandler.md","children":[{"kind":"text","text":" One Compilation per Bytecode Handler documentation"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":236}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig","name":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig"}],"enclosing":"com.oracle.truffle.api.HostCompilerDirectives","members":[{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig#maximumOperationCode()","anchor":"maximumOperationCode()","kind":"annotationElement","name":"maximumOperationCode","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"maximumOperationCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"The maximum unsigned value of the opcode."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The maximum unsigned value of the opcode. This is relevant for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandler"},"code":true,"children":[{"kind":"text","text":"BytecodeInterpreterHandler"}]},{"kind":"text","text":" when tail call threading is enabled, and is used to construct a handler table."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":416}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig#arguments()","anchor":"arguments()","kind":"annotationElement","name":"arguments","signature":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument"},{"kind":"punct","text":"[] "},{"kind":"name","text":"arguments"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Configuration for each method argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configuration for each method argument. For non-static methods, the first element corresponds to the receiver."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":422}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig#secondarySwitch()","anchor":"secondarySwitch()","kind":"annotationElement","name":"secondarySwitch","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"secondarySwitch"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the annotated method is a secondary switch partition whose handler calls must not be outlined when the method is compiled separately"}]}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Indicates that the annotated method implements a secondary partition of a bytecode interpreter switch."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates that the annotated method implements a secondary partition of a bytecode interpreter switch."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A secondary switch is expected to be inlined into a primary "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterSwitch"},"code":true,"children":[{"kind":"text","text":"BytecodeInterpreterSwitch"}]},{"kind":"text","text":" method during host compilation. Its handler configuration is retained so that handler calls originating from the inlined secondary switch can be mapped to the primary switch's handler stubs."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When compiled as a separate method, however, handler calls in a secondary switch are not outlined. In particular, a deoptimization target may invoke the separately compiled secondary switch without first passing through host inlining. Keeping its handler calls ordinary prevents such execution from entering threaded handler stubs without the primary switch's exception and state-management paths."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":442}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig#enableTailDuplication()","anchor":"enableTailDuplication()","kind":"annotationElement","name":"enableTailDuplication","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableTailDuplication"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Enables tail duplication for this interpreter's threaded bytecode handler stubs."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables tail duplication for this interpreter's threaded bytecode handler stubs. When enabled, the compiler removes the control-flow anchor at the handler return and encourages duplication of the dispatch tail, allowing different handler paths to have separate indirect tail-call sites. Duplication remains subject to compiler safety checks and code size budgets; enabling this option does not guarantee that a tail will be duplicated."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Separate dispatch sites can improve branch prediction, but the additional code can also reduce performance. This option is disabled by default and should only be enabled after measuring the effect on the interpreter's workloads. When disabled, the return anchor is retained and no tail-duplication hint is emitted. This option has no effect on non-threaded stubs, which always retain their return anchor."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":459}}],"doc":{"summary":[{"kind":"text","text":"Configuration for all bytecode interpreter handler arguments, including the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configuration for all bytecode interpreter handler arguments, including the receiver. Must be used in conjunction with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterSwitch"},"code":true,"children":[{"kind":"text","text":"BytecodeInterpreterSwitch"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandler"},"code":true,"children":[{"kind":"text","text":"BytecodeInterpreterHandler"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":267}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument","name":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument"}],"enclosing":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig","members":[{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument#returnValue()","anchor":"returnValue()","kind":"annotationElement","name":"returnValue","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"returnValue"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Indicates that this argument will be updated with the return value of the handler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates that this argument will be updated with the return value of the handler. The interpreter must store the handler result directly back to the logical local represented by this argument. Threaded handler stubs rely on that direct store shape to keep the local consistent when an exception unwinds before the normal return-value update path runs."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":375}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument#expand()","anchor":"expand()","kind":"annotationElement","name":"expand","signature":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"},{"kind":"punct","text":" "},{"kind":"name","text":"expand"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"NONE"}],"returns":{"type":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"}]},"defaultValue":"NONE","doc":{"summary":[{"kind":"text","text":"Indicates that this argument will be expanded in a Truffle interpreter bytecode handler stub if its expansion kind is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#NONE"},"code":true,"children":[{"kind":"text","text":"ExpansionKind.NONE"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates that this argument will be expanded in a Truffle interpreter bytecode handler stub if its expansion kind is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#NONE"},"code":true,"children":[{"kind":"text","text":"ExpansionKind.NONE"}]},{"kind":"text","text":"."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":381}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument#expandedType()","anchor":"expandedType()","kind":"annotationElement","name":"expandedType","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"expandedType"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"void.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"defaultValue":"void.class","doc":{"summary":[{"kind":"text","text":"Exact concrete type reconstructed for a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#VIRTUAL"},"code":true,"children":[{"kind":"text","text":"ExpansionKind.VIRTUAL"}]},{"kind":"text","text":" argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Exact concrete type reconstructed for a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#VIRTUAL"},"code":true,"children":[{"kind":"text","text":"ExpansionKind.VIRTUAL"}]},{"kind":"text","text":" argument. "},{"kind":"code","text":"void.class"},{"kind":"text","text":" uses the declared parameter type. An explicit type must be a concrete instance class assignable to the parameter type. It may be defined by a different class loader from the handler's declaring class. At each outlined call, the compiler must prove that the argument is non-null and has this exact type. All instance fields, including inherited fields, are expanded. The expansion type must have at least one instance field. This property is ignored on HotSpot, which uses the declared parameter type."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":395}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument#fields()","anchor":"fields()","kind":"annotationElement","name":"fields","signature":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.Field","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field"},{"kind":"punct","text":"[] "},{"kind":"name","text":"fields"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.Field","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Indicates the fields to be expanded of this argument if its expansion kind is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#MATERIALIZED"},"code":true,"children":[{"kind":"text","text":"ExpansionKind.MATERIALIZED"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates the fields to be expanded of this argument if its expansion kind is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#MATERIALIZED"},"code":true,"children":[{"kind":"text","text":"ExpansionKind.MATERIALIZED"}]},{"kind":"text","text":"."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":401}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument#nonNull()","anchor":"nonNull()","kind":"annotationElement","name":"nonNull","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"nonNull"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Indicates that this argument is always non-null."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates that this argument is always non-null. A null check will be placed before the call site and before threading dispatch. This property is irrelevant for primitive arguments."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":408}}],"doc":{"summary":[{"kind":"text","text":"Configuration for a bytecode interpreter handler argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configuration for a bytecode interpreter handler argument."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandler"},"code":true,"children":[{"kind":"text","text":"BytecodeInterpreterHandler"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":276}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind","name":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument","members":[{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#NONE","anchor":"NONE","kind":"enumConstant","name":"NONE","signature":[{"kind":"name","text":"NONE"}],"type":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"}],"doc":{"summary":[{"kind":"text","text":"No expansion."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"No expansion."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":283}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#MATERIALIZED","anchor":"MATERIALIZED","kind":"enumConstant","name":"MATERIALIZED","signature":[{"kind":"name","text":"MATERIALIZED"}],"type":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"}],"doc":{"summary":[{"kind":"text","text":"The argument is expanded into its subfields in addition to the original argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The argument is expanded into its subfields in addition to the original argument."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":288}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#VIRTUAL","anchor":"VIRTUAL","kind":"enumConstant","name":"VIRTUAL","signature":[{"kind":"name","text":"VIRTUAL"}],"type":[{"kind":"type","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind","ref":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind"}],"doc":{"summary":[{"kind":"text","text":"The argument is expanded into its subfields without the original argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The argument is expanded into its subfields without the original argument."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":293}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":279}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field","name":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.Field","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.Field"}],"enclosing":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument","members":[{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field#name()","anchor":"name()","kind":"annotationElement","name":"name","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Name of the field."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Name of the field."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":307}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field#nonNull()","anchor":"nonNull()","kind":"annotationElement","name":"nonNull","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"nonNull"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Indicates that this field is always non-null."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates that this field is always non-null. A null check will be placed before the call site and before threading dispatch. This property is irrelevant for primitive fields."}]}]},"source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":314}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field#templateVariable()","anchor":"templateVariable()","kind":"annotationElement","name":"templateVariable","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"templateVariable"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Marks this field as template state for threaded bytecode handlers."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks this field as template state for threaded bytecode handlers. A value of "},{"kind":"code","text":"N >= 2"},{"kind":"text","text":" creates one handler variant for each field value in the range "},{"kind":"code","text":"[0, N)"},{"kind":"text","text":". A value of "},{"kind":"code","text":"0"},{"kind":"text","text":" disables template specialization for this field, and "},{"kind":"code","text":"1"},{"kind":"text","text":" is invalid."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Each variant starts with the corresponding field value. Before control transfers to the next threaded handler, every control-flow path must assign a known valid value or retain the current value. If multiple template fields are updated, their values must be resolved through the same control-flow merge."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When threading ends, the current field value is written back to the original argument. When template mode is disabled, the field behaves like an ordinary expanded field."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The field must be an "},{"kind":"code","text":"int"},{"kind":"text","text":" field of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#VIRTUAL"},"code":true,"children":[{"kind":"text","text":"ExpansionKind.VIRTUAL"}]},{"kind":"text","text":" argument."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/OneCompilationPerBytecodeHandler.md#template","children":[{"kind":"text","text":" template handler documentation"}]},{"kind":"text","text":" for examples and additional restrictions."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":340}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field#validWhen()","anchor":"validWhen()","kind":"annotationElement","name":"validWhen","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"validWhen"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Names the template-variable field on the same virtual-expanded argument that controls whether this field's incoming value is valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Names the template-variable field on the same virtual-expanded argument that controls whether this field's incoming value is valid. An empty name disables conditional validity and requires "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field#valid()"},"code":true,"children":[{"kind":"text","text":"valid()"}]},{"kind":"text","text":" to be empty."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Only non-final, non-template "},{"kind":"code","text":"long"},{"kind":"text","text":" or "},{"kind":"code","text":"double"},{"kind":"text","text":" fields of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$ExpansionKind#VIRTUAL"},"code":true,"children":[{"kind":"text","text":"ExpansionKind.VIRTUAL"}]},{"kind":"text","text":" arguments support conditional validity. This metadata is ignored on HotSpot and whenever template mode is disabled."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":353}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field#valid()","anchor":"valid()","kind":"annotationElement","name":"valid","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"name","text":"valid"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Values of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field#validWhen()"},"code":true,"children":[{"kind":"text","text":"validWhen()"}]},{"kind":"text","text":" for which the incoming field value is valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Values of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig$Argument$Field#validWhen()"},"code":true,"children":[{"kind":"text","text":"validWhen()"}]},{"kind":"text","text":" for which the incoming field value is valid. Otherwise, the generated handler starts with an arbitrary field value that must not be observed, including through exception-state materialization. The handler may overwrite the field before reading it. This contract applies at handler entry, not to subsequent changes of the template-variable field. This metadata is ignored on HotSpot and whenever template mode is disabled."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":365}}],"doc":{"summary":[{"kind":"text","text":"Configuration for an expanded field."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configuration for an expanded field."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":301}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterSwitch","name":"HostCompilerDirectives.BytecodeInterpreterSwitch","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, CONSTRUCTOR}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives.BytecodeInterpreterSwitch"}],"enclosing":"com.oracle.truffle.api.HostCompilerDirectives","doc":{"summary":[{"kind":"text","text":"Marks a method that is an implementation of a Truffle interpreter, and which should receive additional optimization budget."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a method that is an implementation of a Truffle interpreter, and which should receive additional optimization budget."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This annotation is used to annotate the root method of a bytecode interpreter, and it hints the compiler to invest extra effort into optimizing such methods. Language implementers are advised to inspect the IR of the interpreter when using this."}]}]},"since":"21.0","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":163}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$InliningCutoff","name":"HostCompilerDirectives.InliningCutoff","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, CONSTRUCTOR}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives.InliningCutoff"}],"enclosing":"com.oracle.truffle.api.HostCompilerDirectives","doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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. A host compiler may use this information as a hint to take trade-offs optimizing the code. Good examples of cutoffs are:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Methods related to instrumentation or tracing. Instrumentation and tracing are typically not critical for interpreter performance."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Methods raising guest language exceptions. Such paths must often partially evaluate for good peak performance, but are not a priority to optimize during interpreter execution."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Methods related to Truffle interoperability behavior. Such paths are typically only used exceptionally, as the vast majority of code is likely non-interop code."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Methods that are very complex and would only deny other more important methods to be inlined."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If a method is already annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"TruffleBoundary"}]},{"kind":"text","text":" or is dominated by a call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"transferToInterpreter()"}]},{"kind":"text","text":" then this method has no effect, as any path that is not designed for partial evaluation is already considered a slow-path in hosted inlining."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This annotation may be used to tune Truffle hosted inlining decisions. It is useful in cases where the host inliner did not have enough budget to exhaustively inline the entire partial evaluatable fast-path. In such a case it might be worthwhile to annotate rarely executed methods with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$InliningCutoff"},"code":true,"children":[{"kind":"text","text":"InliningCutoff"}]},{"kind":"text","text":" to reduce their priority to make room for more important methods."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For more details on host inlining see the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/HostCompilation.md","children":[{"kind":"text","text":"documentation"}]}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":198}},{"id":"com.oracle.truffle.api.HostCompilerDirectives$InliningRoot","name":"HostCompilerDirectives.InliningRoot","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, CONSTRUCTOR}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"HostCompilerDirectives.InliningRoot"}],"enclosing":"com.oracle.truffle.api.HostCompilerDirectives","doc":{"summary":[{"kind":"text","text":"Marks a method as a candidate for Truffle host inlining."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a method as a candidate for Truffle host inlining. The host compiler may use this information to guide inlining and optimization decisions."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Annotated methods must be designed for partial evaluation. This annotation should not be applied to arbitrary Java code or third-party libraries, as doing so may cause severe performance degradation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Typical examples include "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods of cached nodes. The Truffle DSL automatically applies this annotation to every generated execute method. It is recommended to be used for manually written "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods as well."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For more details, see the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/HostCompilation.md","children":[{"kind":"text","text":" Truffle host compilation documentation"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/HostCompilerDirectives.java","line":221}},{"id":"com.oracle.truffle.api.InstrumentInfo","name":"InstrumentInfo","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InstrumentInfo"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.InstrumentInfo#getId()","anchor":"getId()","kind":"method","name":"getId","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getId"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this instrument's unique id"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the id clients can use to acquire this instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the id clients can use to acquire this instrument."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/InstrumentInfo.java","line":68}},{"id":"com.oracle.truffle.api.InstrumentInfo#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this instrument's user-friendly name"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets a human readable name of this instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets a human readable name of this instrument."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/InstrumentInfo.java","line":78}},{"id":"com.oracle.truffle.api.InstrumentInfo#getVersion()","anchor":"getVersion()","kind":"method","name":"getVersion","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getVersion"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this instrument's version"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the version of this instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the version of this instrument."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/InstrumentInfo.java","line":88}},{"id":"com.oracle.truffle.api.InstrumentInfo#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.26","source":{"path":"com/oracle/truffle/api/InstrumentInfo.java","line":99}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents public information about an instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents public information about an instrument."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/InstrumentInfo.java","line":48}},{"id":"com.oracle.truffle.api.InternalResource","name":"InternalResource","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"InternalResource"}],"members":[{"id":"com.oracle.truffle.api.InternalResource#unpackFiles(com.oracle.truffle.api.InternalResource.Env,java.nio.file.Path)","anchor":"unpackFiles(com.oracle.truffle.api.InternalResource.Env,java.nio.file.Path)","kind":"method","name":"unpackFiles","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"unpackFiles"},{"kind":"punct","text":"("},{"kind":"type","text":"InternalResource.Env","ref":"com.oracle.truffle.api.InternalResource$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"env"},{"kind":"punct","text":", "},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":" "},{"kind":"param","text":"targetDirectory"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"env","type":[{"kind":"type","text":"InternalResource.Env","ref":"com.oracle.truffle.api.InternalResource$Env"}]},{"name":"targetDirectory","type":[{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the target directory to extract files to"}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Unpacks all resources to a given target directory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unpacks all resources to a given target directory. The target directory is guaranteed to be writable and the unpacking is synchronized by a file system lock. If a resource was previously cached then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource#versionHash(com.oracle.truffle.api.InternalResource.Env)"},"code":true,"children":[{"kind":"text","text":"versionHash(Env)"}]},{"kind":"text","text":" is invoked and the version string is compared. If it matches then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource#unpackFiles(com.oracle.truffle.api.InternalResource.Env,java.nio.file.Path)"},"code":true,"children":[{"kind":"text","text":"unpackFiles(Env, Path)"}]},{"kind":"text","text":" will not be invoked and the directory will be used as previously unpacked. The target directory is guaranteed to exist and guaranteed to be empty."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Ideally the result of this method should be idempotent in order to be safely cacheable. Care should be taken, if system properties are used that change the result of this method. It is safe to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$OS"},"code":true,"children":[{"kind":"text","text":"OS"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture"},"code":true,"children":[{"kind":"text","text":"CPUArchitecture"}]},{"kind":"text","text":" enums as internal resources are never cached or moved across operating system architectures."}]},{"kind":"paragraph","children":[{"kind":"text","text":"No guest language code must run as part of this method."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":136}},{"id":"com.oracle.truffle.api.InternalResource#versionHash(com.oracle.truffle.api.InternalResource.Env)","anchor":"versionHash(com.oracle.truffle.api.InternalResource.Env)","kind":"method","name":"versionHash","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"versionHash"},{"kind":"punct","text":"("},{"kind":"type","text":"InternalResource.Env","ref":"com.oracle.truffle.api.InternalResource$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"env"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"env","type":[{"kind":"type","text":"InternalResource.Env","ref":"com.oracle.truffle.api.InternalResource$Env"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns the version hash to be used for this resource."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the version hash to be used for this resource. It is the responsibility of the implementer to ensure that this version hash is unique. For example, an SHA-256 could be a good version identifier for file based resources. Since the version hash serves as a path component on the host filesystem, its length is restricted to a maximum of 128 bytes. If the version hash length exceeds this limit, an "},{"kind":"code","text":"IOException"},{"kind":"text","text":" will be thrown during unpacking."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":148}}],"doc":{"summary":[{"kind":"text","text":"Represents an internal resource of a language that can be lazily unpacked to a cache user directory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an internal resource of a language that can be lazily unpacked to a cache user directory."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A typical implementation of an "},{"kind":"code","text":"InternalResource"},{"kind":"text","text":" for a platform-specific library stored in the "},{"kind":"code","text":"META-INF/resources/<language-id>/<resource-id>/<os>/<arch>"},{"kind":"text","text":" looks like this:"}]},{"kind":"code","text":"@InternalResource.Id(\"resource-id\")\nfinal class NativeLibResource implements InternalResource {\n\n    @Override\n    public void unpackFiles(Env env, Path targetDirectory) throws IOException {\n        Path base = Path.of(\"META-INF\", \"resources\", \"mylanguage\", \"resource-id\",\n                        env.getOS().toString(), env.getCPUArchitecture().toString());\n        env.unpackResourceFiles(base.resolve(\"file-list\"), targetDirectory, base);\n    }\n\n    @Override\n    public String versionHash(Env env) {\n        try {\n            Path hashResource = Path.of(\"META-INF\", \"resources\", \"mylanguage\", \"resource-id\",\n                            env.getOS().toString(), env.getCPUArchitecture().toString(), \"sha256\");\n            return env.readResourceLines(hashResource).get(0);\n        } catch (IOException ioe) {\n            throw CompilerDirectives.shouldNotReachHere(ioe);\n        }\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The resource files are listed in the "},{"kind":"code","text":"META-INF/resources/<language-id>/<resource-id>/<os>/<arch>/file-list"},{"kind":"text","text":" file. For the file list format, refer to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource#unpackFiles(com.oracle.truffle.api.InternalResource.Env,java.nio.file.Path)"},"code":true,"children":[{"kind":"text","text":"InternalResource.unpackFiles(Env, Path)"}]},{"kind":"text","text":". Additionally, the "},{"kind":"code","text":"META-INF/resources/<language-id>/<resource-id>/<os>/<arch>/sha256"},{"kind":"text","text":" file contains an SHA-256 hash of the resource files. It is recommended to use non-encapsulated resource paths that include the component ID and resource ID, as this helps prevent ambiguity when the language or instrument is used in an unnamed module."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":116}},{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture","name":"InternalResource.CPUArchitecture","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"InternalResource.CPUArchitecture"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.InternalResource","members":[{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture#AARCH64","anchor":"AARCH64","kind":"enumConstant","name":"AARCH64","signature":[{"kind":"name","text":"AARCH64"}],"type":[{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"}],"doc":{"summary":[{"kind":"text","text":"The ARMv8 64-bit architecture."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The ARMv8 64-bit architecture."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":574}},{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture#AMD64","anchor":"AMD64","kind":"enumConstant","name":"AMD64","signature":[{"kind":"name","text":"AMD64"}],"type":[{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"}],"doc":{"summary":[{"kind":"text","text":"The x86 64-bit architecture."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The x86 64-bit architecture."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":581}},{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture#UNSUPPORTED","anchor":"UNSUPPORTED","kind":"enumConstant","name":"UNSUPPORTED","signature":[{"kind":"name","text":"UNSUPPORTED"}],"type":[{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"}],"doc":{"summary":[{"kind":"text","text":"Represents an unsupported architecture."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an unsupported architecture."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To enable execution on unsupported platforms, the system property "},{"kind":"code","text":"-Dpolyglot.engine.allowUnsupportedPlatform=true"},{"kind":"text","text":" must be explicitly set. If this property is not set and the platform is unsupported, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture#getCurrent()"},"code":true,"children":[{"kind":"text","text":"getCurrent()"}]},{"kind":"text","text":" method will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":593}},{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Enum#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns the string representing CPU architecture name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the string representing CPU architecture name."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":606}},{"id":"com.oracle.truffle.api.InternalResource$CPUArchitecture#getCurrent()","anchor":"getCurrent()","kind":"method","name":"getCurrent","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"},{"kind":"punct","text":" "},{"kind":"name","text":"getCurrent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current CPU architecture."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current CPU architecture."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":616}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a supported CPU architecture."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a supported CPU architecture."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":567}},{"id":"com.oracle.truffle.api.InternalResource$Env","name":"InternalResource.Env","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InternalResource.Env"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.InternalResource","members":[{"id":"com.oracle.truffle.api.InternalResource$Env#inContextPreinitialization()","anchor":"inContextPreinitialization()","kind":"method","name":"inContextPreinitialization","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inContextPreinitialization"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the engine causing the resource unpacking is being pre-initialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the engine causing the resource unpacking is being pre-initialized."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":175}},{"id":"com.oracle.truffle.api.InternalResource$Env#inNativeImageBuild()","anchor":"inNativeImageBuild()","kind":"method","name":"inNativeImageBuild","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inNativeImageBuild"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if resource unpacking happens during the native image build."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if resource unpacking happens during the native image build."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":184}},{"id":"com.oracle.truffle.api.InternalResource$Env#getCPUArchitecture()","anchor":"getCPUArchitecture()","kind":"method","name":"getCPUArchitecture","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"},{"kind":"punct","text":" "},{"kind":"name","text":"getCPUArchitecture"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InternalResource.CPUArchitecture","ref":"com.oracle.truffle.api.InternalResource$CPUArchitecture"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current processor architecture."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current processor architecture. The value can be used to resolve an architecture specific files during resource unpacking."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":194}},{"id":"com.oracle.truffle.api.InternalResource$Env#getOS()","anchor":"getOS()","kind":"method","name":"getOS","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"},{"kind":"punct","text":" "},{"kind":"name","text":"getOS"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current operating system."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current operating system. The value can be used to resolve an OS specific files during resource unpacking."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":205}},{"id":"com.oracle.truffle.api.InternalResource$Env#readResourceLines(java.nio.file.Path)","anchor":"readResourceLines(java.nio.file.Path)","kind":"method","name":"readResourceLines","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"readResourceLines"},{"kind":"punct","text":"("},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"location","type":[{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"relative path that identifies the resource in the module. The relative path gets resolved into an absolute path using the archive root."}]}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the lines from the resource as a "},{"kind":"link","target":{"id":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},"code":true,"children":[{"kind":"text","text":"List"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads a resource from the module, which owns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" implementation class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads a resource from the module, which owns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" implementation class. If the resource is encapsulated in the module, see "},{"kind":"link","target":{"id":"java.lang.Module#getResourceAsStream(java.lang.String)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Module.html#getResourceAsStream(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"Module.getResourceAsStream(String)"}]},{"kind":"text","text":", the module needs to open the "},{"kind":"code","text":"location"},{"kind":"text","text":" enclosing package to the "},{"kind":"code","text":"org.graalvm.truffle"},{"kind":"text","text":" module. It is recommended to use non-encapsulated resource paths."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":223}},{"id":"com.oracle.truffle.api.InternalResource$Env#unpackResourceFiles(java.nio.file.Path,java.nio.file.Path,java.nio.file.Path,java.util.function.Predicate)","anchor":"unpackResourceFiles(java.nio.file.Path,java.nio.file.Path,java.nio.file.Path,java.util.function.Predicate)","kind":"method","name":"unpackResourceFiles","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"unpackResourceFiles"},{"kind":"punct","text":"("},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":" "},{"kind":"param","text":"relativizeTo"},{"kind":"punct","text":", "},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"filter"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"source","type":[{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the relative path that identifies the file list resource in the module. The relative path gets resolved into an absolute path using the archive root."}]}]},{"name":"target","type":[{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the folder to extract resources to"}]}]},{"name":"relativizeTo","type":[{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the path used to relativize the file list entries in the "},{"kind":"code","text":"target"},{"kind":"text","text":" folder. In other words, the file list entries are resolved using the "},{"kind":"code","text":"target"},{"kind":"text","text":" directory after removing the "},{"kind":"code","text":"relativizeTo"},{"kind":"text","text":" path."}]}]},{"name":"filter","type":[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"resource path filter. Only resources at resource paths for which the filter predicate returns "},{"kind":"code","text":"true"},{"kind":"text","text":" are unpacked."}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"relativizeTo"},{"kind":"text","text":" is an absolute path or file list contains an absolute path"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]}],"doc":{"summary":[{"kind":"text","text":"Extracts files from the module, which owns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" implementation class, listed in the "},{"kind":"code","text":"source"},{"kind":"text","text":" file list and places them into the "},{"kind":"code","text":"target"},{"kind":"text","text":" folder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Extracts files from the module, which owns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" implementation class, listed in the "},{"kind":"code","text":"source"},{"kind":"text","text":" file list and places them into the "},{"kind":"code","text":"target"},{"kind":"text","text":" folder. If resources are encapsulated within the module, see "},{"kind":"link","target":{"id":"java.lang.Module#getResourceAsStream(java.lang.String)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Module.html#getResourceAsStream(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"Module.getResourceAsStream(String)"}]},{"kind":"text","text":", the module needs to open the enclosing package of the resources to the "},{"kind":"code","text":"org.graalvm.truffle"},{"kind":"text","text":" module. It is recommended to use non-encapsulated resource paths."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The file list is a "},{"kind":"link","target":{"id":"java.util.Properties","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Properties.html"},"code":true,"children":[{"kind":"text","text":"Java properties"}]},{"kind":"text","text":" file where resource files serve as keys, and the corresponding values consist of serialized attributes separated by "},{"kind":"code","text":"','"},{"kind":"text","text":". Currently, only the POSIX file permissions attribute is supported. The format of this attribute follows the same convention used by the "},{"kind":"link","target":{"id":"java.nio.file.attribute.PosixFilePermissions#fromString(java.lang.String)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/PosixFilePermissions.html#fromString(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"PosixFilePermissions.fromString(String)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example of a file list content:"}]},{"kind":"code","text":"META-INF/resources/darwin/amd64/bin/libtrufflenfi.dylib = rwxr-xr-x\nMETA-INF/resources/common/include/trufflenfi.h = rw-r--r--"}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":271}},{"id":"com.oracle.truffle.api.InternalResource$Env#unpackResourceFiles(java.nio.file.Path,java.nio.file.Path,java.nio.file.Path)","anchor":"unpackResourceFiles(java.nio.file.Path,java.nio.file.Path,java.nio.file.Path)","kind":"method","name":"unpackResourceFiles","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"unpackResourceFiles"},{"kind":"punct","text":"("},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},{"kind":"punct","text":" "},{"kind":"param","text":"relativizeTo"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"source","type":[{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"}]},{"name":"target","type":[{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"}]},{"name":"relativizeTo","type":[{"kind":"type","text":"Path","ref":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Extracts files from the module, which owns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" implementation class, listed in the "},{"kind":"code","text":"source"},{"kind":"text","text":" file list and places them into the "},{"kind":"code","text":"target"},{"kind":"text","text":" folder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Extracts files from the module, which owns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" implementation class, listed in the "},{"kind":"code","text":"source"},{"kind":"text","text":" file list and places them into the "},{"kind":"code","text":"target"},{"kind":"text","text":" folder. Same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Env#unpackResourceFiles(java.nio.file.Path,java.nio.file.Path,java.nio.file.Path,java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"unpackResourceFiles(Path, Path, Path, Predicate)"}]},{"kind":"text","text":" with "},{"kind":"code","text":"filter = p -> true"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Env#unpackResourceFiles(java.nio.file.Path,java.nio.file.Path,java.nio.file.Path,java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"unpackResourceFiles(Path, Path, Path, Predicate)"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":302}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Access to common utilities for unpacking resource files."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Access to common utilities for unpacking resource files."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":155}},{"id":"com.oracle.truffle.api.InternalResource$Id","name":"InternalResource.Id","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"InternalResource.Id"}],"enclosing":"com.oracle.truffle.api.InternalResource","members":[{"id":"com.oracle.truffle.api.InternalResource$Id#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"An internal resource identifier that is a valid path component and unique per language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An internal resource identifier that is a valid path component and unique per language."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":432}},{"id":"com.oracle.truffle.api.InternalResource$Id#componentId()","anchor":"componentId()","kind":"annotationElement","name":"componentId","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"componentId"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"A Truffle language or instrument identifier for which the resource is registered."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A Truffle language or instrument identifier for which the resource is registered. The "},{"kind":"code","text":"componentId"},{"kind":"text","text":" is necessary only for optional internal resources to associate them with the appropriate language or instrument. For required internal resources, the "},{"kind":"code","text":"componentId"},{"kind":"text","text":" can be left unset."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":442}},{"id":"com.oracle.truffle.api.InternalResource$Id#optional()","anchor":"optional()","kind":"annotationElement","name":"optional","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"optional"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Marks the annotated resource as optional."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks the annotated resource as optional. By default, internal resources are considered required and must be registered using "},{"kind":"code","text":"TruffleLanguage.Registration"},{"kind":"text","text":" or "},{"kind":"code","text":"TruffleInstrument.Registration"},{"kind":"text","text":". Optional internal resources are retrieved using the "},{"kind":"link","target":{"id":"java.util.ServiceLoader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ServiceLoader.html"},"code":true,"children":[{"kind":"text","text":"java.util.ServiceLoader"}]},{"kind":"text","text":" mechanism. The service implementation is generated by an annotation processor. Therefore, for proper functionality, the Truffle DSL processor must be included in the processor path."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":454}}],"doc":{"summary":[{"kind":"text","text":"The annotation used to lookup "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" by an id."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The annotation used to lookup "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" by an id. The internal resource can be designated as either required or optional. For required internal resources, their availability is imperative. In addition to being annotated with this annotation, they also need to be registered using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#internalResources()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Registration.internalResources()"}]},{"kind":"text","text":" method to be associated with a specific language or instrument. On the other hand, optional internal resources are not mandatory in the runtime. Instead of being registered using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#internalResources()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Registration.internalResources()"}]},{"kind":"text","text":" annotation, they should supply the relevant language or instrument id through "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Id#componentId()"},"code":true,"children":[{"kind":"text","text":"Id.componentId()"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":423}},{"id":"com.oracle.truffle.api.InternalResource$OS","name":"InternalResource.OS","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"InternalResource.OS"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.InternalResource","members":[{"id":"com.oracle.truffle.api.InternalResource$OS#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.InternalResource$OS#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.InternalResource$OS#DARWIN","anchor":"DARWIN","kind":"enumConstant","name":"DARWIN","signature":[{"kind":"name","text":"DARWIN"}],"type":[{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"}],"doc":{"summary":[{"kind":"text","text":"The macOS operating system."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The macOS operating system."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":469}},{"id":"com.oracle.truffle.api.InternalResource$OS#LINUX","anchor":"LINUX","kind":"enumConstant","name":"LINUX","signature":[{"kind":"name","text":"LINUX"}],"type":[{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"}],"doc":{"summary":[{"kind":"text","text":"The Linux operating system."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The Linux operating system."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":476}},{"id":"com.oracle.truffle.api.InternalResource$OS#WINDOWS","anchor":"WINDOWS","kind":"enumConstant","name":"WINDOWS","signature":[{"kind":"name","text":"WINDOWS"}],"type":[{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"}],"doc":{"summary":[{"kind":"text","text":"The Windows operating system."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The Windows operating system."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":483}},{"id":"com.oracle.truffle.api.InternalResource$OS#UNSUPPORTED","anchor":"UNSUPPORTED","kind":"enumConstant","name":"UNSUPPORTED","signature":[{"kind":"name","text":"UNSUPPORTED"}],"type":[{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"}],"doc":{"summary":[{"kind":"text","text":"Represents an unsupported operating system."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an unsupported operating system."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To enable execution on unsupported platforms, the system property "},{"kind":"code","text":"-Dpolyglot.engine.allowUnsupportedPlatform=true"},{"kind":"text","text":" must be explicitly set. If this property is not set and the platform is unsupported, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$OS#getCurrent()"},"code":true,"children":[{"kind":"text","text":"getCurrent()"}]},{"kind":"text","text":" method will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":495}},{"id":"com.oracle.truffle.api.InternalResource$OS#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Enum#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns the string representing operating system name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the string representing operating system name."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":532}},{"id":"com.oracle.truffle.api.InternalResource$OS#getCurrent()","anchor":"getCurrent()","kind":"method","name":"getCurrent","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"},{"kind":"punct","text":" "},{"kind":"name","text":"getCurrent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InternalResource.OS","ref":"com.oracle.truffle.api.InternalResource$OS"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current operating system."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current operating system."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":542}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a supported operating system."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a supported operating system."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/InternalResource.java","line":462}},{"id":"com.oracle.truffle.api.OptimizationFailedException","name":"OptimizationFailedException","kind":"class","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"OptimizationFailedException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"superclass":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"ancestors":[{"id":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.OptimizationFailedException#<init>(java.lang.Throwable,com.oracle.truffle.api.RootCallTarget)","anchor":"<init>(java.lang.Throwable,com.oracle.truffle.api.RootCallTarget)","kind":"constructor","name":"OptimizationFailedException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"OptimizationFailedException"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":", "},{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"callTarget"},{"kind":"punct","text":")"}],"params":[{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},{"name":"callTarget","type":[{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/OptimizationFailedException.java","line":50}},{"id":"com.oracle.truffle.api.OptimizationFailedException#getCallTarget()","anchor":"getCallTarget()","kind":"method","name":"getCallTarget","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"getCallTarget"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/OptimizationFailedException.java","line":56}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#fillInStackTrace()","text":"fillInStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/OptimizationFailedException.java","line":44}},{"id":"com.oracle.truffle.api.Option","name":"Option","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{FIELD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Option"}],"members":[{"id":"com.oracle.truffle.api.Option#name()","anchor":"name()","kind":"annotationElement","name":"name","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Returns a custom name for the option."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a custom name for the option. If not specified then the name of the annotated field is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor#getName()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html#getName()"},"code":true,"children":[{"kind":"text","text":"option descriptor name"}]},{"kind":"text","text":" is generated from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option$Group#value()"},"code":true,"children":[{"kind":"text","text":"group name"}]},{"kind":"text","text":" and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option#name()"},"code":true,"children":[{"kind":"text","text":"option name"}]},{"kind":"text","text":" separated by "},{"kind":"code","text":"'.'"},{"kind":"text","text":". If the option name is an empty "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" then the trailing "},{"kind":"code","text":"'.'"},{"kind":"text","text":" will be removed from the descriptor name such that it exactly matches the group name. If, for example, the option group is "},{"kind":"code","text":"'js'"},{"kind":"text","text":" and the option name is inherited from the field name "},{"kind":"code","text":"'ECMACompatibility'"},{"kind":"text","text":" then the full descriptor name is "},{"kind":"code","text":"'js.ECMACompatibility'"},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/Option.java","line":102}},{"id":"com.oracle.truffle.api.Option#help()","anchor":"help()","kind":"annotationElement","name":"help","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"help"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a help message for the option."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a help message for the option. New lines can be embedded in the message with "},{"kind":"code","text":"\"%n\""},{"kind":"text","text":". The generated an option descriptor returns this value as result of "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor#getHelp()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html#getHelp()"},"code":true,"children":[{"kind":"text","text":"OptionDescriptor.getHelp()"}]},{"kind":"text","text":". Recommendation:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Include the default value for the option and the end of the text, e.g. "},{"kind":"code","text":"\"Enable or disable the option (default: true).\""}]}]]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/Option.java","line":117}},{"id":"com.oracle.truffle.api.Option#deprecated()","anchor":"deprecated()","kind":"annotationElement","name":"deprecated","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"deprecated"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this option is deprecated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this option is deprecated. The generated option descriptor returns this value as result of "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor#isDeprecated()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html#isDeprecated()"},"code":true,"children":[{"kind":"text","text":"OptionDescriptor.isDeprecated()"}]},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/Option.java","line":125}},{"id":"com.oracle.truffle.api.Option#deprecationMessage()","anchor":"deprecationMessage()","kind":"annotationElement","name":"deprecationMessage","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"deprecationMessage"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Returns the deprecation reason and the recommended fix."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the deprecation reason and the recommended fix. The generated option descriptor returns this value as result of "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor#getDeprecationMessage()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html#getDeprecationMessage()"},"code":true,"children":[{"kind":"text","text":"OptionDescriptor.getDeprecationMessage()"}]},{"kind":"text","text":"."}]}]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/Option.java","line":133}},{"id":"com.oracle.truffle.api.Option#category()","anchor":"category()","kind":"annotationElement","name":"category","signature":[{"kind":"type","text":"OptionCategory","ref":"org.graalvm.options.OptionCategory","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionCategory.html"},{"kind":"punct","text":" "},{"kind":"name","text":"category"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionCategory","ref":"org.graalvm.options.OptionCategory","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionCategory.html"}]},"doc":{"summary":[{"kind":"text","text":"Specifies the category of the option."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the category of the option. The generated option descriptor returns this value as result of "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor#getCategory()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html#getCategory()"},"code":true,"children":[{"kind":"text","text":"OptionDescriptor.getCategory()"}]},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/Option.java","line":141}},{"id":"com.oracle.truffle.api.Option#stability()","anchor":"stability()","kind":"annotationElement","name":"stability","signature":[{"kind":"type","text":"OptionStability","ref":"org.graalvm.options.OptionStability","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionStability.html"},{"kind":"punct","text":" "},{"kind":"name","text":"stability"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"EXPERIMENTAL"}],"returns":{"type":[{"kind":"type","text":"OptionStability","ref":"org.graalvm.options.OptionStability","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionStability.html"}]},"defaultValue":"EXPERIMENTAL","doc":{"summary":[{"kind":"text","text":"Defines the stability of this option."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines the stability of this option. The default value is "},{"kind":"link","target":{"id":"org.graalvm.options.OptionStability#EXPERIMENTAL","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionStability.html#EXPERIMENTAL"},"code":true,"children":[{"kind":"text","text":"OptionStability.EXPERIMENTAL"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/Option.java","line":149}},{"id":"com.oracle.truffle.api.Option#usageSyntax()","anchor":"usageSyntax()","kind":"annotationElement","name":"usageSyntax","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"usageSyntax"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Describes in short the syntax of accepted values for this option."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Describes in short the syntax of accepted values for this option. This value is used when generating help messages to better explain how to use the option. Combine with the help message to illustrate to users how to correctly use the option. For example:"}]},{"kind":"code","text":"@Option(name = \"Enabled\", help = \"Enable/Disable the option.\", usageSyntax = \"true|false\")"},{"kind":"paragraph","children":[{"kind":"text","text":"Recommendations:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"if the option accepts a discrete number of values (e.g. boolean, enum) list the values separated by a '|' character. The default value for enums should be placed as the first in the list. e.g. "},{"kind":"code","text":"\"true|false\""},{"kind":"text","text":", "},{"kind":"code","text":"\"none|red|green|blue|white\""}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"if the options accepts a value representing a well-known concept or a number representing particular units, place that concept/unit between < and > e.g. "},{"kind":"code","text":"\"<ms>\""},{"kind":"text","text":", "},{"kind":"code","text":"\"<path>\""},{"kind":"text","text":", "},{"kind":"code","text":"\"<country>\""},{"kind":"text","text":", "},{"kind":"code","text":"\"<>\""}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"if the options accepts a range of numbers use the range syntax: [a,b] for inclusive range from a to b, (a, b) for exclusive range from a to b, [a, b) for range from a to b including a and (a, b] for range from a to b including b. If the range is infinite use inf and -inf. For example: "},{"kind":"code","text":"\"[0, 100]\""},{"kind":"text","text":", "},{"kind":"code","text":"\"(0.0, 1.0)\""},{"kind":"text","text":", "},{"kind":"code","text":"\"[0, inf)"},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"if the options accepts a comma-separated list, use two comma-separated values and a "},{"kind":"code","text":"..."},{"kind":"text","text":". Apply these same recommendations to individual values, e.g. "},{"kind":"code","text":"\"<targetName>,<targetName>,...\""},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"if the options accepts a custom format, describe the format in a generic manner e.g. ip address - "},{"kind":"code","text":"\"*.*.*.*\""},{"kind":"text","text":", CSV Person - "},{"kind":"code","text":"\"<firstName>,<lastName>,<age>\""},{"kind":"text","text":"."}]}]]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/Option.java","line":183}},{"id":"com.oracle.truffle.api.Option#sandbox()","anchor":"sandbox()","kind":"annotationElement","name":"sandbox","signature":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},{"kind":"punct","text":" "},{"kind":"name","text":"sandbox"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"TRUSTED"}],"returns":{"type":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"}]},"defaultValue":"TRUSTED","doc":{"summary":[{"kind":"text","text":"Specifies the most strict sandbox policy in which the option can be used."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the most strict sandbox policy in which the option can be used. The option can be used for an engine/context with the specified sandbox policy or a weaker one. For example, if an option specifies "},{"kind":"code","text":"ISOLATED"},{"kind":"text","text":" policy, it can be used for an engine/context configured with sandbox policy "},{"kind":"code","text":"TRUSTED"},{"kind":"text","text":", "},{"kind":"code","text":"CONSTRAINED"},{"kind":"text","text":" or "},{"kind":"code","text":"ISOLATED"},{"kind":"text","text":". But it cannot be used for an engine/context configured with the "},{"kind":"code","text":"UNTRUSTED"},{"kind":"text","text":" sandbox policy."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/Option.java","line":195}},{"id":"com.oracle.truffle.api.Option#constant()","anchor":"constant()","kind":"annotationElement","name":"constant","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"constant"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Declares this option as immutable after polyglot runtime initialization, enabling constant propagation and dead-code elimination when read through "},{"kind":"link","target":{"id":"org.graalvm.options.ConstantOptionKey#getConstantValue()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/ConstantOptionKey.html#getConstantValue()"},"code":true,"children":[{"kind":"text","text":"org.graalvm.options.ConstantOptionKey.getConstantValue()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares this option as immutable after polyglot runtime initialization, enabling constant propagation and dead-code elimination when read through "},{"kind":"link","target":{"id":"org.graalvm.options.ConstantOptionKey#getConstantValue()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/ConstantOptionKey.html#getConstantValue()"},"code":true,"children":[{"kind":"text","text":"org.graalvm.options.ConstantOptionKey.getConstantValue()"}]},{"kind":"text","text":". Constant options must use "},{"kind":"link","target":{"id":"org.graalvm.options.ConstantOptionKey","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/ConstantOptionKey.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.options.ConstantOptionKey"}]},{"kind":"text","text":" as their field type. Their value is fixed before the polyglot runtime is initialized and cannot be changed at runtime. The value is read from the system property "},{"kind":"code","text":"-Dpolyglot.<option-name>=<value>"},{"kind":"text","text":" during class initialization; if absent, the "},{"kind":"link","target":{"id":"org.graalvm.options.OptionKey#getDefaultValue()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionKey.html#getDefaultValue()"},"code":true,"children":[{"kind":"text","text":"default value"}]},{"kind":"text","text":" is used. Once set, calls to "},{"kind":"link","target":{"id":"org.graalvm.options.ConstantOptionKey#getConstantValue()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/ConstantOptionKey.html#getConstantValue()"},"code":true,"children":[{"kind":"text","text":"org.graalvm.options.ConstantOptionKey.getConstantValue()"}]},{"kind":"text","text":" on a "},{"kind":"code","text":"static final"},{"kind":"text","text":" field are eligible for constant folding by the GraalVM compiler, allowing dead branches to be eliminated. The default value is "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.options.ConstantOptionKey","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/ConstantOptionKey.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.options.ConstantOptionKey"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/Option.java","line":213}}],"doc":{"summary":[{"kind":"text","text":"Describes the attributes of an option whose "},{"kind":"link","target":{"id":"org.graalvm.options.OptionKey","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionKey.html"},"code":true,"children":[{"kind":"text","text":"value"}]},{"kind":"text","text":" is in a static field annotated by this annotation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Describes the attributes of an option whose "},{"kind":"link","target":{"id":"org.graalvm.options.OptionKey","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionKey.html"},"code":true,"children":[{"kind":"text","text":"value"}]},{"kind":"text","text":" is in a static field annotated by this annotation. If used in a class then a package-protected class following the name pattern "},{"kind":"code","text":"$classNameOptionDescriptors"},{"kind":"text","text":" is generated. The generated class implements "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"},"code":true,"children":[{"kind":"text","text":"OptionDescriptors"}]},{"kind":"text","text":" and contains all options specified by the declaring class."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option"},"code":true,"children":[{"kind":"text","text":"Option"}]},{"kind":"text","text":" annotation is used in a subclass of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.TruffleInstrument"}]},{"kind":"text","text":" then the option descriptor prefix is automatically inherited from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#id()"},"code":true,"children":[{"kind":"text","text":"language id"}]},{"kind":"text","text":" or the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#id()"},"code":true,"children":[{"kind":"text","text":"instrument id"}]},{"kind":"text","text":". If the class is not a language or an instrument then the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option$Group"},"code":true,"children":[{"kind":"text","text":"Option.Group"}]},{"kind":"text","text":" annotation can be used on the class to specify a option group name prefix."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor#getName()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html#getName()"},"code":true,"children":[{"kind":"text","text":"option descriptor name"}]},{"kind":"text","text":" is generated from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option$Group#value()"},"code":true,"children":[{"kind":"text","text":"group name"}]},{"kind":"text","text":" and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option#name()"},"code":true,"children":[{"kind":"text","text":"option name"}]},{"kind":"text","text":" separated by "},{"kind":"code","text":"'.'"},{"kind":"text","text":". If the option name is an empty "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" then the trailing "},{"kind":"code","text":"'.'"},{"kind":"text","text":" will be removed from the descriptor name such that it exactly matches the group name. If, for example, the option group is "},{"kind":"code","text":"'js'"},{"kind":"text","text":" and the option name is inherited from the field name "},{"kind":"code","text":"'ECMACompatibility'"},{"kind":"text","text":" then the full descriptor name is "},{"kind":"code","text":"'js.ECMACompatibility'"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example usage:"}]}]},{"kind":"code","language":"java","text":"@TruffleLanguage.Registration(id = \"mylang\", name = \"My Language\",\n                              version = \"1.0\")\nabstract static class MyLanguage extends TruffleLanguage<Context> {\n\n    // the descriptor name for MyOption1 is 'mylang.MyOption1'\n    @Option(help = \"Help Text.\", category = OptionCategory.USER,\n            stability = OptionStability.STABLE)\n    static final OptionKey<String> MyOption1 = new OptionKey<>(\"\");\n\n    // the descriptor name for SecondOption is 'mylang.secondOption'\n    @Option(help = \"Help Text.\", name = \"secondOption\",\n            category = OptionCategory.EXPERT,\n            stability = OptionStability.EXPERIMENTAL)\n    static final OptionKey<Boolean> SecondOption = new OptionKey<>(false);\n\n    @Override\n    protected Context createContext(TruffleLanguage.Env env) {\n        if (env.getOptions().get(SecondOption)) {\n            // options are available via environment\n        }\n        return null;\n    }\n\n    @Override\n    protected OptionDescriptors getOptionDescriptors() {\n        // this class is generated by the annotation processor\n        return new MyLanguageOptionDescriptors();\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html"},"code":true,"children":[{"kind":"text","text":"OptionDescriptor"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.Option$Group"},"code":true,"children":[{"kind":"text","text":"Option.Group"}]}]]},"since":"0.27","source":{"path":"com/oracle/truffle/api/Option.java","line":84}},{"id":"com.oracle.truffle.api.Option$Group","name":"Option.Group","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Option.Group"}],"enclosing":"com.oracle.truffle.api.Option","members":[{"id":"com.oracle.truffle.api.Option$Group#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"A set of group names that are used as prefix for all options of the annotated class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A set of group names that are used as prefix for all options of the annotated class. If multiple group names are specified then descriptors for each combination of group and option name is generated."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor#getName()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html#getName()"},"code":true,"children":[{"kind":"text","text":"option descriptor name"}]},{"kind":"text","text":" is generated from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option$Group#value()"},"code":true,"children":[{"kind":"text","text":"group name"}]},{"kind":"text","text":" and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option#name()"},"code":true,"children":[{"kind":"text","text":"option name"}]},{"kind":"text","text":" separated by "},{"kind":"code","text":"'.'"},{"kind":"text","text":". If the option name is an empty "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" then the trailing "},{"kind":"code","text":"'.'"},{"kind":"text","text":" will be removed from the descriptor name such that it exactly matches the group name. If, for example, the option group is "},{"kind":"code","text":"'js'"},{"kind":"text","text":" and the option name is inherited from the field name "},{"kind":"code","text":"'ECMACompatibility'"},{"kind":"text","text":" then the full descriptor name is "},{"kind":"code","text":"'js.ECMACompatibility'"},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/Option.java","line":245}}],"doc":{"summary":[{"kind":"text","text":"Must be applied on classes containing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option"},"code":true,"children":[{"kind":"text","text":"option"}]},{"kind":"text","text":" fields to specify a name prefix if the prefix cannot be inferred by language or instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Must be applied on classes containing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option"},"code":true,"children":[{"kind":"text","text":"option"}]},{"kind":"text","text":" fields to specify a name prefix if the prefix cannot be inferred by language or instrument."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor#getName()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html#getName()"},"code":true,"children":[{"kind":"text","text":"option descriptor name"}]},{"kind":"text","text":" is generated from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option$Group#value()"},"code":true,"children":[{"kind":"text","text":"option name prefix"}]},{"kind":"text","text":" and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Option#name()"},"code":true,"children":[{"kind":"text","text":"option name"}]},{"kind":"text","text":" separated by "},{"kind":"code","text":"'.'"},{"kind":"text","text":". If the option name is an empty "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" then the trailing "},{"kind":"code","text":"'.'"},{"kind":"text","text":" will be removed from the descriptor name."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/Option.java","line":226}},{"id":"com.oracle.truffle.api.ReplaceObserver","name":"ReplaceObserver","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ReplaceObserver"}],"members":[{"id":"com.oracle.truffle.api.ReplaceObserver#nodeReplaced(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","anchor":"nodeReplaced(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","kind":"method","name":"nodeReplaced","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"nodeReplaced"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"oldNode"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"newNode"},{"kind":"punct","text":", "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"reason"},{"kind":"punct","text":")"}],"params":[{"name":"oldNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"newNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"reason","type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the event is consumed and no parent nodes should be notified by for replaces."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the event is consumed and no parent nodes should be notified by for replaces. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" if the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" should get notified."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/ReplaceObserver.java","line":60}}],"doc":{"summary":[{"kind":"text","text":"An observer that is notified whenever a child node is replaced."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An observer that is notified whenever a child node is replaced. Note this is "},{"kind":"strong","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" called if the RootNode does not have a CallTarget yet."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/ReplaceObserver.java","line":51}},{"id":"com.oracle.truffle.api.RootCallTarget","name":"RootCallTarget","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"RootCallTarget"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"interfaces":[[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}]],"members":[{"id":"com.oracle.truffle.api.RootCallTarget#getRootNode()","anchor":"getRootNode()","kind":"method","name":"getRootNode","signature":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getRootNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/RootCallTarget.java","line":53}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.CallTarget","text":"CallTarget"},"kind":"interface","members":[{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])","text":"call"},{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,java.lang.Object...)","text":"call"},{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)","text":"call"}]}],"doc":{"summary":[{"kind":"text","text":"Represents the target of a call to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":", i.e., to another tree of nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the target of a call to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":", i.e., to another tree of nodes. Instances of this class are created lazily and can be accessed via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"RootNode.getCallTarget()"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/RootCallTarget.java","line":51}},{"id":"com.oracle.truffle.api.ThreadLocalAction","name":"ThreadLocalAction","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ThreadLocalAction"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.ThreadLocalAction#<init>(boolean,boolean)","anchor":"<init>(boolean,boolean)","kind":"constructor","name":"ThreadLocalAction","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ThreadLocalAction"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"hasSideEffects"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"synchronous"},{"kind":"punct","text":")"}],"params":[{"name":"hasSideEffects","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if the event may have side-effects else false."}]}]},{"name":"synchronous","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if the event should run synchronous else the event will run asynchronous."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new thread local action."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread local action."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":166}},{"id":"com.oracle.truffle.api.ThreadLocalAction#<init>(boolean,boolean,boolean)","anchor":"<init>(boolean,boolean,boolean)","kind":"constructor","name":"ThreadLocalAction","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ThreadLocalAction"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"hasSideEffects"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"synchronous"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"recurring"},{"kind":"punct","text":")"}],"params":[{"name":"hasSideEffects","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if the event may have side-effects else false."}]}]},{"name":"synchronous","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if the event should run synchronous else the event will run asynchronous."}]}]},{"name":"recurring","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if the event should be rescheduled until cancelled, else false."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new thread local action."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread local action."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":180}},{"id":"com.oracle.truffle.api.ThreadLocalAction#perform(com.oracle.truffle.api.ThreadLocalAction.Access)","anchor":"perform(com.oracle.truffle.api.ThreadLocalAction.Access)","kind":"method","name":"perform","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"perform"},{"kind":"punct","text":"("},{"kind":"type","text":"ThreadLocalAction.Access","ref":"com.oracle.truffle.api.ThreadLocalAction$Access"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":")"}],"params":[{"name":"access","type":[{"kind":"type","text":"ThreadLocalAction.Access","ref":"com.oracle.truffle.api.ThreadLocalAction$Access"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"allows access to the current thread and the current code location."}]}]}],"doc":{"summary":[{"kind":"text","text":"Performs the thread local action on a given thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Performs the thread local action on a given thread."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":205}},{"id":"com.oracle.truffle.api.ThreadLocalAction#notifyBlocked(com.oracle.truffle.api.ThreadLocalAction.Access)","anchor":"notifyBlocked(com.oracle.truffle.api.ThreadLocalAction.Access)","kind":"method","name":"notifyBlocked","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"notifyBlocked"},{"kind":"punct","text":"("},{"kind":"type","text":"ThreadLocalAction.Access","ref":"com.oracle.truffle.api.ThreadLocalAction$Access"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":")"}],"params":[{"name":"access","type":[{"kind":"type","text":"ThreadLocalAction.Access","ref":"com.oracle.truffle.api.ThreadLocalAction$Access"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"allows access to the current thread and the current code location."}]}]}],"doc":{"summary":[{"kind":"text","text":"Callback for notifying the thread local action that its processing has been blocked due to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"a blocked call"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Callback for notifying the thread local action that its processing has been blocked due to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"a blocked call"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":216}},{"id":"com.oracle.truffle.api.ThreadLocalAction#notifyUnblocked(com.oracle.truffle.api.ThreadLocalAction.Access)","anchor":"notifyUnblocked(com.oracle.truffle.api.ThreadLocalAction.Access)","kind":"method","name":"notifyUnblocked","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"notifyUnblocked"},{"kind":"punct","text":"("},{"kind":"type","text":"ThreadLocalAction.Access","ref":"com.oracle.truffle.api.ThreadLocalAction$Access"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":")"}],"params":[{"name":"access","type":[{"kind":"type","text":"ThreadLocalAction.Access","ref":"com.oracle.truffle.api.ThreadLocalAction$Access"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"allows access to the current thread and the current code location."}]}]}],"doc":{"summary":[{"kind":"text","text":"Callback for notifying the thread local action that its processing has been unblocked during or while leaving "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"a blocked call"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Callback for notifying the thread local action that its processing has been unblocked during or while leaving "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"a blocked call"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":230}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents an action that is executed at a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"safepoint"}]},{"kind":"text","text":" location of the guest language execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an action that is executed at a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"safepoint"}]},{"kind":"text","text":" location of the guest language execution. Thread local actions can be submitted by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#submitThreadLocal(java.lang.Thread[],com.oracle.truffle.api.ThreadLocalAction)"},"code":true,"children":[{"kind":"text","text":"languages"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#submitThreadLocal(com.oracle.truffle.api.TruffleContext,java.lang.Thread[],com.oracle.truffle.api.ThreadLocalAction)"},"code":true,"children":[{"kind":"text","text":"instruments"}]},{"kind":"text","text":". When an action is submitted it will be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#perform(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"performed"}]},{"kind":"text","text":" locally on the threads they are submitted to. After submitting a thread local action a "},{"kind":"link","target":{"id":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},"code":true,"children":[{"kind":"text","text":"Future"}]},{"kind":"text","text":" is returned that allows to wait for and cancel the submitted action."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Thread local actions can be configured to allow side-effects using the constructor of the action. If side-effects are allowed ("},{"kind":"code","text":"true"},{"kind":"text","text":"), then the thread-local action is allowed to throw non-internal guest language exceptions from the action and modify the observable guest application state. Otherwise, the action is not allowed to modify the observable state, and any non-internal guest language exception will be transformed to an internal error of type "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":". Side-effects may be temporarily "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"disabled"}]},{"kind":"text","text":" by the guest language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Thread local actions can also be set to be executed in a synchronous or asynchronous way. A submitted synchronous thread-local action waits until it is started on all threads that it was submitted on. Then the action is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#perform(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"performed"}]},{"kind":"text","text":" on all threads. After they were performed on a thread, the action waits for all threads to complete. No synchronous thread-local actions can be submitted while performing synchronous actions, as this may lead to deadlocks. If a synchronous event is submitted during a synchronous event, then a "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown when the action is submitted. Asynchronous thread-local actions might start and complete to perform independently of each other. There is no restriction on how they may be submitted."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Thread local actions are guaranteed to be executed in the same order as they were submitted for a context. If a context has pending thread-local actions, the actions may be canceled when the context is canceled or closed invalid. Exceptions thrown by the action will be forwarded handled by the guest language implementation. The only exception is for truffle exceptions that are thrown for non-side-effecting events."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Notifications of blocking:"}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#notifyBlocked(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"notifyBlocked(Access)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#notifyUnblocked(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"notifyUnblocked(Access)"}]},{"kind":"text","text":" notify thread local actions that their processing has been blocked/unblocked due to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"a blocked call"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#notifyBlocked(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"notifyBlocked(Access)"}]},{"kind":"text","text":" is called for each pending action at the beginning of a blocked call and for each of the continuations of the blocked call after it is interrupted and thread local actions are processed. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#notifyUnblocked(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction.notifyUnblocked(Access)"}]},{"kind":"text","text":" is called for each pending action at the end of a blocked call and also right after each of its interruptions, before thread local actions are processed and the blocked call continues."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In case a thread local action is submitted during a blocked call, the call is interrupted and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#notifyUnblocked(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"notifyUnblocked(Access)"}]},{"kind":"text","text":" is called without a previous call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#notifyBlocked(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"notifyBlocked(Access)"}]},{"kind":"text","text":". Recurring thread local actions do not repeatedly interrupt a blocked call - a blocked call is not interrupted if all pending actions are recurring actions submitted before the blocked call. New submissions of thread local actions still interrupt blocked calls, no matter if the new thread local actions are recurring or not. When a blocked call is interrupted, all pending actions are processed no matter if they are recurring or not."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The notifications of blocking are especially useful for recurring thread local actions as those actions don't interrupt blocked calls and the notifications inform them about the potentially long time intervals when those actions are not executed due to the blocked calls. Non-recurring thread local actions mainly benefit from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#notifyUnblocked(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction.notifyUnblocked(Access)"}]},{"kind":"text","text":" notification telling them that they interrupted a blocked call. For example, a safepoint sampler might want to exclude the samples from blocked calls."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example Usage:"}]},{"kind":"code","text":"Env env; // language or instrument environment\n\nenv.submitThreadLocal(null, new ThreadLocalAction(true, true) {\n    @Override\n    protected void perform(Access access) {\n        assert access.getThread() == Thread.currentThread();\n    }\n\n    @Override\n    protected void notifyBlocked(Access access) {\n        assert access.getThread() == Thread.currentThread();\n    }\n\n    @Override\n    protected void notifyUnblocked(Access access) {\n        assert access.getThread() == Thread.currentThread();\n    }\n\n    @Override\n    protected String name() {\n       return \"MyAction\"\n    }\n\n});"},{"kind":"paragraph","children":[{"kind":"text","text":"Further information can be found in the "},{"kind":"link","url":"http://github.com/oracle/graal/blob/master/truffle/docs/Safepoints.md","children":[{"kind":"text","text":"safepoint tutorial"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#submitThreadLocal(java.lang.Thread[],com.oracle.truffle.api.ThreadLocalAction)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Env.submitThreadLocal"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#submitThreadLocal(com.oracle.truffle.api.TruffleContext,java.lang.Thread[],com.oracle.truffle.api.ThreadLocalAction)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.TruffleInstrument.Env.submitThreadLocal"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":151}},{"id":"com.oracle.truffle.api.ThreadLocalAction$Access","name":"ThreadLocalAction.Access","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ThreadLocalAction.Access"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.ThreadLocalAction","members":[{"id":"com.oracle.truffle.api.ThreadLocalAction$Access#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"Access","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Access"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"secret"},{"kind":"punct","text":")"}],"params":[{"name":"secret","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Constructor for framework use only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for framework use only."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":246}},{"id":"com.oracle.truffle.api.ThreadLocalAction$Access#<init>(org.graalvm.polyglot.impl.AbstractPolyglotImpl)","anchor":"<init>(org.graalvm.polyglot.impl.AbstractPolyglotImpl)","kind":"constructor","name":"Access","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Access"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractPolyglotImpl","ref":"org.graalvm.polyglot.impl.AbstractPolyglotImpl","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/impl/AbstractPolyglotImpl.html"},{"kind":"punct","text":" "},{"kind":"param","text":"secret"},{"kind":"punct","text":")"}],"params":[{"name":"secret","type":[{"kind":"type","text":"AbstractPolyglotImpl","ref":"org.graalvm.polyglot.impl.AbstractPolyglotImpl","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/impl/AbstractPolyglotImpl.html"}]}],"doc":{"summary":[{"kind":"text","text":"Constructor for framework use only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for framework use only."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":257}},{"id":"com.oracle.truffle.api.ThreadLocalAction$Access#getLocation()","anchor":"getLocation()","kind":"method","name":"getLocation","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current node location executing on this thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current node location executing on this thread. The return value is guaranteed to be non-null."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":269}},{"id":"com.oracle.truffle.api.ThreadLocalAction$Access#getThread()","anchor":"getThread()","kind":"method","name":"getThread","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getThread"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the thread where this thread local action is running on."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the thread where this thread local action is running on. Currently this always returns "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"Thread.currentThread()"}]},{"kind":"text","text":". See the "},{"kind":"link","url":"http://github.com/oracle/graal/blob/master/truffle/docs/Safepoints.md","children":[{"kind":"text","text":"safepoint tutorial"}]},{"kind":"text","text":" for further details on our plans."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":279}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Argument class for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#perform(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction.perform(Access)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Argument class for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#perform(com.oracle.truffle.api.ThreadLocalAction.Access)"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction.perform(Access)"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/ThreadLocalAction.java","line":239}},{"id":"com.oracle.truffle.api.Truffle","name":"Truffle","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Truffle"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.Truffle#getRuntime()","anchor":"getRuntime()","kind":"method","name":"getRuntime","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleRuntime","ref":"com.oracle.truffle.api.TruffleRuntime"},{"kind":"punct","text":" "},{"kind":"name","text":"getRuntime"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleRuntime","ref":"com.oracle.truffle.api.TruffleRuntime"}]},"doc":{"summary":[{"kind":"text","text":"Gets the singleton "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the singleton "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" object."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/Truffle.java","line":71}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Class for obtaining the Truffle runtime singleton object of this virtual machine."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Class for obtaining the Truffle runtime singleton object of this virtual machine."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/Truffle.java","line":59}},{"id":"com.oracle.truffle.api.TruffleContext","name":"TruffleContext","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleContext"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"AutoCloseable","ref":"java.lang.AutoCloseable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AutoCloseable.html"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"AutoCloseable","ref":"java.lang.AutoCloseable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AutoCloseable.html"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.TruffleContext#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":151}},{"id":"com.oracle.truffle.api.TruffleContext#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":170}},{"id":"com.oracle.truffle.api.TruffleContext#getParent()","anchor":"getParent()","kind":"method","name":"getParent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"name","text":"getParent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a parent context, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if there is no parent"}]}]},"doc":{"summary":[{"kind":"text","text":"Get a parent context of this context, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a parent context of this context, if any. This provides the hierarchy of inner contexts."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":185}},{"id":"com.oracle.truffle.api.TruffleContext#enter(com.oracle.truffle.api.nodes.Node)","anchor":"enter(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"enter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"enter"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Enters this context and returns an object representing the previous context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enters this context and returns an object representing the previous context. Calls to enter must be followed by a call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#leave(com.oracle.truffle.api.nodes.Node,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"leave(Node, Object)"}]},{"kind":"text","text":" in a finally block and the previous context must be passed as an argument. It is allowed to enter a context multiple times from the same thread. If the context is currently not entered by any thread then it is allowed be entered by an arbitrary thread. Entering the context from two or more different threads at the same time is possible, unless one of the loaded languages denies access to the thread, in which case an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the current thread was not previously entered in any context, the enter function returns "},{"kind":"code","text":"null"},{"kind":"text","text":". If the return value is not "},{"kind":"code","text":"null"},{"kind":"text","text":", the result of the enter function is unspecified and must only be passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#leave(com.oracle.truffle.api.nodes.Node,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"leave(Node, Object)"}]},{"kind":"text","text":". The result value must not be stored permanently."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An adopted node may be passed to allow perform optimizations on the fast-path. If a "},{"kind":"code","text":"null"},{"kind":"text","text":" node is passed then entering a context will result in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"boundary"}]},{"kind":"text","text":" call in compiled code. If the provided node is not adopted an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Entering a language context is designed for compilation and is most efficient if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" instance is compilation final."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContextSnippets$MyNode#executeInContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleContextSnippets.MyNode.executeInContext"}]}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#leave(com.oracle.truffle.api.nodes.Node,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"leave(Node, Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":228}},{"id":"com.oracle.truffle.api.TruffleContext#initializeInternal(com.oracle.truffle.api.nodes.Node,java.lang.String)","anchor":"initializeInternal(com.oracle.truffle.api.nodes.Node,java.lang.String)","kind":"method","name":"initializeInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"initializeInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"languageId"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant node context used to optimize this operation. Can be "},{"kind":"code","text":"null"},{"kind":"text","text":" if not available."}]}]},{"name":"languageId","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the id of the language to initialize"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the language was initialized, else "},{"kind":"code","text":"false"},{"kind":"text","text":", e.g. if the language as already initialized."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an invalid context is entered or the context is already closed."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given language of the source cannot be accessed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Forces initialization of an internal or public language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Forces initialization of an internal or public language. If the context is not an inner context and e.g. accessed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getContext()"},"code":true,"children":[{"kind":"text","text":"Env.getContext()"}]},{"kind":"text","text":" an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. In such a case "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#initializeLanguage(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"Env.initializeLanguage(LanguageInfo)"}]},{"kind":"text","text":" should be used instead to initialize contexts."}]},{"kind":"paragraph","children":[{"kind":"text","text":"No context or the parent creator context must be entered to initialize languages in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" will be thrown."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":263}},{"id":"com.oracle.truffle.api.TruffleContext#initializePublic(com.oracle.truffle.api.nodes.Node,java.lang.String)","anchor":"initializePublic(com.oracle.truffle.api.nodes.Node,java.lang.String)","kind":"method","name":"initializePublic","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"initializePublic"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"languageId"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant node context used to optimize this operation. Can be "},{"kind":"code","text":"null"},{"kind":"text","text":" if not available."}]}]},{"name":"languageId","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the id of the language to initialize"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the language was initialized, else "},{"kind":"code","text":"false"},{"kind":"text","text":", e.g. if the language as already initialized."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an invalid context is entered or the context is already closed."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given language of the source cannot be accessed."}]}]}],"doc":{"summary":[{"kind":"text","text":"The same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#initializeInternal(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"initializeInternal(Node, String)"}]},{"kind":"text","text":", but only public languages are accessible."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#initializeInternal(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"initializeInternal(Node, String)"}]},{"kind":"text","text":", but only public languages are accessible."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":290}},{"id":"com.oracle.truffle.api.TruffleContext#evalInternal(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.source.Source)","anchor":"evalInternal(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.source.Source)","kind":"method","name":"evalInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"evalInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant node context used to optimize this operation. Can be "},{"kind":"code","text":"null"},{"kind":"text","text":" if not available."}]}]},{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source to evaluate"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given language of the source cannot be accessed."}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an invalid context is entered or the context is already closed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Evaluates a source in an inner context and returns the result."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Evaluates a source in an inner context and returns the result. If the context is not an inner context and e.g. accessed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getContext()"},"code":true,"children":[{"kind":"text","text":"Env.getContext()"}]},{"kind":"text","text":" an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. In such a case "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Env.parseInternal(Source, String...)"}]},{"kind":"text","text":" should be used instead to evaluate sources."}]},{"kind":"paragraph","children":[{"kind":"text","text":"No context or the parent creator context must be entered to evaluate sources in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" will be thrown. In order to ensure that all values are accessed from their respective contexts only, any non-primitive value returned by the evaluation will be wrapped and enter this context for each interop message sent. Parameters to interop messages will enter and leave the parent context when they are accessed. If the result is a primitive value, then the value is directly returned."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method has access to all public and internal languages the creator context has access to. This corresponds to the set of languages returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalLanguages()"},"code":true,"children":[{"kind":"text","text":"Env.getInternalLanguages()"}]},{"kind":"text","text":". If a language cannot be accessed then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. If a language is not yet initialized in the inner context, it will get automatically initialized."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in compiled code paths. This method may be used from multiple threads at the same time. The result of this method must not be cached, instead the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" object should be cached."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":333}},{"id":"com.oracle.truffle.api.TruffleContext#evalPublic(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.source.Source)","anchor":"evalPublic(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.source.Source)","kind":"method","name":"evalPublic","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"evalPublic"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant node context used to optimize this operation. Can be "},{"kind":"code","text":"null"},{"kind":"text","text":" if not available."}]}]},{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source to evaluate"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given language of the source cannot be accessed."}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an invalid context is entered or the context is already closed."}]}]}],"doc":{"summary":[{"kind":"text","text":"The same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#evalInternal(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.source.Source)"},"code":true,"children":[{"kind":"text","text":"evalInternal(Node, Source)"}]},{"kind":"text","text":", but only public languages are accessible."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#evalInternal(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.source.Source)"},"code":true,"children":[{"kind":"text","text":"evalInternal(Node, Source)"}]},{"kind":"text","text":", but only public languages are accessible."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":355}},{"id":"com.oracle.truffle.api.TruffleContext#isEntered()","anchor":"isEntered()","kind":"method","name":"isEntered","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isEntered"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the context is active, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks whether the context is entered on the current thread and the context is the currently active context on this thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether the context is entered on the current thread and the context is the currently active context on this thread. There can be multiple contexts "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isActive()"},"code":true,"children":[{"kind":"text","text":"active"}]},{"kind":"text","text":" on a single thread, but this method only returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if it is the top-most context. This method is thread-safe and may be used from multiple threads."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":375}},{"id":"com.oracle.truffle.api.TruffleContext#isActive()","anchor":"isActive()","kind":"method","name":"isActive","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isActive"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the context is currently active on the current thread, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the context is currently active on the current thread, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Checks whether the context has been previously entered by this thread with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"enter(Node)"}]},{"kind":"text","text":" and hasn't been left yet with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#leave(com.oracle.truffle.api.nodes.Node,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"leave(Node, java.lang.Object)"}]},{"kind":"text","text":" methods. Multiple contexts can be active on a single thread. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isEntered()"},"code":true,"children":[{"kind":"text","text":"isEntered()"}]},{"kind":"text","text":" for checking whether it is the top-most entered context. This method is thread-safe and may be used from multiple threads."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":395}},{"id":"com.oracle.truffle.api.TruffleContext#isClosed()","anchor":"isClosed()","kind":"method","name":"isClosed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isClosed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the context was closed else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the context was closed else "},{"kind":"code","text":"false"},{"kind":"text","text":". A context may be closed if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#close()"},"code":true,"children":[{"kind":"text","text":"close()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"closeCancelled(Node, String)"}]},{"kind":"text","text":", or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeExited(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"closeExited(Node, int)"}]},{"kind":"text","text":" was called previously."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":412}},{"id":"com.oracle.truffle.api.TruffleContext#isCancelling()","anchor":"isCancelling()","kind":"method","name":"isCancelling","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCancelling"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the context is being cancelled else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the context is being cancelled else "},{"kind":"code","text":"false"},{"kind":"text","text":". A context may be in the process of cancelling if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"closeCancelled(Node, String)"}]},{"kind":"text","text":" was called previously."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":430}},{"id":"com.oracle.truffle.api.TruffleContext#isExiting()","anchor":"isExiting()","kind":"method","name":"isExiting","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isExiting"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the context is being hard-exited else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the context is being hard-exited else "},{"kind":"code","text":"false"},{"kind":"text","text":". A context may be in the process of exit if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeExited(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"closeExited(Node, int)"}]},{"kind":"text","text":" was called previously."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":448}},{"id":"com.oracle.truffle.api.TruffleContext#pause()","anchor":"pause()","kind":"method","name":"pause","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Future","ref":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Void","ref":"java.lang.Void","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Void.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"pause"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Future","ref":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Void","ref":"java.lang.Void","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Void.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a future that can be used to wait for the execution to be paused. Also, the future is used to resume execution by passing it to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#resume(java.util.concurrent.Future)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.resume(Future)"}]},{"kind":"text","text":" method."}]}]},"doc":{"summary":[{"kind":"text","text":"Pause execution on all threads for this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Pause execution on all threads for this context. This call does not wait for the threads to be actually paused. Instead, a future is returned that can be used to wait for the execution to be paused. The future is completed when all active threads are paused. New threads entered after this point are paused immediately after entering until "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#resume(java.util.concurrent.Future)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.resume(Future)"}]},{"kind":"text","text":" is called."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":472}},{"id":"com.oracle.truffle.api.TruffleContext#resume(java.util.concurrent.Future)","anchor":"resume(java.util.concurrent.Future)","kind":"method","name":"resume","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"resume"},{"kind":"punct","text":"("},{"kind":"type","text":"Future","ref":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Void","ref":"java.lang.Void","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Void.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"pauseFuture"},{"kind":"punct","text":")"}],"params":[{"name":"pauseFuture","type":[{"kind":"type","text":"Future","ref":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Void","ref":"java.lang.Void","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Void.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"pause future returned by a previous call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#pause()"},"code":true,"children":[{"kind":"text","text":"TruffleContext.pause()"}]},{"kind":"text","text":"."}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case the passed pause future was not obtained by a previous call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#pause()"},"code":true,"children":[{"kind":"text","text":"TruffleContext.pause()"}]},{"kind":"text","text":" on this context."}]}]}],"doc":{"summary":[{"kind":"text","text":"Resume previously paused execution on all threads for this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resume previously paused execution on all threads for this context. The execution will not resume if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#pause()"},"code":true,"children":[{"kind":"text","text":"TruffleContext.pause()"}]},{"kind":"text","text":" was called multiple times and for some of the other calls resume was not called yet."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":496}},{"id":"com.oracle.truffle.api.TruffleContext#leave(com.oracle.truffle.api.nodes.Node,java.lang.Object)","anchor":"leave(com.oracle.truffle.api.nodes.Node,java.lang.Object)","kind":"method","name":"leave","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"leave"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"prev"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"prev","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous context returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"enter(Node)"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Leaves this context and sets the previous context as the new current context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Leaves this context and sets the previous context as the new current context."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An adopted node may be passed to allow perform optimizations on the fast-path. If a "},{"kind":"code","text":"null"},{"kind":"text","text":" node is passed then entering a context will result in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"boundary"}]},{"kind":"text","text":" call in compiled code. If the node is not adopted an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Leaving a language context is designed for compilation and is most efficient if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" instance is compilation final."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"enter(Node)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":522}},{"id":"com.oracle.truffle.api.TruffleContext#leaveAndEnter(com.oracle.truffle.api.nodes.Node,java.util.function.Supplier)","anchor":"leaveAndEnter(com.oracle.truffle.api.nodes.Node,java.util.function.Supplier)","kind":"method","name":"leaveAndEnter","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"leaveAndEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"runWhileOutsideContext"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an adopted node or "},{"kind":"code","text":"null"}]}]},{"name":"runWhileOutsideContext","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the supplier to run while having left this context"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Leaves this context, runs the passed supplier and reenters the context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Leaves this context, runs the passed supplier and reenters the context. This is useful when the current thread must wait for another thread (and does not need to access the context to do so) and triggering multithreading is not desired, for instance when implementing coroutines with threads. The supplier cannot access the context and must not run any guest language code or invoke interoperability messages."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The supplier will typically notify another thread that it can now enter the context without triggering multithreading and then wait for some thread to leave the context before exiting the supplier and reentering the context (again to avoid triggering multithreading)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An adopted node may be passed to allow perform optimizations on the fast-path. If a "},{"kind":"code","text":"null"},{"kind":"text","text":" node is passed then entering a context will result in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"boundary"}]},{"kind":"text","text":" call in compiled code. If the provided node is not adopted an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Entering a language context is designed for compilation and is most efficient if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" instance is compilation final."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#leaveAndEnter(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T)"},"code":true,"children":[{"kind":"text","text":"leaveAndEnter(Node, Interrupter, InterruptibleFunction, Object)"}]},{"kind":"text","text":" instead."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":560}},{"id":"com.oracle.truffle.api.TruffleContext#leaveAndEnter(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T)","anchor":"leaveAndEnter(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T)","kind":"method","name":"leaveAndEnter","modifiers":["public"],"typeParams":[{"name":"T"},{"name":"R"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"name","text":"leaveAndEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"},{"kind":"punct","text":" "},{"kind":"param","text":"interrupter"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.InterruptibleFunction","ref":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"param","text":"interruptible"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an adopted node or "},{"kind":"code","text":"null"}]}]},{"name":"interrupter","type":[{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an interrupter used to interrupt the interruptible function when, e.g., the context is cancelled. The interrupter is also used to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter#resetInterrupted()"},"code":true,"children":[{"kind":"text","text":"reset"}]},{"kind":"text","text":" the interrupted state when the context is reentered."}]}]},{"name":"interruptible","type":[{"kind":"type","text":"TruffleSafepoint.InterruptibleFunction","ref":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the interruptible function to run while having left this context. This function is run at most once."}]}]},{"name":"object","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"R"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"return value of the interruptible, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the interruptibe throws an "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":" without the context being cancelled or exited."}]}]},"doc":{"summary":[{"kind":"text","text":"Leaves this context, runs the passed interruptible function and reenters the context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Leaves this context, runs the passed interruptible function and reenters the context. This is useful when the current thread must wait for another thread (and does not need to access the context to do so) and triggering multithreading is not desired, for instance when implementing coroutines with threads. The function cannot access the context and must not run any guest language code or invoke interoperability messages."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The function will typically notify another thread that it can now enter the context without triggering multithreading and then wait for some thread to leave the context before exiting the function and reentering the context (again to avoid triggering multithreading)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An adopted node may be passed to allow performing optimizations on the fast-path."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":603}},{"id":"com.oracle.truffle.api.TruffleContext#close()","anchor":"close()","kind":"method","name":"close","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"close"},{"kind":"punct","text":"()"}],"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the close operation is not supported on this context"}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isActive()"},"code":true,"children":[{"kind":"text","text":"active"}]},{"kind":"text","text":"."}]}]}],"overrides":{"id":"java.lang.AutoCloseable#close()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AutoCloseable.html#close()"},"doc":{"summary":[{"kind":"text","text":"Closes this context and disposes its resources."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Closes this context and disposes its resources. Closes this context and disposes its resources. A context cannot be closed if it is currently "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" or active by any thread. If a closed context is attempted to be accessed or entered, then an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. If the context is not closed explicitly, then it is automatically closed together with the parent context. If an attempt to close a context was successful then consecutive calls to close have no effect."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"closeCancelled(Node, String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeResourceExhausted(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"closeResourceExhausted(Node, String)"}]}]]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":650}},{"id":"com.oracle.truffle.api.TruffleContext#closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)","anchor":"closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)","kind":"method","name":"closeCancelled","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"closeCancelled"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"closeLocation"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"closeLocation","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node where the close occurred. If the context is currently entered on the thread, then this node will be used as location, for the exception thrown. If the context is not entered, then the closeLocation parameter will be ignored."}]}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"exception text for humans provided to the embedder and tools that observe the cancellation."}]}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the close operation is not supported on this context"}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isActive()"},"code":true,"children":[{"kind":"text","text":"active"}]},{"kind":"text","text":" but not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isEntered()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" on the current thread."}]}]}],"doc":{"summary":[{"kind":"text","text":"Force closes the context as cancelled and stops all the execution on all active threads using a special "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" cancel exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Force closes the context as cancelled and stops all the execution on all active threads using a special "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" cancel exception. If this context is not currently "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isEntered()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" on the current thread then this method waits until the close operation is complete and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isClosed()"},"code":true,"children":[{"kind":"text","text":"isClosed()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":", else it throws the cancelled exception upon its completion of this method. If an attempt to close a context was successful then consecutive calls to close have no effect."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The throwing of the special "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" cancel exception also applies to any guest code run during "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.finalizeContext(Object)"}]},{"kind":"text","text":" which means that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.finalizeContext(Object)"}]},{"kind":"text","text":" cannot run guest code during the cancel operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If forced and this context currently "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isEntered()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" on the current thread and no other context is entered on the current thread then this method directly throws a "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" error instead of completing to indicate that the current thread should be stopped. The thrown "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" must not be caught by the guest language and freely propagated to the guest application to cancel the execution on the current thread. Please note that this means that the guest language's finally blocks must not be executed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isActive()"},"code":true,"children":[{"kind":"text","text":"active"}]},{"kind":"text","text":" on the current thread, but not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isEntered()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":", then an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown, as parent contexts that are active on the current thread cannot be cancelled."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#close()"},"code":true,"children":[{"kind":"text","text":"close()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeResourceExhausted(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"closeResourceExhausted(Node, String)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":702}},{"id":"com.oracle.truffle.api.TruffleContext#closeExited(com.oracle.truffle.api.nodes.Node,int)","anchor":"closeExited(com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"closeExited","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"closeExited"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"exitLocation"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"exitCode"},{"kind":"punct","text":")"}],"params":[{"name":"exitLocation","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node where the exit occurred."}]}]},{"name":"exitCode","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"exitCode provided to the embedder and tools that observe the exit."}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the context is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isEntered()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" on the current thread."}]}]}],"doc":{"summary":[{"kind":"text","text":"Initiates force close of the context as exited - "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD"},"code":true,"children":[{"kind":"text","text":"hard exit"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Initiates force close of the context as exited - "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD"},"code":true,"children":[{"kind":"text","text":"hard exit"}]},{"kind":"text","text":". Requires the context to be entered on the current thread. Languages are first notified by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.exitContext(Object, TruffleLanguage.ExitMode, int)"}]},{"kind":"text","text":" and then the closing of the context is initiated. Execution on all active threads including the current thread is stopped by throwing a special "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" exit exception. This method does not wait for the execution on other threads to be stopped, it throws the "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" exception as soon as possible. To exit threads reliably, guest languages need to ensure that the "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" is always immediately rethrown and guest language exception handlers and finally blocks are not run."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The throwing of the special "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" exit exception also applies to any guest code run during "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.finalizeContext(Object)"}]},{"kind":"text","text":" which means that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.finalizeContext(Object)"}]},{"kind":"text","text":" cannot run guest code during hard exit."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The exit code can be specified only once and the first call to this method also executes the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)"},"code":true,"children":[{"kind":"text","text":"exit notifications"}]},{"kind":"text","text":" on the same thread. Further calls to this method will ensure that the following guest code on the calling thread is not executed by throwing the "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" exit exception, and the exit location is used as the stopping point of the thread, but the passed exit code is ignored and exit notifications are not run."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In case the context is in one of the following states"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"the context is being closed and the finalization stage has already begun ("},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.finalizeContext(Object)"}]},{"kind":"text","text":" is being executed for all language contexts)."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"the context is already closed"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"the context threads are being unwound as a part of the cancelling process"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"the context threads are being unwound as a part of the hard exit process that comes after exit notifications"}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"then calling this method has no effect."}]}],"see":[[{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/Exit.md","children":[{"kind":"text","text":"Context Exit"}]}]]},"since":"22.0","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":761}},{"id":"com.oracle.truffle.api.TruffleContext#closeResourceExhausted(com.oracle.truffle.api.nodes.Node,java.lang.String)","anchor":"closeResourceExhausted(com.oracle.truffle.api.nodes.Node,java.lang.String)","kind":"method","name":"closeResourceExhausted","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"closeResourceExhausted"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"doc":{"summary":[{"kind":"text","text":"Force closes the context due to resource exhaustion."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Force closes the context due to resource exhaustion. This method is equivalent to calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"closeCancelled(location, message)"}]},{"kind":"text","text":" except in addition the thrown "},{"kind":"link","target":{"id":"org.graalvm.polyglot.PolyglotException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html"},"code":true,"children":[{"kind":"text","text":"PolyglotException"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"org.graalvm.polyglot.PolyglotException#isResourceExhausted()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html#isResourceExhausted()"},"code":true,"children":[{"kind":"text","text":"PolyglotException.isResourceExhausted()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.PolyglotException#isResourceExhausted()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html#isResourceExhausted()"},"code":true,"children":[{"kind":"text","text":"PolyglotException.isResourceExhausted()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#close()"},"code":true,"children":[{"kind":"text","text":"close()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"closeCancelled(Node, String)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":786}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A handle on a context of a set of Truffle languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A handle on a context of a set of Truffle languages. This context handle is designed to be used by Truffle guest language implementations. The Truffle context can be used to create inner contexts for isolated execution of guest language code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" consists of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"language context"}]},{"kind":"text","text":" instance for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalLanguages()"},"code":true,"children":[{"kind":"text","text":"installed language"}]},{"kind":"text","text":". The current language context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":" eagerly and can be accessed using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"context reference"}]},{"kind":"text","text":" after the context was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The configuration for each language context is inherited from its parent/creator context. In addition to that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#config(java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"config"}]},{"kind":"text","text":" parameters can be passed to new language context instance of the current language. The configuration of other installed languages cannot be modified. To run guest language code in a context, the context needs to be first "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" and then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#leave(com.oracle.truffle.api.nodes.Node,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"left"}]},{"kind":"text","text":". The context should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#close()"},"code":true,"children":[{"kind":"text","text":"closed"}]},{"kind":"text","text":" when it is no longer needed. If the context is not closed explicitly, then it is automatically closed together with the parent context."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","language":"java","text":"final class MyNode extends Node {\n    void executeInContext(Env env) {\n        MyContext outerLangContext = getContext(this);\n\n        TruffleContext innerContext = env.newInnerContextBuilder().\n                        initializeCreatorContext(true).build();\n        Object p = innerContext.enter(this);\n        try {\n            /*\n             * Here the this node cannot be passed otherwise an\n             * invalid sharing error would occur.\n             */\n            MyContext innerLangContext = getContext(null);\n\n            assert outerLangContext != innerLangContext;\n        } finally {\n            innerContext.leave(this, p);\n        }\n        assert outerLangContext == getContext(this);\n        innerContext.close();\n    }\n}\nprivate static ContextReference<MyContext> REFERENCE\n             = ContextReference.create(MyLanguage.class);\n\nprivate static MyContext getContext(Node node) {\n    return REFERENCE.get(node);\n}"}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":93}},{"id":"com.oracle.truffle.api.TruffleContext$Builder","name":"TruffleContext.Builder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleContext.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleContext","members":[{"id":"com.oracle.truffle.api.TruffleContext$Builder#config(java.lang.String,java.lang.Object)","anchor":"config(java.lang.String,java.lang.Object)","kind":"method","name":"config","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"config"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets a config parameter that the child context of this language can access using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getConfig()"},"code":true,"children":[{"kind":"text","text":"Env.getConfig()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a config parameter that the child context of this language can access using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getConfig()"},"code":true,"children":[{"kind":"text","text":"Env.getConfig()"}]},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":852}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#initializeCreatorContext(boolean)","anchor":"initializeCreatorContext(boolean)","kind":"method","name":"initializeCreatorContext","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"initializeCreatorContext"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies whether the creating language context should be initialized in the new context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies whether the creating language context should be initialized in the new context. By default the creating language won't get initialized."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":867}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#out(java.io.OutputStream)","anchor":"out(java.io.OutputStream)","kind":"method","name":"out","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"out"},{"kind":"punct","text":"("},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"out"},{"kind":"punct","text":")"}],"params":[{"name":"out","type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets the standard output stream to be used for the context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the standard output stream to be used for the context. If not set or set to "},{"kind":"code","text":"null"},{"kind":"text","text":", then the standard output stream is inherited from the outer context."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":878}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#err(java.io.OutputStream)","anchor":"err(java.io.OutputStream)","kind":"method","name":"err","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"err"},{"kind":"punct","text":"("},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"err"},{"kind":"punct","text":")"}],"params":[{"name":"err","type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets the error output stream to be used for the context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the error output stream to be used for the context. If not set or set to "},{"kind":"code","text":"null"},{"kind":"text","text":", then the standard error stream is inherited from the outer context. is used."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":891}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#in(java.io.InputStream)","anchor":"in(java.io.InputStream)","kind":"method","name":"in","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"in"},{"kind":"punct","text":"("},{"kind":"type","text":"InputStream","ref":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"in"},{"kind":"punct","text":")"}],"params":[{"name":"in","type":[{"kind":"type","text":"InputStream","ref":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets the input stream to be used for the context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the input stream to be used for the context. If not set or set to "},{"kind":"code","text":"null"},{"kind":"text","text":", then the standard input stream is inherited from the outer context."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":903}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#forceSharing(java.lang.Boolean)","anchor":"forceSharing(java.lang.Boolean)","kind":"method","name":"forceSharing","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"forceSharing"},{"kind":"punct","text":"("},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Force enables or disables code sharing for this inner context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Force enables or disables code sharing for this inner context. By default this option is set to "},{"kind":"code","text":"null"},{"kind":"text","text":" which instructs this context to inherit sharing configuration from the outer context."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If sharing is explicitly set to "},{"kind":"code","text":"true"},{"kind":"text","text":" then code may be shared with all contexts compatible with the configuration of this inner context. Code may also be shared with the outer context if the outer context supports code sharing and its sharing layer is compatible. This may be useful to force sharing for multiple created inner contexts if the outer context configuration disabled sharing."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If sharing is explicitly set to "},{"kind":"code","text":"false"},{"kind":"text","text":" then no code will be shared even if the outer context has code sharing enabled and supported by the language. This may be useful to avoid runtime profile pollution through code run in an inner context."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If multiple languages are potentially used it is recommended but not required to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"permitted languages"}]},{"kind":"text","text":" to specify all used languages ahead of time. This allows to validate sharing layer compatibility eagerly and avoids late failures when a language is initialized lazily and is not compatible with the sharing layer. Use "},{"kind":"code","text":"--engine.TraceSharing"},{"kind":"text","text":" for details on whether the sharing configuration is compatible."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":933}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#option(java.lang.String,java.lang.String)","anchor":"option(java.lang.String,java.lang.String)","kind":"method","name":"option","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"option"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"value","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Overrides an option of the inner context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overrides an option of the inner context. Only language options may be changed. Engine or instrument options cannot be modified after their initial configuration in the outer context. All options for inner contexts are inherited from the outer context, but options set for the inner context have precedence over options set in the outer context."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is currently only supported if the outer context is configured with "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowInnerContextOptions(boolean)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowInnerContextOptions(boolean)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowInnerContextOptions(boolean)"}]},{"kind":"text","text":". If all privileges are denied then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" will be thrown when building the inner context. To find out whether the inner context option privilege has been granted languages may use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isInnerContextOptionsAllowed()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Env.isInnerContextOptionsAllowed()"}]},{"kind":"text","text":"."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":953}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)","anchor":"inheritAllAccess(boolean)","kind":"method","name":"inheritAllAccess","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"inheritAllAccess"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"If set to "},{"kind":"code","text":"true"},{"kind":"text","text":" allows all access privileges that were also granted to the outer context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If set to "},{"kind":"code","text":"true"},{"kind":"text","text":" allows all access privileges that were also granted to the outer context. If set to "},{"kind":"code","text":"false"},{"kind":"text","text":" then all privileges are denied in the created context independent of the outer context. By default all privileges are denied and not inherited."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This privilege enables inheritance for the following privileges:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowCreateThread(boolean)"},"code":true,"children":[{"kind":"text","text":"allowCreateThread(boolean)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowNativeAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"allowNativeAccess(boolean)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowIO(boolean)"},"code":true,"children":[{"kind":"text","text":"allowIO(boolean)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowHostClassLookup(boolean)"},"code":true,"children":[{"kind":"text","text":"allowHostClassLookup(boolean)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowHostClassLoading(boolean)"},"code":true,"children":[{"kind":"text","text":"allowHostClassLoading(boolean)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowCreateProcess(boolean)"},"code":true,"children":[{"kind":"text","text":"allowCreateProcess(boolean)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowPolyglotAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"allowPolyglotAccess(boolean)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowInheritEnvironmentAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"allowInheritEnvironmentAccess(boolean)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowInnerContextOptions(boolean)"},"code":true,"children":[{"kind":"text","text":"allowInnerContextOptions(boolean)"}]}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If an individual privilege was set explicitly then the value of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]},{"kind":"text","text":" is ignored for that privilege. For example it is possible to set "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]},{"kind":"text","text":" to "},{"kind":"code","text":"true"},{"kind":"text","text":" but set "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowNativeAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"allowNativeAccess(boolean)"}]},{"kind":"text","text":" to "},{"kind":"code","text":"false"},{"kind":"text","text":" to allow inheritance of all but native access rights from the outer to the inner context."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In case new privileges are added in the future, then this method will allow or disallow inheritance for the new privileges as well. For security sensitive use-cases it is recommended to keep the default value of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]},{"kind":"text","text":" and individually specify allowed privileges for this context. For non security sensitive use-cases it is recommended to set this flag to "},{"kind":"code","text":"true"},{"kind":"text","text":". Following this recommendation is important in case new privileges are added to the platform."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":998}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowCreateThread(boolean)","anchor":"allowCreateThread(boolean)","kind":"method","name":"allowCreateThread","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowCreateThread"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows or denies creating threads for this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows or denies creating threads for this context. Set to "},{"kind":"code","text":"true"},{"kind":"text","text":" to inherit access privilege from the outer context or "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny access for this context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowCreateThread(boolean)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowCreateThread(boolean)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowCreateThread(boolean)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1012}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowNativeAccess(boolean)","anchor":"allowNativeAccess(boolean)","kind":"method","name":"allowNativeAccess","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowNativeAccess"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows or denies using native access in this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows or denies using native access in this context. Set to "},{"kind":"code","text":"true"},{"kind":"text","text":" to inherit access privilege from the outer context or "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny access for this context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowNativeAccess(boolean)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowNativeAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowNativeAccess(boolean)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1026}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowIO(boolean)","anchor":"allowIO(boolean)","kind":"method","name":"allowIO","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowIO"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows or denies using IO in this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows or denies using IO in this context. Set to "},{"kind":"code","text":"true"},{"kind":"text","text":" to inherit access privilege from the outer context or "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny access for this context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowIO(org.graalvm.polyglot.io.IOAccess)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowIO(org.graalvm.polyglot.io.IOAccess)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowIO(org.graalvm.polyglot.io.IOAccess)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1039}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowHostClassLoading(boolean)","anchor":"allowHostClassLoading(boolean)","kind":"method","name":"allowHostClassLoading","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowHostClassLoading"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows or denies loading new host classes in this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows or denies loading new host classes in this context. Set to "},{"kind":"code","text":"true"},{"kind":"text","text":" to inherit access privilege from the outer context or "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny access for this context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowHostAccess(org.graalvm.polyglot.HostAccess)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowHostAccess(org.graalvm.polyglot.HostAccess)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowHostAccess(org.graalvm.polyglot.HostAccess)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1053}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowHostClassLookup(boolean)","anchor":"allowHostClassLookup(boolean)","kind":"method","name":"allowHostClassLookup","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowHostClassLookup"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows or denies loading new host classes in this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows or denies loading new host classes in this context. Set to "},{"kind":"code","text":"true"},{"kind":"text","text":" to inherit access privilege from the outer context or "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny access for this context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowHostAccess(org.graalvm.polyglot.HostAccess)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowHostAccess(org.graalvm.polyglot.HostAccess)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowHostAccess(org.graalvm.polyglot.HostAccess)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1067}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowCreateProcess(boolean)","anchor":"allowCreateProcess(boolean)","kind":"method","name":"allowCreateProcess","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowCreateProcess"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows or denies creating processes in this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows or denies creating processes in this context. Set to "},{"kind":"code","text":"true"},{"kind":"text","text":" to inherit access privilege from the outer context or "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny access for this context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowCreateProcess(boolean)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowCreateProcess(boolean)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowCreateProcess(boolean)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1081}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowInnerContextOptions(boolean)","anchor":"allowInnerContextOptions(boolean)","kind":"method","name":"allowInnerContextOptions","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowInnerContextOptions"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows or denies options for inner contexts created by this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows or denies options for inner contexts created by this context. Set to "},{"kind":"code","text":"true"},{"kind":"text","text":" to inherit access privilege from the outer context or "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny access for this context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowCreateProcess(boolean)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowCreateProcess(boolean)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowCreateProcess(boolean)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1095}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowPolyglotAccess(boolean)","anchor":"allowPolyglotAccess(boolean)","kind":"method","name":"allowPolyglotAccess","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowPolyglotAccess"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows or denies access to polyglot languages in this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows or denies access to polyglot languages in this context. Set to "},{"kind":"code","text":"true"},{"kind":"text","text":" to inherit access privilege from the outer context or "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny access for this context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowPolyglotAccess(org.graalvm.polyglot.PolyglotAccess)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowPolyglotAccess(org.graalvm.polyglot.PolyglotAccess)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowPolyglotAccess(org.graalvm.polyglot.PolyglotAccess)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1109}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#threadAccessDeniedHandler(java.util.function.Consumer)","anchor":"threadAccessDeniedHandler(java.util.function.Consumer)","kind":"method","name":"threadAccessDeniedHandler","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"threadAccessDeniedHandler"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"handler"},{"kind":"punct","text":")"}],"params":[{"name":"handler","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"callback (that gets a reason as an input) that either throws an exception or returns to signal a "},{"kind":"strong","children":[{"kind":"text","text":"request for retry"}]}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Installs handler to control what happens on multiple thread access."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Installs handler to control what happens on multiple thread access. When multiple threads are accessing a context which isn't ready for multithreaded access an exception is yielded by default. By installing this "},{"kind":"code","text":"handler"},{"kind":"text","text":" one can control what shall happen. Either to throw exception (with the provided reason) or to resolve the multithreaded situation somehow and return to retry the thread access again."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1126}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#allowInheritEnvironmentAccess(boolean)","anchor":"allowInheritEnvironmentAccess(boolean)","kind":"method","name":"allowInheritEnvironmentAccess","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowInheritEnvironmentAccess"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows or denies access to the parent context's environment in this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows or denies access to the parent context's environment in this context. Set to "},{"kind":"code","text":"true"},{"kind":"text","text":" to inherit variables from the outer context or "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny inheritance for this context. Environment variables can be set for the inner context with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#environment(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"environment(String, String)"}]},{"kind":"text","text":" even if inheritance is disabled. If inheritance is enabled, environment variables specified for the inner context override environment variables of the outer context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"inheritAllAccess(boolean)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowEnvironmentAccess(org.graalvm.polyglot.EnvironmentAccess)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowEnvironmentAccess(org.graalvm.polyglot.EnvironmentAccess)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowEnvironmentAccess(org.graalvm.polyglot.EnvironmentAccess)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1143}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#environment(java.lang.String,java.lang.String)","anchor":"environment(java.lang.String,java.lang.String)","kind":"method","name":"environment","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"environment"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the environment variable name"}]}]},{"name":"value","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the environment variable value"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets an environment variable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets an environment variable."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1155}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#environment(java.util.Map)","anchor":"environment(java.util.Map)","kind":"method","name":"environment","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"environment"},{"kind":"punct","text":"("},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"env"},{"kind":"punct","text":")"}],"params":[{"name":"env","type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"environment variables"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Shortcut for setting multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#environment(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"environment variables"}]},{"kind":"text","text":" using a map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shortcut for setting multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#environment(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"environment variables"}]},{"kind":"text","text":" using a map. All values of the provided map must be non-null."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#environment(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"To set a single environment variable."}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1173}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#timeZone(java.time.ZoneId)","anchor":"timeZone(java.time.ZoneId)","kind":"method","name":"timeZone","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"timeZone"},{"kind":"punct","text":"("},{"kind":"type","text":"ZoneId","ref":"java.time.ZoneId","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html"},{"kind":"punct","text":" "},{"kind":"param","text":"zone"},{"kind":"punct","text":")"}],"params":[{"name":"zone","type":[{"kind":"type","text":"ZoneId","ref":"java.time.ZoneId","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets the default time zone to be used for this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the default time zone to be used for this context. If not set, or explicitly set to "},{"kind":"code","text":"null"},{"kind":"text","text":" then the time zone of the outer context will be used."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1187}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#arguments(java.lang.String,java.lang.String[])","anchor":"arguments(java.lang.String,java.lang.String[])","kind":"method","name":"arguments","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"arguments"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"args"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language id of the primary language."}]}]},{"name":"args","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an array of arguments passed to the guest language program."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an invalid language id was specified."}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the guest language application arguments for a language context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the guest language application arguments for a language context. Application arguments are typically made available to guest language implementations. Passing no arguments to a language is equivalent to providing an empty arguments array."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1202}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#options(java.util.Map)","anchor":"options(java.util.Map)","kind":"method","name":"options","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"options"},{"kind":"punct","text":"("},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"options"},{"kind":"punct","text":")"}],"params":[{"name":"options","type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets multiple options using a map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets multiple options using a map. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#option(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"option(String, String)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1224}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#onCancelled(java.lang.Runnable)","anchor":"onCancelled(java.lang.Runnable)","kind":"method","name":"onCancelled","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"onCancelled"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"r"},{"kind":"punct","text":")"}],"params":[{"name":"r","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies a "},{"kind":"link","target":{"id":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},"code":true,"children":[{"kind":"text","text":"Runnable"}]},{"kind":"text","text":" that will be executed when the new context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"cancelled"}]},{"kind":"text","text":" and the cancel exception is about to reach the outer context, or when some operation on the new context is attempted while the context is already cancelled."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a "},{"kind":"link","target":{"id":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},"code":true,"children":[{"kind":"text","text":"Runnable"}]},{"kind":"text","text":" that will be executed when the new context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"cancelled"}]},{"kind":"text","text":" and the cancel exception is about to reach the outer context, or when some operation on the new context is attempted while the context is already cancelled. However, the runnable will only be executed if the outer context is not cancelled. The purpose of the runnable is to allow throwing a custom guest exception before the cancel exception reaches the outer context, so that the outer context can properly handle the exception. In case the runnable does not throw any exception, an internal error is thrown (should not be caught)."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1247}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#onExited(java.util.function.Consumer)","anchor":"onExited(java.util.function.Consumer)","kind":"method","name":"onExited","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"onExited"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"r"},{"kind":"punct","text":")"}],"params":[{"name":"r","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies a "},{"kind":"link","target":{"id":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},"code":true,"children":[{"kind":"text","text":"Consumer"}]},{"kind":"text","text":" that will be executed when the new context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeExited(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"hard-exited"}]},{"kind":"text","text":" and the exit exception is about to reach the outer context, or when some operation on the new context is attempted while the context is already hard-exited."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a "},{"kind":"link","target":{"id":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},"code":true,"children":[{"kind":"text","text":"Consumer"}]},{"kind":"text","text":" that will be executed when the new context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeExited(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"hard-exited"}]},{"kind":"text","text":" and the exit exception is about to reach the outer context, or when some operation on the new context is attempted while the context is already hard-exited. However, the consumer will only be executed if the outer context is not hard-exited. The purpose of the consumer is to allow throwing a custom guest exception before the exit exception reaches the outer context, so that the outer context can properly handle the exception. In case the consumer does not throw any exception, an internal error is thrown (should not be caught). The single input argument to the "},{"kind":"link","target":{"id":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},"code":true,"children":[{"kind":"text","text":"Consumer"}]},{"kind":"text","text":" is the exit code."}]}],"see":[[{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/Exit.md","children":[{"kind":"text","text":"Context Exit"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1270}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#onClosed(java.lang.Runnable)","anchor":"onClosed(java.lang.Runnable)","kind":"method","name":"onClosed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"onClosed"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"r"},{"kind":"punct","text":")"}],"params":[{"name":"r","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies a "},{"kind":"link","target":{"id":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},"code":true,"children":[{"kind":"text","text":"Runnable"}]},{"kind":"text","text":" that will be executed when some operation on the new context attempted while the context is already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#close()"},"code":true,"children":[{"kind":"text","text":"closed"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a "},{"kind":"link","target":{"id":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},"code":true,"children":[{"kind":"text","text":"Runnable"}]},{"kind":"text","text":" that will be executed when some operation on the new context attempted while the context is already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#close()"},"code":true,"children":[{"kind":"text","text":"closed"}]},{"kind":"text","text":". However, the runnable will only be executed if the outer context is not closed. The purpose of the runnable is to allow throwing a custom guest exception before the close exception reaches the outer context, so that the outer context can properly handle the exception. In case the runnable does not throw any exception, an internal error is thrown (should not be caught)."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1287}},{"id":"com.oracle.truffle.api.TruffleContext$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]},"doc":{"summary":[{"kind":"text","text":"Builds the new context instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds the new context instance."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":1297}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder class to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder class to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" instances."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleContext.java","line":806}},{"id":"com.oracle.truffle.api.TruffleFile","name":"TruffleFile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleFile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFileLegacy","ref":"com.oracle.truffle.api.TruffleFileLegacy"}],"superclass":[{"kind":"type","text":"TruffleFileLegacy","ref":"com.oracle.truffle.api.TruffleFileLegacy"}],"ancestors":[{"id":"com.oracle.truffle.api.TruffleFileLegacy"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.TruffleFile#LAST_MODIFIED_TIME","anchor":"LAST_MODIFIED_TIME","kind":"field","name":"LAST_MODIFIED_TIME","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"LAST_MODIFIED_TIME"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The file's last modified time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The file's last modified time. Supported by all filesystems."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":118}},{"id":"com.oracle.truffle.api.TruffleFile#LAST_ACCESS_TIME","anchor":"LAST_ACCESS_TIME","kind":"field","name":"LAST_ACCESS_TIME","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"LAST_ACCESS_TIME"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The file's last access time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The file's last access time. Supported by all filesystems."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":125}},{"id":"com.oracle.truffle.api.TruffleFile#CREATION_TIME","anchor":"CREATION_TIME","kind":"field","name":"CREATION_TIME","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"CREATION_TIME"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The file's creation time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The file's creation time. Supported by all filesystems."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":132}},{"id":"com.oracle.truffle.api.TruffleFile#IS_REGULAR_FILE","anchor":"IS_REGULAR_FILE","kind":"field","name":"IS_REGULAR_FILE","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"IS_REGULAR_FILE"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"Represents the file a regular file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the file a regular file. Supported by all filesystems."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":139}},{"id":"com.oracle.truffle.api.TruffleFile#IS_DIRECTORY","anchor":"IS_DIRECTORY","kind":"field","name":"IS_DIRECTORY","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"IS_DIRECTORY"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"Represents the file a directory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the file a directory. Supported by all filesystems."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":146}},{"id":"com.oracle.truffle.api.TruffleFile#IS_SYMBOLIC_LINK","anchor":"IS_SYMBOLIC_LINK","kind":"field","name":"IS_SYMBOLIC_LINK","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"IS_SYMBOLIC_LINK"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"Represents the file a symbolic link."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the file a symbolic link. Supported by all filesystems."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":153}},{"id":"com.oracle.truffle.api.TruffleFile#IS_OTHER","anchor":"IS_OTHER","kind":"field","name":"IS_OTHER","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"IS_OTHER"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"Represents the file a special file (device, named pipe)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the file a special file (device, named pipe). Supported by all filesystems."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":160}},{"id":"com.oracle.truffle.api.TruffleFile#SIZE","anchor":"SIZE","kind":"field","name":"SIZE","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"SIZE"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The file's size in bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The file's size in bytes. Supported by all filesystems."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":167}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_OWNER","anchor":"UNIX_OWNER","kind":"field","name":"UNIX_OWNER","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"UserPrincipal","ref":"java.nio.file.attribute.UserPrincipal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/UserPrincipal.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_OWNER"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"UserPrincipal","ref":"java.nio.file.attribute.UserPrincipal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/UserPrincipal.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The owner of the file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The owner of the file. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":174}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_GROUP","anchor":"UNIX_GROUP","kind":"field","name":"UNIX_GROUP","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"GroupPrincipal","ref":"java.nio.file.attribute.GroupPrincipal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/GroupPrincipal.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_GROUP"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"GroupPrincipal","ref":"java.nio.file.attribute.GroupPrincipal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/GroupPrincipal.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The group owner of the file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The group owner of the file. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":181}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_PERMISSIONS","anchor":"UNIX_PERMISSIONS","kind":"field","name":"UNIX_PERMISSIONS","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"PosixFilePermission","ref":"java.nio.file.attribute.PosixFilePermission","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/PosixFilePermission.html"},{"kind":"punct","text":">> "},{"kind":"name","text":"UNIX_PERMISSIONS"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"PosixFilePermission","ref":"java.nio.file.attribute.PosixFilePermission","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/PosixFilePermission.html"},{"kind":"punct","text":">>"}],"doc":{"summary":[{"kind":"text","text":"The file's Posix permissions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The file's Posix permissions. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":188}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_MODE","anchor":"UNIX_MODE","kind":"field","name":"UNIX_MODE","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_MODE"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The file's mode containing the protection and file type bits."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The file's mode containing the protection and file type bits. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":196}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_INODE","anchor":"UNIX_INODE","kind":"field","name":"UNIX_INODE","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_INODE"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The file's inode number."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The file's inode number. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":203}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_DEV","anchor":"UNIX_DEV","kind":"field","name":"UNIX_DEV","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_DEV"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The id of a device containing the file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The id of a device containing the file. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":210}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_RDEV","anchor":"UNIX_RDEV","kind":"field","name":"UNIX_RDEV","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_RDEV"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The id of a device represented by the file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The id of a device represented by the file. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":217}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_NLINK","anchor":"UNIX_NLINK","kind":"field","name":"UNIX_NLINK","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_NLINK"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The number of hard links."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The number of hard links. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":224}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_UID","anchor":"UNIX_UID","kind":"field","name":"UNIX_UID","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_UID"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The user id of file owner."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The user id of file owner. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":231}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_GID","anchor":"UNIX_GID","kind":"field","name":"UNIX_GID","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_GID"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The group id of file owner."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The group id of file owner. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":238}},{"id":"com.oracle.truffle.api.TruffleFile#UNIX_CTIME","anchor":"UNIX_CTIME","kind":"field","name":"UNIX_CTIME","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"UNIX_CTIME"}],"type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"The file's last status change time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The file's last status change time. Supported only by UNIX native filesystem."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":245}},{"id":"com.oracle.truffle.api.TruffleFile#exists(java.nio.file.LinkOption...)","anchor":"exists(java.nio.file.LinkOption...)","kind":"method","name":"exists","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"exists"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":")"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the file exists"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests existence of a file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests existence of a file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":289}},{"id":"com.oracle.truffle.api.TruffleFile#isReadable()","anchor":"isReadable()","kind":"method","name":"isReadable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isReadable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the file exists and is readable"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests if a file is readable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if a file is readable. Checks if the file exists and this Java virtual machine has enough privileges to read the file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":308}},{"id":"com.oracle.truffle.api.TruffleFile#isWritable()","anchor":"isWritable()","kind":"method","name":"isWritable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isWritable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the file exists and is writable"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests if a file is writable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if a file is writable. Checks if the file exists and this Java virtual machine has enough privileges to write to the file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":327}},{"id":"com.oracle.truffle.api.TruffleFile#isExecutable()","anchor":"isExecutable()","kind":"method","name":"isExecutable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isExecutable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the file exists and is executable"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests if a file is executable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if a file is executable. Checks if the file exists and this Java virtual machine has enough privileges to execute the file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":346}},{"id":"com.oracle.truffle.api.TruffleFile#isDirectory(java.nio.file.LinkOption...)","anchor":"isDirectory(java.nio.file.LinkOption...)","kind":"method","name":"isDirectory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDirectory"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":")"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled, by default the symbolic links are followed."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the file exists and is a directory"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests if a file is a directory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if a file is a directory. Checks if the file exists and is a directory."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":366}},{"id":"com.oracle.truffle.api.TruffleFile#isRegularFile(java.nio.file.LinkOption...)","anchor":"isRegularFile(java.nio.file.LinkOption...)","kind":"method","name":"isRegularFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isRegularFile"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":")"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled, by default the symbolic links are followed."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the file exists and is a regular file"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests if a file is a regular file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if a file is a regular file. Checks if the file exists and is a regular file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":388}},{"id":"com.oracle.truffle.api.TruffleFile#isSymbolicLink()","anchor":"isSymbolicLink()","kind":"method","name":"isSymbolicLink","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isSymbolicLink"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the file exists and is a symbolic link"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests if a file is a symbolic link."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if a file is a symbolic link. Checks if the file exists and is a symbolic link."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":408}},{"id":"com.oracle.truffle.api.TruffleFile#isAbsolute()","anchor":"isAbsolute()","kind":"method","name":"isAbsolute","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isAbsolute"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the file path is absolute"}]}]},"doc":{"summary":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"'s path is absolute."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"'s path is absolute."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":427}},{"id":"com.oracle.truffle.api.TruffleFile#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of file or directory denoted by this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the file is a root directory"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the name of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":443}},{"id":"com.oracle.truffle.api.TruffleFile#getPath()","anchor":"getPath()","kind":"method","name":"getPath","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getPath"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the path of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the string representation of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the string representation of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":459}},{"id":"com.oracle.truffle.api.TruffleFile#toUri()","anchor":"toUri()","kind":"method","name":"toUri","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toUri"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the absolute "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" representing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied a resolution of an absolute path"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the absolute "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" representation of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the absolute "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" representation of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":475}},{"id":"com.oracle.truffle.api.TruffleFile#toRelativeUri()","anchor":"toRelativeUri()","kind":"method","name":"toRelativeUri","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toRelativeUri"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" representing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a relative "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" representation of non absolute "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a relative "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" representation of non absolute "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":". If this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" is relative it returns a relative "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":". For an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#isAbsolute()"},"code":true,"children":[{"kind":"text","text":"absolute"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" it returns an absolute "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":495}},{"id":"com.oracle.truffle.api.TruffleFile#getAbsoluteFile()","anchor":"getAbsoluteFile()","kind":"method","name":"getAbsoluteFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getAbsoluteFile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the absolute "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied a resolution of an absolute path"}]}]}],"doc":{"summary":[{"kind":"text","text":"Resolves this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" to absolute "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resolves this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" to absolute "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":". If this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" is already absolute this method returns this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" without any resolution."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":517}},{"id":"com.oracle.truffle.api.TruffleFile#getCanonicalFile(java.nio.file.LinkOption...)","anchor":"getCanonicalFile(java.nio.file.LinkOption...)","kind":"method","name":"getCanonicalFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getCanonicalFile"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the absolute canonical path"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the real (canonical) path of an existing file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the real (canonical) path of an existing file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":541}},{"id":"com.oracle.truffle.api.TruffleFile#getParent()","anchor":"getParent()","kind":"method","name":"getParent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getParent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" or null when the file does not have a parent."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" or null when the file does not have a parent."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":559}},{"id":"com.oracle.truffle.api.TruffleFile#resolve(java.lang.String)","anchor":"resolve(java.lang.String)","kind":"method","name":"resolve","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"resolve"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the path to resolve"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the resolved "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"InvalidPathException","ref":"java.nio.file.InvalidPathException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/InvalidPathException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the path string contains non valid characters"}]}]}],"doc":{"summary":[{"kind":"text","text":"Resolves given string path representation against this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resolves given string path representation against this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":577}},{"id":"com.oracle.truffle.api.TruffleFile#resolveSibling(java.lang.String)","anchor":"resolveSibling(java.lang.String)","kind":"method","name":"resolveSibling","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"resolveSibling"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the path to resolve"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the resolved "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"InvalidPathException","ref":"java.nio.file.InvalidPathException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/InvalidPathException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the path string contains non valid characters"}]}]}],"doc":{"summary":[{"kind":"text","text":"Resolves given string path representation against the parent of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resolves given string path representation against the parent of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":596}},{"id":"com.oracle.truffle.api.TruffleFile#size(java.nio.file.LinkOption...)","anchor":"size(java.nio.file.LinkOption...)","kind":"method","name":"size","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"size"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the file size in bytes"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the size of a file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the size of a file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":616}},{"id":"com.oracle.truffle.api.TruffleFile#getLastModifiedTime(java.nio.file.LinkOption...)","anchor":"getLastModifiedTime(java.nio.file.LinkOption...)","kind":"method","name":"getLastModifiedTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLastModifiedTime"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},"code":true,"children":[{"kind":"text","text":"FileTime"}]},{"kind":"text","text":" representing the time this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" was last modified"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the last modified time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the last modified time."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":636}},{"id":"com.oracle.truffle.api.TruffleFile#setLastModifiedTime(java.nio.file.attribute.FileTime,java.nio.file.LinkOption...)","anchor":"setLastModifiedTime(java.nio.file.attribute.FileTime,java.nio.file.LinkOption...)","kind":"method","name":"setLastModifiedTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLastModifiedTime"},{"kind":"punct","text":"("},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":" "},{"kind":"param","text":"time"},{"kind":"punct","text":", "},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"time","type":[{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the last modified time"}]}]},{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the file's last modified time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the file's last modified time."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":656}},{"id":"com.oracle.truffle.api.TruffleFile#getLastAccessTime(java.nio.file.LinkOption...)","anchor":"getLastAccessTime(java.nio.file.LinkOption...)","kind":"method","name":"getLastAccessTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLastAccessTime"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},"code":true,"children":[{"kind":"text","text":"FileTime"}]},{"kind":"text","text":" representing the time this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" was last accessed"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the last access time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the last access time."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":677}},{"id":"com.oracle.truffle.api.TruffleFile#setLastAccessTime(java.nio.file.attribute.FileTime,java.nio.file.LinkOption...)","anchor":"setLastAccessTime(java.nio.file.attribute.FileTime,java.nio.file.LinkOption...)","kind":"method","name":"setLastAccessTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLastAccessTime"},{"kind":"punct","text":"("},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":" "},{"kind":"param","text":"time"},{"kind":"punct","text":", "},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"time","type":[{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the last access time"}]}]},{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the file's last access time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the file's last access time."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":697}},{"id":"com.oracle.truffle.api.TruffleFile#getCreationTime(java.nio.file.LinkOption...)","anchor":"getCreationTime(java.nio.file.LinkOption...)","kind":"method","name":"getCreationTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getCreationTime"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},"code":true,"children":[{"kind":"text","text":"FileTime"}]},{"kind":"text","text":" representing the time this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" was created"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the creation time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the creation time."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":718}},{"id":"com.oracle.truffle.api.TruffleFile#setCreationTime(java.nio.file.attribute.FileTime,java.nio.file.LinkOption...)","anchor":"setCreationTime(java.nio.file.attribute.FileTime,java.nio.file.LinkOption...)","kind":"method","name":"setCreationTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setCreationTime"},{"kind":"punct","text":"("},{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"},{"kind":"punct","text":" "},{"kind":"param","text":"time"},{"kind":"punct","text":", "},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"time","type":[{"kind":"type","text":"FileTime","ref":"java.nio.file.attribute.FileTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileTime.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the creation time"}]}]},{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the file's creation time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the file's creation time."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":738}},{"id":"com.oracle.truffle.api.TruffleFile#list()","anchor":"list()","kind":"method","name":"list","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":"> "},{"kind":"name","text":"list"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a collection of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"s located in the directory denoted by this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a collection of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"s in the directory denoted by this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a collection of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"s in the directory denoted by this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":760}},{"id":"com.oracle.truffle.api.TruffleFile#newByteChannel(java.util.Set,java.nio.file.attribute.FileAttribute...)","anchor":"newByteChannel(java.util.Set,java.nio.file.attribute.FileAttribute...)","kind":"method","name":"newByteChannel","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FileChannel","ref":"org.graalvm.polyglot.io.FileChannel","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileChannel.html"},{"kind":"punct","text":" "},{"kind":"name","text":"newByteChannel"},{"kind":"punct","text":"("},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"options"},{"kind":"punct","text":", "},{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"attributes"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options specifying how the file should be opened"}]}]},{"name":"attributes","type":[{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the optional attributes to set atomically when creating the new file"}]}]}],"returns":{"type":[{"kind":"type","text":"FileChannel","ref":"org.graalvm.polyglot.io.FileChannel","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileChannel.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the created "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileChannel","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileChannel.html"},"code":true,"children":[{"kind":"text","text":"FileChannel"}]}]}]},"throws":[{"type":[{"kind":"type","text":"FileAlreadyExistsException","ref":"java.nio.file.FileAlreadyExistsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileAlreadyExistsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"java.nio.file.StandardOpenOption#CREATE_NEW","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/StandardOpenOption.html#CREATE_NEW"},"code":true,"children":[{"kind":"text","text":"StandardOpenOption.CREATE_NEW"}]},{"kind":"text","text":" option is set and a file already exists on given path"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the attributes contain an attribute which cannot be set atomically"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of invalid options combination"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"overrides":{"id":"com.oracle.truffle.api.TruffleFileLegacy#newByteChannel(java.util.Set,java.nio.file.attribute.FileAttribute...)"},"doc":{"summary":[{"kind":"text","text":"Opens or creates a file returning a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileChannel","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileChannel.html"},"code":true,"children":[{"kind":"text","text":"FileChannel"}]},{"kind":"text","text":" to access the file content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Opens or creates a file returning a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileChannel","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileChannel.html"},"code":true,"children":[{"kind":"text","text":"FileChannel"}]},{"kind":"text","text":" to access the file content. In most cases, the returned channel should be closed using a try-with-resources construct. When the channel must remain open for the lifetime of a context, it should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerOnDispose(java.io.Closeable)"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":" for automatic close on context disposal."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned channel supports file locking when locking is supported by the underlying file system. On JDK 22 and later, it also supports mapping file regions when memory mapping is supported by the underlying file system."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":805}},{"id":"com.oracle.truffle.api.TruffleFile#newInputStream(java.nio.file.OpenOption...)","anchor":"newInputStream(java.nio.file.OpenOption...)","kind":"method","name":"newInputStream","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InputStream","ref":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"},{"kind":"punct","text":" "},{"kind":"name","text":"newInputStream"},{"kind":"punct","text":"("},{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options specifying how the file should be opened"}]}]}],"returns":{"type":[{"kind":"type","text":"InputStream","ref":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the created "},{"kind":"link","target":{"id":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"},"code":true,"children":[{"kind":"text","text":"InputStream"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of invalid options combination"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Opens a file for reading returning an "},{"kind":"link","target":{"id":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"},"code":true,"children":[{"kind":"text","text":"InputStream"}]},{"kind":"text","text":" to access the file content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Opens a file for reading returning an "},{"kind":"link","target":{"id":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"},"code":true,"children":[{"kind":"text","text":"InputStream"}]},{"kind":"text","text":" to access the file content. In most cases, the returned "},{"kind":"link","target":{"id":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"},"code":true,"children":[{"kind":"text","text":"InputStream"}]},{"kind":"text","text":" should be closed using try-with-resources construct. When the stream must keep being opened for the lifetime of a context it should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerOnDispose(java.io.Closeable)"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":" for automatic close on context dispose."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":831}},{"id":"com.oracle.truffle.api.TruffleFile#newBufferedReader(java.nio.charset.Charset)","anchor":"newBufferedReader(java.nio.charset.Charset)","kind":"method","name":"newBufferedReader","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BufferedReader","ref":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"},{"kind":"punct","text":" "},{"kind":"name","text":"newBufferedReader"},{"kind":"punct","text":"("},{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"},{"kind":"punct","text":" "},{"kind":"param","text":"charset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"charset","type":[{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the file encoding"}]}]}],"returns":{"type":[{"kind":"type","text":"BufferedReader","ref":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the created "},{"kind":"link","target":{"id":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"},"code":true,"children":[{"kind":"text","text":"BufferedReader"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Opens a file for reading returning a "},{"kind":"link","target":{"id":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"},"code":true,"children":[{"kind":"text","text":"BufferedReader"}]},{"kind":"text","text":" to access the file content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Opens a file for reading returning a "},{"kind":"link","target":{"id":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"},"code":true,"children":[{"kind":"text","text":"BufferedReader"}]},{"kind":"text","text":" to access the file content. In most cases, the returned "},{"kind":"link","target":{"id":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"},"code":true,"children":[{"kind":"text","text":"BufferedReader"}]},{"kind":"text","text":" should be closed using try-with-resources construct. When the reader must keep being opened for the lifetime of a context it should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerOnDispose(java.io.Closeable)"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":" for automatic close on context dispose."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":857}},{"id":"com.oracle.truffle.api.TruffleFile#newBufferedReader()","anchor":"newBufferedReader()","kind":"method","name":"newBufferedReader","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BufferedReader","ref":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"},{"kind":"punct","text":" "},{"kind":"name","text":"newBufferedReader"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"type","text":"BufferedReader","ref":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the created "},{"kind":"link","target":{"id":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"},"code":true,"children":[{"kind":"text","text":"BufferedReader"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Opens a file for reading returning a "},{"kind":"link","target":{"id":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"},"code":true,"children":[{"kind":"text","text":"BufferedReader"}]},{"kind":"text","text":" to access the file content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Opens a file for reading returning a "},{"kind":"link","target":{"id":"java.io.BufferedReader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedReader.html"},"code":true,"children":[{"kind":"text","text":"BufferedReader"}]},{"kind":"text","text":" to access the file content. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#newBufferedReader(java.nio.charset.Charset)"},"code":true,"children":[{"kind":"text","text":"newBufferedReader(Charset)"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":871}},{"id":"com.oracle.truffle.api.TruffleFile#readAllBytes()","anchor":"readAllBytes()","kind":"method","name":"readAllBytes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"name","text":"readAllBytes"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the created "},{"kind":"code","text":"byte[]"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"OutOfMemoryError","ref":"java.lang.OutOfMemoryError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/OutOfMemoryError.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an array of a file size cannot be allocated"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads a file content as bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads a file content as bytes."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":885}},{"id":"com.oracle.truffle.api.TruffleFile#newOutputStream(java.nio.file.OpenOption...)","anchor":"newOutputStream(java.nio.file.OpenOption...)","kind":"method","name":"newOutputStream","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"name","text":"newOutputStream"},{"kind":"punct","text":"("},{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options specifying how the file should be opened"}]}]}],"returns":{"type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the created "},{"kind":"link","target":{"id":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},"code":true,"children":[{"kind":"text","text":"OutputStream"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of invalid options combination"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Opens a file for writing returning an "},{"kind":"link","target":{"id":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},"code":true,"children":[{"kind":"text","text":"OutputStream"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Opens a file for writing returning an "},{"kind":"link","target":{"id":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},"code":true,"children":[{"kind":"text","text":"OutputStream"}]},{"kind":"text","text":". In most cases, the returned "},{"kind":"link","target":{"id":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},"code":true,"children":[{"kind":"text","text":"OutputStream"}]},{"kind":"text","text":" should be closed using try-with-resources construct. When the stream must keep being opened for the lifetime of a context it should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerOnDispose(java.io.Closeable)"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":" for automatic close on context dispose."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":936}},{"id":"com.oracle.truffle.api.TruffleFile#newBufferedWriter(java.nio.charset.Charset,java.nio.file.OpenOption...)","anchor":"newBufferedWriter(java.nio.charset.Charset,java.nio.file.OpenOption...)","kind":"method","name":"newBufferedWriter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BufferedWriter","ref":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"},{"kind":"punct","text":" "},{"kind":"name","text":"newBufferedWriter"},{"kind":"punct","text":"("},{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"},{"kind":"punct","text":" "},{"kind":"param","text":"charset"},{"kind":"punct","text":", "},{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"charset","type":[{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the file encoding"}]}]},{"name":"options","type":[{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options specifying how the file should be opened"}]}]}],"returns":{"type":[{"kind":"type","text":"BufferedWriter","ref":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the created "},{"kind":"link","target":{"id":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"},"code":true,"children":[{"kind":"text","text":"BufferedWriter"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of invalid options combination"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Opens a file for writing returning an "},{"kind":"link","target":{"id":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"},"code":true,"children":[{"kind":"text","text":"BufferedWriter"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Opens a file for writing returning an "},{"kind":"link","target":{"id":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"},"code":true,"children":[{"kind":"text","text":"BufferedWriter"}]},{"kind":"text","text":". In most cases, the returned "},{"kind":"link","target":{"id":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"},"code":true,"children":[{"kind":"text","text":"BufferedWriter"}]},{"kind":"text","text":" should be closed using try-with-resources construct. When the writer must keep being opened for the lifetime of a context it should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerOnDispose(java.io.Closeable)"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":" for automatic close on context dispose."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":968}},{"id":"com.oracle.truffle.api.TruffleFile#newBufferedWriter(java.nio.file.OpenOption...)","anchor":"newBufferedWriter(java.nio.file.OpenOption...)","kind":"method","name":"newBufferedWriter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BufferedWriter","ref":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"},{"kind":"punct","text":" "},{"kind":"name","text":"newBufferedWriter"},{"kind":"punct","text":"("},{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"OpenOption","ref":"java.nio.file.OpenOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/OpenOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options specifying how the file should be opened"}]}]}],"returns":{"type":[{"kind":"type","text":"BufferedWriter","ref":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the created "},{"kind":"link","target":{"id":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"},"code":true,"children":[{"kind":"text","text":"BufferedWriter"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of invalid options combination"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Opens a file for writing returning an "},{"kind":"link","target":{"id":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"},"code":true,"children":[{"kind":"text","text":"BufferedWriter"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Opens a file for writing returning an "},{"kind":"link","target":{"id":"java.io.BufferedWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/BufferedWriter.html"},"code":true,"children":[{"kind":"text","text":"BufferedWriter"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#newBufferedWriter(java.nio.charset.Charset,java.nio.file.OpenOption...)"},"code":true,"children":[{"kind":"text","text":"newBufferedWriter(Charset, OpenOption...)"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":984}},{"id":"com.oracle.truffle.api.TruffleFile#createFile(java.nio.file.attribute.FileAttribute...)","anchor":"createFile(java.nio.file.attribute.FileAttribute...)","kind":"method","name":"createFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"createFile"},{"kind":"punct","text":"("},{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"attributes"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"attributes","type":[{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the optional attributes to set atomically when creating the new file"}]}]}],"throws":[{"type":[{"kind":"type","text":"FileAlreadyExistsException","ref":"java.nio.file.FileAlreadyExistsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileAlreadyExistsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file already exists on given path"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the attributes contain an attribute which cannot be set atomically"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new empty file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new empty file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1000}},{"id":"com.oracle.truffle.api.TruffleFile#createDirectory(java.nio.file.attribute.FileAttribute...)","anchor":"createDirectory(java.nio.file.attribute.FileAttribute...)","kind":"method","name":"createDirectory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"createDirectory"},{"kind":"punct","text":"("},{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"attributes"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"attributes","type":[{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the optional attributes to set atomically when creating the new file"}]}]}],"throws":[{"type":[{"kind":"type","text":"FileAlreadyExistsException","ref":"java.nio.file.FileAlreadyExistsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileAlreadyExistsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file or directory already exists on given path"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the attributes contain an attribute which cannot be set atomically"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new directory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new directory."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1018}},{"id":"com.oracle.truffle.api.TruffleFile#createDirectories(java.nio.file.attribute.FileAttribute...)","anchor":"createDirectories(java.nio.file.attribute.FileAttribute...)","kind":"method","name":"createDirectories","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"createDirectories"},{"kind":"punct","text":"("},{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"attributes"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"attributes","type":[{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the optional attributes to set atomically when creating the new file"}]}]}],"throws":[{"type":[{"kind":"type","text":"FileAlreadyExistsException","ref":"java.nio.file.FileAlreadyExistsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileAlreadyExistsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if a file (not a directory) already exists on given path"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the attributes contain an attribute which cannot be set atomically"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a directory and all nonexistent parent directories."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a directory and all nonexistent parent directories. Unlike the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#createDirectory(java.nio.file.attribute.FileAttribute...)"},"code":true,"children":[{"kind":"text","text":"createDirectory"}]},{"kind":"text","text":" the "},{"kind":"link","target":{"id":"java.nio.file.FileAlreadyExistsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileAlreadyExistsException.html"},"code":true,"children":[{"kind":"text","text":"FileAlreadyExistsException"}]},{"kind":"text","text":" is not thrown if the directory already exists."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1043}},{"id":"com.oracle.truffle.api.TruffleFile#delete()","anchor":"delete()","kind":"method","name":"delete","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"delete"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"throws":[{"type":[{"kind":"type","text":"NoSuchFileException","ref":"java.nio.file.NoSuchFileException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/NoSuchFileException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file does not exist"}]}]},{"type":[{"kind":"type","text":"DirectoryNotEmptyException","ref":"java.nio.file.DirectoryNotEmptyException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryNotEmptyException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" denotes a non empty directory"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Deletes the file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Deletes the file. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" denotes a directory, the directory must be empty before deleting. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" denotes a symbolic link the symbolic link itself is deleted not its target."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1093}},{"id":"com.oracle.truffle.api.TruffleFile#move(com.oracle.truffle.api.TruffleFile,java.nio.file.CopyOption...)","anchor":"move(com.oracle.truffle.api.TruffleFile,java.nio.file.CopyOption...)","kind":"method","name":"move","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"move"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"CopyOption","ref":"java.nio.file.CopyOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/CopyOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"target","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the path of a target file"}]}]},{"name":"options","type":[{"kind":"type","text":"CopyOption","ref":"java.nio.file.CopyOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/CopyOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options specifying how the move should be performed, see "},{"kind":"link","target":{"id":"java.nio.file.StandardCopyOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/StandardCopyOption.html"},"code":true,"children":[{"kind":"text","text":"StandardCopyOption"}]}]}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"options"},{"kind":"text","text":" contains unsupported option"}]}]},{"type":[{"kind":"type","text":"FileAlreadyExistsException","ref":"java.nio.file.FileAlreadyExistsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileAlreadyExistsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the target path already exists and the "},{"kind":"code","text":"options"},{"kind":"text","text":" don't contain "},{"kind":"link","target":{"id":"java.nio.file.StandardCopyOption#REPLACE_EXISTING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/StandardCopyOption.html#REPLACE_EXISTING"},"code":true,"children":[{"kind":"text","text":"StandardCopyOption.REPLACE_EXISTING"}]},{"kind":"text","text":" option"}]}]},{"type":[{"kind":"type","text":"DirectoryNotEmptyException","ref":"java.nio.file.DirectoryNotEmptyException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryNotEmptyException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"options"},{"kind":"text","text":" contain "},{"kind":"link","target":{"id":"java.nio.file.StandardCopyOption#REPLACE_EXISTING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/StandardCopyOption.html#REPLACE_EXISTING"},"code":true,"children":[{"kind":"text","text":"StandardCopyOption.REPLACE_EXISTING"}]},{"kind":"text","text":" but the "},{"kind":"code","text":"target"},{"kind":"text","text":" is a non empty directory"}]}]},{"type":[{"kind":"type","text":"AtomicMoveNotSupportedException","ref":"java.nio.file.AtomicMoveNotSupportedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/AtomicMoveNotSupportedException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"options"},{"kind":"text","text":" contain "},{"kind":"link","target":{"id":"java.nio.file.StandardCopyOption#ATOMIC_MOVE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/StandardCopyOption.html#ATOMIC_MOVE"},"code":true,"children":[{"kind":"text","text":"StandardCopyOption.ATOMIC_MOVE"}]},{"kind":"text","text":" but file cannot be moved atomically"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Moves or renames the file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Moves or renames the file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1123}},{"id":"com.oracle.truffle.api.TruffleFile#getPosixPermissions(java.nio.file.LinkOption...)","anchor":"getPosixPermissions(java.nio.file.LinkOption...)","kind":"method","name":"getPosixPermissions","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"PosixFilePermission","ref":"java.nio.file.attribute.PosixFilePermission","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/PosixFilePermission.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getPosixPermissions"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"linkOptions"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"linkOptions","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"PosixFilePermission","ref":"java.nio.file.attribute.PosixFilePermission","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/PosixFilePermission.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the file's Posix permissions"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the Posix permissions are not supported by filesystem"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the file's Posix permissions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the file's Posix permissions."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1147}},{"id":"com.oracle.truffle.api.TruffleFile#setPosixPermissions(java.util.Set,java.nio.file.LinkOption...)","anchor":"setPosixPermissions(java.util.Set,java.nio.file.LinkOption...)","kind":"method","name":"setPosixPermissions","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setPosixPermissions"},{"kind":"punct","text":"("},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"PosixFilePermission","ref":"java.nio.file.attribute.PosixFilePermission","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/PosixFilePermission.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"permissions"},{"kind":"punct","text":", "},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"linkOptions"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"permissions","type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"PosixFilePermission","ref":"java.nio.file.attribute.PosixFilePermission","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/PosixFilePermission.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Posix permissions to set"}]}]},{"name":"linkOptions","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the Posix permissions are not supported by filesystem"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the file's Posix permissions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the file's Posix permissions."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1170}},{"id":"com.oracle.truffle.api.TruffleFile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1187}},{"id":"com.oracle.truffle.api.TruffleFile#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1198}},{"id":"com.oracle.truffle.api.TruffleFile#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1212}},{"id":"com.oracle.truffle.api.TruffleFile#normalize()","anchor":"normalize()","kind":"method","name":"normalize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"normalize"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the normalized "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" with removed redundant name elements in it's path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" with removed redundant name elements in it's path."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1231}},{"id":"com.oracle.truffle.api.TruffleFile#relativize(com.oracle.truffle.api.TruffleFile)","anchor":"relativize(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"relativize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"relativize"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" to relativize against this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" with relative path between this and "},{"kind":"code","text":"other"},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"s"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"code","text":"other"},{"kind":"text","text":" cannot be relativized against this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" with a relative path between this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" and a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" with a relative path between this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" and a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Relativization is the inverse of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#resolve(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"resolution"}]},{"kind":"text","text":". Relativization constructs a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" with relative path that when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#resolve(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"resolved"}]},{"kind":"text","text":" against this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" yields a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" locating the same file as given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":". A relative path cannot be constructed if only one of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"s is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#isAbsolute()"},"code":true,"children":[{"kind":"text","text":"absolute"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1263}},{"id":"com.oracle.truffle.api.TruffleFile#startsWith(java.lang.String)","anchor":"startsWith(java.lang.String)","kind":"method","name":"startsWith","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"startsWith"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the path"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path starts with given path"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the path cannot be parsed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path starts with the given path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path starts with the given path. The path "},{"kind":"code","text":"foo/bar"},{"kind":"text","text":" starts with "},{"kind":"code","text":"foo"},{"kind":"text","text":" and "},{"kind":"code","text":"foo/bar"},{"kind":"text","text":" but does not start with "},{"kind":"code","text":"f"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1283}},{"id":"com.oracle.truffle.api.TruffleFile#startsWith(com.oracle.truffle.api.TruffleFile)","anchor":"startsWith(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"startsWith","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"startsWith"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path starts with given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path"}]}]},"doc":{"summary":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path starts with the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path starts with the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path. The path "},{"kind":"code","text":"foo/bar"},{"kind":"text","text":" starts with "},{"kind":"code","text":"foo"},{"kind":"text","text":" and "},{"kind":"code","text":"foo/bar"},{"kind":"text","text":" but does not start with "},{"kind":"code","text":"f"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1304}},{"id":"com.oracle.truffle.api.TruffleFile#endsWith(java.lang.String)","anchor":"endsWith(java.lang.String)","kind":"method","name":"endsWith","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"endsWith"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the path"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path ends with given path"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the path cannot be parsed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path ends with the given path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path ends with the given path. The path "},{"kind":"code","text":"foo/bar"},{"kind":"text","text":" ends with "},{"kind":"code","text":"bar"},{"kind":"text","text":" and "},{"kind":"code","text":"foo/bar"},{"kind":"text","text":" but does not end with "},{"kind":"code","text":"r"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1322}},{"id":"com.oracle.truffle.api.TruffleFile#endsWith(com.oracle.truffle.api.TruffleFile)","anchor":"endsWith(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"endsWith","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"endsWith"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path ends with given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path"}]}]},"doc":{"summary":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path ends with the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path ends with the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" path. The path "},{"kind":"code","text":"foo/bar"},{"kind":"text","text":" ends with "},{"kind":"code","text":"bar"},{"kind":"text","text":" and "},{"kind":"code","text":"foo/bar"},{"kind":"text","text":" but does not end with "},{"kind":"code","text":"r"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1342}},{"id":"com.oracle.truffle.api.TruffleFile#createLink(com.oracle.truffle.api.TruffleFile)","anchor":"createLink(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"createLink","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"createLink"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"target","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the existing file to link"}]}]}],"throws":[{"type":[{"kind":"type","text":"FileAlreadyExistsException","ref":"java.nio.file.FileAlreadyExistsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileAlreadyExistsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file or directory already exists on given path"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation does not support links"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new link to an existing target "},{"kind":"emphasis","children":[{"kind":"text","text":"(optional operation)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new link to an existing target "},{"kind":"emphasis","children":[{"kind":"text","text":"(optional operation)"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1362}},{"id":"com.oracle.truffle.api.TruffleFile#createSymbolicLink(com.oracle.truffle.api.TruffleFile,java.nio.file.attribute.FileAttribute...)","anchor":"createSymbolicLink(com.oracle.truffle.api.TruffleFile,java.nio.file.attribute.FileAttribute...)","kind":"method","name":"createSymbolicLink","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"createSymbolicLink"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"attrs"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"target","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the target of the symbolic link"}]}]},{"name":"attrs","type":[{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the optional attributes to set atomically when creating the symbolic link"}]}]}],"throws":[{"type":[{"kind":"type","text":"FileAlreadyExistsException","ref":"java.nio.file.FileAlreadyExistsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileAlreadyExistsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file or directory already exists on given path"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation does not support symbolic links or the attributes contain an attribute which cannot be set atomically"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a symbolic link to a target "},{"kind":"emphasis","children":[{"kind":"text","text":"(optional operation)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a symbolic link to a target "},{"kind":"emphasis","children":[{"kind":"text","text":"(optional operation)"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1387}},{"id":"com.oracle.truffle.api.TruffleFile#readSymbolicLink()","anchor":"readSymbolicLink()","kind":"method","name":"readSymbolicLink","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"readSymbolicLink"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the target of the symbolic link"}]}]},"throws":[{"type":[{"kind":"type","text":"NotLinkException","ref":"java.nio.file.NotLinkException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/NotLinkException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" is not a symbolic link"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation does not support symbolic links"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the target of a symbolic link."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the target of a symbolic link."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1410}},{"id":"com.oracle.truffle.api.TruffleFile#getOwner(java.nio.file.LinkOption...)","anchor":"getOwner(java.nio.file.LinkOption...)","kind":"method","name":"getOwner","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"UserPrincipal","ref":"java.nio.file.attribute.UserPrincipal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/UserPrincipal.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOwner"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"type","text":"UserPrincipal","ref":"java.nio.file.attribute.UserPrincipal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/UserPrincipal.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the file owner"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation does not support owner attribute"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the owner of the file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the owner of the file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1433}},{"id":"com.oracle.truffle.api.TruffleFile#getGroup(java.nio.file.LinkOption...)","anchor":"getGroup(java.nio.file.LinkOption...)","kind":"method","name":"getGroup","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"GroupPrincipal","ref":"java.nio.file.attribute.GroupPrincipal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/GroupPrincipal.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getGroup"},{"kind":"punct","text":"("},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"type","text":"GroupPrincipal","ref":"java.nio.file.attribute.GroupPrincipal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/GroupPrincipal.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the file owner"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation does not support group owner attribute"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the group owner of the file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the group owner of the file."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1455}},{"id":"com.oracle.truffle.api.TruffleFile#newDirectoryStream()","anchor":"newDirectoryStream()","kind":"method","name":"newDirectoryStream","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DirectoryStream","ref":"java.nio.file.DirectoryStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryStream.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":"> "},{"kind":"name","text":"newDirectoryStream"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"type","text":"DirectoryStream","ref":"java.nio.file.DirectoryStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryStream.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new opened "},{"kind":"link","target":{"id":"java.nio.file.DirectoryStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryStream.html"},"code":true,"children":[{"kind":"text","text":"DirectoryStream"}]},{"kind":"text","text":" object"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Opens a directory, returning a "},{"kind":"link","target":{"id":"java.nio.file.DirectoryStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryStream.html"},"code":true,"children":[{"kind":"text","text":"DirectoryStream"}]},{"kind":"text","text":" to iterate over all entries in the directory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Opens a directory, returning a "},{"kind":"link","target":{"id":"java.nio.file.DirectoryStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryStream.html"},"code":true,"children":[{"kind":"text","text":"DirectoryStream"}]},{"kind":"text","text":" to iterate over all entries in the directory."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"s returned by the directory stream's "},{"kind":"link","target":{"id":"java.nio.file.DirectoryStream#iterator()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryStream.html#iterator()"},"code":true,"children":[{"kind":"text","text":"iterator"}]},{"kind":"text","text":" are created as if by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#resolve(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"resolving"}]},{"kind":"text","text":" the name of the directory entry against this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In most cases, the returned "},{"kind":"link","target":{"id":"java.nio.file.DirectoryStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryStream.html"},"code":true,"children":[{"kind":"text","text":"DirectoryStream"}]},{"kind":"text","text":" should be closed using try-with-resources construct. When the stream must keep being opened for the lifetime of a context it should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerOnDispose(java.io.Closeable)"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":" for automatic close on context dispose. When not using the try-with-resources construct, then the directory stream's "},{"kind":"link","target":{"id":"java.io.Closeable#close()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Closeable.html#close()"},"code":true,"children":[{"kind":"text","text":"close"}]},{"kind":"text","text":" method should be called after iteration is completed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The code which iterates over all files can use simpler "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#list()"},"code":true,"children":[{"kind":"text","text":"list()"}]},{"kind":"text","text":" method."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1487}},{"id":"com.oracle.truffle.api.TruffleFile#visit(java.nio.file.FileVisitor,int,java.nio.file.FileVisitOption...)","anchor":"visit(java.nio.file.FileVisitor,int,java.nio.file.FileVisitOption...)","kind":"method","name":"visit","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"visit"},{"kind":"punct","text":"("},{"kind":"type","text":"FileVisitor","ref":"java.nio.file.FileVisitor","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitor.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":"> "},{"kind":"param","text":"visitor"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxDepth"},{"kind":"punct","text":", "},{"kind":"type","text":"FileVisitOption","ref":"java.nio.file.FileVisitOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"visitor","type":[{"kind":"type","text":"FileVisitor","ref":"java.nio.file.FileVisitor","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitor.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.nio.file.FileVisitor","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitor.html"},"code":true,"children":[{"kind":"text","text":"FileVisitor"}]},{"kind":"text","text":" to invoke for each file"}]}]},{"name":"maxDepth","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the maximum number of directory levels to visit, "},{"kind":"link","target":{"id":"java.lang.Integer#MAX_VALUE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html#MAX_VALUE"},"code":true,"children":[{"kind":"text","text":"MAX_VALUE"}]},{"kind":"text","text":" may be used to indicate that all levels should be visited."}]}]},{"name":"options","type":[{"kind":"type","text":"FileVisitOption","ref":"java.nio.file.FileVisitOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options configuring the file tree traversal"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"maxDepth"},{"kind":"text","text":" parameter is negative"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Visits this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" file tree."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Visits this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" file tree."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method walks a file tree rooted at this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":". The file tree traversal is "},{"kind":"emphasis","children":[{"kind":"text","text":"depth-first"}]},{"kind":"text","text":". The appropriate method on give "},{"kind":"link","target":{"id":"java.nio.file.FileVisitor","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitor.html"},"code":true,"children":[{"kind":"text","text":"FileVisitor"}]},{"kind":"text","text":" is invoked for each met file. File tree traversal completes when all accessible files in the tree have been visited, a "},{"kind":"link","target":{"id":"java.nio.file.FileVisitor","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitor.html"},"code":true,"children":[{"kind":"text","text":"FileVisitor"}]},{"kind":"text","text":" visit method returns a "},{"kind":"link","target":{"id":"java.nio.file.FileVisitResult#TERMINATE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitResult.html#TERMINATE"},"code":true,"children":[{"kind":"text","text":"FileVisitResult.TERMINATE"}]},{"kind":"text","text":" or a "},{"kind":"link","target":{"id":"java.nio.file.FileVisitor","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitor.html"},"code":true,"children":[{"kind":"text","text":"FileVisitor"}]},{"kind":"text","text":" method terminates due to an uncaught exception."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For each file encountered this method attempts to read its "},{"kind":"link","target":{"id":"java.nio.file.attribute.BasicFileAttributes","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/BasicFileAttributes.html"},"code":true,"children":[{"kind":"text","text":"java.nio.file.attribute.BasicFileAttributes"}]},{"kind":"text","text":". If the file is not a directory then the "},{"kind":"link","target":{"id":"java.nio.file.FileVisitor#visitFile(T,java.nio.file.attribute.BasicFileAttributes)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitor.html#visitFile(T,java.nio.file.attribute.BasicFileAttributes)"},"code":true,"children":[{"kind":"text","text":"visitFile"}]},{"kind":"text","text":" method is invoked with the file attributes. If the file attributes cannot be read, due to an I/O exception, then the "},{"kind":"link","target":{"id":"java.nio.file.FileVisitor#visitFileFailed(T,java.io.IOException)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitor.html#visitFileFailed(T,java.io.IOException)"},"code":true,"children":[{"kind":"text","text":"visitFileFailed"}]},{"kind":"text","text":" method is invoked with the I/O exception."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Where the file is a directory, and the directory could not be opened, then the "},{"kind":"code","text":"visitFileFailed"},{"kind":"text","text":" method is invoked with the I/O exception, after which, the file tree walk continues, by default, at the next "},{"kind":"emphasis","children":[{"kind":"text","text":"sibling"}]},{"kind":"text","text":" of the directory."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Where the directory is opened successfully, then the entries in the directory, and their "},{"kind":"emphasis","children":[{"kind":"text","text":"descendants"}]},{"kind":"text","text":" are visited. When all entries have been visited, or an I/O error occurs during iteration of the directory, then the directory is closed and the visitor's "},{"kind":"link","target":{"id":"java.nio.file.FileVisitor#postVisitDirectory(T,java.io.IOException)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitor.html#postVisitDirectory(T,java.io.IOException)"},"code":true,"children":[{"kind":"text","text":"postVisitDirectory"}]},{"kind":"text","text":" method is invoked. The file tree walk then continues, by default, at the next "},{"kind":"emphasis","children":[{"kind":"text","text":"sibling"}]},{"kind":"text","text":" of the directory."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default, symbolic links are not automatically followed by this method. If the "},{"kind":"code","text":"options"},{"kind":"text","text":" parameter contains the "},{"kind":"link","target":{"id":"java.nio.file.FileVisitOption#FOLLOW_LINKS","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileVisitOption.html#FOLLOW_LINKS"},"code":true,"children":[{"kind":"text","text":"FOLLOW_LINKS"}]},{"kind":"text","text":" option then symbolic links are followed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"maxDepth"},{"kind":"text","text":" parameter is the maximum number of levels of directories to visit. A value of "},{"kind":"code","text":"0"},{"kind":"text","text":" means that only the starting file is visited. The "},{"kind":"code","text":"visitFile"},{"kind":"text","text":" method is invoked for all files, including directories, encountered at "},{"kind":"code","text":"maxDepth"},{"kind":"text","text":", unless the basic file attributes cannot be read, in which case the "},{"kind":"code","text":"\nvisitFileFailed"},{"kind":"text","text":" method is invoked."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1549}},{"id":"com.oracle.truffle.api.TruffleFile#copy(com.oracle.truffle.api.TruffleFile,java.nio.file.CopyOption...)","anchor":"copy(com.oracle.truffle.api.TruffleFile,java.nio.file.CopyOption...)","kind":"method","name":"copy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copy"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"CopyOption","ref":"java.nio.file.CopyOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/CopyOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"target","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the path of a target file"}]}]},{"name":"options","type":[{"kind":"type","text":"CopyOption","ref":"java.nio.file.CopyOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/CopyOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options specifying how the copy should be performed, see "},{"kind":"link","target":{"id":"java.nio.file.StandardCopyOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/StandardCopyOption.html"},"code":true,"children":[{"kind":"text","text":"StandardCopyOption"}]}]}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"options"},{"kind":"text","text":" contains unsupported option"}]}]},{"type":[{"kind":"type","text":"FileAlreadyExistsException","ref":"java.nio.file.FileAlreadyExistsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileAlreadyExistsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the target path already exists and the "},{"kind":"code","text":"options"},{"kind":"text","text":" don't contain "},{"kind":"link","target":{"id":"java.nio.file.StandardCopyOption#REPLACE_EXISTING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/StandardCopyOption.html#REPLACE_EXISTING"},"code":true,"children":[{"kind":"text","text":"StandardCopyOption.REPLACE_EXISTING"}]},{"kind":"text","text":" option"}]}]},{"type":[{"kind":"type","text":"DirectoryNotEmptyException","ref":"java.nio.file.DirectoryNotEmptyException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/DirectoryNotEmptyException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"options"},{"kind":"text","text":" contain "},{"kind":"link","target":{"id":"java.nio.file.StandardCopyOption#REPLACE_EXISTING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/StandardCopyOption.html#REPLACE_EXISTING"},"code":true,"children":[{"kind":"text","text":"StandardCopyOption.REPLACE_EXISTING"}]},{"kind":"text","text":" but the "},{"kind":"code","text":"target"},{"kind":"text","text":" is a non empty directory"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies the file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies the file. When the file is a directory the copy creates an empty directory in the target location, the directory entries are not copied. This method can be used with the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#visit(java.nio.file.FileVisitor,int,java.nio.file.FileVisitOption...)"},"code":true,"children":[{"kind":"text","text":"visit"}]},{"kind":"text","text":" method to copy the whole sub-tree."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1615}},{"id":"com.oracle.truffle.api.TruffleFile#detectMimeType()","anchor":"detectMimeType()","kind":"method","name":"detectMimeType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"detectMimeType"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the MIME type or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the MIME type is not recognized"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Detects the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":" MIME type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Detects the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":" MIME type."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1635}},{"id":"com.oracle.truffle.api.TruffleFile#isSameFile(com.oracle.truffle.api.TruffleFile,java.nio.file.LinkOption...)","anchor":"isSameFile(com.oracle.truffle.api.TruffleFile,java.nio.file.LinkOption...)","kind":"method","name":"isSameFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isSameFile"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":", "},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"options"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"other","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the other "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},{"name":"options","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if this and the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" refer to the same physical file"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Tests if this and the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" refer to the same physical file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if this and the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" refer to the same physical file. If both "},{"kind":"code","text":"TruffleFile"},{"kind":"text","text":" objects are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"equal"}]},{"kind":"text","text":" then this method returns "},{"kind":"code","text":"true"},{"kind":"text","text":" without any checks. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"s have different filesystems then this method returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Otherwise, this method checks if both "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"s refer to the same physical file. Depending on the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation it may require to read the files attributes. This implies:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Public and Internal files with disabled IO are never the same."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Public and Internal files with allowed IO are potentially the same."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Files created by different languages are potentially the same."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Files created during the Context pre-initialization and files created during Context execution are potentially the same."}]}]]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1662}},{"id":"com.oracle.truffle.api.TruffleFile#getAttribute(com.oracle.truffle.api.TruffleFile.AttributeDescriptor,java.nio.file.LinkOption...)","anchor":"getAttribute(com.oracle.truffle.api.TruffleFile.AttributeDescriptor,java.nio.file.LinkOption...)","kind":"method","name":"getAttribute","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getAttribute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"attribute"},{"kind":"punct","text":", "},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"linkOptions"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"attribute","type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the attribute to read"}]}]},{"name":"linkOptions","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the attribute value"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the filesystem does not support required attribute."}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads a single file's attribute."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads a single file's attribute."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1942}},{"id":"com.oracle.truffle.api.TruffleFile#setAttribute(com.oracle.truffle.api.TruffleFile.AttributeDescriptor,T,java.nio.file.LinkOption...)","anchor":"setAttribute(com.oracle.truffle.api.TruffleFile.AttributeDescriptor,T,java.nio.file.LinkOption...)","kind":"method","name":"setAttribute","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setAttribute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"attribute"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"linkOptions"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"attribute","type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the attribute to set"}]}]},{"name":"value","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the attribute value"}]}]},{"name":"linkOptions","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the filesystem does not support given attribute"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the attribute value has an inappropriate value"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets a single file's attribute."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a single file's attribute."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1965}},{"id":"com.oracle.truffle.api.TruffleFile#getAttributes(java.util.Collection,java.nio.file.LinkOption...)","anchor":"getAttributes(java.util.Collection,java.nio.file.LinkOption...)","kind":"method","name":"getAttributes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.Attributes","ref":"com.oracle.truffle.api.TruffleFile$Attributes"},{"kind":"punct","text":" "},{"kind":"name","text":"getAttributes"},{"kind":"punct","text":"("},{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"attributes"},{"kind":"punct","text":", "},{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"linkOptions"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"attributes","type":[{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<?>>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the attributes to read"}]}]},{"name":"linkOptions","type":[{"kind":"type","text":"LinkOption","ref":"java.nio.file.LinkOption","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/LinkOption.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options determining how the symbolic links should be handled"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile.Attributes","ref":"com.oracle.truffle.api.TruffleFile$Attributes"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile$Attributes"},"code":true,"children":[{"kind":"text","text":"attributes view"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when no attributes are given"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the filesystem does not support some of the required attributes."}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads file's attributes as a bulk operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads file's attributes as a bulk operation."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1994}},{"id":"com.oracle.truffle.api.TruffleFile#getFileStoreInfo()","anchor":"getFileStoreInfo()","kind":"method","name":"getFileStoreInfo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.FileStoreInfo","ref":"com.oracle.truffle.api.TruffleFile$FileStoreInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getFileStoreInfo"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleFile.FileStoreInfo","ref":"com.oracle.truffle.api.TruffleFile$FileStoreInfo"}]},"doc":{"summary":[{"kind":"text","text":"Returns information about the file store that contains this file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns information about the file store that contains this file. The returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile$FileStoreInfo"},"code":true,"children":[{"kind":"text","text":"FileStoreInfo"}]},{"kind":"text","text":" object provides access to disk-related metadata such as total size, usable space, and unallocated space."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile$FileStoreInfo"},"code":true,"children":[{"kind":"text","text":"FileStoreInfo"}]}]]},"since":"25.0.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2027}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An abstract representation of a file used by Truffle languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An abstract representation of a file used by Truffle languages."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":111}},{"id":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor","name":"TruffleFile.AttributeDescriptor","kind":"class","language":"java","modifiers":["public","static","final"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleFile.AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleFile","members":[{"id":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1884}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a file's attribute."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a file's attribute."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Not all attributes are supported by all filesystems. When the filesystem does not support the attribute the attribute read fails with "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Attributes can be read one by one by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#getAttribute(com.oracle.truffle.api.TruffleFile.AttributeDescriptor,java.nio.file.LinkOption...)"},"code":true,"children":[{"kind":"text","text":"getAttribute"}]},{"kind":"text","text":" method or as a bulk read operation by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#getAttributes(java.util.Collection,java.nio.file.LinkOption...)"},"code":true,"children":[{"kind":"text","text":"getAttributes"}]},{"kind":"text","text":" method. When more attributes are needed the bulk read provides better performance."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1859}},{"id":"com.oracle.truffle.api.TruffleFile$Attributes","name":"TruffleFile.Attributes","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleFile.Attributes"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleFile","members":[{"id":"com.oracle.truffle.api.TruffleFile$Attributes#get(com.oracle.truffle.api.TruffleFile.AttributeDescriptor)","anchor":"get(com.oracle.truffle.api.TruffleFile.AttributeDescriptor)","kind":"method","name":"get","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"descriptor"},{"kind":"punct","text":")"}],"params":[{"name":"descriptor","type":[{"kind":"type","text":"TruffleFile.AttributeDescriptor","ref":"com.oracle.truffle.api.TruffleFile$AttributeDescriptor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the attribute to obtain value for"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the attribute value, may return "},{"kind":"code","text":"null"},{"kind":"text","text":" if the filesystem doesn't support the attribute."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the view was not created for the given attribute"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the attribute value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the attribute value."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1918}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A view over file's attributes values obtained by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#getAttributes(java.util.Collection,java.nio.file.LinkOption...)"},"code":true,"children":[{"kind":"text","text":"getAttributes"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A view over file's attributes values obtained by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#getAttributes(java.util.Collection,java.nio.file.LinkOption...)"},"code":true,"children":[{"kind":"text","text":"getAttributes"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":1897}},{"id":"com.oracle.truffle.api.TruffleFile$FileStoreInfo","name":"TruffleFile.FileStoreInfo","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleFile.FileStoreInfo"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleFile","members":[{"id":"com.oracle.truffle.api.TruffleFile$FileStoreInfo#getTotalSpace()","anchor":"getTotalSpace()","kind":"method","name":"getTotalSpace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getTotalSpace"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the size of the file store in bytes"}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file system does not support retrieving file store information"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an I/O error occurs while accessing the file store"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the size, in bytes, of the file store."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the size, in bytes, of the file store. If the file store's size exceeds "},{"kind":"link","target":{"id":"java.lang.Long#MAX_VALUE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html#MAX_VALUE"},"code":true,"children":[{"kind":"text","text":"Long.MAX_VALUE"}]},{"kind":"text","text":", "},{"kind":"code","text":"Long.MAX_VALUE"},{"kind":"text","text":" is returned."}]}]},"since":"25.0.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2099}},{"id":"com.oracle.truffle.api.TruffleFile$FileStoreInfo#getUnallocatedSpace()","anchor":"getUnallocatedSpace()","kind":"method","name":"getUnallocatedSpace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getUnallocatedSpace"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of unallocated bytes"}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file system does not support retrieving file store information"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an I/O error occurs while accessing the file store"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the number of unallocated bytes in the file store."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of unallocated bytes in the file store. The returned value represents the raw free space on the storage device, regardless of access permissions or user quotas. If the number of unallocated bytes exceeds "},{"kind":"link","target":{"id":"java.lang.Long#MAX_VALUE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html#MAX_VALUE"},"code":true,"children":[{"kind":"text","text":"Long.MAX_VALUE"}]},{"kind":"text","text":", "},{"kind":"code","text":"Long.MAX_VALUE"},{"kind":"text","text":" is returned. Note that the value may be imprecise, as it can change at any time due to external I/O operations, including those performed outside this virtual machine."}]}]},"since":"25.0.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2125}},{"id":"com.oracle.truffle.api.TruffleFile$FileStoreInfo#getUsableSpace()","anchor":"getUsableSpace()","kind":"method","name":"getUsableSpace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getUsableSpace"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of usable bytes available to this Java virtual machine"}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file system does not support retrieving file store information"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an I/O error occurs while accessing the file store"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the number of bytes available to this Java virtual machine on the file store."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of bytes available to this Java virtual machine on the file store. Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile$FileStoreInfo#getUnallocatedSpace()"},"code":true,"children":[{"kind":"text","text":"getUnallocatedSpace()"}]},{"kind":"text","text":", this method accounts for operating system-level restrictions, user quotas, and file system permissions, and therefore may return a smaller value. If the available space exceeds "},{"kind":"link","target":{"id":"java.lang.Long#MAX_VALUE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html#MAX_VALUE"},"code":true,"children":[{"kind":"text","text":"Long.MAX_VALUE"}]},{"kind":"text","text":", "},{"kind":"code","text":"Long.MAX_VALUE"},{"kind":"text","text":" is returned. Note that the returned value may be imprecise, as it can change at any time due to external I/O activity, including operations performed outside this virtual machine."}]}]},"since":"25.0.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2152}},{"id":"com.oracle.truffle.api.TruffleFile$FileStoreInfo#getBlockSize()","anchor":"getBlockSize()","kind":"method","name":"getBlockSize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getBlockSize"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the block size"}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file system does not support retrieving file store information"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an I/O error occurs while accessing the file store"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the number of bytes per block in the file store."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of bytes per block in the file store."}]}]},"since":"25.0.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2173}},{"id":"com.oracle.truffle.api.TruffleFile$FileStoreInfo#isReadOnly()","anchor":"isReadOnly()","kind":"method","name":"isReadOnly","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isReadOnly"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file system does not support retrieving file store information"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an I/O error occurs while accessing the file store"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Determines whether the file store is read-only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Determines whether the file store is read-only."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that even if the file store is not read-only, individual write operations may still be denied due to restrictions imposed by the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" implementation, operating system level policies, user quotas, or file system permissions."}]}]},"since":"25.0.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2197}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Provides information about the file store."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides information about the file store. This class offers access to storage-related metrics, such as the total size of the file store, unallocated space, and the usable space available to the current Java virtual machine."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#getFileStoreInfo()"},"code":true,"children":[{"kind":"text","text":"TruffleFile.getFileStoreInfo()"}]}]]},"since":"25.0.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2083}},{"id":"com.oracle.truffle.api.TruffleFile$FileTypeDetector","name":"TruffleFile.FileTypeDetector","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleFile.FileTypeDetector"}],"enclosing":"com.oracle.truffle.api.TruffleFile","members":[{"id":"com.oracle.truffle.api.TruffleFile$FileTypeDetector#findMimeType(com.oracle.truffle.api.TruffleFile)","anchor":"findMimeType(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"findMimeType","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"findMimeType"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"file"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"file","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":" to find a MIME type for"}]}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the MIME type or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the MIME type is not recognized"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"of an I/O error occurs"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the implementation requires an access the file and the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denies the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Finds a MIME type for given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds a MIME type for given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2059}},{"id":"com.oracle.truffle.api.TruffleFile$FileTypeDetector#findEncoding(com.oracle.truffle.api.TruffleFile)","anchor":"findEncoding(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"findEncoding","signature":[{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"},{"kind":"punct","text":" "},{"kind":"name","text":"findEncoding"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"file"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"file","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":" to find an encoding for. It's guaranteed that the "},{"kind":"code","text":"file"},{"kind":"text","text":" has a MIME type supported by the language registering this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile$FileTypeDetector"},"code":true,"children":[{"kind":"text","text":"FileTypeDetector"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the file encoding or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the file does not provide encoding"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"of an I/O error occurs"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denies the file access"}]}]}],"doc":{"summary":[{"kind":"text","text":"For a file containing an encoding information returns the encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"For a file containing an encoding information returns the encoding."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2072}}],"doc":{"summary":[{"kind":"text","text":"A detector for finding "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":"'s MIME type and encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A detector for finding "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":"'s MIME type and encoding."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The means by which the detector determines the MIME is highly implementation specific. A simple implementation might detect the MIME type using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":" extension. In other cases, the content of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":" needs to be examined to guess its file type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The implementations are registered using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#fileTypeDetectors()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage registration"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#detectMimeType()"},"code":true,"children":[{"kind":"text","text":"TruffleFile.detectMimeType()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#fileTypeDetectors()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Registration.fileTypeDetectors()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleFile.java","line":2048}},{"id":"com.oracle.truffle.api.TruffleLanguage","name":"TruffleLanguage","kind":"class","language":"java","modifiers":["public","abstract"],"typeParams":[{"name":"C","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"internal state of the language associated with every thread that is executing program "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parsed"}]},{"kind":"text","text":" by the language"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.TruffleLanguage#<init>()","anchor":"<init>()","kind":"constructor","name":"TruffleLanguage","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor to be called by subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor to be called by subclasses. Language should not create any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":"s in its constructor. The RootNodes created in the language constructor are not associated with a Context and they don't respect Context's engine options. The needed RootNodes can be created in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(Env)"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":267}},{"id":"com.oracle.truffle.api.TruffleLanguage#locals","anchor":"locals","kind":"field","name":"locals","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage.ContextLocalProvider","ref":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":"> "},{"kind":"name","text":"locals"}],"type":[{"kind":"type","text":"TruffleLanguage.ContextLocalProvider","ref":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":">"}],"doc":{"summary":[{"kind":"text","text":"Provider for creating context local and context thread local references."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provider for creating context local and context thread local references."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextLocal(TruffleLanguage.ContextLocalFactory)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextThreadLocal(TruffleLanguage.ContextThreadLocalFactory)"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":724}},{"id":"com.oracle.truffle.api.TruffleLanguage#areOptionsCompatible(org.graalvm.options.OptionValues,org.graalvm.options.OptionValues)","anchor":"areOptionsCompatible(org.graalvm.options.OptionValues,org.graalvm.options.OptionValues)","kind":"method","name":"areOptionsCompatible","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"areOptionsCompatible"},{"kind":"punct","text":"("},{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},{"kind":"punct","text":" "},{"kind":"param","text":"firstOptions"},{"kind":"punct","text":", "},{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},{"kind":"punct","text":" "},{"kind":"param","text":"newOptions"},{"kind":"punct","text":")"}],"params":[{"name":"firstOptions","type":[{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options used to create the first context, never "},{"kind":"code","text":"null"}]}]},{"name":"newOptions","type":[{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the options that will be used for the new context, never "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the combination of two sets of options allow to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"share"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#REUSE"},"code":true,"children":[{"kind":"text","text":"reuse"}]},{"kind":"text","text":" the same language instance, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the combination of two sets of options allow to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"share"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#REUSE"},"code":true,"children":[{"kind":"text","text":"reuse"}]},{"kind":"text","text":" the same language instance, else "},{"kind":"code","text":"false"},{"kind":"text","text":". If options are incompatible then a new language instance will be created for a new context. The default implementation returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the context policy of a language is set to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"exclusive"}]},{"kind":"text","text":" (default behavior) then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#areOptionsCompatible(org.graalvm.options.OptionValues,org.graalvm.options.OptionValues)"},"code":true,"children":[{"kind":"text","text":"areOptionsCompatible(OptionValues, OptionValues)"}]},{"kind":"text","text":" will never be invoked as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instances will not be shared for multiple contexts. For the other context policies "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#REUSE"},"code":true,"children":[{"kind":"text","text":"reuse"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"shared"}]},{"kind":"text","text":" this method can be used to further restrict the reuse of language instances. Compatibility influences "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parse caching"}]},{"kind":"text","text":" because it uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance as a key."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage of areOptionsCompatible if sharing of the language instances and parse caching should be restricted by the script version option:"}]},{"kind":"code","language":"java","text":"class CompatibleLanguage extends TruffleLanguage<Env> {\n\n    @Option(help = \"\", category = OptionCategory.USER)\n    static final OptionKey<String> ScriptVersion\n                = new OptionKey<>(\"ECMA2017\");\n\n    @Override\n    protected boolean areOptionsCompatible(OptionValues firstOptions,\n                    OptionValues newOptions) {\n        return firstOptions.get(ScriptVersion).\n                        equals(newOptions.get(ScriptVersion));\n    }\n\n    @Override\n    protected OptionDescriptors getOptionDescriptors() {\n        return new CompatibleLanguageOptionDescriptors();\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},"code":true,"children":[{"kind":"text","text":"ContextPolicy"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parse(ParsingRequest)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":752}},{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)","anchor":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)","kind":"method","name":"createContext","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"name","text":"createContext"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage.Env","ref":"com.oracle.truffle.api.TruffleLanguage$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"env"},{"kind":"punct","text":")"}],"params":[{"name":"env","type":[{"kind":"type","text":"TruffleLanguage.Env","ref":"com.oracle.truffle.api.TruffleLanguage$Env"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the environment the language is supposed to operate in"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"internal data of the language in given environment or "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates internal representation of the executing context suitable for given environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates internal representation of the executing context suitable for given environment. Each time the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" is used by a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context"}]},{"kind":"text","text":", the system calls this method to let the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" prepare for "},{"kind":"emphasis","children":[{"kind":"text","text":"execution"}]},{"kind":"text","text":". The returned execution context is completely language specific; it is however expected it will contain reference to here-in provided "},{"kind":"code","text":"env"},{"kind":"text","text":" and adjust itself according to parameters provided by the "},{"kind":"code","text":"env"},{"kind":"text","text":" object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The context created by this method is accessible using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"context references"}]},{"kind":"text","text":". An "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown if the context is tried to be accessed while the createContext method is executed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method shouldn't perform any complex operations. The runtime system is just being initialized and for example making "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"calls into other languages"}]},{"kind":"text","text":" and assuming your language is already initialized and others can see it would be wrong - until you return from this method, the initialization isn't over. The same is true for instrumentation, the instruments cannot receive any meta data about code executed during context creation. Should there be a need to perform complex initialization, do it by overriding the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeContext(C)"},"code":true,"children":[{"kind":"text","text":"initializeContext(java.lang.Object)"}]},{"kind":"text","text":" method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Additional services provided by the language must be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerService(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":" by this method otherwise "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"May return "},{"kind":"code","text":"null"},{"kind":"text","text":" if the language does not need any per-"},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" state. Otherwise it should return a new object instance every time it is called."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":789}},{"id":"com.oracle.truffle.api.TruffleLanguage#initializeContext(C)","anchor":"initializeContext(C)","kind":"method","name":"initializeContext","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"initializeContext"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)"}]}]}]}],"throws":[{"type":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if something goes wrong"}]}]}],"doc":{"summary":[{"kind":"text","text":"Perform any complex initialization."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Perform any complex initialization. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)"}]},{"kind":"text","text":" factory method shouldn't do any complex operations. Just create the instance of the context, let the runtime system register it properly. Should there be a need to perform complex initialization, override this method and let the runtime call it "},{"kind":"emphasis","children":[{"kind":"text","text":"later"}]},{"kind":"text","text":" to finish any "},{"kind":"emphasis","children":[{"kind":"text","text":"post initialization"}]},{"kind":"text","text":" actions. Example:"}]},{"kind":"code","language":"java","text":"class PostInitLanguage extends TruffleLanguage<Context> {\n    @Override\n    protected Context createContext(Env env) {\n        // \"quickly\" create the context\n        return new Context(env);\n    }\n\n    @Override\n    protected void initializeContext(Context context) throws IOException {\n        // called \"later\" to finish the initialization\n        // for example call into another language\n        Source source = Source.newBuilder(\"js\",\n                            \"function(x, y) x * y\",\n                            \"mul.js\").build();\n        context.mul = context.env.parsePublic(source);\n    }\n}"}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":805}},{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)","anchor":"finalizeContext(C)","kind":"method","name":"finalizeContext","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"finalizeContext"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Performs language context finalization actions that are necessary before language contexts are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Performs language context finalization actions that are necessary before language contexts are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":". However, in case the underlying polyglot context is being cancelled or hard-exited, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposeContext(Object)"}]},{"kind":"text","text":" is called even if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalizeContext(Object)"}]},{"kind":"text","text":" throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" or a "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" cancel or exit exception."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For the hard exit a language is supposed to run its finalization actions that require running guest code in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)"},"code":true,"children":[{"kind":"text","text":"exitContext(Object, ExitMode, int)"}]},{"kind":"text","text":", but please note that after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)"},"code":true,"children":[{"kind":"text","text":"exitContext(Object, ExitMode, int)"}]},{"kind":"text","text":" runs for a language, the language can still be invoked from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)"},"code":true,"children":[{"kind":"text","text":"exitContext(Object, ExitMode, int)"}]},{"kind":"text","text":" for a different language. Therefore, for instance, finalization for standard streams should both flush and set them to unbuffered mode at the end of exitContext, so that running guest code is not required to dispose the streams after that point."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Context finalization is invoked even if a context was cancelled. In such a case, if guest code would run as part of the finalization, it would be cancelled at the next polled "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"safepoint"}]},{"kind":"text","text":". If there is guest code that always needs to run even if cancelled, e.g. to prevent resource leakage, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowActions(boolean)"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint.setAllowActions(boolean)"}]},{"kind":"text","text":" to temporarily disable safepoints while executing that code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"All installed languages must remain usable after finalization. The finalization order can be influenced by specifying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#dependentLanguages()"},"code":true,"children":[{"kind":"text","text":"language dependencies"}]},{"kind":"text","text":". By default internal languages are finalized last, otherwise, the default order is unspecified but deterministic."}]},{"kind":"paragraph","children":[{"kind":"text","text":"While the finalization code is run, other language contexts may become initialized. In such a case, the finalization order may be non-deterministic and/or not respect the order specified by language dependencies."}]},{"kind":"paragraph","children":[{"kind":"text","text":"All threads "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":" by the language must be stopped and joined during finalizeContext. The languages are responsible for fulfilling that contract, otherwise, an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown. It's not safe to use the "},{"kind":"link","target":{"id":"java.util.concurrent.ExecutorService#awaitTermination(long,java.util.concurrent.TimeUnit)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/ExecutorService.html#awaitTermination(long,java.util.concurrent.TimeUnit)"},"code":true,"children":[{"kind":"text","text":"ExecutorService.awaitTermination(long, java.util.concurrent.TimeUnit)"}]},{"kind":"text","text":" to detect Thread termination as the polyglot thread may be cancelled before executing the executor worker."}]},{"kind":"paragraph","children":[{"kind":"text","text":"During finalizeContext, all unclosed inner contexts "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":" by the language must be left on all threads where the contexts are still active. No active inner context is allowed after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalizeContext(Object)"}]},{"kind":"text","text":" returns, otherwise it is an internal error."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Non-active inner contexts "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":" by the language that are still unclosed after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalizeContext(Object)"}]},{"kind":"text","text":" returns are automatically closed by Truffle."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Typical implementation looks like:"}]},{"kind":"code","language":"java","text":"class AsyncThreadLanguage extends TruffleLanguage<Context> {\n\n    @Override\n    protected Context createContext(Env env) {\n        return new Context(env);\n    }\n\n    @Override\n    protected boolean isThreadAccessAllowed(Thread thread,\n                    boolean singleThreaded) {\n        // allow access from any thread instead of just one\n        return true;\n    }\n\n    @Override\n    protected void initializeContext(Context context) throws Exception {\n        // create and start a Thread for the asynchronous task\n        // remeber the Thread reference to stop and join it in\n        // the finalizeContext\n        Thread t = context.env.newTruffleThreadBuilder(new Runnable() {\n            @Override\n            public void run() {\n                // asynchronous task\n            }\n        }).build();\n        context.startedThreads.add(t);\n        t.start();\n    }\n\n    @Override\n    protected void finalizeContext(Context context) {\n        // stop and join all the created Threads\n        boolean interrupted = false;\n        for (int i = 0; i < context.startedThreads.size();) {\n            Thread threadToJoin  = context.startedThreads.get(i);\n            try {\n                if (threadToJoin != Thread.currentThread()) {\n                    threadToJoin.interrupt();\n                    threadToJoin.join();\n                }\n                i++;\n            } catch (InterruptedException ie) {\n                interrupted = true;\n            }\n        }\n        if (interrupted) {\n            Thread.currentThread().interrupt();\n        }\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#dependentLanguages()"},"code":true,"children":[{"kind":"text","text":"for specifying language dependencies."}]}]]},"since":"0.30","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":866}},{"id":"com.oracle.truffle.api.TruffleLanguage#exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)","anchor":"exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)","kind":"method","name":"exitContext","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"exitContext"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleLanguage.ExitMode","ref":"com.oracle.truffle.api.TruffleLanguage$ExitMode"},{"kind":"punct","text":" "},{"kind":"param","text":"exitMode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"exitCode"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"language context."}]}]},{"name":"exitMode","type":[{"kind":"type","text":"TruffleLanguage.ExitMode","ref":"com.oracle.truffle.api.TruffleLanguage$ExitMode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"mode of exit."}]}]},{"name":"exitCode","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"exit code that was specified for exit."}]}]}],"doc":{"summary":[{"kind":"text","text":"Performs language exit event actions that are necessary before language contexts are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalized"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Performs language exit event actions that are necessary before language contexts are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalized"}]},{"kind":"text","text":". However, in case the underlying polyglot context is being cancelled, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)"},"code":true,"children":[{"kind":"text","text":"exit notifications"}]},{"kind":"text","text":" are not executed. Also, for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD"},"code":true,"children":[{"kind":"text","text":"hard exit"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalizeContext(Object)"}]},{"kind":"text","text":" is called even if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)"},"code":true,"children":[{"kind":"text","text":"exitContext(Object, ExitMode, int)"}]},{"kind":"text","text":" throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" or a "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" cancel or exit exception. All initialized language contexts must remain usable after exit notifications. In case a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" or the "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" exit exception is thrown during an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD"},"code":true,"children":[{"kind":"text","text":"hard exit notification"}]},{"kind":"text","text":", it is just logged and otherwise ignored and the notification process continues with the next language in order. In case the "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" cancel exception is thrown, it means the context is being cancelled in which case the exit notification process immediately stops. The exit notification order can be influenced by specifying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#dependentLanguages()"},"code":true,"children":[{"kind":"text","text":"language dependencies"}]},{"kind":"text","text":" - The exit notification for language A that depends on language B is executed before the exit notification for language B. By default, notifications for internal languages are executed last, otherwise, the default order is unspecified but deterministic."}]},{"kind":"paragraph","children":[{"kind":"text","text":"During "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD"},"code":true,"children":[{"kind":"text","text":"hard exit"}]},{"kind":"text","text":" notification, a language is supposed to run its finalization actions that require running guest code instead of running them in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalizeContext(Object)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"While the exit notification code is run, all languages remain fully functional. Also, other language contexts may become initialized. In such a case, the notification order may be non-deterministic and/or not respect the order specified by language dependencies."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In case "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeExited(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.closeExited(Node, int)"}]},{"kind":"text","text":" is called during a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#NATURAL"},"code":true,"children":[{"kind":"text","text":"natural exit"}]},{"kind":"text","text":" notification, natural exit notifications for remaining language contexts are not executed and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD"},"code":true,"children":[{"kind":"text","text":"hard exit"}]},{"kind":"text","text":" process starts by executing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD"},"code":true,"children":[{"kind":"text","text":"hard exit"}]},{"kind":"text","text":" notifications. In case "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeExited(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.closeExited(Node, int)"}]},{"kind":"text","text":" is called during a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD"},"code":true,"children":[{"kind":"text","text":"hard exit"}]},{"kind":"text","text":" notification, it just throws the special "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" exit exception, which is then just logged as described above."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In case the underlying polyglot context is cancelled by e.g. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeCancelled(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.closeCancelled(Node, String)"}]},{"kind":"text","text":" during exit notifications, guest code executed during exit notification is regularly cancelled, i.e., throws the "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" cancel exception, and the notification process does not continue as described above."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In the case of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD"},"code":true,"children":[{"kind":"text","text":"hard exit"}]},{"kind":"text","text":", if the current context has inner contexts that are still active, the execution for them will be stopped as well after all language exit notifications are executed for the outer context, but the exit notifications for the inner contexts are not automatically executed. The language needs to take appropriate action to make sure inner contexts are exited properly."}]}],"see":[[{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/Exit.md","children":[{"kind":"text","text":"Context Exit"}]}]]},"since":"22.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":924}},{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultipleContexts()","anchor":"initializeMultipleContexts()","kind":"method","name":"initializeMultipleContexts","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"initializeMultipleContexts"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Initializes this language instance for use with multiple contexts."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Initializes this language instance for use with multiple contexts. Whether a language instance supports being used for multiple contexts depends on its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#contextPolicy()"},"code":true,"children":[{"kind":"text","text":"context policy"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For any sharing of a language instance for multiple language contexts to take place a context must be created with sharing enabled. By default sharing is disabled for polyglot contexts. Sharing can be enabled by specifying an "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#engine(org.graalvm.polyglot.Engine)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#engine(org.graalvm.polyglot.Engine)"},"code":true,"children":[{"kind":"text","text":"explicit engine"}]},{"kind":"text","text":" or using an option. Before any language is used for sharing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultipleContexts()"},"code":true,"children":[{"kind":"text","text":"initializeMultipleContexts()"}]},{"kind":"text","text":" is invoked. It is guaranteed that sharing between multiple contexts is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultipleContexts()"},"code":true,"children":[{"kind":"text","text":"initialized"}]},{"kind":"text","text":" before any language context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A language may use this method to configure itself to use context independent speculations only. Since Truffle nodes are never shared between multiple language instances it is sufficient to keep track of whether sharing is enabled using a non-volatile boolean field instead of an assumption. They field may also be annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":" as it is guaranteed that this method is called prior to any compilation. The following criteria should be satisfied when supporting context independent code:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"All speculation on runtime value identity must be disabled with multiple contexts initialized, as they will lead to a guaranteed deoptimization when used with a second context."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Function inline caches should be modified and implemented as a two-level inline cache. The first level speculates on the function instance's identity and the second level on the underlying CallTarget instance. The first level cache must be disabled if multiple contexts are initialized, as this would unnecessarily cause deoptimization."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The DynamicObject root Shape instance should be stored in the language instance instead of the language context. Otherwise, any inline cache on shapes will not stabilize and ultimately end up in the generic state."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"All Node implementations must not store context-dependent data structures or context-dependent runtime values."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"All assumption instances should be stored in the language instance instead of the context. With multiple contexts initialized, the context instance read using context references may no longer be a constant. In this case any assumption read from the context would not be folded and they would cause significant runtime performance overhead. Assumptions from the language can always be folded by the compiler in both single and multiple context mode."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},"code":true,"children":[{"kind":"text","text":"More information on sharing language instances for multiple contexts."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#areOptionsCompatible(org.graalvm.options.OptionValues,org.graalvm.options.OptionValues)"},"code":true,"children":[{"kind":"text","text":"Specify option configurations that make sharing incompatible."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},"code":true,"children":[{"kind":"text","text":"ContextPolicy"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":972}},{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)","anchor":"disposeContext(C)","kind":"method","name":"disposeContext","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disposeContext"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Disposes the context created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disposes the context created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)"}]},{"kind":"text","text":". A dispose cleans up all resources associated with a context. The context may become unusable after it was disposed. It is not allowed to run guest language code while disposing a context. Finalization code should be run in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalizeContext(Object)"}]},{"kind":"text","text":" instead. Finalization will be performed prior to context "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposal"}]},{"kind":"text","text":". However, in case the underlying polyglot context is being cancelled, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposeContext(Object)"}]},{"kind":"text","text":" is called even if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalizeContext(Object)"}]},{"kind":"text","text":" throws "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" exception.."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The disposal order can be influenced by specifying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#dependentLanguages()"},"code":true,"children":[{"kind":"text","text":"language dependencies"}]},{"kind":"text","text":". By default internal languages are disposed last, otherwise the default order is unspecified but deterministic. During disposal no other language must be accessed using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env"},"code":true,"children":[{"kind":"text","text":"language environment"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"to run finalization code for a context."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"to perform disposal actions when a thread is no longer used."}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1000}},{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)","anchor":"parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)","kind":"method","name":"parse","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"parse"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage.ParsingRequest","ref":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest"},{"kind":"punct","text":" "},{"kind":"param","text":"request"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"params":[{"name":"request","type":[{"kind":"type","text":"TruffleLanguage.ParsingRequest","ref":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"request for parsing"}]}]}],"returns":{"type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a call target to invoke which also keeps in memory the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" tree representing just parsed "},{"kind":"code","text":"code"}]}]},"throws":[{"type":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"exception can be thrown when parsing goes wrong. Here-in thrown exception is propagated to the user who called one of "},{"kind":"code","text":"eval"},{"kind":"text","text":" methods of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Parses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getSource()"},"code":true,"children":[{"kind":"text","text":"provided source"}]},{"kind":"text","text":" and generates its appropriate AST representation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Parses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getSource()"},"code":true,"children":[{"kind":"text","text":"provided source"}]},{"kind":"text","text":" and generates its appropriate AST representation. The parsing should execute no user code, it should only create the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" tree to represent the source. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getSource()"},"code":true,"children":[{"kind":"text","text":"provided source"}]},{"kind":"text","text":" does not correspond naturally to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"call target"}]},{"kind":"text","text":", the returned call target should create and if necessary initialize the corresponding language entity and return it."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The result of the parsing request is cached per language instance, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getSource()"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getArgumentNames()"},"code":true,"children":[{"kind":"text","text":"argument names"}]},{"kind":"text","text":". It is safe to assume that current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getArgumentNames()"},"code":true,"children":[{"kind":"text","text":"argument names"}]},{"kind":"text","text":" will remain unchanged for a parsed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":". The scope of the caching is influenced by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#contextPolicy()"},"code":true,"children":[{"kind":"text","text":"context policy"}]},{"kind":"text","text":" and option "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#areOptionsCompatible(org.graalvm.options.OptionValues,org.graalvm.options.OptionValues)"},"code":true,"children":[{"kind":"text","text":"compatibility"}]},{"kind":"text","text":". Caching may be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isCached()"},"code":true,"children":[{"kind":"text","text":"disabled"}]},{"kind":"text","text":" for sources. It is enabled for new sources by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"argumentNames"},{"kind":"text","text":" may contain symbolic names for actual parameters of the call to the returned value. The result should be a call target with method "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(java.lang.Object...)"}]},{"kind":"text","text":" that accepts as many arguments as were provided via the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getArgumentNames()"},"code":true,"children":[{"kind":"text","text":"ParsingRequest.getArgumentNames()"}]},{"kind":"text","text":" method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Implement "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.InlineParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parse(com.oracle.truffle.api.TruffleLanguage.InlineParsingRequest)"}]},{"kind":"text","text":" to parse source in a specific context location."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#contextPolicy()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Registration.contextPolicy()"}]}]]},"since":"0.22","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1038}},{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.InlineParsingRequest)","anchor":"parse(com.oracle.truffle.api.TruffleLanguage.InlineParsingRequest)","kind":"method","name":"parse","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutableNode","ref":"com.oracle.truffle.api.nodes.ExecutableNode"},{"kind":"punct","text":" "},{"kind":"name","text":"parse"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage.InlineParsingRequest","ref":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest"},{"kind":"punct","text":" "},{"kind":"param","text":"request"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"params":[{"name":"request","type":[{"kind":"type","text":"TruffleLanguage.InlineParsingRequest","ref":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"request for parsing"}]}]}],"returns":{"type":[{"kind":"type","text":"ExecutableNode","ref":"com.oracle.truffle.api.nodes.ExecutableNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a fragment to invoke which also keeps in memory the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" tree representing just parsed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getSource()"},"code":true,"children":[{"kind":"text","text":"code"}]},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":" when inline parsing of code snippets is not implemented"}]}]},"throws":[{"type":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"exception can be thrown when parsing goes wrong."}]}]}],"doc":{"summary":[{"kind":"text","text":"Parses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getSource()"},"code":true,"children":[{"kind":"text","text":"provided source snippet"}]},{"kind":"text","text":" at the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getLocation()"},"code":true,"children":[{"kind":"text","text":"provided location"}]},{"kind":"text","text":" and generates its appropriate AST representation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Parses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getSource()"},"code":true,"children":[{"kind":"text","text":"provided source snippet"}]},{"kind":"text","text":" at the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getLocation()"},"code":true,"children":[{"kind":"text","text":"provided location"}]},{"kind":"text","text":" and generates its appropriate AST representation. The parsing should execute no user code, it should only create the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" tree to represent the source."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The parsing should be performed in a context (specified by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getLocation()"},"code":true,"children":[{"kind":"text","text":"InlineParsingRequest.getLocation()"}]},{"kind":"text","text":"). The result should be an AST fragment with method "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutableNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"ExecutableNode.execute(com.oracle.truffle.api.frame.VirtualFrame)"}]},{"kind":"text","text":" that accepts frames valid at the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getLocation()"},"code":true,"children":[{"kind":"text","text":"provided location"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When not implemented, "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned by default."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1063}},{"id":"com.oracle.truffle.api.TruffleLanguage#getOptionDescriptors()","anchor":"getOptionDescriptors()","kind":"method","name":"getOptionDescriptors","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOptionDescriptors"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a set of option descriptors that are supported by this language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a set of option descriptors that are supported by this language. Option values are accessible using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getOptions()"},"code":true,"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":" when the context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":". To construct option descriptors from a list then "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptors#create(java.util.List)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html#create(java.util.List)"},"code":true,"children":[{"kind":"text","text":"OptionDescriptors.create(List)"}]},{"kind":"text","text":" can be used. Languages must always return the same option descriptors independent of the language instance or side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.Option"},"code":true,"children":[{"kind":"text","text":"For an example of declaring the option descriptor using an annotation."}]}]]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1077}},{"id":"com.oracle.truffle.api.TruffleLanguage#getSourceOptionDescriptors()","anchor":"getSourceOptionDescriptors()","kind":"method","name":"getSourceOptionDescriptors","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceOptionDescriptors"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a set of source option descriptors that are supported by this language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a set of source option descriptors that are supported by this language. Option values are accessible using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getOptions(com.oracle.truffle.api.TruffleLanguage)"},"code":true,"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":" or using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getOptionValues()"},"code":true,"children":[{"kind":"text","text":"parsing request"}]},{"kind":"text","text":" when the source is parsed. Languages must always return the same option descriptors independent of the language instance or side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.Option"},"code":true,"children":[{"kind":"text","text":"For an example of declaring the option descriptor using an annotation."}]}]]},"since":"25.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1091}},{"id":"com.oracle.truffle.api.TruffleLanguage#patchContext(C,com.oracle.truffle.api.TruffleLanguage.Env)","anchor":"patchContext(C,com.oracle.truffle.api.TruffleLanguage.Env)","kind":"method","name":"patchContext","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"patchContext"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleLanguage.Env","ref":"com.oracle.truffle.api.TruffleLanguage$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"newEnv"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)"}]},{"kind":"text","text":" during pre-initialization"}]}]},{"name":"newEnv","type":[{"kind":"type","text":"TruffleLanguage.Env","ref":"com.oracle.truffle.api.TruffleLanguage$Env"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new environment replacing the environment used in pre-initialization phase"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true in case of successful environment update. When the context cannot be updated to a new environment return false to create a new context. By default it returns "},{"kind":"code","text":"false"},{"kind":"text","text":" to prevent an usage of pre-initialized context by a language which is not aware of context pre-initialization."}]}]},"doc":{"summary":[{"kind":"text","text":"Notifies the language with pre-initialized context about "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env"},"code":true,"children":[{"kind":"text","text":"Env"}]},{"kind":"text","text":" change."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies the language with pre-initialized context about "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env"},"code":true,"children":[{"kind":"text","text":"Env"}]},{"kind":"text","text":" change. See "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context"}]},{"kind":"text","text":" for information how to enable the Context pre-initialization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"During the pre-initialization (in the native compilation time) the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeContext(C)"},"code":true,"children":[{"kind":"text","text":"initializeContext(java.lang.Object)"}]},{"kind":"text","text":" methods are called. In the image execution time, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#patchContext(C,com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"patchContext(java.lang.Object, com.oracle.truffle.api.TruffleLanguage.Env)"}]},{"kind":"text","text":" is called on all languages whose contexts were created during the pre-initialization a consequence of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context#create(java.lang.String...)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html#create(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.create(java.lang.String...)"}]},{"kind":"text","text":" invocation. The contexts are patched in a topological order starting from dependent languages. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#patchContext(C,com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"patchContext(java.lang.Object, com.oracle.truffle.api.TruffleLanguage.Env)"}]},{"kind":"text","text":" is successful for all pre-initialized languages the pre-initialized context is used, otherwise a new context is created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Typical implementation looks like:"}]},{"kind":"code","language":"java","text":"@Override\nprotected boolean patchContext(Context context, Env newEnv) {\n    if (!optionsAllowPreInitializedContext(context, newEnv)) {\n        // Incompatible options - cannot use pre-initialized context\n        return false;\n    }\n    context.env = newEnv;\n    context.args = newEnv.getApplicationArguments();\n    context.in = newEnv.in();\n    context.out = newEnv.out();\n    context.err = newEnv.err();\n    return true;\n}\n\nprivate boolean optionsAllowPreInitializedContext(Context context, Env newEnv) {\n    // Verify that values of important options in the new Env do not differ\n    // from values in the pre-initialized context\n    final String newVersionValue = newEnv.getOptions().get(version);\n    return Objects.equals(context.languageVersion, newVersionValue);\n}"}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1125}},{"id":"com.oracle.truffle.api.TruffleLanguage#isThreadAccessAllowed(java.lang.Thread,boolean)","anchor":"isThreadAccessAllowed(java.lang.Thread,boolean)","kind":"method","name":"isThreadAccessAllowed","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isThreadAccessAllowed"},{"kind":"punct","text":"("},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"singleThreaded"},{"kind":"punct","text":")"}],"params":[{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread that accesses the context for the first time."}]}]},{"name":"singleThreaded","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the access is considered single-threaded, "},{"kind":"code","text":"false"},{"kind":"text","text":" if more than one thread is active at the same time."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if code of this language is allowed to be executed on this thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if code of this language is allowed to be executed on this thread. The method returns "},{"kind":"code","text":"false"},{"kind":"text","text":" to deny execution on this thread. The default implementation denies access to more than one thread at the same time. The "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"current thread"}]},{"kind":"text","text":" may differ from the passed thread. If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages may be executed without a context being entered."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example multi-threaded language implementation:"}]}]},{"kind":"code","language":"java","text":"class MultiThreadedLanguage extends TruffleLanguage<Context> {\n\n    @Override\n    protected Context createContext(Env env) {\n        return new Context(env);\n    }\n\n    @Override\n    protected boolean isThreadAccessAllowed(Thread thread,\n                    boolean singleThreaded) {\n        // allow access from any thread instead of just one\n        return true;\n    }\n\n    @Override\n    protected void initializeMultiThreading(Context context) {\n        // perform actions when the context is switched to multi-threading\n        context.singleThreaded.invalidate();\n    }\n\n    @Override\n    protected void initializeThread(Context context, Thread thread) {\n        // perform initialization actions for threads\n    }\n\n    @Override\n    protected void disposeThread(Context context, Thread thread) {\n        // perform disposal actions for threads\n    }\n}"}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1318}},{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultiThreading(C)","anchor":"initializeMultiThreading(C)","kind":"method","name":"initializeMultiThreading","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"initializeMultiThreading"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context that should be prepared for multi-threading."}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked before the context is accessed from multiple threads at the same time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked before the context is accessed from multiple threads at the same time. This allows languages to perform actions that are required to support multi-threading. It will never be invoked if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#isThreadAccessAllowed(java.lang.Thread,boolean)"},"code":true,"children":[{"kind":"text","text":"isThreadAccessAllowed(Thread, boolean)"}]},{"kind":"text","text":" is implemented to deny access from multiple threads at the same time. All initialized languages must allow multi-threading for this method to be invoked. If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages may be executed without a context being entered."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example multi-threaded language implementation:"}]}]},{"kind":"code","language":"java","text":"class MultiThreadedLanguage extends TruffleLanguage<Context> {\n\n    @Override\n    protected Context createContext(Env env) {\n        return new Context(env);\n    }\n\n    @Override\n    protected boolean isThreadAccessAllowed(Thread thread,\n                    boolean singleThreaded) {\n        // allow access from any thread instead of just one\n        return true;\n    }\n\n    @Override\n    protected void initializeMultiThreading(Context context) {\n        // perform actions when the context is switched to multi-threading\n        context.singleThreaded.invalidate();\n    }\n\n    @Override\n    protected void initializeThread(Context context, Thread thread) {\n        // perform initialization actions for threads\n    }\n\n    @Override\n    protected void disposeThread(Context context, Thread thread) {\n        // perform disposal actions for threads\n    }\n}"}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1338}},{"id":"com.oracle.truffle.api.TruffleLanguage#initializeThread(C,java.lang.Thread)","anchor":"initializeThread(C,java.lang.Thread)","kind":"method","name":"initializeThread","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"initializeThread"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context that is entered"}]}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread that accesses the context for the first time."}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked before a context is accessed from a new thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked before a context is accessed from a new thread. This allows the language to perform initialization actions for each thread before guest language code is executed. Also for languages that deny access from multiple threads at the same time, multiple threads may be initialized if they are used sequentially. This method will be invoked before the context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeContext(C)"},"code":true,"children":[{"kind":"text","text":"initialized"}]},{"kind":"text","text":" for the thread the context will be initialized with. If the thread is stored in the context it must be referenced using "},{"kind":"link","target":{"id":"java.lang.ref.WeakReference","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/WeakReference.html"},"code":true,"children":[{"kind":"text","text":"WeakReference"}]},{"kind":"text","text":" to avoid leaking thread objects."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"current thread"}]},{"kind":"text","text":" is equal to the initialized thread."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages may be executed without a context being entered."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example multi-threaded language implementation:"}]}]},{"kind":"code","language":"java","text":"class MultiThreadedLanguage extends TruffleLanguage<Context> {\n\n    @Override\n    protected Context createContext(Env env) {\n        return new Context(env);\n    }\n\n    @Override\n    protected boolean isThreadAccessAllowed(Thread thread,\n                    boolean singleThreaded) {\n        // allow access from any thread instead of just one\n        return true;\n    }\n\n    @Override\n    protected void initializeMultiThreading(Context context) {\n        // perform actions when the context is switched to multi-threading\n        context.singleThreaded.invalidate();\n    }\n\n    @Override\n    protected void initializeThread(Context context, Thread thread) {\n        // perform initialization actions for threads\n    }\n\n    @Override\n    protected void disposeThread(Context context, Thread thread) {\n        // perform disposal actions for threads\n    }\n}"}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1364}},{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeThread(C,java.lang.Thread)","anchor":"finalizeThread(C,java.lang.Thread)","kind":"method","name":"finalizeThread","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"finalizeThread"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]}],"doc":{"summary":[{"kind":"text","text":"The behavior of this notification is different for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"polyglot threads"}]},{"kind":"text","text":" and embedder threads."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The behavior of this notification is different for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"polyglot threads"}]},{"kind":"text","text":" and embedder threads."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"polyglot threads"}]},{"kind":"text","text":" the "},{"kind":"code","text":"finalizeThread"},{"kind":"text","text":" notification is invoked just before the context is left for the last time in the thread, and it is still safe to run guest code unless the context is cancelled or hard-exited. This allows the language to perform finalization actions for each thread and context. Polyglot threads are finalized before or while the context is finalized and it always holds that "},{"kind":"code","text":"thread == Thread.currentThread()"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Embedder threads are finalized after the context is finalized, but before it is disposed. "},{"kind":"code","text":"thread == Thread.currentThread()"},{"kind":"text","text":" holds only for the embedder thread that performed the context finalization. Finalization of other embedder threads is invoked in the context finalization thread as well, and so "},{"kind":"code","text":"thread != Thread.currentThread()"},{"kind":"text","text":". It is still safe to run guest code in "},{"kind":"code","text":"finalizeThread"},{"kind":"text","text":" for an embedder thread unless the context is cancelled or hard-exited, but it is not allowed to initialize new language contexts or create polyglot threads. A language context initialization or creation of a polyglot thread in "},{"kind":"code","text":"finalizeThread"},{"kind":"text","text":" for an embedder thread results in "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":". Please note that embedder threads may be collected by the garbage collector before they can be finalized and may therefore not be finalized."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Thread finalization is invoked before "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"thread disposal"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"For usage details."}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1394}},{"id":"com.oracle.truffle.api.TruffleLanguage#disposeThread(C,java.lang.Thread)","anchor":"disposeThread(C,java.lang.Thread)","kind":"method","name":"disposeThread","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disposeThread"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked the last time code will be executed for this thread and context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked the last time code will be executed for this thread and context. This allows the language to perform cleanup actions for each thread and context. Threads might be disposed before after or while a context is disposed. The "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"current thread"}]},{"kind":"text","text":" may differ from the disposed thread. Disposal of threads is only guaranteed for threads that were created by guest languages, so called "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"polyglot threads"}]},{"kind":"text","text":". Other threads, created by the embedder, may be collected by the garbage collector before they can be disposed and may therefore not be disposed."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"For usage details."}]}]]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1411}},{"id":"com.oracle.truffle.api.TruffleLanguage#getScope(C)","anchor":"getScope(C)","kind":"method","name":"getScope","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getScope"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context to find the language top scope in"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the scope object or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the language does not support such concept"}]}]},"doc":{"summary":[{"kind":"text","text":"Get a top scope of the language, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a top scope of the language, if any. The returned object must be an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"interop scope object"}]},{"kind":"text","text":" and may have "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"parent scopes"}]},{"kind":"text","text":". The scope object exposes all top scopes variables as flattened "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"members"}]},{"kind":"text","text":". Top scopes are independent of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.interop.InteropLibrary.isScope(Object)"}]},{"kind":"text","text":" for details."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned scope objects may be cached by the caller per language context. Therefore the method should always return equivalent top-scopes and variables objects for a given language context. Changes to the top scope by executing guest language code should be reflected by cached scope instances. It is recommended to store the top-scope directly in the language context for efficient access."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Interpretation"}]},{"kind":"paragraph","children":[{"kind":"text","text":"In most languages, just evaluating an expression like "},{"kind":"code","text":"Math"},{"kind":"text","text":" is equivalent of a lookup with the identifier 'Math' in the top-most scopes of the language. Looking up the identifier 'Math' should have equivalent semantics as reading with the key 'Math' from the variables object of one of the top-most scopes of the language. In addition languages may optionally allow modification and insertion with the variables object of the returned top-scopes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Languages may want to specify multiple parent top-scopes. It is recommended to stay as close as possible to the set of top-scopes that as is described in the guest language specification, if available. For example, in JavaScript, there is a 'global environment' and a 'global object' scope. While the global environment scope contains class declarations and is not insertable, the global object scope is used to insert new global variable values and is therefore insertable."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Use Cases"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Top scopes are accessible to instruments with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getScope(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.TruffleInstrument.Env.getScope(LanguageInfo)"}]},{"kind":"text","text":". They are used by debuggers to access the top-most scopes of the language."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Top scopes available in the "},{"kind":"link","target":{"id":"org.graalvm.polyglot","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/package-summary.html"},"code":true,"children":[{"kind":"text","text":"polyglot API"}]},{"kind":"text","text":" as context "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context#getBindings(java.lang.String)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html#getBindings(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"bindings"}]},{"kind":"text","text":" object. Access to members of the bindings object is applied to the returned scope object via interop."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Languages may expose other language scopes using a polyglot bindings builtin. E.g with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopePublic(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleLanguage.Env.getScopePublic(LanguageInfo)"}]},{"kind":"text","text":"."}]}]]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1461}},{"id":"com.oracle.truffle.api.TruffleLanguage#isVisible(C,java.lang.Object)","anchor":"isVisible(C,java.lang.Object)","kind":"method","name":"isVisible","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isVisible"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the execution context for doing the conversion"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to check. Either primitive type or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.interop.TruffleObject"}]}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the language implements an interactive response to evaluation of interactive sources."}]}]},"doc":{"summary":[{"kind":"text","text":"Decides whether the result of evaluating an interactive source should be printed to stdout."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Decides whether the result of evaluating an interactive source should be printed to stdout. By default this methods returns "},{"kind":"code","text":"true"},{"kind":"text","text":" claiming all values are visible."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method affects behavior of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context#eval(org.graalvm.polyglot.Source)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html#eval(org.graalvm.polyglot.Source)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.eval(org.graalvm.polyglot.Source)"}]},{"kind":"text","text":" - when evaluating an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isInteractive()"},"code":true,"children":[{"kind":"text","text":"interactive source"}]},{"kind":"text","text":" the result of the evaluation is tested for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#isVisible(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"visibility"}]},{"kind":"text","text":" and if the value is found visible, it gets converted to string and printed to "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#out(java.io.OutputStream)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#out(java.io.OutputStream)"},"code":true,"children":[{"kind":"text","text":"standard output"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A language can control whether a value is or isn't printed by overriding this method and returning "},{"kind":"code","text":"false"},{"kind":"text","text":" for some or all values. In such case it is up to the language itself to use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#out()"},"code":true,"children":[{"kind":"text","text":"Env.out()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#err()"},"code":true,"children":[{"kind":"text","text":"Env.err()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#in()"},"code":true,"children":[{"kind":"text","text":"Env.in()"}]},{"kind":"text","text":" streams of the environment. When evaluation is called with an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isInteractive()"},"code":true,"children":[{"kind":"text","text":"interactive source"}]},{"kind":"text","text":" of a language that controls its interactive behavior, it is the responsibility of the language itself to print the result to use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#out()"},"code":true,"children":[{"kind":"text","text":"Env.out()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#err()"},"code":true,"children":[{"kind":"text","text":"Env.err()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#in()"},"code":true,"children":[{"kind":"text","text":"Env.in()"}]},{"kind":"text","text":" streams of the environment."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1493}},{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)","anchor":"getLanguageView(C,java.lang.Object)","kind":"method","name":"getLanguageView","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguageView"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current context."}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Wraps the value to provide language-specific information for primitive and foreign values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Wraps the value to provide language-specific information for primitive and foreign values. Foreign values should be enhanced to look like the most generic object type of the language. The wrapper needs to introduce any \"virtual\" methods and properties that are commonly used in language constructs and in algorithms that are written to work on this generic object type. The wrapper may add or remove existing interop traits, but it is not allowed to change the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"interop type"}]},{"kind":"text","text":". For example, it is not allowed to change the type from number to string. If the behavior of an existing trait is modified then all writes on the mapper need to be forwarded to the underlying object, apart from the virtual members. Writes to the virtual members should be persisted in the wrapper if this is the behavior of the object type that is being mapped to."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Every language view wrapper must return the current language as their associated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":". An "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown when a language view is requested if this contract is violated."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example modifications language view wrappers may perform:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Provide a language specific "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"display string"}]},{"kind":"text","text":" for primitive and foreign values."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Return a language specific "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"metaobject"}]},{"kind":"text","text":" for primitive or foreign values."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Add virtual members to the object for the view. For example, any JavaScript object is expected to have an implicit __proto__ member. Foreign objects, even if they do not have such a member, are interpreted as if they have."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"There are languages where all scalar values are also vectors. In such a case the array element trait may be added using the language wrapper to such values."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The default implementation returns "},{"kind":"code","text":"null"},{"kind":"text","text":". If "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned then the default language view will be used. The default language view wraps the value and returns the current language as their associated language. With the default view wrapper all interop library messages will be forwarded to the delegate value."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This following example shows a simplified language view. For a full implementation including an example of metaobjects can be found in the Truffle examples language \"SimpleLanguage\"."}]},{"kind":"code","text":"@ExportLibrary(value = InteropLibrary.class, delegateTo = \"delegate\")\nfinal class ExampleLanguageView implements TruffleObject {\n\n    protected final Object delegate;\n\n    ExampleLanguageView(Object delegate) {\n        this.delegate = delegate;\n    }\n\n    @ExportMessage\n    boolean hasLanguageId() {\n        return true;\n    }\n\n    @ExportMessage\n    String getLanguageId() {\n        return MyLanguage.ID;\n    }\n\n    @ExportMessage\n    Object toDisplayString(boolean allowSideEffects,\n                    @CachedLibrary(\"this.delegate\") InteropLibrary dLib) {\n        try {\n            if (dLib.isString(this.delegate)) {\n                return dLib.asString(this.delegate);\n            } else if (dLib.isBoolean(this.delegate)) {\n                return dLib.asBoolean(this.delegate) ? \"TRUE\" : \"FALSE\";\n            } else if (dLib.fitsInLong(this.delegate)) {\n                return longToString(dLib.asLong(this.delegate));\n            } else {\n                // full list truncated for this language\n                return \"Unsupported value\";\n            }\n        } catch (UnsupportedMessageException e) {\n            CompilerDirectives.transferToInterpreter();\n            throw new AssertionError(e);\n        }\n    }\n\n    @TruffleBoundary\n    private static String longToString(long value) {\n        return String.valueOf(value);\n    }\n\n    @ExportMessage\n    boolean hasMetaObject(@CachedLibrary(\"this.delegate\") InteropLibrary dLib) {\n        return dLib.isString(this.delegate)//\n                        || dLib.fitsInLong(this.delegate)//\n                        || dLib.isBoolean(this.delegate);\n    }\n\n    @ExportMessage\n    Object getMetaObject(@CachedLibrary(\"this.delegate\") InteropLibrary dLib)\n                    throws UnsupportedMessageException {\n        if (dLib.isString(this.delegate)) {\n            return MyMetaObject.PRIMITIVE_STRING;\n        } else if (dLib.isBoolean(this.delegate)) {\n            return MyMetaObject.PRIMITIVE_LONG;\n        } else if (dLib.fitsInLong(this.delegate)) {\n            return MyMetaObject.PRIMITIVE_BOOLEAN;\n        } else {\n            // no associable metaobject\n            throw UnsupportedMessageException.create();\n        }\n    }\n}"}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1610}},{"id":"com.oracle.truffle.api.TruffleLanguage#createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)","anchor":"createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)","kind":"method","name":"createContextLocal","modifiers":["protected","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"ContextLocal","ref":"com.oracle.truffle.api.ContextLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createContextLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage.ContextLocalFactory","ref":"com.oracle.truffle.api.TruffleLanguage$ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"TruffleLanguage.ContextLocalFactory","ref":"com.oracle.truffle.api.TruffleLanguage$ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"ContextLocal","ref":"com.oracle.truffle.api.ContextLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new context local reference for this Truffle language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new context local reference for this Truffle language. Starting with JDK 21, using this method leads to a this-escape warning. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextLocal(TruffleLanguage.ContextLocalFactory)"}]},{"kind":"text","text":" instead."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 23.1, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextLocal(TruffleLanguage.ContextLocalFactory)"}]},{"kind":"text","text":" instead"}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1657}},{"id":"com.oracle.truffle.api.TruffleLanguage#createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)","anchor":"createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)","kind":"method","name":"createContextThreadLocal","modifiers":["protected","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"ContextThreadLocal","ref":"com.oracle.truffle.api.ContextThreadLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createContextThreadLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage.ContextThreadLocalFactory","ref":"com.oracle.truffle.api.TruffleLanguage$ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"TruffleLanguage.ContextThreadLocalFactory","ref":"com.oracle.truffle.api.TruffleLanguage$ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"ContextThreadLocal","ref":"com.oracle.truffle.api.ContextThreadLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new context thread local reference for this Truffle language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new context thread local reference for this Truffle language. Starting with JDK 21, using this method leads to a this-escape warning. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextThreadLocal(TruffleLanguage.ContextThreadLocalFactory)"}]},{"kind":"text","text":" instead."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 23.1, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextThreadLocal(TruffleLanguage.ContextThreadLocalFactory)"}]},{"kind":"text","text":" instead"}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1674}},{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageHome()","anchor":"getLanguageHome()","kind":"method","name":"getLanguageHome","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguageHome"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the home location for this language or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the language home is not set."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the home location for this language or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the language home is not set. Languages consumed from the Maven repository typically don't have a language home. For legacy graalvm or standalone builds the language home corresponds to the directory in which the Jar file is located, if run from a Jar file. For an AOT compiled binary, this corresponds to the location of the language files in the default GraalVM distribution layout."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1688}},{"id":"com.oracle.truffle.api.TruffleLanguage#getAsynchronousStackDepth()","anchor":"getAsynchronousStackDepth()","kind":"method","name":"getAsynchronousStackDepth","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getAsynchronousStackDepth"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get the depth of asynchronous stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the depth of asynchronous stack. When zero, the language should not sacrifice performance to be able to provide asynchronous stack. When the depth is non-zero, the language should provide asynchronous stack up to that depth. The language may provide more asynchronous frames than this depth if it's of no performance penalty, or if requested by other (e.g. language-specific) options. The returned depth may change at any time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Override "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findAsynchronousFrames(com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"RootNode.findAsynchronousFrames(Frame)"}]},{"kind":"text","text":" to provide the asynchronous stack frames."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findAsynchronousFrames(com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"RootNode.findAsynchronousFrames(Frame)"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1709}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A Truffle language implementation contains all the services a language should provide to make it composable with other languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A Truffle language implementation contains all the services a language should provide to make it composable with other languages. Implementation classes must be annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration"},"code":true,"children":[{"kind":"text","text":"Registration"}]},{"kind":"text","text":" in order to be discoverable by the "},{"kind":"link","target":{"id":"org.graalvm.polyglot","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/package-summary.html"},"children":[{"kind":"text","text":"Polyglot API"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" subclasses must provide a public default constructor."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Lifecycle"}]},{"kind":"paragraph","children":[{"kind":"text","text":"A language implementation becomes available for use by an engine when metadata is added using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration"},"code":true,"children":[{"kind":"text","text":"Registration"}]},{"kind":"text","text":" annotation and the implementation's JAR file placed on the host Java Virtual Machine's class path."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A newly created engine locates all available language implementations and creates a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html"},"children":[{"kind":"text","text":"descriptor"}]},{"kind":"text","text":" for each. The descriptor holds the language's registered metadata, but its execution environment is not initialized until the language is needed for code execution. That execution environment remains initialized for the lifetime of the engine and is isolated from the environment in any other engine instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Language global state can be shared between multiple context instances by saving them in a custom field of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" subclass. Languages may control sharing between multiple contexts using its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#contextPolicy()"},"code":true,"children":[{"kind":"text","text":"context policy"}]},{"kind":"text","text":". By default the context policy is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"exclusive"}]},{"kind":"text","text":": each context has its own separate TruffleLanguage instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the context policy is more permissive then the implementation needs to manually ensure data isolation between the contexts. This means that state associated with a context must not be stored in a TruffleLanguage subclass. ASTs and assumptions can be shared across multiple contexts if modifying them does not affect language semantics. Languages are strongly discouraged from using static mutable state in their languages. Instead "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instances should be used instead to store global state and their sharing should be configured using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#contextPolicy()"},"code":true,"children":[{"kind":"text","text":"context policy"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Whenever an engine is disposed then each initialized language context will be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":"."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Context Policy and Sharing"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The number of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instances per polyglot "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" is configured by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#contextPolicy()"},"code":true,"children":[{"kind":"text","text":"context policy"}]},{"kind":"text","text":". By default an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"exclusive"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance is created for every "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"polyglot context"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"inner context"}]},{"kind":"text","text":". With policy "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#REUSE"},"code":true,"children":[{"kind":"text","text":"reuse"}]},{"kind":"text","text":", language instances will be reused after a language context was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":". With policy "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"shared"}]},{"kind":"text","text":", a language will also be reused if active contexts are not yet disposed. Language instances will only be shared or reused if they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#areOptionsCompatible(org.graalvm.options.OptionValues,org.graalvm.options.OptionValues)"},"code":true,"children":[{"kind":"text","text":"compatible"}]},{"kind":"text","text":". Language implementations are encouraged to support the most permissive context policy possible. Please see the individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},"code":true,"children":[{"kind":"text","text":"policies"}]},{"kind":"text","text":" for details on the implications on the language implementation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following illustration shows the cardinalities of the individual components:"}]},{"kind":"code","text":"N: unbounded\nP: N for exclusive, 1 for shared context policy\nL: number of installed languages\nI: number of installed instruments\n\n- 1 : Host VM Processs\n - N : Engine\n   - N : Context\n     - L : Language Context\n   - P * L : TruffleLanguage\n   - I : Instrument\n     - 1 : TruffleInstrument"},{"kind":"paragraph","children":[{"kind":"text","text":"For more information on sharing between multiple contexts please see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},"code":true,"children":[{"kind":"text","text":"ContextPolicy"}]},{"kind":"text","text":"."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Parse Caching"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The result of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parsing request"}]},{"kind":"text","text":" is cached per language instance, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getSource()"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getArgumentNames()"},"code":true,"children":[{"kind":"text","text":"argument names"}]},{"kind":"text","text":" and environment "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getOptions()"},"code":true,"children":[{"kind":"text","text":"options"}]},{"kind":"text","text":". The scope of the caching is influenced by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#contextPolicy()"},"code":true,"children":[{"kind":"text","text":"context policy"}]},{"kind":"text","text":". Caching may be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isCached()"},"code":true,"children":[{"kind":"text","text":"disabled"}]},{"kind":"text","text":" for certain sources. It is enabled for new sources by default."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Language Configuration"}]},{"kind":"paragraph","children":[{"kind":"text","text":"On "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"context creation"}]},{"kind":"text","text":" each language context is provided with information about the environment "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env"},"code":true,"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":". Language can optionally declare "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#option(java.lang.String,java.lang.String)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#option(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"configurable"}]},{"kind":"text","text":" options in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"getOptionDescriptors()"}]},{"kind":"text","text":"."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Polyglot Bindings"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Language implementations communicate with one another (and with instrumentation-based tools such as debuggers) by reading/writing named values into the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPolyglotBindings()"},"code":true,"children":[{"kind":"text","text":"polyglot bindings"}]},{"kind":"text","text":". This bindings object is used to implement guest language export/import statements used for "},{"kind":"emphasis","children":[{"kind":"text","text":"language interoperation"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A language implementation can also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#importSymbol(java.lang.String)"},"children":[{"kind":"text","text":"import"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#exportSymbol(java.lang.String,java.lang.Object)"},"children":[{"kind":"text","text":"export"}]},{"kind":"text","text":" a global symbol by name. The scope may be accessed from multiple threads at the same time. Existing keys are overwritten."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Configuration vs. Initialization"}]},{"kind":"paragraph","children":[{"kind":"text","text":"To ensure that a Truffle language can be used in a language-agnostic way, the implementation should be designed to decouple its configuration and initialization from language specifics as much as possible. One aspect of this is the initialization and start of execution via the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context"}]},{"kind":"text","text":", which should be designed in a generic way. Language-specific entry points, for instance to emulate the command-line interface of an existing implementation, should be handled externally."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Multi-threading"}]},{"kind":"paragraph","children":[{"kind":"text","text":"There are two kinds of threads that access contexts of Truffle guest languages:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Internal threads are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":" and managed by a language for a context. All internally created threads need to be stopped when the context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"External threads are created and managed by the host application / language launcher. The host application is allowed to use language contexts from changing threads, sequentially or at the same time if the language "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#isThreadAccessAllowed(java.lang.Thread,boolean)"},"code":true,"children":[{"kind":"text","text":"allows"}]},{"kind":"text","text":" it."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"By default every "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" only allows access from one thread at the same time. Therefore if the context is tried to be accessed from multiple threads at the same time the access will fail. Languages that want to allow multi-threaded access to a context may override "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#isThreadAccessAllowed(java.lang.Thread,boolean)"},"code":true,"children":[{"kind":"text","text":"isThreadAccessAllowed(Thread, boolean)"}]},{"kind":"text","text":" and return "},{"kind":"code","text":"true"},{"kind":"text","text":" also for multi-threaded accesses. Initialization actions for multi-threaded access can be performed by overriding "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultiThreading(C)"},"code":true,"children":[{"kind":"text","text":"initializeMultiThreading(Object)"}]},{"kind":"text","text":". Threads are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"initialized"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":" before and after use with a context. Languages may "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"create"}]},{"kind":"text","text":" new threads if the environment "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isCreateThreadAllowed()"},"code":true,"children":[{"kind":"text","text":"allows"}]},{"kind":"text","text":" it."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition to the two kinds of threads described above, there are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createSystemThread(java.lang.Runnable,java.lang.ThreadGroup)"},"code":true,"children":[{"kind":"text","text":"system threads"}]},{"kind":"text","text":" designed to process language internal tasks in the background. They do not require the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isCreateThreadAllowed()"},"code":true,"children":[{"kind":"text","text":"creation permit"}]},{"kind":"text","text":", but they must not enter any language context."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"for embedding of Truffle languages in Java host applications."}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":252}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalFactory","name":"TruffleLanguage.ContextLocalFactory","kind":"interface","language":"java","modifiers":["protected"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"typeParams":[{"name":"C"},{"name":"T"}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalFactory#create(C)","anchor":"create(C)","kind":"method","name":"create","signature":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns a new value for a context local of a language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new value for a context local of a language. The returned value must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and must return a stable and exact type per registered language. A thread local must always return the same "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"class"}]},{"kind":"text","text":", even for multiple instances of the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":". If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages may be executed without a context being entered."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextLocal(TruffleLanguage.ContextLocalFactory)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1733}}],"doc":{"summary":[{"kind":"text","text":"Context local factory for Truffle languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Context local factory for Truffle languages. Creates a new value per context."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1719}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider","name":"TruffleLanguage.ContextLocalProvider","kind":"class","language":"java","modifiers":["protected","static","final"],"typeParams":[{"name":"C"}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.ContextLocalProvider"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)","anchor":"createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)","kind":"method","name":"createContextLocal","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"ContextLocal","ref":"com.oracle.truffle.api.ContextLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createContextLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage.ContextLocalFactory","ref":"com.oracle.truffle.api.TruffleLanguage$ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"TruffleLanguage.ContextLocalFactory","ref":"com.oracle.truffle.api.TruffleLanguage$ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"ContextLocal","ref":"com.oracle.truffle.api.ContextLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new context local reference for this Truffle language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new context local reference for this Truffle language. Context locals for languages allow to store additional top-level values for each context besides the language context. The advantage of context locals compared to storing the value in a field of the language context is that reading a context local requires one indirection less. It is recommended to use context locals for languages only if the read is critical for performance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Context local references must be created during the invocation in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" constructor. Calling this method at a later point in time will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":". For each registered "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" subclass it is required to always produce the same number of context local references. The values produced by the factory must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and use a stable exact value type for each instance of a registered language class. If the return value of the factory is not stable or "},{"kind":"code","text":"null"},{"kind":"text","text":" then an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. These restrictions allow the Truffle runtime to read the value more efficiently."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@TruffleLanguage.Registration(id = \"example\", name = \"ExampleLanguage\")\npublic final class ExampleLanguage extends TruffleLanguage {\n\n    final ContextLocal contextLocal = locals.createContextLocal(ExampleLocal::new);\n\n    @Override\n    protected Env createContext(Env env) {\n        return env;\n    }\n\n    @Override\n    protected CallTarget parse(ParsingRequest request) throws Exception {\n        return new RootNode(this) {\n            @Override\n            public Object execute(VirtualFrame frame) {\n                // fast read\n                ExampleLocal local = contextLocal.get();\n                // access local\n                return \"\";\n            }\n        }.getCallTarget();\n    }\n\n    static final class ExampleLocal {\n\n        final Env env;\n\n        ExampleLocal(Env env) {\n            this.env = env;\n        }\n\n    }\n}"}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":629}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)","anchor":"createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)","kind":"method","name":"createContextThreadLocal","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"ContextThreadLocal","ref":"com.oracle.truffle.api.ContextThreadLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createContextThreadLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage.ContextThreadLocalFactory","ref":"com.oracle.truffle.api.TruffleLanguage$ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"TruffleLanguage.ContextThreadLocalFactory","ref":"com.oracle.truffle.api.TruffleLanguage$ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"ContextThreadLocal","ref":"com.oracle.truffle.api.ContextThreadLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new context thread local reference for this Truffle language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new context thread local reference for this Truffle language. Context threadlocals for languages allow storing additional top-level values for each context and thread. The factory may be invoked on any thread other than the thread of the context thread local value."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Context thread local references must be created during the invocation in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" constructor. Calling this method at a later point in time will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":". For each registered "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" subclass it is required to always produce the same number of context thread local references. The values produced by the factory must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and use a stable exact value type for each instance of a registered language class. If the return value of the factory is not stable or "},{"kind":"code","text":"null"},{"kind":"text","text":" then an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. These restrictions allow the Truffle runtime to read the value more efficiently."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Context thread locals should not contain a strong reference to the provided thread. Use a weak reference instance for that purpose."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@TruffleLanguage.Registration(id = \"example\", name = \"ExampleLanguage\")\npublic static class ExampleLanguage extends TruffleLanguage {\n\n    final ContextThreadLocal threadLocal = locals.createContextThreadLocal(ExampleLocal::new);\n\n    @Override\n    protected Env createContext(Env env) {\n        return env;\n    }\n\n    @Override\n    protected CallTarget parse(ParsingRequest request) throws Exception {\n        return new RootNode(this) {\n            @Override\n            public Object execute(VirtualFrame frame) {\n                // fast read\n                ExampleLocal local = threadLocal.get();\n                // access local\n                return \"\";\n            }\n        }.getCallTarget();\n    }\n\n    static final class ExampleLocal {\n\n        final Env env;\n        final WeakReference thread;\n\n        ExampleLocal(Env env, Thread thread) {\n            this.env = env;\n            this.thread = new WeakReference<>(thread);\n        }\n\n    }\n}"}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":703}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Provider for creating context local and context thread local references."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provider for creating context local and context thread local references."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#locals"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.locals"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.TruffleLanguage.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextLocal(TruffleLanguage.ContextLocalFactory)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextThreadLocal(TruffleLanguage.ContextThreadLocalFactory)"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":564}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy","name":"TruffleLanguage.ContextPolicy","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.ContextPolicy"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE","anchor":"EXCLUSIVE","kind":"enumConstant","name":"EXCLUSIVE","signature":[{"kind":"name","text":"EXCLUSIVE"}],"type":[{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"}],"doc":{"summary":[{"kind":"text","text":"Use one exclusive "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instance per language context instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Use one exclusive "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instance per language context instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Using this policy has the following implications:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"Parse caching"}]},{"kind":"text","text":" is scoped per "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance. This means the language context instance may be directly stored in instance fields of AST nodes without the use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"ContextReference"}]},{"kind":"text","text":". The use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"ContextReference"}]},{"kind":"text","text":" is still recommended to simplify migration to more permissive policies."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If the language does not allow "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#isThreadAccessAllowed(java.lang.Thread,boolean)"},"code":true,"children":[{"kind":"text","text":"multi-threading"}]},{"kind":"text","text":" (default behavior) then the language instance is guaranteed to be used from one thread at a time only. Cached ASTs will not be used from multiple threads at the same time."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultipleContexts()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.initializeMultipleContexts()"}]},{"kind":"text","text":" is guaranteed to never be invoked."}]}]]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4210}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#REUSE","anchor":"REUSE","kind":"enumConstant","name":"REUSE","signature":[{"kind":"name","text":"REUSE"}],"type":[{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"}],"doc":{"summary":[{"kind":"text","text":"Use a single "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instance per context instance, but allow the reuse of a language instance when a context was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Use a single "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instance per context instance, but allow the reuse of a language instance when a context was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":". This policy is useful when parsed ASTs should be shared, but multiple thread execution of the AST is not yet supported by the language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Using this policy has the following implications:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"Parse caching"}]},{"kind":"text","text":" is scoped per "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance. This means language context instances must NOT be directly stored in instance fields of AST nodes and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"ContextReference"}]},{"kind":"text","text":" must be used instead."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If the language does not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#isThreadAccessAllowed(java.lang.Thread,boolean)"},"code":true,"children":[{"kind":"text","text":"allow"}]},{"kind":"text","text":" access from multiple threads (default behavior) then the language instance is guaranteed to be used from one thread at a time only. In this case also cached ASTs will not be used from multiple threads at the same time. If the language allows access from multiple threads then also ASTs may be used from multiple threads at the same time."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultipleContexts()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.initializeMultipleContexts()"}]},{"kind":"text","text":" will be invoked to notify the language that multiple contexts will be used with one language instance."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"Language"}]},{"kind":"text","text":" instance fields must only be used for data that can be shared across multiple contexts."}]}]]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4238}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED","anchor":"SHARED","kind":"enumConstant","name":"SHARED","signature":[{"kind":"name","text":"SHARED"}],"type":[{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"}],"doc":{"summary":[{"kind":"text","text":"Use one "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instance for many language context instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Use one "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instance for many language context instances."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Using this policy has the following implications:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"Parse caching"}]},{"kind":"text","text":" is scoped per "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance. With multiple language instances per context, context instances must "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" be directly stored in instance fields of AST nodes and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"ContextReference"}]},{"kind":"text","text":" must be used instead."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"All methods of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance and parsed ASTs may be called from multiple threads at the same time independent of whether multiple thread access is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#isThreadAccessAllowed(java.lang.Thread,boolean)"},"code":true,"children":[{"kind":"text","text":"allowed"}]},{"kind":"text","text":" for the language."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultipleContexts()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.initializeMultipleContexts()"}]},{"kind":"text","text":" will be invoked to notify the language that multiple contexts will be used with one language instance."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"Language"}]},{"kind":"text","text":" instance fields must only be used for data that can be shared across multiple contexts and mutable data held by the language instance must be synchronized to support concurrent access."}]}]]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4262}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Defines the supported policy for reusing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"languages"}]},{"kind":"text","text":" per context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines the supported policy for reusing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"languages"}]},{"kind":"text","text":" per context. I.e. the policy specifies the degree of sharing that is allowed between multiple language contexts. The default policy is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"exclusive"}]},{"kind":"text","text":". Every language is encouraged to try to support a context policy that is as permissive as possible, where "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"exclusive"}]},{"kind":"text","text":" is the least and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"shared"}]},{"kind":"text","text":" is the most permissive policy. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"Parse caching"}]},{"kind":"text","text":" is scoped per "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance, therefore the context policy influences its behavior."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If multiple sharable languages are used at the same time, nodes of sharable languages may adopt nodes of a non-sharable languages indirectly, e.g. through Truffle interoperability. This would complicate language implementations as they would always need to support sharing for their nodes. To avoid this problem, Truffle uses sharing layers. Sharing layers ensure that every node created by a language instance can only be observed by a single language instance at a time. Sharing layers operate on the principle that all languages share the code with the same language instance or no language shares. As a convenient consequence any call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference#get(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"LanguageReference.get(Node)"}]},{"kind":"text","text":" with an adopted "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" can fold to a constant during partial evaluation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For any sharing to take place a context must be created with sharing enabled. By default sharing is disabled for polyglot contexts. Sharing can be enabled by specifying an "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#engine(org.graalvm.polyglot.Engine)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#engine(org.graalvm.polyglot.Engine)"},"code":true,"children":[{"kind":"text","text":"explicit engine"}]},{"kind":"text","text":" or using an option. Before any language is used for sharing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultipleContexts()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.initializeMultipleContexts()"}]},{"kind":"text","text":" is invoked. It is guaranteed that sharing between multiple contexts is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultipleContexts()"},"code":true,"children":[{"kind":"text","text":"initialized"}]},{"kind":"text","text":" before any language context is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#contextPolicy()"},"code":true,"children":[{"kind":"text","text":"To configure context policy for a language."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.parse(ParsingRequest)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeMultipleContexts()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.initializeMultipleContexts()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4184}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference","name":"TruffleLanguage.ContextReference","kind":"class","language":"java","modifiers":["public","abstract","static"],"typeParams":[{"name":"C"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.ContextReference"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference#<init>()","anchor":"<init>()","kind":"constructor","name":"ContextReference","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ContextReference"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructors for subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructors for subclasses."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4108}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"typeParam","text":"C"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current language context associated with the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current language context associated with the current thread. An enclosing node should be provided as parameter if available, otherwise "},{"kind":"code","text":"null"},{"kind":"text","text":" may be provided. This method is designed to be called safely from compiled code paths. In order to maximize efficiency in compiled code paths, a partial evaluation constant and adopted node should be passed as parameter. If this is the case then the return context will get constant folded in compiled code paths if there is only a single context instance for the enclosing engine or lookup location/node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The current context might vary between "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"executions"}]},{"kind":"text","text":" if resources or code is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"shared"}]},{"kind":"text","text":" between multiple contexts or when used as part of an InteropLibrary export. It is recommended to *not* cache values of the context in the AST to reduce footprint. Getting it through a context reference will either constant fold or be very efficient in compiled code paths."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a context is accessed during "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"context creation"}]},{"kind":"text","text":", on an unknown Thread, or in the language class constructor an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"for a full usage example"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4133}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference#create(java.lang.Class)","anchor":"create(java.lang.Class)","kind":"method","name":"create","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":">"}]]},{"name":"C"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":">, "},{"kind":"typeParam","text":"C"},{"kind":"punct","text":"> "},{"kind":"type","text":"TruffleLanguage.ContextReference","ref":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":"> "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"TruffleLanguage.ContextReference","ref":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new instance of a context reference for an registered language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new instance of a context reference for an registered language. Throws "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" if the provided language class is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":". Guaranteed to always return the same context reference for a given language class."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"ContextReference"}]},{"kind":"text","text":" for a usage example."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4145}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a reference to the current context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a reference to the current context. The current context is a thread local value that changes when polyglot context is entered or left. Context references are created using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference#create(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"create(Class)"}]},{"kind":"text","text":" and are intended to be stored in static final fields and accessed at runtime using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference#get(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"ContextReference.get(Node)"}]},{"kind":"text","text":" with the current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":", if available, as parameter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example intended usage:"}]},{"kind":"code","text":"public final class MyContext  {\n\n    private static final ContextReference<MyContext> REFERENCE =\n                   ContextReference.create(MyLanguage.class);\n\n    public static MyContext get(Node node) {\n         return REFERENCE.get(node);\n    }\n}\n\n@Registration(...)\npublic final class MyLanguage extends TruffleLanguage {\n\n   // ...\n\n   private static final LanguageReference<MyLanguage> REFERENCE =\n                  LanguageReference.create(MyLanguage.class);\n\n   public static MyLanguage get(Node node) {\n        return REFERENCE.get(node);\n   }\n}\n\npublic final class MyLanguageNode extends Node {\n\n    // ...\n    public Object execute(VirtualFrame frame) {\n        MyContext currentContext = getContext();\n        MyLanguage currentLanguage = getLanguage();\n\n        // use context or language on the fast-path\n\n        // references can also be used behind the boundary\n        exampleBoundary();\n    }\n\n    @TruffleBoundary\n    public void exampleBoundary() {\n       MyLanguage currentLanguage = MyLanguage.get(null);\n       MyContext currentContext = MyContext.get(null);\n\n       // use context or language on the slow-path\n    }\n\n    public final MyLanguage getLanguage() {\n        return MyLanguage.get(this);\n    }\n\n    public final MyContext getContext() {\n        return MyContext.get(this);\n    }\n}"}]},"since":"0.25 revised in 21.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4101}},{"id":"com.oracle.truffle.api.TruffleLanguage$ContextThreadLocalFactory","name":"TruffleLanguage.ContextThreadLocalFactory","kind":"interface","language":"java","modifiers":["protected"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"typeParams":[{"name":"C"},{"name":"T"}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$ContextThreadLocalFactory#create(C,java.lang.Thread)","anchor":"create(C,java.lang.Thread)","kind":"method","name":"create","signature":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"typeParam","text":"C"}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns a new value for a context thread local for a language context and thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new value for a context thread local for a language context and thread. The returned value must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and must return a stable and exact type per TruffleLanguage subclass. A thread local must always return the same "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"class"}]},{"kind":"text","text":", even for multiple instances of the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":". If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages may be executed without a context being entered."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.TruffleLanguage.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.ContextLocalProvider.createContextThreadLocal(TruffleLanguage.ContextThreadLocalFactory)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1757}}],"doc":{"summary":[{"kind":"text","text":"Context thread local factory for Truffle languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Context thread local factory for Truffle languages. Creates a new value per context and thread."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1742}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env","name":"TruffleLanguage.Env","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.Env"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getOptions()","anchor":"getOptions()","kind":"method","name":"getOptions","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOptions"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns option values for the options described in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getOptionDescriptors()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns option values for the options described in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getOptionDescriptors()"}]},{"kind":"text","text":". The returned options are never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1835}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getApplicationArguments()","anchor":"getApplicationArguments()","kind":"method","name":"getApplicationArguments","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getApplicationArguments"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Returns the application arguments that were provided for this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the application arguments that were provided for this context. The arguments array and its elements are never "},{"kind":"code","text":"null"},{"kind":"text","text":". It is up to the language implementation whether and how they are accessible within the guest language scripts."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1846}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isCreateThreadAllowed()","anchor":"isCreateThreadAllowed()","kind":"method","name":"isCreateThreadAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCreateThreadAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the creation of new threads is allowed in the current environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the creation of new threads is allowed in the current environment."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"newTruffleThreadBuilder(Runnable)"}]}]]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1857}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createThread(java.lang.Runnable)","anchor":"createThread(java.lang.Runnable)","kind":"method","name":"createThread","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createThread"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new thread that has access to the current language context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread that has access to the current language context. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createThread(java.lang.Runnable,com.oracle.truffle.api.TruffleContext,java.lang.ThreadGroup,long)"},"code":true,"children":[{"kind":"text","text":"createThread(Runnable, TruffleContext, ThreadGroup, long)"}]},{"kind":"text","text":" for a detailed description of the parameters. The "},{"kind":"code","text":"group"},{"kind":"text","text":" is null and "},{"kind":"code","text":"stackSize"},{"kind":"text","text":" set to 0."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"newTruffleThreadBuilder(Runnable)"}]},{"kind":"text","text":" instead."}]}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1874}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createThread(java.lang.Runnable,com.oracle.truffle.api.TruffleContext)","anchor":"createThread(java.lang.Runnable,com.oracle.truffle.api.TruffleContext)","kind":"method","name":"createThread","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createThread"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]},{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new thread that has access to the given context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread that has access to the given context. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createThread(java.lang.Runnable,com.oracle.truffle.api.TruffleContext,java.lang.ThreadGroup,long)"},"code":true,"children":[{"kind":"text","text":"createThread(Runnable, TruffleContext, ThreadGroup, long)"}]},{"kind":"text","text":" for a detailed description of the parameters. The "},{"kind":"code","text":"group"},{"kind":"text","text":" is null and "},{"kind":"code","text":"stackSize"},{"kind":"text","text":" set to 0."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getContext()"},"code":true,"children":[{"kind":"text","text":"getContext()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"newInnerContextBuilder(String...)"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"newTruffleThreadBuilder(Runnable)"}]},{"kind":"text","text":" instead."}]}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1891}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createThread(java.lang.Runnable,com.oracle.truffle.api.TruffleContext,java.lang.ThreadGroup)","anchor":"createThread(java.lang.Runnable,com.oracle.truffle.api.TruffleContext,java.lang.ThreadGroup)","kind":"method","name":"createThread","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createThread"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"group"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]},{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]},{"name":"group","type":[{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"}]}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new thread that has access to the given context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread that has access to the given context. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createThread(java.lang.Runnable,com.oracle.truffle.api.TruffleContext,java.lang.ThreadGroup,long)"},"code":true,"children":[{"kind":"text","text":"createThread(Runnable, TruffleContext, ThreadGroup, long)"}]},{"kind":"text","text":" for a detailed description of the parameters. The "},{"kind":"code","text":"stackSize"},{"kind":"text","text":" set to 0."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getContext()"},"code":true,"children":[{"kind":"text","text":"getContext()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"newInnerContextBuilder(String...)"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"newTruffleThreadBuilder(Runnable)"}]},{"kind":"text","text":" instead."}]}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1907}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createThread(java.lang.Runnable,com.oracle.truffle.api.TruffleContext,java.lang.ThreadGroup,long)","anchor":"createThread(java.lang.Runnable,com.oracle.truffle.api.TruffleContext,java.lang.ThreadGroup,long)","kind":"method","name":"createThread","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createThread"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"group"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"stackSize"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the runnable to run on this thread."}]}]},{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context to enter and leave when the thread is started."}]}]},{"name":"group","type":[{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread group, passed on to the underlying "},{"kind":"link","target":{"id":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},"code":true,"children":[{"kind":"text","text":"Thread"}]},{"kind":"text","text":"."}]}]},{"name":"stackSize","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the desired stack size for the new thread, or zero if this parameter is to be ignored."}]}]}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if thread creation is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isCreateThreadAllowed()"},"code":true,"children":[{"kind":"text","text":"allowed"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new thread that has access to the given context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread that has access to the given context. A thread is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"initialized"}]},{"kind":"text","text":" when it is "},{"kind":"link","target":{"id":"java.lang.Thread#start()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#start()"},"code":true,"children":[{"kind":"text","text":"started"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":" as soon as the thread finished the execution."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended to set an "},{"kind":"link","target":{"id":"java.lang.Thread#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)"},"code":true,"children":[{"kind":"text","text":"uncaught exception handler"}]},{"kind":"text","text":" for the created thread. For example the thread can throw an uncaught exception if one of the initialized language contexts don't support execution on this thread."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The language that created and started the thread is responsible to stop and join it during the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalizeContext"}]},{"kind":"text","text":", otherwise an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown. It's not safe to use the "},{"kind":"link","target":{"id":"java.util.concurrent.ExecutorService#awaitTermination(long,java.util.concurrent.TimeUnit)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/ExecutorService.html#awaitTermination(long,java.util.concurrent.TimeUnit)"},"code":true,"children":[{"kind":"text","text":"ExecutorService.awaitTermination(long, java.util.concurrent.TimeUnit)"}]},{"kind":"text","text":" to detect Thread termination as the polyglot thread may be cancelled before executing the executor worker."},{"kind":"break"},{"kind":"text","text":" A typical implementation looks like:"}]},{"kind":"code","language":"java","text":"class AsyncThreadLanguage extends TruffleLanguage<Context> {\n\n    @Override\n    protected Context createContext(Env env) {\n        return new Context(env);\n    }\n\n    @Override\n    protected boolean isThreadAccessAllowed(Thread thread,\n                    boolean singleThreaded) {\n        // allow access from any thread instead of just one\n        return true;\n    }\n\n    @Override\n    protected void initializeContext(Context context) throws Exception {\n        // create and start a Thread for the asynchronous task\n        // remeber the Thread reference to stop and join it in\n        // the finalizeContext\n        Thread t = context.env.newTruffleThreadBuilder(new Runnable() {\n            @Override\n            public void run() {\n                // asynchronous task\n            }\n        }).build();\n        context.startedThreads.add(t);\n        t.start();\n    }\n\n    @Override\n    protected void finalizeContext(Context context) {\n        // stop and join all the created Threads\n        boolean interrupted = false;\n        for (int i = 0; i < context.startedThreads.size();) {\n            Thread threadToJoin  = context.startedThreads.get(i);\n            try {\n                if (threadToJoin != Thread.currentThread()) {\n                    threadToJoin.interrupt();\n                    threadToJoin.join();\n                }\n                i++;\n            } catch (InterruptedException ie) {\n                interrupted = true;\n            }\n        }\n        if (interrupted) {\n            Thread.currentThread().interrupt();\n        }\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" can be either an inner context created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"newInnerContextBuilder(String...)"}]},{"kind":"text","text":"."},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":", or the context associated with this environment obtained from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getContext()"},"code":true,"children":[{"kind":"text","text":"getContext()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getContext()"},"code":true,"children":[{"kind":"text","text":"getContext()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"newInnerContextBuilder(String...)"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"newTruffleThreadBuilder(Runnable)"}]},{"kind":"text","text":" instead."}]}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1952}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)","anchor":"newTruffleThreadBuilder(java.lang.Runnable)","kind":"method","name":"newTruffleThreadBuilder","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newTruffleThreadBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the runnable to run on the threads created by the builder."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder for threads that have access to the given context."}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a builder for threads that have access to the given context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a builder for threads that have access to the given context."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1965}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createSystemThread(java.lang.Runnable)","anchor":"createSystemThread(java.lang.Runnable)","kind":"method","name":"createSystemThread","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createSystemThread"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new thread designed to process language internal tasks in the background."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread designed to process language internal tasks in the background. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createSystemThread(java.lang.Runnable,java.lang.ThreadGroup)"},"code":true,"children":[{"kind":"text","text":"createSystemThread(Runnable, ThreadGroup)"}]},{"kind":"text","text":" for a detailed description of the parameters."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createSystemThread(java.lang.Runnable,java.lang.ThreadGroup)"},"code":true,"children":[{"kind":"text","text":"createSystemThread(Runnable, ThreadGroup)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1977}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createSystemThread(java.lang.Runnable,java.lang.ThreadGroup)","anchor":"createSystemThread(java.lang.Runnable,java.lang.ThreadGroup)","kind":"method","name":"createSystemThread","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createSystemThread"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":", "},{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"threadGroup"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the runnable to run on this thread."}]}]},{"name":"threadGroup","type":[{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread group, passed on to the underlying "},{"kind":"link","target":{"id":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},"code":true,"children":[{"kind":"text","text":"Thread"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the context is already closed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new thread designed to process language internal tasks in the background."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread designed to process language internal tasks in the background. The created thread cannot enter the context, if it tries an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. Creating or terminating a system thread does not notify "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"languages"}]},{"kind":"text","text":" or instruments' thread-listeners. Creating a system thread does not cause a transition to multi-threaded access. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isCreateThreadAllowed()"},"code":true,"children":[{"kind":"text","text":"creation permit"}]},{"kind":"text","text":" is not required to create a system thread. The caller must be either entered in a context, or in another system thread to create a new system thread. If not an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended to set an "},{"kind":"link","target":{"id":"java.lang.Thread#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)"},"code":true,"children":[{"kind":"text","text":"uncaught exception handler"}]},{"kind":"text","text":" for the created thread. For example the thread can throw an uncaught exception if the context is closed before the thread is started."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The language that created and started the thread is responsible to stop and join it during the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.disposeContext(Object)"}]},{"kind":"text","text":" disposeContext}, otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. It's not safe to use the "},{"kind":"link","target":{"id":"java.util.concurrent.ExecutorService#awaitTermination(long,java.util.concurrent.TimeUnit)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/ExecutorService.html#awaitTermination(long,java.util.concurrent.TimeUnit)"},"code":true,"children":[{"kind":"text","text":"ExecutorService.awaitTermination(long, java.util.concurrent.TimeUnit)"}]},{"kind":"text","text":" to detect Thread termination as the system thread may be cancelled before executing the executor worker."},{"kind":"break"},{"kind":"text","text":" A typical implementation looks like:"}]},{"kind":"code","language":"java","text":"class SystemThreadLanguage extends\n        TruffleLanguage<SystemThreadLanguage.Context> {\n\n    static class Context {\n        private final BlockingQueue<Runnable> tasks;\n        private final Env env;\n        private volatile Thread systemThread;\n        private volatile boolean cancelled;\n\n        Context(Env env) {\n            this.tasks = new LinkedBlockingQueue<>();\n            this.env = env;\n        }\n    }\n\n    @Override\n    protected Context createContext(Env env) {\n        return new Context(env);\n    }\n\n    @Override\n    protected void initializeContext(Context context) {\n        // Create and start a Thread for the asynchronous internal task.\n        // Remember the Thread to stop and join it in the disposeContext.\n        context.systemThread = context.env.createSystemThread(() -> {\n            while (!context.cancelled) {\n                try {\n                    Runnable task = context.tasks.\n                            poll(Integer.MAX_VALUE, SECONDS);\n                    if (task != null) {\n                        task.run();\n                    }\n                } catch (InterruptedException ie) {\n                    // pass to cancelled check\n                }\n            }\n        });\n        context.systemThread.start();\n    }\n\n    @Override\n    protected void disposeContext(Context context) {\n        // Stop and join system thread.\n        context.cancelled = true;\n        Thread threadToJoin = context.systemThread;\n        if (threadToJoin != null) {\n            threadToJoin.interrupt();\n            boolean interrupted = false;\n            boolean terminated = false;\n            while (!terminated) {\n                try {\n                    threadToJoin.join();\n                    terminated = true;\n                } catch (InterruptedException ie) {\n                    interrupted = true;\n                }\n            }\n            if (interrupted) {\n                Thread.currentThread().interrupt();\n            }\n        }\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createSystemThread(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"createSystemThread(Runnable)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2013}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)","anchor":"newInnerContextBuilder(java.lang.String...)","kind":"method","name":"newInnerContextBuilder","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newInnerContextBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"permittedLanguages"},{"kind":"punct","text":")"}],"params":[{"name":"permittedLanguages","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"ids of languages permitted in the context. If no languages are provided, then all languages permitted to the outer context will be permitted. Languages are validated when the context is "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#build()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#build()"},"code":true,"children":[{"kind":"text","text":"built"}]},{"kind":"text","text":". An "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" will be thrown if an unknown or a language denied by the engine was used."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleContext.Builder","ref":"com.oracle.truffle.api.TruffleContext$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Returns a new context builder useful to create inner context instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new context builder useful to create inner context instances."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default the inner context inherits none of the access privileges. To inherit access set "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#inheritAllAccess(boolean)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.Builder.inheritAllAccess(boolean)"}]},{"kind":"text","text":" to "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"No language context will be initialized by default in the inner context. In order to initialize the creator context use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#initializeCreatorContext(boolean)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.Builder.initializeCreatorContext(boolean)"}]},{"kind":"text","text":", initialize the language after context creation using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#initializePublic(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.initializePublic(Node, String)"}]},{"kind":"text","text":" or evaluate a source using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#evalPublic(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.source.Source)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.evalPublic(Node, Source)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"for details on language inner contexts."}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2042}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPolyglotBindings()","anchor":"getPolyglotBindings()","kind":"method","name":"getPolyglotBindings","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getPolyglotBindings"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if polyglot access is not enabled"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a TruffleObject that represents the polyglot bindings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a TruffleObject that represents the polyglot bindings. The polyglot bindings consists of a set of symbols that have been exported explicitly by the languages or the embedder. This set of symbols allows for data exchange between polyglot languages. The polyglot bindings is separate from language bindings. The symbols can by read using string identifiers, a list of symbols may be requested with the keys message. Existing identifiers are removable, modifiable, readable and any new identifiers are insertable."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotBindingsAccessAllowed()"},"code":true,"children":[{"kind":"text","text":"isPolyglotBindingsAccessAllowed()"}]}]]},"since":"0.32","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2058}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#importSymbol(java.lang.String)","anchor":"importSymbol(java.lang.String)","kind":"method","name":"importSymbol","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"importSymbol"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"symbolName"},{"kind":"punct","text":")"}],"params":[{"name":"symbolName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of the symbol to search for"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"object representing the symbol or "},{"kind":"code","text":"null"},{"kind":"text","text":" if it does not exist"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if importing polyglot symbols is not allowed"}]}]}],"doc":{"summary":[{"kind":"text","text":"Explicitly imports a symbol from the polyglot bindings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Explicitly imports a symbol from the polyglot bindings. The behavior of this method is equivalent to sending a READ message to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPolyglotBindings()"},"code":true,"children":[{"kind":"text","text":"polyglot bindings"}]},{"kind":"text","text":" object. Reading a symbol that does not exist will return "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned symbol value can either be a "},{"kind":"code","text":"TruffleObject"},{"kind":"text","text":" (e.g. a native object from the other language) to support interoperability between languages, "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" or one of the Java primitive wrappers ( "},{"kind":"link","target":{"id":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},"code":true,"children":[{"kind":"text","text":"Integer"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Double","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html"},"code":true,"children":[{"kind":"text","text":"Double"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Byte","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Byte.html"},"code":true,"children":[{"kind":"text","text":"Byte"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},"code":true,"children":[{"kind":"text","text":"Boolean"}]},{"kind":"text","text":", etc.)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Polyglot symbols can only be imported if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotBindingsAccessAllowed()"},"code":true,"children":[{"kind":"text","text":"polyglot bindings access"}]},{"kind":"text","text":" is allowed."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2088}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#exportSymbol(java.lang.String,java.lang.Object)","anchor":"exportSymbol(java.lang.String,java.lang.Object)","kind":"method","name":"exportSymbol","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"exportSymbol"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"symbolName"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"symbolName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name with which the symbol should be exported into the polyglot scope"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to export for"}]}]}],"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if exporting polyglot symbols is not allowed"}]}]}],"doc":{"summary":[{"kind":"text","text":"Explicitly exports a symbol to the polyglot bindings object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Explicitly exports a symbol to the polyglot bindings object. The behavior of this method is equivalent to sending a WRITE message to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPolyglotBindings()"},"code":true,"children":[{"kind":"text","text":"polyglot bindings"}]},{"kind":"text","text":" object. Exporting a symbol with a "},{"kind":"code","text":"null"},{"kind":"text","text":" value will remove the symbol from the polyglot object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The exported symbol value can either be a "},{"kind":"code","text":"TruffleObject"},{"kind":"text","text":" (e.g. a native object from the other language) to support interoperability between languages, "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" or one of the Java primitive wrappers ( "},{"kind":"link","target":{"id":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},"code":true,"children":[{"kind":"text","text":"Integer"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Double","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html"},"code":true,"children":[{"kind":"text","text":"Double"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Byte","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Byte.html"},"code":true,"children":[{"kind":"text","text":"Byte"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},"code":true,"children":[{"kind":"text","text":"Boolean"}]},{"kind":"text","text":", etc.)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Polyglot symbols can only be export if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotBindingsAccessAllowed()"},"code":true,"children":[{"kind":"text","text":"polyglot bindings access"}]},{"kind":"text","text":" is allowed."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2120}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isHostLookupAllowed()","anchor":"isHostLookupAllowed()","kind":"method","name":"isHostLookupAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHostLookupAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if host access is generally allowed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if host access is generally allowed. If this method returns "},{"kind":"code","text":"false"},{"kind":"text","text":" then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookupHostSymbol(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"lookupHostSymbol(String)"}]},{"kind":"text","text":" will always fail. Host lookup is generally disallowed if the embedder provided a null "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowHostClassLookup(java.util.function.Predicate)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowHostClassLookup(java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"host class filter"}]},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2141}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#addToHostClassPath(com.oracle.truffle.api.TruffleFile)","anchor":"addToHostClassPath(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"addToHostClassPath","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"addToHostClassPath"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"entry"},{"kind":"punct","text":")"}],"params":[{"name":"entry","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}]}],"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the file is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#isReadable()"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Adds an entry to the Java host class loader."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds an entry to the Java host class loader. All classes looked up with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookupHostSymbol(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"lookupHostSymbol(String)"}]},{"kind":"text","text":" will lookup classes with this new entry. If the entry was already added then calling this method again for the same entry has no effect. Given entry must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that classes added by this method are in the unnamed module."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2161}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookupHostSymbol(java.lang.String)","anchor":"lookupHostSymbol(java.lang.String)","kind":"method","name":"lookupHostSymbol","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"lookupHostSymbol"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"symbolName"},{"kind":"punct","text":")"}],"params":[{"name":"symbolName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the qualified class name in the host language."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Looks up a Java class in the top-most scope the host environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Looks up a Java class in the top-most scope the host environment. Throws an error if no symbol was found or the symbol was not accessible. Symbols might not be accessible if a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowHostClassLookup(java.util.function.Predicate)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowHostClassLookup(java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"host class filter"}]},{"kind":"text","text":" prevents access. The returned object is always a "},{"kind":"code","text":"TruffleObject"},{"kind":"text","text":" that represents the class symbol."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2181}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isHostObject(java.lang.Object)","anchor":"isHostObject(java.lang.Object)","kind":"method","name":"isHostObject","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHostObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the argument is Java host language object wrapped using Truffle interop."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the argument is Java host language object wrapped using Truffle interop."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asHostObject(Object)"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHostObject(java.lang.Object)"},"children":[{"kind":"text","text":"isHostObject"}]},{"kind":"text","text":"."}]}],"since":"25.1"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2200}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asHostObject(java.lang.Object)","anchor":"asHostObject(java.lang.Object)","kind":"method","name":"asHostObject","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asHostObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the java host representation of a Truffle guest object if it represents a Java host language object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the java host representation of a Truffle guest object if it represents a Java host language object. Throws "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" if the provided argument is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"host object"}]},{"kind":"text","text":"."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asHostObject(java.lang.Object)"},"children":[{"kind":"text","text":"asHostObject"}]},{"kind":"text","text":"."}]}],"since":"25.1"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2220}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asGuestValue(java.lang.Object)","anchor":"asGuestValue(java.lang.Object)","kind":"method","name":"asGuestValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asGuestValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"hostObject"},{"kind":"punct","text":")"}],"params":[{"name":"hostObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the host object to convert"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Converts an existing Java host object to a guest language value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts an existing Java host object to a guest language value. If the value is already an interop value, then no conversion will be performed. Otherwise, the returned wraps the host object and provides support for the interop contract to access the java members. The interpretation of converted objects is described in "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context#asValue(java.lang.Object)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html#asValue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Context.asValue(Object)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should be used exclusively to convert already allocated Java objects to a guest language representation. To allocate new host objects users should use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookupHostSymbol(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"lookupHostSymbol(String)"}]},{"kind":"text","text":" to lookup the class and then send a NEW interop message to that object to instantiate it. This method does not respect configured "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowHostClassLookup(java.util.function.Predicate)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowHostClassLookup(java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"class filters"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2249}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asBoxedGuestValue(java.lang.Object)","anchor":"asBoxedGuestValue(java.lang.Object)","kind":"method","name":"asBoxedGuestValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asBoxedGuestValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"guestObject"},{"kind":"punct","text":")"}],"params":[{"name":"guestObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the primitive guest value to box"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if value is an invalid interop value."}]}]}],"doc":{"summary":[{"kind":"text","text":"Wraps primitive interop values in a TruffleObject exposing their methods as members."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Wraps primitive interop values in a TruffleObject exposing their methods as members. By default, primitive host values are not wrapped in TruffleObjects to expose their members. This method is intended for compatibility with existing Java interop APIs that expect such behavior. This method boxes the following primitive interop values: "},{"kind":"link","target":{"id":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},"code":true,"children":[{"kind":"text","text":"Boolean"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Byte","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Byte.html"},"code":true,"children":[{"kind":"text","text":"Byte"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Short","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Short.html"},"code":true,"children":[{"kind":"text","text":"Short"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},"code":true,"children":[{"kind":"text","text":"Integer"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},"code":true,"children":[{"kind":"text","text":"Long"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Float","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html"},"code":true,"children":[{"kind":"text","text":"Float"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Double","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html"},"code":true,"children":[{"kind":"text","text":"Double"}]},{"kind":"text","text":" , "},{"kind":"link","target":{"id":"java.lang.Character","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Character.html"},"code":true,"children":[{"kind":"text","text":"Character"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":". If the provided value is already boxed then the current value will be returned. If the provided value is not an interop value then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" will be thrown."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asGuestValue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asGuestValue(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2273}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isHostFunction(java.lang.Object)","anchor":"isHostFunction(java.lang.Object)","kind":"method","name":"isHostFunction","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHostFunction"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the argument is a Java host language function wrapped using Truffle interop."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the argument is a Java host language function wrapped using Truffle interop."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"code","text":"interopLibrary.isHostObject(obj) && interopLibrary.isExecutable(obj) && !interopLibrary.hasMembers(obj)"}]}],"since":"25.1"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2289}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#findMetaObject(java.lang.Object)","anchor":"findMetaObject(java.lang.Object)","kind":"method","name":"findMetaObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"findMetaObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to find the meta object for."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Find a metaobject of a value, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find a metaobject of a value, if any. The metaobject represents a description of the object, reveals it's kind and it's features. Some information that a metaobject might define includes the base object's type, interface, class, methods, attributes, etc."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When no metaobject is known, returns "},{"kind":"code","text":"null"},{"kind":"text","text":". The metaobject is an interop value. An interop value can be either a "},{"kind":"code","text":"TruffleObject"},{"kind":"text","text":" (e.g. a native object from the other language) to support interoperability between languages or a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2312}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isHostException(java.lang.Throwable)","anchor":"isHostException(java.lang.Throwable)","kind":"method","name":"isHostException","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHostException"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"exception"},{"kind":"punct","text":")"}],"params":[{"name":"exception","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":" to test"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"code","text":"exception"},{"kind":"text","text":" is a host exception, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise"}]}]},"doc":{"summary":[{"kind":"text","text":"Tests whether an exception is a host exception thrown by a Java Interop method invocation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests whether an exception is a host exception thrown by a Java Interop method invocation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Host exceptions may be thrown by interoperability messages. The host exception may be unwrapped using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asHostException(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"asHostException(Throwable)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asHostException(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"asHostException(Throwable)"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"code","text":"interopLibrary.isHostObject(obj) && interopLibrary.isException(obj)"},{"kind":"text","text":"."}]}],"since":"25.1"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2335}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asHostException(java.lang.Throwable)","anchor":"asHostException(java.lang.Throwable)","kind":"method","name":"asHostException","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asHostException"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"exception"},{"kind":"punct","text":")"}],"params":[{"name":"exception","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the host exception to unwrap"}]}]}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the original Java exception"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"exception"},{"kind":"text","text":" is not a host exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Unwraps a host exception thrown by a Java method invocation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unwraps a host exception thrown by a Java method invocation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Host exceptions may be thrown by interoperability messages. The host exception may be unwrapped using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asHostException(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"asHostException(Throwable)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isHostException(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"isHostException(Throwable)"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asHostObject(java.lang.Object)"},"children":[{"kind":"text","text":"asHostObject"}]},{"kind":"text","text":"."}]}],"since":"25.1"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2360}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isHostSymbol(java.lang.Object)","anchor":"isHostSymbol(java.lang.Object)","kind":"method","name":"isHostSymbol","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHostSymbol"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"guestObject"},{"kind":"punct","text":")"}],"params":[{"name":"guestObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the argument is a host symbol, representing the constructor and static members of a Java class, as obtained by e.g."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the argument is a host symbol, representing the constructor and static members of a Java class, as obtained by e.g. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookupHostSymbol(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"lookupHostSymbol"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookupHostSymbol(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"lookupHostSymbol(String)"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"code","text":"interopLibrary.isHostObject(obj) && interopLibrary.isScope(obj)"},{"kind":"text","text":"."}]}],"since":"25.1"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2378}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#asHostSymbol(java.lang.Class)","anchor":"asHostSymbol(java.lang.Class)","kind":"method","name":"asHostSymbol","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asHostSymbol"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"symbolClass"},{"kind":"punct","text":")"}],"params":[{"name":"symbolClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Converts a Java class to a host symbol as if by "},{"kind":"code","text":"lookupHostSymbol(symbolClass.getName())"},{"kind":"text","text":" but without an actual lookup."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts a Java class to a host symbol as if by "},{"kind":"code","text":"lookupHostSymbol(symbolClass.getName())"},{"kind":"text","text":" but without an actual lookup. Must not be used with Truffle or guest language classes."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookupHostSymbol(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"lookupHostSymbol(String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2396}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isInnerContextOptionsAllowed()","anchor":"isInnerContextOptionsAllowed()","kind":"method","name":"isInnerContextOptionsAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInnerContextOptionsAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if context options are allowed to be modified for inner contexts, or "},{"kind":"code","text":"false"},{"kind":"text","text":" if not."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if context options are allowed to be modified for inner contexts, or "},{"kind":"code","text":"false"},{"kind":"text","text":" if not. This method only indicates whether the embedder granted wildcard all access for new privileges using "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowInnerContextOptions(boolean)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowInnerContextOptions(boolean)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowInnerContextOptions(boolean)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is useful to find out whether it is possible to specify options for inner contexts using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#option(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.Builder.option(String, String)"}]},{"kind":"text","text":", as options can only be specified with all access enabled."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#option(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.Builder.option(String, String)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2418}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isFileIOAllowed()","anchor":"isFileIOAllowed()","kind":"method","name":"isFileIOAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isFileIOAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if access to files is allowed, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if access to files is allowed, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2432}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isSocketIOAllowed()","anchor":"isSocketIOAllowed()","kind":"method","name":"isSocketIOAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isSocketIOAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if access to network sockets is allowed, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if access to network sockets is allowed, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2445}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isNativeAccessAllowed()","anchor":"isNativeAccessAllowed()","kind":"method","name":"isNativeAccessAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isNativeAccessAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if access to native code is generally allowed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if access to native code is generally allowed. If this method returns "},{"kind":"code","text":"false"},{"kind":"text","text":" then loading native libraries with the Truffle NFI will fail."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2459}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotEvalAllowed()","anchor":"isPolyglotEvalAllowed()","kind":"method","name":"isPolyglotEvalAllowed","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isPolyglotEvalAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 24.1 use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotEvalAllowed(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"isPolyglotEvalAllowed(null) instead"}]},{"kind":"text","text":". Note that language implementations should now check whether polyglot eval is allowed also for individual languages, as access could be denied only for an individual language."}]}]},"since":"19.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2476}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotEvalAllowed(com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"isPolyglotEvalAllowed(com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"isPolyglotEvalAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isPolyglotEvalAllowed"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"targetLanguage"},{"kind":"punct","text":")"}],"params":[{"name":"targetLanguage","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the current language is allowed to evaluate guest application provided code of the given language, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the current language is allowed to evaluate guest application provided code of the given language, else "},{"kind":"code","text":"false"},{"kind":"text","text":". If this method returns "},{"kind":"code","text":"true"},{"kind":"text","text":" then the current language has permission to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopePublic(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"getScopePublic(LanguageInfo)"}]},{"kind":"text","text":" for the given language. If the given language is "},{"kind":"code","text":"null"},{"kind":"text","text":" then this method will return "},{"kind":"code","text":"true"},{"kind":"text","text":" if polyglot access is allowed in principle, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Languages may want to call this method twice. Once with "},{"kind":"code","text":"null"},{"kind":"text","text":" to determine whether polyglot eval and scope based builtins should be available to the application at all and once with the concrete language just before the access."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The result of this method is safe to be cached per language context, it is guaranteed to not change for a context and target language combination."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.PolyglotAccess$Builder#allowEval(java.lang.String,java.lang.String)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotAccess.Builder.html#allowEval(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"Embedders can restrict polyglot eval access between certain languages."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopePublic(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"getScopePublic(LanguageInfo)"}]}]]},"since":"24.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2502}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotBindingsAccessAllowed()","anchor":"isPolyglotBindingsAccessAllowed()","kind":"method","name":"isPolyglotBindingsAccessAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isPolyglotBindingsAccessAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if polyglot bindings access is allowed, else "},{"kind":"code","text":"false"},{"kind":"text","text":" ."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if polyglot bindings access is allowed, else "},{"kind":"code","text":"false"},{"kind":"text","text":" . Guest languages should hide or disable all polyglot bindings builtins if this flag is set to "},{"kind":"code","text":"false"},{"kind":"text","text":". If polyglot bindings access is disabled then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPolyglotBindings()"},"code":true,"children":[{"kind":"text","text":"getPolyglotBindings()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#importSymbol(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"importSymbol(String)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#exportSymbol(java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exportSymbol(String, Object)"}]},{"kind":"text","text":" fails with a SecurityException."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowPolyglotAccess(org.graalvm.polyglot.PolyglotAccess)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowPolyglotAccess(org.graalvm.polyglot.PolyglotAccess)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.allowPolyglotAccess(org.graalvm.polyglot.PolyglotAccess)"}]}]]},"since":"19.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2521}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isMimeTypeSupported(java.lang.String)","anchor":"isMimeTypeSupported(java.lang.String)","kind":"method","name":"isMimeTypeSupported","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMimeTypeSupported"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"mimeType"},{"kind":"punct","text":")"}],"params":[{"name":"mimeType","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a boolean that indicates if the MIME type is supported"}]}]},"doc":{"summary":[{"kind":"text","text":"Allows it to be determined if this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context"}]},{"kind":"text","text":" can execute code written in a language with a given MIME type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows it to be determined if this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context"}]},{"kind":"text","text":" can execute code written in a language with a given MIME type."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getMimeType()"},"code":true,"children":[{"kind":"text","text":"Source.getMimeType()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]}]]},"since":"0.11","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2539}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)","anchor":"parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)","kind":"method","name":"parseInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"parseInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"argumentNames"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source to evaluate"}]}]},{"name":"argumentNames","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the names of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(java.lang.Object...)"}]},{"kind":"text","text":" arguments that can be referenced from the source"}]}]}],"returns":{"type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the call target representing the parsed result"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if polyglot context associated with this environment is not entered, or if the language is neither a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicLanguages()"},"code":true,"children":[{"kind":"text","text":"public language"}]},{"kind":"text","text":" nor an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalLanguages()"},"code":true,"children":[{"kind":"text","text":"internal language"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the language is not allowed to evaluate code by the current language"}]}]}],"doc":{"summary":[{"kind":"text","text":"Parses the source of a public or internal language and returns the parse result as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Parses the source of a public or internal language and returns the parse result as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":". The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getLanguage()"},"code":true,"children":[{"kind":"text","text":"language id"}]},{"kind":"text","text":" is used to identify the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" to use to perform the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"}]},{"kind":"text","text":". The names of arguments are parameters for the resulting {#link CallTarget} that allow the "},{"kind":"code","text":"source"},{"kind":"text","text":" to reference the actual parameters passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(java.lang.Object...)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The suffix "},{"kind":"code","text":"internal"},{"kind":"text","text":" in the method name indicates that the result of this method is "},{"kind":"strong","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" safe to exposed to arbitrary guest code, by default. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]},{"kind":"text","text":" for that purpose instead. Compared to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]},{"kind":"text","text":" this method provides also access to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#internal()"},"code":true,"children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":" and dependent languages in addition to public languages. For example, in JavaScript, a call to the eval builtin should forward to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]},{"kind":"text","text":" as it contains code provided by the guest language user. Parsing regular expressions with the internal regular expression engine should call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parseInternal(Source, String...)"}]},{"kind":"text","text":" instead, as this is considered an implementation detail of the language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended that the language uses "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Env.parsePublic(Source, String...)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Env.parseInternal(Source, String...)"}]},{"kind":"text","text":" instead of directly passing the Source to the parser, in order to support code caching with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.SHARED"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#REUSE"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.REUSE"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]}]]},"since":"19.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2586}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)","anchor":"parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)","kind":"method","name":"parsePublic","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"parsePublic"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"argumentNames"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source to evaluate"}]}]},{"name":"argumentNames","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the names of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(java.lang.Object...)"}]},{"kind":"text","text":" arguments that can be referenced from the source"}]}]}],"returns":{"type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the call target representing the parsed result"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if polyglot context associated with this environment is not entered, or if the language is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicLanguages()"},"code":true,"children":[{"kind":"text","text":"public language"}]}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the language is not allowed to evaluate code by the current language"}]}]}],"doc":{"summary":[{"kind":"text","text":"Parses the source of a public language and returns the parse result as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" ."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Parses the source of a public language and returns the parse result as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" . The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getLanguage()"},"code":true,"children":[{"kind":"text","text":"language id"}]},{"kind":"text","text":" is used to identify the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" to use to perform the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"}]},{"kind":"text","text":". The names of arguments are parameters for the resulting {#link CallTarget} that allow the "},{"kind":"code","text":"source"},{"kind":"text","text":" to reference the actual parameters passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(java.lang.Object...)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The suffix "},{"kind":"code","text":"public"},{"kind":"text","text":" in the method name indicates that the result of this method is safe to be exposed by default to guest applications. Public languages are configured by the embedder to be accessible to the guest language program. For example, in JavaScript, a call to the eval builtin should forward to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]},{"kind":"text","text":" as it contains code provided by the guest language user. Parsing regular expressions with the internal regular expression engine should call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parseInternal(Source, String...)"}]},{"kind":"text","text":" instead, as this is considered an implementation detail of the language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended that the language uses "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Env.parsePublic(Source, String...)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Env.parseInternal(Source, String...)"}]},{"kind":"text","text":" instead of directly passing the Source to the parser, in order to support code caching with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.SHARED"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#REUSE"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.REUSE"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Languages should check for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotEvalAllowed(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"eval permissions"}]},{"kind":"text","text":" for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicLanguages()"},"code":true,"children":[{"kind":"text","text":"public language"}]},{"kind":"text","text":" prior to calling this method, otherwise "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown if not sufficient privileges are available."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parseInternal(Source, String...)"}]}]]},"since":"19.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2637}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#in()","anchor":"in()","kind":"method","name":"in","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InputStream","ref":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"},{"kind":"punct","text":" "},{"kind":"name","text":"in"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InputStream","ref":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"reader, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Input stream provided by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#in(java.io.InputStream)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#in(java.io.InputStream)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.in(InputStream)"}]},{"kind":"text","text":" this language is being executed in."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Input stream provided by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#in(java.io.InputStream)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#in(java.io.InputStream)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.in(InputStream)"}]},{"kind":"text","text":" this language is being executed in."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2655}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#out()","anchor":"out()","kind":"method","name":"out","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"name","text":"out"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"writer, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Standard output writer provided by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#out(java.io.OutputStream)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#out(java.io.OutputStream)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.out(OutputStream)"}]},{"kind":"text","text":" this language is being executed in."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Standard output writer provided by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#out(java.io.OutputStream)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#out(java.io.OutputStream)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.out(OutputStream)"}]},{"kind":"text","text":" this language is being executed in."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2669}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#err()","anchor":"err()","kind":"method","name":"err","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"name","text":"err"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"writer, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Standard error writer provided by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#err(java.io.OutputStream)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#err(java.io.OutputStream)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.err(OutputStream)"}]},{"kind":"text","text":" this language is being executed in."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Standard error writer provided by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#err(java.io.OutputStream)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#err(java.io.OutputStream)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context.Builder.err(OutputStream)"}]},{"kind":"text","text":" this language is being executed in."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2683}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(java.lang.Class)","anchor":"lookup(java.lang.Class)","kind":"method","name":"lookup","modifiers":["public"],"typeParams":[{"name":"T","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"type of requested service"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"lookup"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"type"},{"kind":"punct","text":")"}],"params":[{"name":"type","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"class of requested service"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of T or "},{"kind":"code","text":"null"},{"kind":"text","text":" if there is no such service available"}]}]},"doc":{"summary":[{"kind":"text","text":"Looks additional service up."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Looks additional service up. An environment for a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" may also be associated with additional services. One can request implementations of such services by calling this method with the type identifying the requested service and its API."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Services that can be obtained via this method include "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.Instrumenter"}]},{"kind":"text","text":" and others."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2703}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(com.oracle.truffle.api.InstrumentInfo,java.lang.Class)","anchor":"lookup(com.oracle.truffle.api.InstrumentInfo,java.lang.Class)","kind":"method","name":"lookup","modifiers":["public"],"typeParams":[{"name":"S","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the requested type"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"S"},{"kind":"punct","text":" "},{"kind":"name","text":"lookup"},{"kind":"punct","text":"("},{"kind":"type","text":"InstrumentInfo","ref":"com.oracle.truffle.api.InstrumentInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"instrument"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":"> "},{"kind":"param","text":"type"},{"kind":"punct","text":")"}],"params":[{"name":"instrument","type":[{"kind":"type","text":"InstrumentInfo","ref":"com.oracle.truffle.api.InstrumentInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"identification of the instrument to query"}]}]},{"name":"type","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class of the requested type"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"S"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the registered service or "},{"kind":"code","text":"null"},{"kind":"text","text":" if none is found"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns an additional service provided by this instrument, specified by type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an additional service provided by this instrument, specified by type. If an instrument is not enabled, it will be enabled automatically by requesting a supported service. If the instrument does not provide a service for a given type it will not be enabled automatically."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2726}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)","anchor":"lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)","kind":"method","name":"lookup","modifiers":["public"],"typeParams":[{"name":"S","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the requested type"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"S"},{"kind":"punct","text":" "},{"kind":"name","text":"lookup"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":"> "},{"kind":"param","text":"type"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language to query"}]}]},{"name":"type","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class of the requested type"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"S"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the registered service or "},{"kind":"code","text":"null"},{"kind":"text","text":" if none is found"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns an additional service provided by the given language, specified by type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an additional service provided by the given language, specified by type. For services registered by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#services()"},"code":true,"children":[{"kind":"text","text":"Registration.services()"}]},{"kind":"text","text":" the service lookup will ensure that the language is loaded and services are registered. The provided langauge and type must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"19.0 supports services registered by registerService","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2750}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#initializeLanguage(com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"initializeLanguage(com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"initializeLanguage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"initializeLanguage"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"targetLanguage"},{"kind":"punct","text":")"}],"params":[{"name":"targetLanguage","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language to initialize"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an access to "},{"kind":"code","text":"targetLanguage"},{"kind":"text","text":" is not permitted"}]}]}],"doc":{"summary":[{"kind":"text","text":"Ensures that the target language is initialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that the target language is initialized. This method firstly verifies that the target language is accessible from this language. If not the "},{"kind":"link","target":{"id":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"},"code":true,"children":[{"kind":"text","text":"SecurityException"}]},{"kind":"text","text":" is thrown. Then the target language initialization is performed if not already done."}]}]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2772}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalLanguages()","anchor":"getInternalLanguages()","kind":"method","name":"getInternalLanguages","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getInternalLanguages"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all languages that are installed and internally accessible in the environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all languages that are installed and internally accessible in the environment. Using the language instance additional services can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"looked up"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parseInternal(Source, String...)"}]},{"kind":"text","text":" is allowed for all languages returned by this method. This list of languages should not be exposed to guest language programs, as it lists internal languages."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"lookup(LanguageInfo, Class)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parseInternal(Source, String...)"}]}]]},"since":"19.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2793}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getHostLanguage()","anchor":"getHostLanguage()","kind":"method","name":"getHostLanguage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getHostLanguage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}]},"doc":{"summary":[{"kind":"text","text":"Retrieves the host language used in this environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Retrieves the host language used in this environment. The returned language can be used to obtain the host language top scope object using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopeInternal(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"getScopeInternal(LanguageInfo)"}]},{"kind":"text","text":" method."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2809}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicLanguages()","anchor":"getPublicLanguages()","kind":"method","name":"getPublicLanguages","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getPublicLanguages"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all languages that are installed and publicly accessible in the environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all languages that are installed and publicly accessible in the environment. Using the language instance additional services can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"looked up"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]},{"kind":"text","text":" is allowed for all languages returned by this method. This list of languages may be exposed ot the guest language program."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parsePublic(Source, String...)"}]}]]},"since":"19.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2828}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getLanguageInfo(java.lang.Class)","anchor":"getLanguageInfo(java.lang.Class)","kind":"method","name":"getLanguageInfo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguageInfo"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language class to convert"}]}]}],"returns":{"type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the associated language info"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the language class is not valid."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo"},"code":true,"children":[{"kind":"text","text":"language info"}]},{"kind":"text","text":" for a given language class if available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo"},"code":true,"children":[{"kind":"text","text":"language info"}]},{"kind":"text","text":" for a given language class if available. The class may be obtained with "},{"kind":"code","text":"InteropLibrary.getLanguage(Object)"},{"kind":"text","text":". Throws an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" if the provided language is not registered."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2847}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInstruments()","anchor":"getInstruments()","kind":"method","name":"getInstruments","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"InstrumentInfo","ref":"com.oracle.truffle.api.InstrumentInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getInstruments"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"InstrumentInfo","ref":"com.oracle.truffle.api.InstrumentInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns a map instrument-id to instrument instance of all instruments that are installed in the environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a map instrument-id to instrument instance of all instruments that are installed in the environment. Using the instrument instance additional services can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(com.oracle.truffle.api.InstrumentInfo,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"looked up"}]},{"kind":"text","text":" ."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2864}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getTimeZone()","anchor":"getTimeZone()","kind":"method","name":"getTimeZone","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ZoneId","ref":"java.time.ZoneId","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getTimeZone"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ZoneId","ref":"java.time.ZoneId","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the default time zone of this environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the default time zone of this environment. If the time-zone was not explicitly set by the embedder, UTC is returned with "},{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy#CONSTRAINED","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html#CONSTRAINED"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy.CONSTRAINED"}]},{"kind":"text","text":" or stricter sandbox policies, and the "},{"kind":"link","target":{"id":"java.time.ZoneId#systemDefault()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html#systemDefault()"},"code":true,"children":[{"kind":"text","text":"system default"}]},{"kind":"text","text":" time-zone is returned otherwise."}]}],"see":[[{"kind":"link","target":{"id":"java.time.ZoneId#systemDefault()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html#systemDefault()"},"code":true,"children":[{"kind":"text","text":"ZoneId.systemDefault()"}]}]]},"since":"19.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2882}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getConfig()","anchor":"getConfig()","kind":"method","name":"getConfig","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getConfig"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Configuration arguments passed from an outer language context to an inner language context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configuration arguments passed from an outer language context to an inner language context. Inner language contexts can be created using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"newInnerContextBuilder(String...)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"to create inner contexts."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#config(java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"to pass configuration objects to the inner context."}]}]]},"since":"0.11","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2901}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getContext()","anchor":"getContext()","kind":"method","name":"getContext","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"name","text":"getContext"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the polyglot context associated with this environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the polyglot context associated with this environment."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2913}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPreInitialization()","anchor":"isPreInitialization()","kind":"method","name":"isPreInitialization","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isPreInitialization"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context"}]},{"kind":"text","text":" is being pre-initialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Context"}]},{"kind":"text","text":" is being pre-initialized. For a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env"},"code":true,"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":", the return value of this method never changes."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeContext(C)"},"code":true,"children":[{"kind":"text","text":"initializeContext(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#patchContext(C,com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"patchContext(Object, Env)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2930}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicTruffleFile(java.lang.String)","anchor":"getPublicTruffleFile(java.lang.String)","kind":"method","name":"getPublicTruffleFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getPublicTruffleFile"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"path"},{"kind":"punct","text":")"}],"params":[{"name":"path","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the absolute or relative path to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" supports only "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"path"},{"kind":"text","text":" string cannot be converted to a "},{"kind":"link","target":{"id":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},"code":true,"children":[{"kind":"text","text":"Path"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given path. The returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" access depends on the file system used by the context and can vary from all access in case of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.IOAccess#ALL","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/IOAccess.html#ALL"},"code":true,"children":[{"kind":"text","text":"allowed IO"}]},{"kind":"text","text":" to no access in case of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.IOAccess#NONE","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/IOAccess.html#NONE"},"code":true,"children":[{"kind":"text","text":"denied IO"}]},{"kind":"text","text":". When IO is not enabled by the "},{"kind":"code","text":"Context"},{"kind":"text","text":" the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" operations throw "},{"kind":"link","target":{"id":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"},"code":true,"children":[{"kind":"text","text":"SecurityException"}]},{"kind":"text","text":". The "},{"kind":"code","text":"getPublicTruffleFile"},{"kind":"text","text":" method should be used to access user files or to implement language IO builtins."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.io.IOAccess","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/IOAccess.html"},"code":true,"children":[{"kind":"text","text":"IOAccess"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#allowIO(org.graalvm.polyglot.io.IOAccess)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#allowIO(org.graalvm.polyglot.io.IOAccess)"},"code":true,"children":[{"kind":"text","text":"Builder.allowIO(IOAccess)"}]}]]},"since":"19.3.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2957}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicTruffleFile(java.net.URI)","anchor":"getPublicTruffleFile(java.net.URI)","kind":"method","name":"getPublicTruffleFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getPublicTruffleFile"},{"kind":"punct","text":"("},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"param","text":"uri"},{"kind":"punct","text":")"}],"params":[{"name":"uri","type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" scheme is not supported"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if preconditions on the "},{"kind":"code","text":"uri"},{"kind":"text","text":" do not hold."}]}]},{"type":[{"kind":"type","text":"FileSystemNotFoundException","ref":"java.nio.file.FileSystemNotFoundException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileSystemNotFoundException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"is the file system, identified by the "},{"kind":"code","text":"uri"},{"kind":"text","text":", does not exist and cannot be created automatically"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given path. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicTruffleFile(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getPublicTruffleFile(String)"}]},{"kind":"text","text":" for detailed information."}]}]},"since":"19.3.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":2982}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalTruffleFile(java.lang.String)","anchor":"getInternalTruffleFile(java.lang.String)","kind":"method","name":"getInternalTruffleFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getInternalTruffleFile"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"path"},{"kind":"punct","text":")"}],"params":[{"name":"path","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the absolute or relative path to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" supports only "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"path"},{"kind":"text","text":" string cannot be converted to a "},{"kind":"link","target":{"id":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},"code":true,"children":[{"kind":"text","text":"Path"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for the given path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for the given path. This method allows access to a language's internal resources even if file system privileges might be limited or denied. If the path locates a file under an internal resource root or under a guest language home, it is guaranteed that the returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" has at least read access. Otherwise, the returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" access depends on the file system used by the context and can vary from all access in case of allowed IO to no access in case of denied IO. This method should be used to read language-provided files, such as language standard libraries."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is equivalent to "},{"kind":"code","text":"getTruffleFileInternal(path, p -> true)"},{"kind":"text","text":". If a language should only use a subset of the language's internal resources, consider using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getTruffleFileInternal(java.lang.String,java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"getTruffleFileInternal(String, Predicate)"}]},{"kind":"text","text":" and perform that language-specific restriction using a predicate."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getTruffleFileInternal(java.lang.String,java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"getTruffleFileInternal(String, Predicate)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicTruffleFile(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getPublicTruffleFile(java.lang.String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalResource(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getInternalResource(String)"}]}]]},"since":"19.3.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3021}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalTruffleFile(java.net.URI)","anchor":"getInternalTruffleFile(java.net.URI)","kind":"method","name":"getInternalTruffleFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getInternalTruffleFile"},{"kind":"punct","text":"("},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"param","text":"uri"},{"kind":"punct","text":")"}],"params":[{"name":"uri","type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" scheme is not supported"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if preconditions on the "},{"kind":"code","text":"uri"},{"kind":"text","text":" do not hold."}]}]},{"type":[{"kind":"type","text":"FileSystemNotFoundException","ref":"java.nio.file.FileSystemNotFoundException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileSystemNotFoundException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"is the file system, identified by the "},{"kind":"code","text":"uri"},{"kind":"text","text":", does not exist and cannot be created automatically"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalTruffleFile(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getInternalTruffleFile(String)"}]},{"kind":"text","text":" for detailed information."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getTruffleFileInternal(java.net.URI,java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"getTruffleFileInternal(URI, Predicate)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicTruffleFile(java.net.URI)"},"code":true,"children":[{"kind":"text","text":"getPublicTruffleFile(java.net.URI)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalResource(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getInternalResource(String)"}]}]]},"since":"19.3.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3049}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getTruffleFileInternal(java.lang.String,java.util.function.Predicate)","anchor":"getTruffleFileInternal(java.lang.String,java.util.function.Predicate)","kind":"method","name":"getTruffleFileInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getTruffleFileInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"path"},{"kind":"punct","text":", "},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":"> "},{"kind":"param","text":"filter"},{"kind":"punct","text":")"}],"params":[{"name":"path","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the absolute or relative path to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for"}]}]},{"name":"filter","type":[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"to enable read access to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":". Multiple invocations of "},{"kind":"code","text":"filter.test(file)"},{"kind":"text","text":" must consistently return "},{"kind":"code","text":"true"},{"kind":"text","text":" or consistently return "},{"kind":"code","text":"false"},{"kind":"text","text":" for a given path."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" supports only "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"path"},{"kind":"text","text":" string cannot be converted to a "},{"kind":"link","target":{"id":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},"code":true,"children":[{"kind":"text","text":"Path"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for the given path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for the given path. This method allows access to a language's internal resources even if file system privileges might be limited or denied. If the path locates a file under an internal resource root or under a guest language home, and the file satisfies the given "},{"kind":"code","text":"filter"},{"kind":"text","text":", it is guaranteed that the returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" has at least read access. Otherwise, the returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" access depends on the file system used by the context and can vary from all access in case of allowed IO to no access in case of denied IO."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A common use case for this method is a filter granting read access to the language standard libraries."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The method performs the following checks:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"If the IO is enabled by the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":" an accessible "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" is returned without any other checks."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If the given path does not locate a file in an internal resource root or a guest language home, a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" with no access is returned."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If the given filter accepts the file a readable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" is returned. Otherwise, a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" with no access is returned."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The relation to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicTruffleFile(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getPublicTruffleFile(String)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalTruffleFile(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getInternalTruffleFile(String)"}]},{"kind":"text","text":" is:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicTruffleFile(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getPublicTruffleFile(String)"}]},{"kind":"text","text":" is equivalent to "},{"kind":"code","text":"getTruffleFileInternal(path, p -> false)"},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalTruffleFile(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getInternalTruffleFile(String)"}]},{"kind":"text","text":" is equivalent to "},{"kind":"code","text":"getTruffleFileInternal(path, p -> true)"},{"kind":"text","text":"."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getTruffleFileInternal(java.net.URI,java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"getTruffleFileInternal(URI, Predicate)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicTruffleFile(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getPublicTruffleFile(String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalTruffleFile(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getInternalTruffleFile(String)"}]}]]},"since":"21.1.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3107}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getTruffleFileInternal(java.net.URI,java.util.function.Predicate)","anchor":"getTruffleFileInternal(java.net.URI,java.util.function.Predicate)","kind":"method","name":"getTruffleFileInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getTruffleFileInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"param","text":"uri"},{"kind":"punct","text":", "},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":"> "},{"kind":"param","text":"filter"},{"kind":"punct","text":")"}],"params":[{"name":"uri","type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for"}]}]},{"name":"filter","type":[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"to enable read access to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":". Multiple invocations of "},{"kind":"code","text":"filter.test(file)"},{"kind":"text","text":" must consistently return "},{"kind":"code","text":"true"},{"kind":"text","text":" or consistently return "},{"kind":"code","text":"false"},{"kind":"text","text":" for a given path."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" supports only "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if preconditions on the "},{"kind":"code","text":"uri"},{"kind":"text","text":" do not hold."}]}]},{"type":[{"kind":"type","text":"FileSystemNotFoundException","ref":"java.nio.file.FileSystemNotFoundException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileSystemNotFoundException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"is the file system, identified by the "},{"kind":"code","text":"uri"},{"kind":"text","text":", does not exist and cannot be created automatically"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given URI."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given URI. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getTruffleFileInternal(java.lang.String,java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"getTruffleFileInternal(String, Predicate)"}]},{"kind":"text","text":" for detailed information."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getTruffleFileInternal(java.lang.String,java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"getTruffleFileInternal(String, Predicate)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicTruffleFile(java.net.URI)"},"code":true,"children":[{"kind":"text","text":"getPublicTruffleFile(URI)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalTruffleFile(java.net.URI)"},"code":true,"children":[{"kind":"text","text":"getInternalTruffleFile(URI)"}]}]]},"since":"21.1.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3131}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getCurrentWorkingDirectory()","anchor":"getCurrentWorkingDirectory()","kind":"method","name":"getCurrentWorkingDirectory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getCurrentWorkingDirectory"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current working directory"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"filesystem"}]},{"kind":"text","text":" denies reading of the current working directory"}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the current working directory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the current working directory. The current working directory is used to resolve non absolute paths in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" methods."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3191}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#setCurrentWorkingDirectory(com.oracle.truffle.api.TruffleFile)","anchor":"setCurrentWorkingDirectory(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"setCurrentWorkingDirectory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setCurrentWorkingDirectory"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"currentWorkingDirectory"},{"kind":"punct","text":")"}],"params":[{"name":"currentWorkingDirectory","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new current working directory"}]}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if setting of the current working directory is not supported"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"currentWorkingDirectory"},{"kind":"text","text":" is not a valid current working directory"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"currentWorkingDirectory"},{"kind":"text","text":" is not readable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the current working directory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the current working directory. The current working directory is used to resolve non absolute paths in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" methods."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3208}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getFileNameSeparator()","anchor":"getFileNameSeparator()","kind":"method","name":"getFileNameSeparator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getFileNameSeparator"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name separator"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the name separator used to separate names in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"'s path string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name separator used to separate names in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":"'s path string."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3238}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPathSeparator()","anchor":"getPathSeparator()","kind":"method","name":"getPathSeparator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getPathSeparator"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the path separator"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the path separator used to separate filenames in a path list."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the path separator used to separate filenames in a path list. On UNIX the path separator is "},{"kind":"code","text":"':'"},{"kind":"text","text":". On Windows it's "},{"kind":"code","text":"';'"},{"kind":"text","text":"."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3256}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerService(java.lang.Object)","anchor":"registerService(java.lang.Object)","kind":"method","name":"registerService","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"registerService"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"service"},{"kind":"punct","text":")"}],"params":[{"name":"service","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a service to be returned from associated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"lookup method"}]}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the method is called outside of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext(com.oracle.truffle.api.TruffleLanguage.Env)"}]},{"kind":"text","text":" method"}]}]}],"doc":{"summary":[{"kind":"text","text":"Registers additional services provided by the language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Registers additional services provided by the language. The registered services are made available to users via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"lookup(com.oracle.truffle.api.nodes.LanguageInfo, java.lang.Class)"}]},{"kind":"text","text":" query method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For each service interface enumerated in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#services()"},"code":true,"children":[{"kind":"text","text":"language registration"}]},{"kind":"text","text":" the language has to register a single service implementation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be called only during the execution of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext method"}]},{"kind":"text","text":", then the services are collected and cannot be changed anymore."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3286}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isCreateProcessAllowed()","anchor":"isCreateProcessAllowed()","kind":"method","name":"isCreateProcessAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCreateProcessAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the creation of a sub-process is allowed in the current environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the creation of a sub-process is allowed in the current environment."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newProcessBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"newProcessBuilder(java.lang.String...)"}]}]]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3300}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newProcessBuilder(java.lang.String...)","anchor":"newProcessBuilder(java.lang.String...)","kind":"method","name":"newProcessBuilder","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newProcessBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"command"},{"kind":"punct","text":")"}],"params":[{"name":"command","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the executable and its arguments"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when process creation is not allowed"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new process builder with the specified operating program and arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new process builder with the specified operating program and arguments."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3315}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getEnvironment()","anchor":"getEnvironment()","kind":"method","name":"getEnvironment","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getEnvironment"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the process environment as a map of variable names to values"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns an unmodifiable map of the process environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an unmodifiable map of the process environment. When the "},{"kind":"code","text":"Context"},{"kind":"text","text":" is configured with "},{"kind":"link","target":{"id":"org.graalvm.polyglot.EnvironmentAccess#INHERIT","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/EnvironmentAccess.html#INHERIT"},"code":true,"children":[{"kind":"text","text":"EnvironmentAccess.INHERIT"}]},{"kind":"text","text":" it returns the "},{"kind":"link","target":{"id":"java.lang.System#getenv()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/System.html#getenv()"},"code":true,"children":[{"kind":"text","text":"System.getenv()"}]},{"kind":"text","text":" and the environment variables configured on the "},{"kind":"code","text":"Context"},{"kind":"text","text":". For the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.EnvironmentAccess#NONE","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/EnvironmentAccess.html#NONE"},"code":true,"children":[{"kind":"text","text":"EnvironmentAccess.NONE"}]},{"kind":"text","text":" only the environment variables configured on the "},{"kind":"code","text":"Context"},{"kind":"text","text":" are returned."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3336}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createTempFile(com.oracle.truffle.api.TruffleFile,java.lang.String,java.lang.String,java.nio.file.attribute.FileAttribute...)","anchor":"createTempFile(com.oracle.truffle.api.TruffleFile,java.lang.String,java.lang.String,java.nio.file.attribute.FileAttribute...)","kind":"method","name":"createTempFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"createTempFile"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"dir"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"prefix"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"suffix"},{"kind":"punct","text":", "},{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"attrs"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"dir","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the directory in which the file should be created or "},{"kind":"code","text":"null"},{"kind":"text","text":" for a default temporary directory"}]}]},{"name":"prefix","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the prefix to generate the file's name or "},{"kind":"code","text":"null"}]}]},{"name":"suffix","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the suffix to generate the file's name or "},{"kind":"code","text":"null"},{"kind":"text","text":" in which case \""},{"kind":"code","text":".tmp"},{"kind":"text","text":"\" is used"}]}]},{"name":"attrs","type":[{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the optional attributes to set atomically when creating the file"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the newly created file that did not exist before this method was invoked"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the prefix or suffix cannot be used to generate a valid file name"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the attributes contain an attribute which cannot be set atomically or "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" does not support default temporary directory"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new empty file in the specified or default temporary directory, using the given prefix and suffix to generate its name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new empty file in the specified or default temporary directory, using the given prefix and suffix to generate its name."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method provides only part of a temporary file facility. To arrange for a file created by this method to be deleted automatically the resulting file must be opened using the "},{"kind":"link","target":{"id":"java.nio.file.StandardOpenOption#DELETE_ON_CLOSE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/StandardOpenOption.html#DELETE_ON_CLOSE"},"code":true,"children":[{"kind":"text","text":"DELETE_ON_CLOSE"}]},{"kind":"text","text":" option. In this case the file is deleted when the appropriate "},{"kind":"code","text":"close"},{"kind":"text","text":" method is invoked. Alternatively, a "},{"kind":"link","target":{"id":"java.lang.Runtime#addShutdownHook(java.lang.Thread)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"shutdown hook"}]},{"kind":"text","text":" may be used to delete the file automatically."}]}]},"since":"19.3.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3373}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createTempDirectory(com.oracle.truffle.api.TruffleFile,java.lang.String,java.nio.file.attribute.FileAttribute...)","anchor":"createTempDirectory(com.oracle.truffle.api.TruffleFile,java.lang.String,java.nio.file.attribute.FileAttribute...)","kind":"method","name":"createTempDirectory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"createTempDirectory"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"dir"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"prefix"},{"kind":"punct","text":", "},{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"attrs"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"dir","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the directory in which the directory should be created or "},{"kind":"code","text":"null"},{"kind":"text","text":" for a default temporary directory"}]}]},{"name":"prefix","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the prefix to generate the directory's name or "},{"kind":"code","text":"null"}]}]},{"name":"attrs","type":[{"kind":"type","text":"FileAttribute","ref":"java.nio.file.attribute.FileAttribute","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/attribute/FileAttribute.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the optional attributes to set atomically when creating the directory"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the newly created directory that did not exist before this method was invoked"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the prefix cannot be used to generate a valid file name"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the attributes contain an attribute which cannot be set atomically or "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" does not support default temporary directory"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" denied the operation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new directory in the specified or default temporary directory, using the given prefix to generate its name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new directory in the specified or default temporary directory, using the given prefix to generate its name."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method provides only part of a temporary file facility. A "},{"kind":"link","target":{"id":"java.lang.Runtime#addShutdownHook(java.lang.Thread)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"shutdown hook"}]},{"kind":"text","text":" may be used to delete the directory automatically."}]}]},"since":"19.3.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3409}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createHostAdapter(java.lang.Object[])","anchor":"createHostAdapter(java.lang.Object[])","kind":"method","name":"createHostAdapter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createHostAdapter"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"types"},{"kind":"punct","text":")"}],"params":[{"name":"types","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the types to extend. Must be non-null and contain at least one extensible superclass or interface, and at most one superclass. All types must be public, accessible, and allow implementation."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a host class that can be instantiated to create instances of a host class that extends all the provided host types. The host class may be cached."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the types are not extensible or more than one superclass is given."}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if host access does not allow creating adapter classes for these types."}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if creating adapter classes is not supported on this runtime at all, which is currently the case for native images."}]}]},{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"types"},{"kind":"text","text":" is null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a Java host adapter class that can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#instantiate(java.lang.Object,java.lang.Object...)"},"children":[{"kind":"text","text":"instantiated"}]},{"kind":"text","text":" with a guest object (as the last argument) in order to create adapter instances of the provided host types, (non-final) methods of which delegate to the guest object's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInvocable(java.lang.Object,java.lang.String)"},"children":[{"kind":"text","text":"invocable"}]},{"kind":"text","text":" members."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a Java host adapter class that can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#instantiate(java.lang.Object,java.lang.Object...)"},"children":[{"kind":"text","text":"instantiated"}]},{"kind":"text","text":" with a guest object (as the last argument) in order to create adapter instances of the provided host types, (non-final) methods of which delegate to the guest object's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInvocable(java.lang.Object,java.lang.String)"},"children":[{"kind":"text","text":"invocable"}]},{"kind":"text","text":" members. Implementations must be "},{"kind":"link","target":{"id":"org.graalvm.polyglot.HostAccess$Builder#allowImplementations(java.lang.Class)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/HostAccess.Builder.html#allowImplementations(java.lang.Class)"},"children":[{"kind":"text","text":"allowed"}]},{"kind":"text","text":" for these types. The returned host adapter class is an instantiable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isHostObject(java.lang.Object)"},"children":[{"kind":"text","text":"host object"}]},{"kind":"text","text":" that is also a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"children":[{"kind":"text","text":"meta object"}]},{"kind":"text","text":", so "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaInstance(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaInstance"}]},{"kind":"text","text":" can be used to check if an object is an instance of this adapter class. See usage example below."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Please note that only classes from the unnamed module or classes exported to the unnamed module can be used in "},{"kind":"code","text":"types"},{"kind":"text","text":". The generated host adapter class is also in the unnamed module."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A host class is generated as follows:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"For every protected or public constructor in the extended class, the adapter class will have one public constructor (visibility of protected constructors in the extended class is promoted to public)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For every super constructor, a constructor taking a trailing "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},"code":true,"children":[{"kind":"text","text":"Value"}]},{"kind":"text","text":" argument preceded by original constructor's arguments is generated. When such a constructor is invoked, the passed "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},"code":true,"children":[{"kind":"text","text":"Value"}]},{"kind":"text","text":"'s member functions are used to implement and/or override methods on the original class, dispatched by name. A single invocable member will act as the implementation for all overloaded methods of the same name. When methods on an adapter instance are invoked, the functions are invoked having the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},"code":true,"children":[{"kind":"text","text":"Value"}]},{"kind":"text","text":" passed in the instance constructor as their receiver. Subsequent changes to the members of that "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},"code":true,"children":[{"kind":"text","text":"Value"}]},{"kind":"text","text":" (reassignment or removal of its functions) are reflected in the adapter instance; the method implementations are not bound to functions at constructor invocation time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The generated host class extends all non-final public or protected methods, and forwards their invocations to the guest object provided to the constructor. If the guest object does not contain an invocable member with that name, the super/default method is invoked instead. If the super method is abstract, an "},{"kind":"link","target":{"id":"java.lang.AbstractMethodError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AbstractMethodError.html"},"code":true,"children":[{"kind":"text","text":"AbstractMethodError"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the original types collectively have only one abstract method, or have several of them, but all share the same name, the constructor(s) will check if the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},"code":true,"children":[{"kind":"text","text":"Value"}]},{"kind":"text","text":" is executable, and if so, will use the passed function as the implementation for all abstract methods. For consistency, any concrete methods sharing the single abstract method name will also be overridden by the function."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For non-void methods, all the conversions supported by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Value#as(java.lang.Class)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html#as(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"Value.as"}]},{"kind":"text","text":" will be in effect to coerce the guest methods' return value to the expected Java return type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instances of the host class have the following additional special members:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"code","text":"super"},{"kind":"text","text":": provides access to the super methods of the host class via a wrapper object. Can be used to call super methods from guest method overrides."}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"this"},{"kind":"text","text":": returns the original guest object."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Direct member operations on an adapter instance for members not provided by the generated host class are delegated to the original guest object. Java host fields and methods, and the special "},{"kind":"code","text":"super"},{"kind":"text","text":" and "},{"kind":"code","text":"this"},{"kind":"text","text":" members, take precedence over same-named guest object members."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example:"},{"kind":"break"}]},{"kind":"code","text":"\nObject hostClass = env.createHostAdapter(new Object[]{\n     env.asHostSymbol(Superclass.class),\n     env.asHostSymbol(Interface.class)});\n// generates a class along the lines of:\n\npublic class Adapter extends Superclass implements Interface {\n  private Value delegate;\n\n  public Adapter(Value delegate) { this.delegate = delegate; }\n\n  public method(Object... args) {\n     if (delegate.canInvokeMember(\"method\") {\n       return delegate.invokeMember(\"method\", args);\n     } else {\n       return super.method(args);\n     }\n  }\n}\n\n// and can be instantiated as follows:\nObject instance = InteropLibrary.getUncached().instantiate(hostClass, guestObject);\nassert InteropLibrary.getUncached().isMetaInstance(hostClass, instance);"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createHostAdapterWithClassOverrides(java.lang.Object[],java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"createHostAdapterWithClassOverrides(Object[], Object)"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3527}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createHostAdapterWithClassOverrides(java.lang.Object[],java.lang.Object)","anchor":"createHostAdapterWithClassOverrides(java.lang.Object[],java.lang.Object)","kind":"method","name":"createHostAdapterWithClassOverrides","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createHostAdapterWithClassOverrides"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"types"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"classOverrides"},{"kind":"punct","text":")"}],"params":[{"name":"types","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the types to extend. Must be non-null and contain at least one extensible superclass or interface, and at most one superclass. All types must be public, accessible, and allow implementation."}]}]},{"name":"classOverrides","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a guest object with class-level overrides. If not null, the object is bound to the class, not to any instance. Consequently, the generated constructors are changed to not take an object; all instances will share the same overrides object. Note that since a new class has to be generated for every overrides object instance and cannot be shared, use of this feature is discouraged; it is provided only for compatibility reasons."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a host class symbol that can be instantiated to create instances of a host class that extends all the provided host types."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the types are not extensible or more than one superclass is given."}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if host access does not allow creating adapter classes for these types."}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if creating adapter classes is not supported on this runtime at all, which is currently the case for native images."}]}]},{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if either "},{"kind":"code","text":"types"},{"kind":"text","text":" or "},{"kind":"code","text":"classOverrides"},{"kind":"text","text":" is null."}]}]}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createHostAdapter(java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"createHostAdapter(Object[])"}]},{"kind":"text","text":" but creates a Java host adapter class with class-level overrides, i.e., the guest object provided as "},{"kind":"code","text":"classOverrides"},{"kind":"text","text":" is statically bound to the class rather than instances of the class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createHostAdapter(java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"createHostAdapter(Object[])"}]},{"kind":"text","text":" but creates a Java host adapter class with class-level overrides, i.e., the guest object provided as "},{"kind":"code","text":"classOverrides"},{"kind":"text","text":" is statically bound to the class rather than instances of the class. Returns a host class that can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#instantiate(java.lang.Object,java.lang.Object...)"},"children":[{"kind":"text","text":"instantiated"}]},{"kind":"text","text":" to create instances of the provided host "},{"kind":"code","text":"types"},{"kind":"text","text":", (non-final) methods of which delegate to the guest object provided as "},{"kind":"code","text":"classOverrides"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Allows creating host adapter class hierarchies, i.e., the returned class can be used as a superclass of other host adapter classes. Note that classes created with method cannot be cached. Therefore, this feature should be used sparingly."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createHostAdapter(java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"createHostAdapter(Object[])"}]},{"kind":"text","text":" for more details."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createHostAdapter(java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"createHostAdapter(Object[])"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3568}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalResource(java.lang.Class)","anchor":"getInternalResource(java.lang.Class)","kind":"method","name":"getInternalResource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getInternalResource"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource","ref":"com.oracle.truffle.api.InternalResource"},{"kind":"punct","text":"> "},{"kind":"param","text":"resource"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"resource","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource","ref":"com.oracle.truffle.api.InternalResource"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the resource class to load"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"resource"},{"kind":"text","text":" is not associated with this language"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the target directory of an internal resource."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the target directory of an internal resource. The internal resource is guaranteed to be fully "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource#unpackFiles(com.oracle.truffle.api.InternalResource.Env,java.nio.file.Path)"},"code":true,"children":[{"kind":"text","text":"InternalResource.unpackFiles(InternalResource.Env, Path)"}]},{"kind":"text","text":" s unpacked} before this method returns. When this method is called for the first time and the resource is not cached than the resource will be unpacked. Unpacking an internal resource can be an expensive operation, but the implementation makes sure that unpacked internal resources are cached."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" will only grant read-only access to the target directory, but access is provided even if IO access is disabled."}]},{"kind":"paragraph","children":[{"kind":"text","text":"On a HotSpot VM the internal resource is typically cached in the user directory, so unpacking would be repeated once per operating system user. When the language was compiled using native-image internal resources are unpacked at native-image compile time and stored relative to the native-image."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3597}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalResource(java.lang.String)","anchor":"getInternalResource(java.lang.String)","kind":"method","name":"getInternalResource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getInternalResource"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"resourceId"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"resourceId","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"unique id of the resource to be loaded"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"internal resource directory or "},{"kind":"code","text":"null"},{"kind":"text","text":" if resource with the "},{"kind":"code","text":"resourceId"},{"kind":"text","text":" is not associated with this language"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the target directory of an internal resource."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the target directory of an internal resource. Unlike the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalResource(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"getInternalResource(Class)"}]},{"kind":"text","text":", this method can be used for optional resources whose classes may not exist at runtime. In this case the optional resource must be unpacked at build time, see "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#copyResources(java.nio.file.Path,java.lang.String...)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#copyResources(java.nio.file.Path,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Engine.copyResources(Path, String...)"}]},{"kind":"text","text":". If the resource with the specified "},{"kind":"code","text":"resourceId"},{"kind":"text","text":" is not associated to this language, the function returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalResource(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"getInternalResource(Class)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#copyResources(java.nio.file.Path,java.lang.String...)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#copyResources(java.nio.file.Path,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Engine.copyResources(Path, String...)"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3617}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getLogger(java.lang.String)","anchor":"getLogger(java.lang.String)","kind":"method","name":"getLogger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"},{"kind":"punct","text":" "},{"kind":"name","text":"getLogger"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"loggerName"},{"kind":"punct","text":")"}],"params":[{"name":"loggerName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":", if a "},{"kind":"code","text":"loggerName"},{"kind":"text","text":" is null or empty a root logger for language or instrument is returned"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Find or create a context-bound logger."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find or create a context-bound logger. The returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":" always uses a logging handler and options from this execution environment context and does not depend on being entered on any thread."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a logger with a given name already exists it's returned. Otherwise, a new logger is created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike loggers created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger#getLogger(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"TruffleLogger.getLogger"}]},{"kind":"text","text":" loggers created by this method are bound to a single context. There may be more logger instances having the same name but each bound to a different context. Languages should never store the returned logger into a static field. If the context policy is more permissive than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.EXCLUSIVE"}]},{"kind":"text","text":" the returned logger must not be stored in a TruffleLanguage subclass. It is recommended to create all language loggers in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.createContext(Env)"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3643}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getLogger(java.lang.Class)","anchor":"getLogger(java.lang.Class)","kind":"method","name":"getLogger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"},{"kind":"punct","text":" "},{"kind":"name","text":"getLogger"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"forClass"},{"kind":"punct","text":")"}],"params":[{"name":"forClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},"code":true,"children":[{"kind":"text","text":"Class"}]},{"kind":"text","text":" to create a logger for"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Find or create a context-bound logger."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find or create a context-bound logger. The returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":" always uses a logging handler and options from this execution environment context and does not depend on being entered on any thread."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a logger with a given name already exists it's returned. Otherwise, a new logger is created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike loggers created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger#getLogger(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"TruffleLogger.getLogger"}]},{"kind":"text","text":" loggers created by this method are bound to a single context. There may be more logger instances having the same name but each bound to a different context. Languages should never store the returned logger into a static field. If the context policy is more permissive than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.EXCLUSIVE"}]},{"kind":"text","text":" the returned logger must not be stored in a TruffleLanguage subclass. It is recommended to create all language loggers in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.createContext(Env)"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3671}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#submitThreadLocal(java.lang.Thread[],com.oracle.truffle.api.ThreadLocalAction)","anchor":"submitThreadLocal(java.lang.Thread[],com.oracle.truffle.api.ThreadLocalAction)","kind":"method","name":"submitThreadLocal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Future","ref":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Void","ref":"java.lang.Void","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Void.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"submitThreadLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"threads"},{"kind":"punct","text":", "},{"kind":"type","text":"ThreadLocalAction","ref":"com.oracle.truffle.api.ThreadLocalAction"},{"kind":"punct","text":" "},{"kind":"param","text":"action"},{"kind":"punct","text":")"}],"params":[{"name":"threads","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the threads to execute the action on. "},{"kind":"code","text":"null"},{"kind":"text","text":" for all threads"}]}]},{"name":"action","type":[{"kind":"type","text":"ThreadLocalAction","ref":"com.oracle.truffle.api.ThreadLocalAction"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the action to perform on that thread."}]}]}],"returns":{"type":[{"kind":"type","text":"Future","ref":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Void","ref":"java.lang.Void","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Void.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Submits a thread local action to be performed at the next guest language safepoint on a provided set of threads, once for each thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Submits a thread local action to be performed at the next guest language safepoint on a provided set of threads, once for each thread. If the threads array is "},{"kind":"code","text":"null"},{"kind":"text","text":" then the thread local action will be performed on all alive threads. The submitted actions are processed in the same order as they are submitted in. The action can be synchronous or asynchronous, side-effecting or non-side-effecting. Please see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]},{"kind":"text","text":" for details."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is ensured that a thread local action will get processed as long as the thread stays active for this context. If a thread becomes inactive before the action can get processed then the action will not be performed for this thread. If a thread becomes active while the action is being processed then the action will be performed for that thread as long as the thread filter includes the thread or "},{"kind":"code","text":"null"},{"kind":"text","text":" was passed. Already started synchronous actions will block on activation of a new thread. If the synchronous action was not yet started on any thread, then the synchronous action will also be performed for the newly activated thread."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The method returns a "},{"kind":"link","target":{"id":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},"code":true,"children":[{"kind":"text","text":"Future"}]},{"kind":"text","text":" instance that allows to wait for the thread local action to complete or to cancel a currently performed event."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example Usage:"}]},{"kind":"code","text":"Env env; // supplied\n\nenv.submitThreadLocal(null, new ThreadLocalAction(true, true) {\n    @Override\n    protected void perform(Access access) {\n        // perform action\n    }\n});"},{"kind":"paragraph","children":[{"kind":"text","text":"By default thread-local actions are executed once per configured thread and do not repeat themselves. If a ThreadLocalAction is configured to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#<init>(boolean,boolean,boolean)"},"code":true,"children":[{"kind":"text","text":"recurring"}]},{"kind":"text","text":" then the action will automatically be rescheduled in the same configuration until it is "},{"kind":"link","target":{"id":"java.util.concurrent.Future#cancel(boolean)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html#cancel(boolean)"},"code":true,"children":[{"kind":"text","text":"cancelled"}]},{"kind":"text","text":". For recurring actions, an invocation of "},{"kind":"link","target":{"id":"java.util.concurrent.Future#get()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html#get()"},"code":true,"children":[{"kind":"text","text":"Future.get()"}]},{"kind":"text","text":" will only wait for the first action to be performed. "},{"kind":"link","target":{"id":"java.util.concurrent.Future#isDone()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html#isDone()"},"code":true,"children":[{"kind":"text","text":"Future.isDone()"}]},{"kind":"text","text":" will return "},{"kind":"code","text":"true"},{"kind":"text","text":" only if the action was canceled. Canceling a recurring action will result in the current event being canceled and no further events being submitted. Using recurring events should be preferred over submitting the event again for the current thread while performing the thread-local action as recurring events are also resubmitted in case all threads leave and later reenter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the thread local action future needs to be waited on and this might be prone to deadlocks the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlocked(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"blocking API"}]},{"kind":"text","text":" can be used to allow other thread local actions to be processed while the current thread is waiting. The returned "},{"kind":"link","target":{"id":"java.util.concurrent.Future#get()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html#get()"},"code":true,"children":[{"kind":"text","text":"Future.get()"}]},{"kind":"text","text":" method can be used as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},"code":true,"children":[{"kind":"text","text":"Interruptible"}]},{"kind":"text","text":". If the underlying polyglot context is already closed, the method returns a completed "},{"kind":"link","target":{"id":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},"code":true,"children":[{"kind":"text","text":"Future"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3738}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerOnDispose(java.io.Closeable)","anchor":"registerOnDispose(java.io.Closeable)","kind":"method","name":"registerOnDispose","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"registerOnDispose"},{"kind":"punct","text":"("},{"kind":"type","text":"Closeable","ref":"java.io.Closeable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Closeable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"closeable"},{"kind":"punct","text":")"}],"params":[{"name":"closeable","type":[{"kind":"type","text":"Closeable","ref":"java.io.Closeable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Closeable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"to be closed on context dispose."}]}]}],"doc":{"summary":[{"kind":"text","text":"Registers "},{"kind":"link","target":{"id":"java.io.Closeable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Closeable.html"},"code":true,"children":[{"kind":"text","text":"Closeable"}]},{"kind":"text","text":" for automatic close on context dispose."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Registers "},{"kind":"link","target":{"id":"java.io.Closeable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Closeable.html"},"code":true,"children":[{"kind":"text","text":"Closeable"}]},{"kind":"text","text":" for automatic close on context dispose. In most cases, closeable should be closed using try-with-resources construct. When a closeable must keep being opened for the lifetime of a context it should be registered using this method for automatic close on context dispose. The registered "},{"kind":"link","target":{"id":"java.io.Closeable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Closeable.html"},"code":true,"children":[{"kind":"text","text":"Closeable"}]},{"kind":"text","text":" is weakly referenced. The guest language must strongly reference it otherwise, it may be garbage collected before it's closed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the registered closeable throws an "},{"kind":"link","target":{"id":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"},"code":true,"children":[{"kind":"text","text":"IOException"}]},{"kind":"text","text":" during close, the thrown exception does not prevent successful context dispose. The IOException is logged to the engine logger with a "},{"kind":"link","target":{"id":"java.util.logging.Level#WARNING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#WARNING"},"code":true,"children":[{"kind":"text","text":"Level.WARNING"}]},{"kind":"text","text":" level. Other exceptions are rethrown as internal "},{"kind":"link","target":{"id":"org.graalvm.polyglot.PolyglotException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html"},"code":true,"children":[{"kind":"text","text":"PolyglotException"}]},{"kind":"text","text":"."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3758}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getSandboxPolicy()","anchor":"getSandboxPolicy()","kind":"method","name":"getSandboxPolicy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSandboxPolicy"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the context's "},{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the context's "},{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]},{"kind":"text","text":". A language can use the returned sandbox policy to make language-specific verifications that the sandbox requirements are met. These verifications should be made as early as possible in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.createContext(Env)"}]},{"kind":"text","text":" method."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.createContext(Env)"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3772}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopePublic(com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"getScopePublic(com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"getScopePublic","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getScopePublic"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the scope, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requested language does not support such a concept"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if polyglot context associated with this environment is not entered"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if polyglot scope access is not enabled for this language."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns the scope object of a non-null "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicLanguages()"},"code":true,"children":[{"kind":"text","text":"public language"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the scope object of a non-null "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicLanguages()"},"code":true,"children":[{"kind":"text","text":"public language"}]},{"kind":"text","text":". The returned value follows the contract of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getScope(C)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getScope(Object)"}]},{"kind":"text","text":" of the other language, therefore it must be an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"interop scope object"}]},{"kind":"text","text":" and may have "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"parent scopes"}]},{"kind":"text","text":". The bindings object exposes all top scopes variables as flattened "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"members"}]},{"kind":"text","text":". In addition to being a scope the returned object may implement any number of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"interop traits"}]},{"kind":"text","text":". The interop members of the returned object are typically writable, but that is not guaranteed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The suffix "},{"kind":"code","text":"public"},{"kind":"text","text":" in the method name indicates that the result of this method is safe to be exposed by default to guest applications. For example, languages should use this method to implement the semantics of their polyglot bindings builtin, but is not limited to that."}]},{"kind":"paragraph","children":[{"kind":"text","text":"All "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicLanguages()"},"code":true,"children":[{"kind":"text","text":"public"}]},{"kind":"text","text":" languages with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotEvalAllowed(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"eval permissions"}]},{"kind":"text","text":" are accessible. If a language is not accessible then an "},{"kind":"link","target":{"id":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"},"code":true,"children":[{"kind":"text","text":"SecurityException"}]},{"kind":"text","text":" is thrown. The scope of the current language is always accessible, but it is recommended to use a language specific way to access symbols of the current language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Languages should check for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotEvalAllowed(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"eval permissions"}]},{"kind":"text","text":" for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicLanguages()"},"code":true,"children":[{"kind":"text","text":"public language"}]},{"kind":"text","text":" prior to calling this method, otherwise it might cause "},{"kind":"link","target":{"id":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"},"code":true,"children":[{"kind":"text","text":"SecurityException"}]},{"kind":"text","text":" if not sufficient privileges are available."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopeInternal(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"getScopeInternal(LanguageInfo)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotEvalAllowed(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"isPolyglotEvalAllowed(LanguageInfo)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPolyglotBindings()"},"code":true,"children":[{"kind":"text","text":"getPolyglotBindings()"}]}]]},"since":"24.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3815}},{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopeInternal(com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"getScopeInternal(com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"getScopeInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getScopeInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the scope, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requested language does not support such a concept"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if polyglot context associated with this environment is not entered"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if polyglot scope access is not enabled for this language."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the scope object of a non-null "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalLanguages()"},"code":true,"children":[{"kind":"text","text":"internal language"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the scope object of a non-null "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getInternalLanguages()"},"code":true,"children":[{"kind":"text","text":"internal language"}]},{"kind":"text","text":". Works the same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopePublic(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"getScopePublic(LanguageInfo)"}]},{"kind":"text","text":" but it also returns scopes of internal and dependent languages."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The suffix "},{"kind":"code","text":"internal"},{"kind":"text","text":" in the method name indicates that the result of this method is "},{"kind":"strong","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" safe to be exposed to arbitrary guest code, by default. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopePublic(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"getScopePublic(LanguageInfo)"}]},{"kind":"text","text":" for that purpose instead. For example, this method could be used to access a fixed set of symbols from the Truffle Native Interface, e.g. to load native language extensions. Languages may decide to expose scopes of internal languages to arbitrary guest code for testing purposes. Make sure this option is disabled by default and enabled using an "},{"kind":"link","target":{"id":"org.graalvm.options.OptionCategory#INTERNAL","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionCategory.html#INTERNAL"},"code":true,"children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":" option only."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The scope of the current language is always accessible, but it is recommended to use a language specific way to access symbols of the current language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended to only use this method for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#isInternal()"},"code":true,"children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#dependentLanguages()"},"code":true,"children":[{"kind":"text","text":"dependent languages"}]},{"kind":"text","text":". For convenience, this method will also succeed for all accessible "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getPublicLanguages()"},"code":true,"children":[{"kind":"text","text":"public languages"}]},{"kind":"text","text":" with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#isPolyglotEvalAllowed(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"eval permissions"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getScopePublic(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"getScopePublic(LanguageInfo)"}]}]]},"since":"24.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3858}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents execution environment of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents execution environment of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":". Each active "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" receives instance of the environment before any code is executed upon it. The environment has knowledge of all active languages and can exchange symbols between them."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1768}},{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode","name":"TruffleLanguage.ExitMode","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.ExitMode"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleLanguage.ExitMode","ref":"com.oracle.truffle.api.TruffleLanguage$ExitMode"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage.ExitMode","ref":"com.oracle.truffle.api.TruffleLanguage$ExitMode"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleLanguage.ExitMode","ref":"com.oracle.truffle.api.TruffleLanguage$ExitMode"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage.ExitMode","ref":"com.oracle.truffle.api.TruffleLanguage$ExitMode"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleLanguage.ExitMode","ref":"com.oracle.truffle.api.TruffleLanguage$ExitMode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#NATURAL","anchor":"NATURAL","kind":"enumConstant","name":"NATURAL","signature":[{"kind":"name","text":"NATURAL"}],"type":[{"kind":"type","text":"TruffleLanguage.ExitMode","ref":"com.oracle.truffle.api.TruffleLanguage$ExitMode"}],"doc":{"summary":[{"kind":"text","text":"Natural exit that occurs during normal context close."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Natural exit that occurs during normal context close."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4278}},{"id":"com.oracle.truffle.api.TruffleLanguage$ExitMode#HARD","anchor":"HARD","kind":"enumConstant","name":"HARD","signature":[{"kind":"name","text":"HARD"}],"type":[{"kind":"type","text":"TruffleLanguage.ExitMode","ref":"com.oracle.truffle.api.TruffleLanguage$ExitMode"}],"doc":{"summary":[{"kind":"text","text":"Hard exit triggered by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeExited(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.closeExited(Node, int)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Hard exit triggered by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#closeExited(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"TruffleContext.closeExited(Node, int)"}]},{"kind":"text","text":"."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4284}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Mode of exit operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Mode of exit operation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#exitContext(C,com.oracle.truffle.api.TruffleLanguage.ExitMode,int)"},"code":true,"children":[{"kind":"text","text":"exitContext(Object, ExitMode, int)"}]}]]},"since":"22.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4272}},{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest","name":"TruffleLanguage.InlineParsingRequest","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.InlineParsingRequest"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getSource()","anchor":"getSource()","kind":"method","name":"getSource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"getSource"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source code, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"The source code to parse."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The source code to parse."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1234}},{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getOptionValues()","anchor":"getOptionValues()","kind":"method","name":"getOptionValues","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOptionValues"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the source option values associated with the parsing request's source and language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the source option values associated with the parsing request's source and language. This method should be preferred over "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getOptions(com.oracle.truffle.api.TruffleLanguage)"},"code":true,"children":[{"kind":"text","text":"Source.getOptions(TruffleLanguage)"}]},{"kind":"text","text":" when accessing the source options of a source when possible, to avoid parsing the options twice."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In order to allow users of the language to specify source options they must be declared by implementing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getSourceOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getSourceOptionDescriptors()"}]},{"kind":"text","text":"."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1252}},{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getLocation()","anchor":"getLocation()","kind":"method","name":"getLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" defining AST context for the parsing, it's never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Specifies the code location for parsing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the code location for parsing. The location is specified as an instance of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" in the AST. The node can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.EventContext.getInstrumentedNode()"}]},{"kind":"text","text":", for example."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1268}},{"id":"com.oracle.truffle.api.TruffleLanguage$InlineParsingRequest#getFrame()","anchor":"getFrame()","kind":"method","name":"getFrame","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrame"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.MaterializedFrame"},"code":true,"children":[{"kind":"text","text":"MaterializedFrame"}]},{"kind":"text","text":" exposing the current execution state or "},{"kind":"code","text":"null"},{"kind":"text","text":" if there is none"}]}]},"doc":{"summary":[{"kind":"text","text":"Specifies the execution context for parsing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the execution context for parsing. If the parsing request is used for evaluation during halted execution, for example as in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#eval(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.debug.DebugStackFrame.eval(String)"}]},{"kind":"text","text":" method, this method provides access to current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.MaterializedFrame"},"code":true,"children":[{"kind":"text","text":"frame"}]},{"kind":"text","text":" with local variables, etc."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1285}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Request for inline parsing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Request for inline parsing. Contains information of what to parse and in which context."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1213}},{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference","name":"TruffleLanguage.LanguageReference","kind":"class","language":"java","modifiers":["public","abstract","static"],"typeParams":[{"name":"L","bounds":[[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.LanguageReference"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference#<init>()","anchor":"<init>()","kind":"constructor","name":"LanguageReference","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"LanguageReference"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructors for subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructors for subclasses."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3995}},{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"typeParam","text":"L"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current language instance associated with the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current language instance associated with the current thread. An enclosing node should be provided as parameter if available, otherwise "},{"kind":"code","text":"null"},{"kind":"text","text":" may be provided. This method is designed to be called safely from compiled code paths. In order to maximize efficiency in compiled code paths, a partial evaluation constant and adopted node should be passed as parameter. If this is the case then the return language will get constant folded in compiled code paths."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The current language is fixed per "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":". It is recommended to *not* cache values of the language in the AST to reduce footprint. Getting it through a language reference will either constant fold or be very efficient in compiled code paths."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a language is accessed on an unknown Thread, or in the language class constructor an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"for a full usage example"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4016}},{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference#create(java.lang.Class)","anchor":"create(java.lang.Class)","kind":"method","name":"create","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"type","text":"TruffleLanguage.LanguageReference","ref":"com.oracle.truffle.api.TruffleLanguage$LanguageReference"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"TruffleLanguage.LanguageReference","ref":"com.oracle.truffle.api.TruffleLanguage$LanguageReference"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new instance of a langauge reference for an registered language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new instance of a langauge reference for an registered language. Throws "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" if the provided language class is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":". Guaranteed to always return the same context reference for a given language class."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference"},"code":true,"children":[{"kind":"text","text":"LanguageReference"}]},{"kind":"text","text":" for a usage example."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":4028}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a reference to the current language instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a reference to the current language instance. The current language is a thread local value that potentially changes when polyglot context is entered or left. Language references are created using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference#create(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"create(Class)"}]},{"kind":"text","text":" and are intended to be stored in static final fields and accessed at runtime using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference#get(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"LanguageReference.get(Node)"}]},{"kind":"text","text":" with the current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":", if available, as parameter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example intended usage:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"ContextReference"}]},{"kind":"text","text":" for a full usage example."}]}]},"since":"0.25 revised in 21.3","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":3987}},{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest","name":"TruffleLanguage.ParsingRequest","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.ParsingRequest"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getSource()","anchor":"getSource()","kind":"method","name":"getSource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"getSource"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source code, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"The source code to parse."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The source code to parse."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1153}},{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getOptionValues()","anchor":"getOptionValues()","kind":"method","name":"getOptionValues","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOptionValues"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the source option values associated with the parsing request's source and language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the source option values associated with the parsing request's source and language. This method should be preferred over "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getOptions(com.oracle.truffle.api.TruffleLanguage)"},"code":true,"children":[{"kind":"text","text":"Source.getOptions(TruffleLanguage)"}]},{"kind":"text","text":" when accessing the source options of a source when possible, to avoid parsing the options twice."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In order to allow users of the language to specify source options they must be declared by implementing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getSourceOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getSourceOptionDescriptors()"}]},{"kind":"text","text":"."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1171}},{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getArgumentNames()","anchor":"getArgumentNames()","kind":"method","name":"getArgumentNames","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getArgumentNames"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"symbolic names for parameters of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(java.lang.Object...)"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Argument names."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Argument names. The result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parsing"}]},{"kind":"text","text":" is an instance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"can be invoked"}]},{"kind":"text","text":" without or with some parameters. If the invocation requires some arguments, and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getSource()"},"code":true,"children":[{"kind":"text","text":"getSource()"}]},{"kind":"text","text":" references them, it is essential to name them. Example that uses the argument names:"}]},{"kind":"code","language":"java","text":"public void parseWithParams(Env env) {\n    Source multiply = Source.newBuilder(\"js\",\n                    \"a * b\",\n                    \"mul.js\").build();\n    CallTarget method = env.parsePublic(multiply, \"a\", \"b\");\n    Number fortyTwo = (Number) method.call(6, 7);\n    assert 42 == fortyTwo.intValue();\n    Number ten = (Number) method.call(2, 5);\n    assert 10 == ten.intValue();\n}"}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1192}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Request for parsing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Request for parsing. Contains information of what to parse and in which context."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":1134}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration","name":"TruffleLanguage.Registration","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguage.Registration"}],"enclosing":"com.oracle.truffle.api.TruffleLanguage","members":[{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#id()","anchor":"id()","kind":"annotationElement","name":"id","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"id"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"identifier of your language"}]}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Unique id of your language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unique id of your language. This id will be exposed to users via the getter. It is used as group identifier for options of the language."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":288}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#name()","anchor":"name()","kind":"annotationElement","name":"name","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"identifier of your language"}]}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Unique name of your language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unique name of your language. This name will be exposed to users via the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getName()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getName()"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Language.getName()"}]},{"kind":"text","text":" getter."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":297}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#implementationName()","anchor":"implementationName()","kind":"annotationElement","name":"implementationName","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"implementationName"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the implementation name of your language"}]}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Unique name of your language implementation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unique name of your language implementation."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":305}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#version()","anchor":"version()","kind":"annotationElement","name":"version","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"version"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"inherit\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"version of your language"}]}]},"defaultValue":"\"inherit\"","doc":{"summary":[{"kind":"text","text":"Unique string identifying the language version."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unique string identifying the language version. This name will be exposed to users via the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getVersion()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getVersion()"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Language.getVersion()"}]},{"kind":"text","text":" getter. It inherits from "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#getVersion()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#getVersion()"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine.getVersion()"}]},{"kind":"text","text":" by default."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":315}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#defaultMimeType()","anchor":"defaultMimeType()","kind":"annotationElement","name":"defaultMimeType","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"defaultMimeType"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Returns the default MIME type of this language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the default MIME type of this language. The default MIME type allows embedders and other language or instruments to find out how content is interpreted if no MIME type was specified. The default MIME type must be specified in the list of supported "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#characterMimeTypes()"},"code":true,"children":[{"kind":"text","text":"character"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#byteMimeTypes()"},"code":true,"children":[{"kind":"text","text":"byte"}]},{"kind":"text","text":" based MIME types."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The default MIME type is mandatory if more than one supported MIME type was specified. If no default MIME type and no supported MIME types were specified then all sources for this language will be interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"character"}]},{"kind":"text","text":" based sources."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"LanguageInfo.getDefaultMimeType()"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getDefaultMimeType()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"Language.getDefaultMimeType()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#characterMimeTypes()"},"code":true,"children":[{"kind":"text","text":"characterMimeTypes()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#byteMimeTypes()"},"code":true,"children":[{"kind":"text","text":"byteMimeTypes()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":334}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#characterMimeTypes()","anchor":"characterMimeTypes()","kind":"annotationElement","name":"characterMimeTypes","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"characterMimeTypes"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"array of MIME types assigned to your language files"}]}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"List of MIME types supported by this language which sources should be interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"character"}]},{"kind":"text","text":" based sources."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"List of MIME types supported by this language which sources should be interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"character"}]},{"kind":"text","text":" based sources. Languages may use MIME types to differentiate supported source kinds. If a MIME type is declared as supported then the language needs to be able to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parse"}]},{"kind":"text","text":" sources of this kind. If only one supported MIME type was specified by a language then it will be used as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#defaultMimeType()"},"code":true,"children":[{"kind":"text","text":"default"}]},{"kind":"text","text":" MIME type. If no supported character and byte based MIME types are specified then all sources will be interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"character"}]},{"kind":"text","text":" based."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#defaultMimeType()"},"code":true,"children":[{"kind":"text","text":"defaultMimeType()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#byteMimeTypes()"},"code":true,"children":[{"kind":"text","text":"byteMimeTypes()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":351}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#byteMimeTypes()","anchor":"byteMimeTypes()","kind":"annotationElement","name":"byteMimeTypes","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"byteMimeTypes"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"array of MIME types assigned to your language files"}]}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"List of MIME types supported by this language which sources should be interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"byte"}]},{"kind":"text","text":" based sources."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"List of MIME types supported by this language which sources should be interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"byte"}]},{"kind":"text","text":" based sources. Languages may use MIME types to differentiate supported source kinds. If a MIME type is declared as supported, then the language needs to be able to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parse"}]},{"kind":"text","text":" sources of this kind. If only one supported MIME type was specified by a language then it will be used as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#defaultMimeType()"},"code":true,"children":[{"kind":"text","text":"default"}]},{"kind":"text","text":" MIME type. If no supported character and byte based MIME types are specified then all sources will be interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"character"}]},{"kind":"text","text":" based."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#defaultMimeType()"},"code":true,"children":[{"kind":"text","text":"defaultMimeType()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#characterMimeTypes()"},"code":true,"children":[{"kind":"text","text":"characterMimeTypes()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":368}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#interactive()","anchor":"interactive()","kind":"annotationElement","name":"interactive","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"interactive"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the language should be presented to end-user in an interactive environment"}]}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Specifies if the language is suitable for interactive evaluation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"sources"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies if the language is suitable for interactive evaluation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"sources"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#interactive()"},"code":true,"children":[{"kind":"text","text":"Interactive"}]},{"kind":"text","text":" languages should be displayed in interactive environments and presented to the user. The default value of this attribute is "},{"kind":"code","text":"true"},{"kind":"text","text":" assuming majority of the languages is interactive. Change the value to "},{"kind":"code","text":"false"},{"kind":"text","text":" to opt-out and turn your language into non-interactive one."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":381}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#internal()","anchor":"internal()","kind":"annotationElement","name":"internal","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"internal"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this language is intended for internal use only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this language is intended for internal use only. Internal languages cannot be used in the host environment directly, they can only be used from other languages or from instruments."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":390}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#dependentLanguages()","anchor":"dependentLanguages()","kind":"annotationElement","name":"dependentLanguages","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"dependentLanguages"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Specifies a list of languages that this language depends on."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a list of languages that this language depends on. Languages are referenced using their "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#id()"},"code":true,"children":[{"kind":"text","text":"id()"}]},{"kind":"text","text":". This has the following effects:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"This language always has access to dependent languages if this language is accessible. Languages may not be accessible if language access is "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context#create(java.lang.String...)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html#create(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"restricted"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"This language is finalized before dependent language contexts are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalized"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"This language is disposed before dependent language contexts are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeContext(C)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#internal()"},"code":true,"children":[{"kind":"text","text":"Non-internal"}]},{"kind":"text","text":" languages implicitly depend on all internal languages. Therefore by default non-internal languages are disposed and finalized before internal languages."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Dependent languages should be parsed with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parseInternal(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Env.parseInternal(Source, String...)"}]},{"kind":"text","text":" as the embedder might choose to disable access to it for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Env.parsePublic(Source, String...)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Dependent languages references are optional. If a dependent language is not installed and the language needs to fail in such a case then the language should fail on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeContext(C)"},"code":true,"children":[{"kind":"text","text":"context initialization"}]},{"kind":"text","text":". Cycles in dependencies will cause an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" when one of the cyclic languages is "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context#initialize(java.lang.String)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html#initialize(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"initialized"}]},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":421}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#contextPolicy()","anchor":"contextPolicy()","kind":"annotationElement","name":"contextPolicy","signature":[{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"},{"kind":"punct","text":" "},{"kind":"name","text":"contextPolicy"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"EXCLUSIVE"}],"returns":{"type":[{"kind":"type","text":"TruffleLanguage.ContextPolicy","ref":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy"}]},"defaultValue":"EXCLUSIVE","doc":{"summary":[{"kind":"text","text":"Defines the supported policy for reusing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"languages"}]},{"kind":"text","text":" per context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines the supported policy for reusing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"languages"}]},{"kind":"text","text":" per context. I.e. the policy specifies the degree of sharing that is allowed between multiple language contexts. The default policy is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"exclusive"}]},{"kind":"text","text":". Every language is encouraged to try to support a context policy that is as permissive as possible, where "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"exclusive"}]},{"kind":"text","text":" is the least and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"shared"}]},{"kind":"text","text":" is the most permissive policy. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"Parse caching"}]},{"kind":"text","text":" is scoped per "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance, therefore the context policy influences its behavior."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The context policy applies to contexts that were created using the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"polyglot API"}]},{"kind":"text","text":" as well as for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"inner contexts"}]},{"kind":"text","text":". The context policy does not apply to nodes that were created using the Truffle interop protocol. Therefore, interop message nodes always need to be prepared to be used with policy "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.SHARED"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.parse(ParsingRequest)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":443}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#services()","anchor":"services()","kind":"annotationElement","name":"services","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[] "},{"kind":"name","text":"services"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"list of service types that this language can provide"}]}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Declarative list of classes this language is known to provide."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declarative list of classes this language is known to provide. The language is supposed to override its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"createContext"}]},{"kind":"text","text":" method and instantiate and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#registerService(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"register"}]},{"kind":"text","text":" all here in defined services."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Languages automatically get created but not yet initialized when their registered "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"service is requested"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":458}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#fileTypeDetectors()","anchor":"fileTypeDetectors()","kind":"annotationElement","name":"fileTypeDetectors","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.FileTypeDetector","ref":"com.oracle.truffle.api.TruffleFile$FileTypeDetector"},{"kind":"punct","text":">[] "},{"kind":"name","text":"fileTypeDetectors"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile.FileTypeDetector","ref":"com.oracle.truffle.api.TruffleFile$FileTypeDetector"},{"kind":"punct","text":">[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"list of file type detectors"}]}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Declarative list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile$FileTypeDetector"},"code":true,"children":[{"kind":"text","text":"TruffleFile.FileTypeDetector"}]},{"kind":"text","text":" classes provided by this language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declarative list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile$FileTypeDetector"},"code":true,"children":[{"kind":"text","text":"TruffleFile.FileTypeDetector"}]},{"kind":"text","text":" classes provided by this language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The language has to support all MIME types recognized by the registered "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile$FileTypeDetector"},"code":true,"children":[{"kind":"text","text":"file type detectors"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":470}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#needsAllEncodings()","anchor":"needsAllEncodings()","kind":"annotationElement","name":"needsAllEncodings","annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"24.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"needsAllEncodings"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the language uses "},{"kind":"code","text":"TruffleString"},{"kind":"text","text":"s with encodings not present in the following list."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the language uses "},{"kind":"code","text":"TruffleString"},{"kind":"text","text":"s with encodings not present in the following list."}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"code","text":"UTF-8"}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"UTF-16"}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"UTF-32"}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"ISO-8859-1"}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"US-ASCII"}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"BYTES"}]}]]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"To enable all "},{"kind":"code","text":"TruffleString"},{"kind":"text","text":" encodings, it is sufficient to add the "},{"kind":"code","text":"org.graalvm.shadowed.jcodings"},{"kind":"text","text":" module to the language's module-info "},{"kind":"code","text":"requires"},{"kind":"text","text":" and ensure it is on the module path when languages are loaded. If the module can be found, and at least one languages requires it, all encodings are automatically enabled. When languages are loaded from the class path (i.e. as an unnamed module), having jcodings on the class path is enough to enable it."}]}],"since":"24.1"},"since":"22.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":493}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#website()","anchor":"website()","kind":"annotationElement","name":"website","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"website"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"URL for language website."}]}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"A link to a website with more information about the language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A link to a website with more information about the language. Will be shown in the help text of GraalVM launchers."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The link can contain the following substitutions:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"code","text":"${graalvm-version}"}]}]},{"kind":"paragraph","children":[{"kind":"text","text":"the current GraalVM version. Optionally, a format string can be provided for the version using "},{"kind":"code","text":"${graalvm-version:format}"},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"org.graalvm.home.Version#format(java.lang.String)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/home/Version.html#format(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"Version.format"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"code","text":"${graalvm-website-version}"}]}]},{"kind":"paragraph","children":[{"kind":"text","text":"the current GraalVM version in a format suitable for links to the GraalVM reference manual. The exact format may change without notice."}]}]]}]},"since":"22.1.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":513}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#sandbox()","anchor":"sandbox()","kind":"annotationElement","name":"sandbox","signature":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},{"kind":"punct","text":" "},{"kind":"name","text":"sandbox"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"TRUSTED"}],"returns":{"type":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"}]},"defaultValue":"TRUSTED","doc":{"summary":[{"kind":"text","text":"Specifies the most strict sandbox policy in which the language can be used."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the most strict sandbox policy in which the language can be used. The language can be used in a context with the specified sandbox policy or a weaker one. For example, if a language specifies "},{"kind":"code","text":"ISOLATED"},{"kind":"text","text":" policy, it can be used in a context configured with sandbox policy "},{"kind":"code","text":"TRUSTED"},{"kind":"text","text":", "},{"kind":"code","text":"CONSTRAINED"},{"kind":"text","text":" or "},{"kind":"code","text":"ISOLATED"},{"kind":"text","text":". But it cannot be used in a context configured with the "},{"kind":"code","text":"UNTRUSTED"},{"kind":"text","text":" sandbox policy."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":525}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#internalResources()","anchor":"internalResources()","kind":"annotationElement","name":"internalResources","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource","ref":"com.oracle.truffle.api.InternalResource"},{"kind":"punct","text":">[] "},{"kind":"name","text":"internalResources"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource","ref":"com.oracle.truffle.api.InternalResource"},{"kind":"punct","text":">[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Declarative list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" classes that is associated with this language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declarative list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" classes that is associated with this language. Use the "},{"kind":"code","text":"internalResources"},{"kind":"text","text":" attribute solely for registering required internal resources. Optional internal resources should provide the associated language identifier using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Id#componentId()"},"code":true,"children":[{"kind":"text","text":"Id.componentId()"}]},{"kind":"text","text":" method. To unpack all resources of a language embedders may use "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#copyResources(java.nio.file.Path,java.lang.String...)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#copyResources(java.nio.file.Path,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Engine.copyResources(Path, String...)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Id"},"code":true,"children":[{"kind":"text","text":"Id"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":538}},{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#optionalResources()","anchor":"optionalResources()","kind":"annotationElement","name":"optionalResources","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"optionalResources"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"A declarative list of optional "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" identifiers associated with this language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A declarative list of optional "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" identifiers associated with this language. It is recommended to register all optional resource identifiers here. Specifying the resource identifier allows the language use the resource even if its implementation was omitted at runtime. To use the resource when its implementation was omitted the "},{"kind":"code","text":"polyglot.engine.resourcePath.languageId"},{"kind":"text","text":" system property must be specified and point to a path with the resources. This allows to omit the resource implementation class in standalone distributions."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Id"},"code":true,"children":[{"kind":"text","text":"Id"}]}]]},"since":"25.0","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":553}}],"doc":{"summary":[{"kind":"text","text":"The annotation to use to register your language to the "},{"kind":"link","target":{"id":"org.graalvm.polyglot","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/package-summary.html"},"code":true,"children":[{"kind":"text","text":"Polyglot API"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The annotation to use to register your language to the "},{"kind":"link","target":{"id":"org.graalvm.polyglot","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/package-summary.html"},"code":true,"children":[{"kind":"text","text":"Polyglot API"}]},{"kind":"text","text":". By annotating your implementation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" by this annotation the language can be discovered on the class path."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleLanguage.java","line":277}},{"id":"com.oracle.truffle.api.TruffleLogger","name":"TruffleLogger","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLogger"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.TruffleLogger#getLogger(java.lang.String)","anchor":"getLogger(java.lang.String)","kind":"method","name":"getLogger","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"},{"kind":"punct","text":" "},{"kind":"name","text":"getLogger"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"id"},{"kind":"punct","text":")"}],"params":[{"name":"id","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unique id of language or instrument"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]}]}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"id"},{"kind":"text","text":" is null"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"id"},{"kind":"text","text":" is not a valid language or instrument id."}]}]}],"doc":{"summary":[{"kind":"text","text":"Find or create a root logger for a given language or instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find or create a root logger for a given language or instrument. If the root logger for given language or instrument already exists it's returned, otherwise a new root logger is created."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":123}},{"id":"com.oracle.truffle.api.TruffleLogger#getLogger(java.lang.String,java.lang.Class)","anchor":"getLogger(java.lang.String,java.lang.Class)","kind":"method","name":"getLogger","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"},{"kind":"punct","text":" "},{"kind":"name","text":"getLogger"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"id"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"forClass"},{"kind":"punct","text":")"}],"params":[{"name":"id","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unique id of language or instrument"}]}]},{"name":"forClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},"code":true,"children":[{"kind":"text","text":"Class"}]},{"kind":"text","text":" to create a logger for"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]}]}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"id"},{"kind":"text","text":" or "},{"kind":"code","text":"forClass"},{"kind":"text","text":" is null"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"id"},{"kind":"text","text":" is not a valid language or instrument id."}]}]}],"doc":{"summary":[{"kind":"text","text":"Find or create a logger for a given language or instrument class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find or create a logger for a given language or instrument class. If a logger for the class already exists it's returned, otherwise a new logger is created."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":138}},{"id":"com.oracle.truffle.api.TruffleLogger#getLogger(java.lang.String,java.lang.String)","anchor":"getLogger(java.lang.String,java.lang.String)","kind":"method","name":"getLogger","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"},{"kind":"punct","text":" "},{"kind":"name","text":"getLogger"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"id"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"loggerName"},{"kind":"punct","text":")"}],"params":[{"name":"id","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unique id of language or instrument"}]}]},{"name":"loggerName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":", if a "},{"kind":"code","text":"loggerName"},{"kind":"text","text":" is null or empty a root logger for language or instrument is returned"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]}]}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"id"},{"kind":"text","text":" is null"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"id"},{"kind":"text","text":" is not a valid language or instrument id."}]}]}],"doc":{"summary":[{"kind":"text","text":"Find or create a logger for a given language or instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find or create a logger for a given language or instrument. If a logger with given name already exists it's returned, otherwise a new logger is created."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":155}},{"id":"com.oracle.truffle.api.TruffleLogger#config(java.lang.String)","anchor":"config(java.lang.String)","kind":"method","name":"config","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"config"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#CONFIG","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#CONFIG"},"code":true,"children":[{"kind":"text","text":"config level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#CONFIG","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#CONFIG"},"code":true,"children":[{"kind":"text","text":"config level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#CONFIG","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#CONFIG"},"code":true,"children":[{"kind":"text","text":"config level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":177}},{"id":"com.oracle.truffle.api.TruffleLogger#config(java.util.function.Supplier)","anchor":"config(java.util.function.Supplier)","kind":"method","name":"config","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"config"},{"kind":"punct","text":"("},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#CONFIG","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#CONFIG"},"code":true,"children":[{"kind":"text","text":"config level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#CONFIG","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#CONFIG"},"code":true,"children":[{"kind":"text","text":"config level"}]},{"kind":"text","text":". The message is constructed only when the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#CONFIG","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#CONFIG"},"code":true,"children":[{"kind":"text","text":"config level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#CONFIG","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#CONFIG"},"code":true,"children":[{"kind":"text","text":"config level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":191}},{"id":"com.oracle.truffle.api.TruffleLogger#entering(java.lang.String,java.lang.String)","anchor":"entering(java.lang.String,java.lang.String)","kind":"method","name":"entering","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"entering"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":")"}],"params":[{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the entered class"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the entered method"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs entry into method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs entry into method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be used to log entry into a method. A "},{"kind":"link","target":{"id":"java.util.logging.LogRecord","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/LogRecord.html"},"code":true,"children":[{"kind":"text","text":"LogRecord"}]},{"kind":"text","text":" with message \"ENTRY\" and the given "},{"kind":"code","text":"sourceMethod"},{"kind":"text","text":" and "},{"kind":"code","text":"sourceClass"},{"kind":"text","text":" is logged with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":206}},{"id":"com.oracle.truffle.api.TruffleLogger#entering(java.lang.String,java.lang.String,java.lang.Object)","anchor":"entering(java.lang.String,java.lang.String,java.lang.Object)","kind":"method","name":"entering","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"entering"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"parameter"},{"kind":"punct","text":")"}],"params":[{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the entered class"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the entered method"}]}]},{"name":"parameter","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method parameter"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs entry into method with single parameter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs entry into method with single parameter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be used to log entry into a method. A "},{"kind":"link","target":{"id":"java.util.logging.LogRecord","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/LogRecord.html"},"code":true,"children":[{"kind":"text","text":"LogRecord"}]},{"kind":"text","text":" with message \"ENTRY\", the given "},{"kind":"code","text":"sourceMethod"},{"kind":"text","text":" and "},{"kind":"code","text":"sourceClass"},{"kind":"text","text":" and given parameter is logged with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":222}},{"id":"com.oracle.truffle.api.TruffleLogger#entering(java.lang.String,java.lang.String,java.lang.Object[])","anchor":"entering(java.lang.String,java.lang.String,java.lang.Object[])","kind":"method","name":"entering","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"entering"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"parameters"},{"kind":"punct","text":")"}],"params":[{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the entered class"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the entered method"}]}]},{"name":"parameters","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method parameters"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs entry into method with multiple parameters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs entry into method with multiple parameters."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be used to log entry into a method. A "},{"kind":"link","target":{"id":"java.util.logging.LogRecord","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/LogRecord.html"},"code":true,"children":[{"kind":"text","text":"LogRecord"}]},{"kind":"text","text":" with message \"ENTRY\", the given "},{"kind":"code","text":"sourceMethod"},{"kind":"text","text":" and "},{"kind":"code","text":"sourceClass"},{"kind":"text","text":" and given parameters is logged with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":238}},{"id":"com.oracle.truffle.api.TruffleLogger#exiting(java.lang.String,java.lang.String)","anchor":"exiting(java.lang.String,java.lang.String)","kind":"method","name":"exiting","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"exiting"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":")"}],"params":[{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exiting class"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exiting method"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a return from method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a return from method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be used to log return from a method. A "},{"kind":"link","target":{"id":"java.util.logging.LogRecord","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/LogRecord.html"},"code":true,"children":[{"kind":"text","text":"LogRecord"}]},{"kind":"text","text":" with message \"RETURN\" and the given "},{"kind":"code","text":"sourceMethod"},{"kind":"text","text":" and "},{"kind":"code","text":"sourceClass"},{"kind":"text","text":" is logged with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":264}},{"id":"com.oracle.truffle.api.TruffleLogger#exiting(java.lang.String,java.lang.String,java.lang.Object)","anchor":"exiting(java.lang.String,java.lang.String,java.lang.Object)","kind":"method","name":"exiting","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"exiting"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exiting class"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exiting method"}]}]},{"name":"result","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return value"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a return from method with result."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a return from method with result."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be used to log return from a method. A "},{"kind":"link","target":{"id":"java.util.logging.LogRecord","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/LogRecord.html"},"code":true,"children":[{"kind":"text","text":"LogRecord"}]},{"kind":"text","text":" with message \"RETURN\", the given "},{"kind":"code","text":"sourceMethod"},{"kind":"text","text":" and "},{"kind":"code","text":"sourceClass"},{"kind":"text","text":" and method result is logged with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":280}},{"id":"com.oracle.truffle.api.TruffleLogger#fine(java.lang.String)","anchor":"fine(java.lang.String)","kind":"method","name":"fine","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"fine"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINE"},"code":true,"children":[{"kind":"text","text":"fine level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINE"},"code":true,"children":[{"kind":"text","text":"fine level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#FINE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINE"},"code":true,"children":[{"kind":"text","text":"fine level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":293}},{"id":"com.oracle.truffle.api.TruffleLogger#fine(java.util.function.Supplier)","anchor":"fine(java.util.function.Supplier)","kind":"method","name":"fine","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"fine"},{"kind":"punct","text":"("},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINE"},"code":true,"children":[{"kind":"text","text":"fine level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINE"},"code":true,"children":[{"kind":"text","text":"fine level"}]},{"kind":"text","text":". The message is constructed only when the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#FINE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINE"},"code":true,"children":[{"kind":"text","text":"fine level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#FINE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINE"},"code":true,"children":[{"kind":"text","text":"fine level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":307}},{"id":"com.oracle.truffle.api.TruffleLogger#finer(java.lang.String)","anchor":"finer(java.lang.String)","kind":"method","name":"finer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"finer"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":320}},{"id":"com.oracle.truffle.api.TruffleLogger#finer(java.util.function.Supplier)","anchor":"finer(java.util.function.Supplier)","kind":"method","name":"finer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"finer"},{"kind":"punct","text":"("},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":". The message is constructed only when the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":334}},{"id":"com.oracle.truffle.api.TruffleLogger#finest(java.lang.String)","anchor":"finest(java.lang.String)","kind":"method","name":"finest","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"finest"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINEST","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINEST"},"code":true,"children":[{"kind":"text","text":"finest level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINEST","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINEST"},"code":true,"children":[{"kind":"text","text":"finest level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#FINEST","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINEST"},"code":true,"children":[{"kind":"text","text":"finest level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":347}},{"id":"com.oracle.truffle.api.TruffleLogger#finest(java.util.function.Supplier)","anchor":"finest(java.util.function.Supplier)","kind":"method","name":"finest","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"finest"},{"kind":"punct","text":"("},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINEST","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINEST"},"code":true,"children":[{"kind":"text","text":"finest level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINEST","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINEST"},"code":true,"children":[{"kind":"text","text":"finest level"}]},{"kind":"text","text":". The message is constructed only when the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#FINEST","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINEST"},"code":true,"children":[{"kind":"text","text":"finest level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#FINEST","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINEST"},"code":true,"children":[{"kind":"text","text":"finest level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":361}},{"id":"com.oracle.truffle.api.TruffleLogger#info(java.lang.String)","anchor":"info(java.lang.String)","kind":"method","name":"info","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"info"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#INFO","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#INFO"},"code":true,"children":[{"kind":"text","text":"info level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#INFO","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#INFO"},"code":true,"children":[{"kind":"text","text":"info level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#INFO","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#INFO"},"code":true,"children":[{"kind":"text","text":"info level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":374}},{"id":"com.oracle.truffle.api.TruffleLogger#info(java.util.function.Supplier)","anchor":"info(java.util.function.Supplier)","kind":"method","name":"info","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"info"},{"kind":"punct","text":"("},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#INFO","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#INFO"},"code":true,"children":[{"kind":"text","text":"info level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#INFO","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#INFO"},"code":true,"children":[{"kind":"text","text":"info level"}]},{"kind":"text","text":". The message is constructed only when the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#INFO","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#INFO"},"code":true,"children":[{"kind":"text","text":"info level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#INFO","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#INFO"},"code":true,"children":[{"kind":"text","text":"info level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":388}},{"id":"com.oracle.truffle.api.TruffleLogger#severe(java.lang.String)","anchor":"severe(java.lang.String)","kind":"method","name":"severe","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"severe"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#SEVERE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#SEVERE"},"code":true,"children":[{"kind":"text","text":"severe level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#SEVERE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#SEVERE"},"code":true,"children":[{"kind":"text","text":"severe level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#SEVERE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#SEVERE"},"code":true,"children":[{"kind":"text","text":"severe level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":401}},{"id":"com.oracle.truffle.api.TruffleLogger#severe(java.util.function.Supplier)","anchor":"severe(java.util.function.Supplier)","kind":"method","name":"severe","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"severe"},{"kind":"punct","text":"("},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#SEVERE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#SEVERE"},"code":true,"children":[{"kind":"text","text":"severe level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#SEVERE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#SEVERE"},"code":true,"children":[{"kind":"text","text":"severe level"}]},{"kind":"text","text":". The message is constructed only when the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#SEVERE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#SEVERE"},"code":true,"children":[{"kind":"text","text":"severe level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#SEVERE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#SEVERE"},"code":true,"children":[{"kind":"text","text":"severe level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":415}},{"id":"com.oracle.truffle.api.TruffleLogger#throwing(java.lang.String,java.lang.String,T)","anchor":"throwing(java.lang.String,java.lang.String,T)","kind":"method","name":"throwing","modifiers":["public"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"throwing"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"thrown"},{"kind":"punct","text":")"}],"params":[{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class throwing an exception"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method throwing an exception"}]}]},{"name":"thrown","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thrown exception"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Logs throwing an exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs throwing an exception."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be used to log exception thrown from a method. A "},{"kind":"link","target":{"id":"java.util.logging.LogRecord","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/LogRecord.html"},"code":true,"children":[{"kind":"text","text":"LogRecord"}]},{"kind":"text","text":" with message \"THROW\",the given "},{"kind":"code","text":"sourceMethod"},{"kind":"text","text":" and "},{"kind":"code","text":"sourceClass"},{"kind":"text","text":" and "},{"kind":"code","text":"thrown"},{"kind":"text","text":" is logged with "},{"kind":"link","target":{"id":"java.util.logging.Level#FINER","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#FINER"},"code":true,"children":[{"kind":"text","text":"finer level"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":431}},{"id":"com.oracle.truffle.api.TruffleLogger#warning(java.lang.String)","anchor":"warning(java.lang.String)","kind":"method","name":"warning","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"warning"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#WARNING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#WARNING"},"code":true,"children":[{"kind":"text","text":"warning level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#WARNING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#WARNING"},"code":true,"children":[{"kind":"text","text":"warning level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#WARNING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#WARNING"},"code":true,"children":[{"kind":"text","text":"warning level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":445}},{"id":"com.oracle.truffle.api.TruffleLogger#warning(java.util.function.Supplier)","anchor":"warning(java.util.function.Supplier)","kind":"method","name":"warning","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"warning"},{"kind":"punct","text":"("},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#WARNING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#WARNING"},"code":true,"children":[{"kind":"text","text":"warning level"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with "},{"kind":"link","target":{"id":"java.util.logging.Level#WARNING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#WARNING"},"code":true,"children":[{"kind":"text","text":"warning level"}]},{"kind":"text","text":". The message is constructed only when the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#WARNING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#WARNING"},"code":true,"children":[{"kind":"text","text":"warning level"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the "},{"kind":"link","target":{"id":"java.util.logging.Level#WARNING","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html#WARNING"},"code":true,"children":[{"kind":"text","text":"warning level"}]},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":459}},{"id":"com.oracle.truffle.api.TruffleLogger#log(java.util.logging.Level,java.lang.String)","anchor":"log(java.util.logging.Level,java.lang.String)","kind":"method","name":"log","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"log"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":473}},{"id":"com.oracle.truffle.api.TruffleLogger#log(java.util.logging.Level,java.util.function.Supplier)","anchor":"log(java.util.logging.Level,java.util.function.Supplier)","kind":"method","name":"log","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"log"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message. The message is constructed only when the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":491}},{"id":"com.oracle.truffle.api.TruffleLogger#log(java.util.logging.Level,java.lang.String,java.lang.Object)","anchor":"log(java.util.logging.Level,java.lang.String,java.lang.Object)","kind":"method","name":"log","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"log"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"parameter"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]},{"name":"parameter","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the log message parameter"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with single parameter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with single parameter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":509}},{"id":"com.oracle.truffle.api.TruffleLogger#log(java.util.logging.Level,java.lang.String,java.lang.Object[])","anchor":"log(java.util.logging.Level,java.lang.String,java.lang.Object[])","kind":"method","name":"log","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"log"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"parameters"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]},{"name":"parameters","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the log message parameters"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with multiple parameters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with multiple parameters."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":527}},{"id":"com.oracle.truffle.api.TruffleLogger#log(java.util.logging.Level,java.lang.String,java.lang.Throwable)","anchor":"log(java.util.logging.Level,java.lang.String,java.lang.Throwable)","kind":"method","name":"log","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"log"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thrown"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]},{"name":"thrown","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with an exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with an exception."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":545}},{"id":"com.oracle.truffle.api.TruffleLogger#log(java.util.logging.Level,java.lang.Throwable,java.util.function.Supplier)","anchor":"log(java.util.logging.Level,java.lang.Throwable,java.util.function.Supplier)","kind":"method","name":"log","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"log"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thrown"},{"kind":"punct","text":", "},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"thrown","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception to log"}]}]},{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with an exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with an exception. The message is constructed only when the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":564}},{"id":"com.oracle.truffle.api.TruffleLogger#logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.String)","anchor":"logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.String)","kind":"method","name":"logp","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"logp"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class issued the logging request"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method issued the logging request"}]}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message, specifying source class and source method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message, specifying source class and source method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":583}},{"id":"com.oracle.truffle.api.TruffleLogger#logp(java.util.logging.Level,java.lang.String,java.lang.String,java.util.function.Supplier)","anchor":"logp(java.util.logging.Level,java.lang.String,java.lang.String,java.util.function.Supplier)","kind":"method","name":"logp","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"logp"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class issued the logging request"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method issued the logging request"}]}]},{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message, specifying source class and source method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message, specifying source class and source method. The message is constructed only when the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":603}},{"id":"com.oracle.truffle.api.TruffleLogger#logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.String,java.lang.Object)","anchor":"logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.String,java.lang.Object)","kind":"method","name":"logp","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"logp"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"parameter"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class issued the logging request"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method issued the logging request"}]}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]},{"name":"parameter","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the log message parameter"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with single parameter, specifying source class and source method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with single parameter, specifying source class and source method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":623}},{"id":"com.oracle.truffle.api.TruffleLogger#logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.String,java.lang.Object[])","anchor":"logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.String,java.lang.Object[])","kind":"method","name":"logp","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"logp"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"parameters"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class issued the logging request"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method issued the logging request"}]}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]},{"name":"parameters","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the log message parameters"}]}]}],"doc":{"summary":[{"kind":"text","text":"Log a message with multiple parameters, specifying source class and source method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Log a message with multiple parameters, specifying source class and source method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":643}},{"id":"com.oracle.truffle.api.TruffleLogger#logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.String,java.lang.Throwable)","anchor":"logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.String,java.lang.Throwable)","kind":"method","name":"logp","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"logp"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thrown"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class issued the logging request"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method issued the logging request"}]}]},{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the message to log"}]}]},{"name":"thrown","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with an exception, specifying source class and source method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with an exception, specifying source class and source method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":663}},{"id":"com.oracle.truffle.api.TruffleLogger#logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.Throwable,java.util.function.Supplier)","anchor":"logp(java.util.logging.Level,java.lang.String,java.lang.String,java.lang.Throwable,java.util.function.Supplier)","kind":"method","name":"logp","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"logp"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceMethod"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thrown"},{"kind":"punct","text":", "},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"messageSupplier"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]}]}]},{"name":"sourceClass","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class issued the logging request"}]}]},{"name":"sourceMethod","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method issued the logging request"}]}]},{"name":"thrown","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception to log"}]}]},{"name":"messageSupplier","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":" called to produce the message to log"}]}]}],"doc":{"summary":[{"kind":"text","text":"Logs a message with an exception, specifying source class and source method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logs a message with an exception, specifying source class and source method. The message is constructed only when the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the logger is enabled for the given "},{"kind":"code","text":"level"},{"kind":"text","text":" the message is sent to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":" registered in the current "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":684}},{"id":"com.oracle.truffle.api.TruffleLogger#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the logger name"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the name of the logger."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name of the logger."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":697}},{"id":"com.oracle.truffle.api.TruffleLogger#getParent()","anchor":"getParent()","kind":"method","name":"getParent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"},{"kind":"punct","text":" "},{"kind":"name","text":"getParent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":" or null when the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":" has no parent."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":708}},{"id":"com.oracle.truffle.api.TruffleLogger#isLoggable(java.util.logging.Level)","anchor":"isLoggable(java.util.logging.Level)","kind":"method","name":"isLoggable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isLoggable"},{"kind":"punct","text":"("},{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},{"kind":"punct","text":" "},{"kind":"param","text":"level"},{"kind":"punct","text":")"}],"params":[{"name":"level","type":[{"kind":"type","text":"Level","ref":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required logging level"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if message is loggable by this logger"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks if a message of the given level would be logged by this logger."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if a message of the given level would be logged by this logger."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":719}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Support for logging in Truffle languages and instruments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Support for logging in Truffle languages and instruments."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The logger's "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]},{"kind":"text","text":" configuration is done using the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#options(java.util.Map)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#options(java.util.Map)"},"code":true,"children":[{"kind":"text","text":"Context's options"}]},{"kind":"text","text":". The level option key has the following format: "},{"kind":"code","text":"log.languageId.className.level"},{"kind":"text","text":" or "},{"kind":"code","text":"log.instrumentId.className.level"},{"kind":"text","text":". The value is either the name of pre-defined "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]},{"kind":"text","text":" constant or a numeric "},{"kind":"link","target":{"id":"java.util.logging.Level","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Level.html"},"code":true,"children":[{"kind":"text","text":"Level"}]},{"kind":"text","text":" value. If not explicitly set in "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context$Builder#options(java.util.Map)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.Builder.html#options(java.util.Map)"},"code":true,"children":[{"kind":"text","text":"Context's options"}]},{"kind":"text","text":" the level is inherited from the parent logger."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":" supports "},{"kind":"link","target":{"id":"java.util.logging.LogRecord#getParameters()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/LogRecord.html#getParameters()"},"code":true,"children":[{"kind":"text","text":"message parameters"}]},{"kind":"text","text":" of primitive types and strings. The object parameters are converted into string value before they are passed to the "},{"kind":"link","target":{"id":"java.util.logging.Handler","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/Handler.html"},"code":true,"children":[{"kind":"text","text":"Handler"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":" instances are safe to be used on compiled code paths as well as from multiple-threads."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleLogger.java","line":85}},{"id":"com.oracle.truffle.api.TruffleOptionDescriptors","name":"TruffleOptionDescriptors","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleOptionDescriptors"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"}],"interfaces":[[{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"}]],"members":[{"id":"com.oracle.truffle.api.TruffleOptionDescriptors#getSandboxPolicy(java.lang.String)","anchor":"getSandboxPolicy(java.lang.String)","kind":"method","name":"getSandboxPolicy","signature":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSandboxPolicy"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]},{"kind":"text","text":" for an option "},{"kind":"code","text":"key"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]},{"kind":"text","text":" for an option "},{"kind":"code","text":"key"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/TruffleOptionDescriptors.java","line":58}}],"inherited":[{"from":{"id":"org.graalvm.options.OptionDescriptors","text":"OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"},"kind":"interface","members":[{"id":"org.graalvm.options.OptionDescriptors#EMPTY","text":"EMPTY","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html#EMPTY"},{"id":"org.graalvm.options.OptionDescriptors#get(java.lang.String)","text":"get","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html#get(java.lang.String)"},{"id":"org.graalvm.options.OptionDescriptors#iterator()","text":"iterator","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html#iterator()"}]},{"from":{"id":"java.lang.Iterable","text":"Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},"kind":"interface","members":[{"id":"java.lang.Iterable#forEach(java.util.function.Consumer)","text":"forEach","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html#forEach(java.util.function.Consumer)"},{"id":"java.lang.Iterable#spliterator()","text":"spliterator","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html#spliterator()"}]}],"doc":{"summary":[{"kind":"text","text":"An "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"},"code":true,"children":[{"kind":"text","text":"OptionDescriptors"}]},{"kind":"text","text":" enhanced to provide a sandbox policy for options."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"},"code":true,"children":[{"kind":"text","text":"OptionDescriptors"}]},{"kind":"text","text":" enhanced to provide a sandbox policy for options."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/TruffleOptionDescriptors.java","line":51}},{"id":"com.oracle.truffle.api.TruffleOptions","name":"TruffleOptions","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleOptions"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.TruffleOptions#TraceRewrites","anchor":"TraceRewrites","kind":"field","name":"TraceRewrites","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"TraceRewrites"}],"type":[{"kind":"keyword","text":"boolean"}],"doc":{"summary":[{"kind":"text","text":"Enables/disables the rewriting of traces in the Truffle runtime to stdout."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables/disables the rewriting of traces in the Truffle runtime to stdout."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Can be set with "},{"kind":"code","text":"-Dtruffle.TraceRewrites=true"},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleOptions.java","line":64}},{"id":"com.oracle.truffle.api.TruffleOptions#DetailedRewriteReasons","anchor":"DetailedRewriteReasons","kind":"field","name":"DetailedRewriteReasons","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"DetailedRewriteReasons"}],"type":[{"kind":"keyword","text":"boolean"}],"doc":{"summary":[{"kind":"text","text":"Enables the generation of detailed rewrite reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables the generation of detailed rewrite reasons. Enabling this may introduce some overhead for rewriting nodes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Can be set with "},{"kind":"code","text":"-Dtruffle.DetailedRewriteReasons=true"},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleOptions.java","line":74}},{"id":"com.oracle.truffle.api.TruffleOptions#DetailedAssertions","anchor":"DetailedAssertions","kind":"field","name":"DetailedAssertions","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"DetailedAssertions"}],"type":[{"kind":"keyword","text":"boolean"}],"doc":{"summary":[{"kind":"text","text":"Enables expensive assertions in Truffle and guest language implementations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables expensive assertions in Truffle and guest language implementations. An assertion is expensive if its cost is significant compared to the operation it checks, for example when it recomputes a cached result."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Disabled by default. Can be set with "},{"kind":"code","text":"-Dtruffle.DetailedAssertions=true"},{"kind":"text","text":" before this class is initialized. Java assertions must also be enabled for the classes containing the checks. For native images, set the property when building the image. This is not a polyglot option and is not forwarded to polyglot isolates."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use this option to guard expensive checks while keeping inexpensive assertions enabled:"}]},{"kind":"code","text":"assert !TruffleOptions.DetailedAssertions || expensiveCheck();"}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/TruffleOptions.java","line":94}},{"id":"com.oracle.truffle.api.TruffleOptions#TraceRewritesFilterClass","anchor":"TraceRewritesFilterClass","kind":"field","name":"TraceRewritesFilterClass","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"TraceRewritesFilterClass"}],"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":{"summary":[{"kind":"text","text":"Filters rewrites that do not contain the given string in the qualified name of the source or target class hierarchy."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Filters rewrites that do not contain the given string in the qualified name of the source or target class hierarchy."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Can be set with "},{"kind":"code","text":"-Dtruffle.TraceRewritesFilterClass=name"},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleOptions.java","line":104}},{"id":"com.oracle.truffle.api.TruffleOptions#TraceRewritesFilterFromCost","anchor":"TraceRewritesFilterFromCost","kind":"field","name":"TraceRewritesFilterFromCost","modifiers":["public","static","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"},{"kind":"punct","text":" "},{"kind":"name","text":"TraceRewritesFilterFromCost"}],"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}],"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 24.1 without replacement"}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleOptions.java","line":110}},{"id":"com.oracle.truffle.api.TruffleOptions#TraceRewritesFilterToCost","anchor":"TraceRewritesFilterToCost","kind":"field","name":"TraceRewritesFilterToCost","modifiers":["public","static","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"},{"kind":"punct","text":" "},{"kind":"name","text":"TraceRewritesFilterToCost"}],"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}],"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 24.1 without replacement"}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleOptions.java","line":116}},{"id":"com.oracle.truffle.api.TruffleOptions#AOT","anchor":"AOT","kind":"field","name":"AOT","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"AOT"}],"type":[{"kind":"keyword","text":"boolean"}],"doc":{"summary":[{"kind":"text","text":"Forces ahead-of-time initialization."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Forces ahead-of-time initialization."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleOptions.java","line":123}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Class containing general Truffle options."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Class containing general Truffle options."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleOptions.java","line":53}},{"id":"com.oracle.truffle.api.TruffleRuntime","name":"TruffleRuntime","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleRuntime"}],"members":[{"id":"com.oracle.truffle.api.TruffleRuntime#getName()","anchor":"getName()","kind":"method","name":"getName","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name as a String"}]}]},"doc":{"summary":[{"kind":"text","text":"Name describing this runtime implementation for debugging purposes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Name describing this runtime implementation for debugging purposes."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":69}},{"id":"com.oracle.truffle.api.TruffleRuntime#createDirectCallNode(com.oracle.truffle.api.CallTarget)","anchor":"createDirectCallNode(com.oracle.truffle.api.CallTarget)","kind":"method","name":"createDirectCallNode","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"DirectCallNode","ref":"com.oracle.truffle.api.nodes.DirectCallNode"},{"kind":"punct","text":" "},{"kind":"name","text":"createDirectCallNode"},{"kind":"punct","text":"("},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the direct "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" to call"}]}]}],"returns":{"type":[{"kind":"type","text":"DirectCallNode","ref":"com.oracle.truffle.api.nodes.DirectCallNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new call node"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new runtime specific version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new runtime specific version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":78}},{"id":"com.oracle.truffle.api.TruffleRuntime#createLoopNode(com.oracle.truffle.api.nodes.RepeatingNode)","anchor":"createLoopNode(com.oracle.truffle.api.nodes.RepeatingNode)","kind":"method","name":"createLoopNode","signature":[{"kind":"type","text":"LoopNode","ref":"com.oracle.truffle.api.nodes.LoopNode"},{"kind":"punct","text":" "},{"kind":"name","text":"createLoopNode"},{"kind":"punct","text":"("},{"kind":"type","text":"RepeatingNode","ref":"com.oracle.truffle.api.nodes.RepeatingNode"},{"kind":"punct","text":" "},{"kind":"param","text":"body"},{"kind":"punct","text":")"}],"params":[{"name":"body","type":[{"kind":"type","text":"RepeatingNode","ref":"com.oracle.truffle.api.nodes.RepeatingNode"}]}],"returns":{"type":[{"kind":"type","text":"LoopNode","ref":"com.oracle.truffle.api.nodes.LoopNode"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new loop node with an implementation provided by a Truffle runtime implementation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new loop node with an implementation provided by a Truffle runtime implementation. Using Truffle loop nodes allows the runtime to do additional optimizations such as on stack replacement for loops."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"usage example"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":90}},{"id":"com.oracle.truffle.api.TruffleRuntime#createIndirectCallNode()","anchor":"createIndirectCallNode()","kind":"method","name":"createIndirectCallNode","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"IndirectCallNode","ref":"com.oracle.truffle.api.nodes.IndirectCallNode"},{"kind":"punct","text":" "},{"kind":"name","text":"createIndirectCallNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"IndirectCallNode","ref":"com.oracle.truffle.api.nodes.IndirectCallNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new call node"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new runtime specific version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.IndirectCallNode"},"code":true,"children":[{"kind":"text","text":"IndirectCallNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new runtime specific version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.IndirectCallNode"},"code":true,"children":[{"kind":"text","text":"IndirectCallNode"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":98}},{"id":"com.oracle.truffle.api.TruffleRuntime#createAssumption()","anchor":"createAssumption()","kind":"method","name":"createAssumption","signature":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"createAssumption"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the newly created assumption object"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new assumption object that can be checked and invalidated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new assumption object that can be checked and invalidated."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":108}},{"id":"com.oracle.truffle.api.TruffleRuntime#createAssumption(java.lang.String)","anchor":"createAssumption(java.lang.String)","kind":"method","name":"createAssumption","signature":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"createAssumption"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name for the new assumption"}]}]}],"returns":{"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the newly created assumption object"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new assumption object with a given name that can be checked and invalidated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new assumption object with a given name that can be checked and invalidated."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":117}},{"id":"com.oracle.truffle.api.TruffleRuntime#createVirtualFrame(java.lang.Object[],com.oracle.truffle.api.frame.FrameDescriptor)","anchor":"createVirtualFrame(java.lang.Object[],com.oracle.truffle.api.frame.FrameDescriptor)","kind":"method","name":"createVirtualFrame","signature":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"createVirtualFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"frameDescriptor"},{"kind":"punct","text":")"}],"params":[{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"frameDescriptor","type":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"}]}],"returns":{"type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the newly created virtual frame object"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new virtual frame object that can be used to store values and is potentially optimizable by the runtime."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new virtual frame object that can be used to store values and is potentially optimizable by the runtime."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":126}},{"id":"com.oracle.truffle.api.TruffleRuntime#createMaterializedFrame(java.lang.Object[])","anchor":"createMaterializedFrame(java.lang.Object[])","kind":"method","name":"createMaterializedFrame","signature":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"createMaterializedFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the newly created materialized frame object"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new materialized frame object that can be used to store values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new materialized frame object that can be used to store values."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":134}},{"id":"com.oracle.truffle.api.TruffleRuntime#createMaterializedFrame(java.lang.Object[],com.oracle.truffle.api.frame.FrameDescriptor)","anchor":"createMaterializedFrame(java.lang.Object[],com.oracle.truffle.api.frame.FrameDescriptor)","kind":"method","name":"createMaterializedFrame","signature":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"createMaterializedFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"frameDescriptor"},{"kind":"punct","text":")"}],"params":[{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"frameDescriptor","type":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame descriptor describing this frame's values"}]}]}],"returns":{"type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the newly created materialized frame object"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new materialized frame object with the given frame descriptor that can be used to store values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new materialized frame object with the given frame descriptor that can be used to store values."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":144}},{"id":"com.oracle.truffle.api.TruffleRuntime#iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)","anchor":"iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)","kind":"method","name":"iterateFrames","modifiers":["default"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"iterateFrames"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstanceVisitor","ref":"com.oracle.truffle.api.frame.FrameInstanceVisitor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"visitor"},{"kind":"punct","text":")"}],"params":[{"name":"visitor","type":[{"kind":"type","text":"FrameInstanceVisitor","ref":"com.oracle.truffle.api.frame.FrameInstanceVisitor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the visitor that is called for every matching frame."}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the last result returned by the visitor (which is non-null to indicate that iteration should stop), or null if the whole stack was iterated."}]}]},"doc":{"summary":[{"kind":"text","text":"Accesses the current stack, i.e., the contents of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":"s and the associated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"s."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Accesses the current stack, i.e., the contents of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":"s and the associated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"s. Iteration starts at the current frame. Iteration continues as long as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstanceVisitor#visitFrame(com.oracle.truffle.api.frame.FrameInstance)"},"code":true,"children":[{"kind":"text","text":"FrameInstanceVisitor.visitFrame"}]},{"kind":"text","text":", which is invoked for every "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":", returns null. Any non-null result of the visitor indicates that frame iteration should stop."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instances of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":" must not escape the invocation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstanceVisitor#visitFrame(com.oracle.truffle.api.frame.FrameInstance)"},"code":true,"children":[{"kind":"text","text":"FrameInstanceVisitor.visitFrame(FrameInstance)"}]},{"kind":"text","text":". This rule is currently not enforced, but will be in future versions of Truffle."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that this method can cause deoptimization if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getFrame(com.oracle.truffle.api.frame.FrameInstance.FrameAccess)"},"code":true,"children":[{"kind":"text","text":"FrameInstance.getFrame(FrameInstance.FrameAccess)"}]},{"kind":"text","text":" is called with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#READ_WRITE"},"code":true,"children":[{"kind":"text","text":"FrameAccess.READ_WRITE"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#MATERIALIZE"},"code":true,"children":[{"kind":"text","text":"FrameAccess.MATERIALIZE"}]},{"kind":"text","text":" on the fast path. Instructions and flags for debugging such deoptimizations can be found in "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/Optimizing.md#debugging-deoptimizations","children":[{"kind":"text","text":"/truffle/docs/Optimizing.md#debugging-deoptimizations"}]}]},{"kind":"paragraph","children":[{"kind":"text","text":"To get possible asynchronous stack frames, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#getAsynchronousStackTrace(com.oracle.truffle.api.CallTarget,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"TruffleStackTrace.getAsynchronousStackTrace(CallTarget, Frame)"}]},{"kind":"text","text":" and provide call target and frame from the last "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":174}},{"id":"com.oracle.truffle.api.TruffleRuntime#iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor,int)","anchor":"iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor,int)","kind":"method","name":"iterateFrames","modifiers":["default"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"iterateFrames"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstanceVisitor","ref":"com.oracle.truffle.api.frame.FrameInstanceVisitor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"visitor"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"skipFrames"},{"kind":"punct","text":")"}],"params":[{"name":"visitor","type":[{"kind":"type","text":"FrameInstanceVisitor","ref":"com.oracle.truffle.api.frame.FrameInstanceVisitor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the visitor that is called for every matching frame."}]}]},{"name":"skipFrames","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"number of frames to skip before invoking the visitor"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the last result returned by the visitor (which is non-null to indicate that iteration should stop), or null if the whole stack was iterated."}]}]},"doc":{"summary":[{"kind":"text","text":"Accesses the current stack, i.e., the contents of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":"s and the associated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"s."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Accesses the current stack, i.e., the contents of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":"s and the associated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"s. Iteration starts at the current frame and skips a number of frames provided as argument. Iteration continues as long as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstanceVisitor#visitFrame(com.oracle.truffle.api.frame.FrameInstance)"},"code":true,"children":[{"kind":"text","text":"FrameInstanceVisitor.visitFrame"}]},{"kind":"text","text":", which is invoked for every "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":", returns null. Any non-null result of the visitor indicates that frame iteration should stop."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instances of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":" must not escape the invocation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstanceVisitor#visitFrame(com.oracle.truffle.api.frame.FrameInstance)"},"code":true,"children":[{"kind":"text","text":"FrameInstanceVisitor.visitFrame(FrameInstance)"}]},{"kind":"text","text":". This rule is currently not enforced, but will be in future versions of Truffle."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that this method can cause deoptimization if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getFrame(com.oracle.truffle.api.frame.FrameInstance.FrameAccess)"},"code":true,"children":[{"kind":"text","text":"FrameInstance.getFrame(FrameInstance.FrameAccess)"}]},{"kind":"text","text":" is called with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#READ_WRITE"},"code":true,"children":[{"kind":"text","text":"FrameAccess.READ_WRITE"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#MATERIALIZE"},"code":true,"children":[{"kind":"text","text":"FrameAccess.MATERIALIZE"}]},{"kind":"text","text":" on the fast path. Instructions and flags for debugging such deoptimizations can be found in "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/Optimizing.md#debugging-deoptimizations","children":[{"kind":"text","text":"/truffle/docs/Optimizing.md#debugging-deoptimizations"}]}]},{"kind":"paragraph","children":[{"kind":"text","text":"To get possible asynchronous stack frames, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#getAsynchronousStackTrace(com.oracle.truffle.api.CallTarget,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"TruffleStackTrace.getAsynchronousStackTrace(CallTarget, Frame)"}]},{"kind":"text","text":" and provide call target and frame from the last "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":208}},{"id":"com.oracle.truffle.api.TruffleRuntime#getCapability(java.lang.Class)","anchor":"getCapability(java.lang.Class)","kind":"method","name":"getCapability","typeParams":[{"name":"T"}],"signature":[{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getCapability"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"capability"},{"kind":"punct","text":")"}],"params":[{"name":"capability","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the type of the interface representing the capability"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an implementation of the capability or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the runtime does not offer it"}]}]},"doc":{"summary":[{"kind":"text","text":"Requests a capability from the runtime."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Requests a capability from the runtime."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":219}},{"id":"com.oracle.truffle.api.TruffleRuntime#notifyTransferToInterpreter()","anchor":"notifyTransferToInterpreter()","kind":"method","name":"notifyTransferToInterpreter","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"notifyTransferToInterpreter"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Internal API method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal API method. Do not use."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":226}},{"id":"com.oracle.truffle.api.TruffleRuntime#isProfilingEnabled()","anchor":"isProfilingEnabled()","kind":"method","name":"isProfilingEnabled","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isProfilingEnabled"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Whether or not the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" implementation can or wants to use gathered profiling information Truffle compilation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether or not the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" implementation can or wants to use gathered profiling information Truffle compilation. If this method returns "},{"kind":"code","text":"false"},{"kind":"text","text":" then all profiles in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.utilities"}]},{"kind":"text","text":" package are returning void implementations. If it returns "},{"kind":"code","text":"true"},{"kind":"text","text":" then all implementations gather profilinig information."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":237}}],"doc":{"summary":[{"kind":"text","text":"Interface representing a Truffle runtime object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Interface representing a Truffle runtime object. The runtime is responsible for creating call targets and performing optimizations for them."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntime.java","line":61}},{"id":"com.oracle.truffle.api.TruffleRuntimeAccess","name":"TruffleRuntimeAccess","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleRuntimeAccess"}],"members":[{"id":"com.oracle.truffle.api.TruffleRuntimeAccess#getRuntime()","anchor":"getRuntime()","kind":"method","name":"getRuntime","signature":[{"kind":"type","text":"TruffleRuntime","ref":"com.oracle.truffle.api.TruffleRuntime"},{"kind":"punct","text":" "},{"kind":"name","text":"getRuntime"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleRuntime","ref":"com.oracle.truffle.api.TruffleRuntime"}]},"doc":{"summary":[{"kind":"text","text":"Gets the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" implementation available via this access object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" implementation available via this access object."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntimeAccess.java","line":55}},{"id":"com.oracle.truffle.api.TruffleRuntimeAccess#getPriority()","anchor":"getPriority()","kind":"method","name":"getPriority","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getPriority"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Allows disambiguation if more than one "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" implementation is available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows disambiguation if more than one "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" implementation is available."}]}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/TruffleRuntimeAccess.java","line":62}}],"doc":{"summary":[{"kind":"text","text":"A service that provides access to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" implementation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A service that provides access to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime"}]},{"kind":"text","text":" implementation."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/TruffleRuntimeAccess.java","line":48}},{"id":"com.oracle.truffle.api.TruffleSafepoint","name":"TruffleSafepoint","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleSafepoint"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.TruffleSafepoint#<init>(com.oracle.truffle.api.impl.Accessor.EngineSupport)","anchor":"<init>(com.oracle.truffle.api.impl.Accessor.EngineSupport)","kind":"constructor","name":"TruffleSafepoint","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleSafepoint"},{"kind":"punct","text":"("},{"kind":"type","text":"Accessor.EngineSupport","ref":"com.oracle.truffle.api.impl.Accessor$EngineSupport"},{"kind":"punct","text":" "},{"kind":"param","text":"support"},{"kind":"punct","text":")"}],"params":[{"name":"support","type":[{"kind":"type","text":"Accessor.EngineSupport","ref":"com.oracle.truffle.api.impl.Accessor$EngineSupport"}]}],"doc":{"summary":[{"kind":"text","text":"Do not extend this class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Do not extend this class. This class is intended to be implemented by a Truffle runtime implementation."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":108}},{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)","anchor":"poll(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"poll","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"poll"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the location of the poll. May be "},{"kind":"code","text":"null"},{"kind":"text","text":", but it is recommended to always pass a location node, if available."}]}]}],"doc":{"summary":[{"kind":"text","text":"Polls a safepoint at the provided location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Polls a safepoint at the provided location. This allows to run thread local actions at this location. A Truffle guest language implementation must ensure that a safepoint is polled repeatedly within a constant time interval. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint"}]},{"kind":"text","text":" for further details."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In compiled code calls to this method are removed. Instead the compiler inserts safepoints automatically at loop ends and method exits. In this case the node location is approximated by frame state of method ends and loop exits in the compiler IR. For method ends the parent root node and for loop exits the loop node is passed as location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Guest language exceptions may be thrown by this method. If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"side-effects"}]},{"kind":"text","text":" are allowed then also guest language exceptions may be thrown. Otherwise only internal or "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"thread-death"}]},{"kind":"text","text":" exceptions may be thrown. This method is safe to be used on compiled code paths. Polling may be performed on threads without entered polyglot context, polls are ignored there."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage with an unbounded loop sum behind a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"TruffleBoundary"}]},{"kind":"text","text":"."}]},{"kind":"code","text":"@TruffleBoundary\nint sum(int[] array) {\n    int sum = 0;\n    for (int i = 0; i < array.length; i++) {\n        sum += array[i];\n\n        TruffleSafepoint.poll();\n    }\n    return sum;\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#pollHere(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"pollHere(Node)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":151}},{"id":"com.oracle.truffle.api.TruffleSafepoint#pollHere(com.oracle.truffle.api.nodes.Node)","anchor":"pollHere(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"pollHere","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"pollHere"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the location of the poll. Must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Similar to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"poll(Node)"}]},{"kind":"text","text":" but with exact location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Similar to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"poll(Node)"}]},{"kind":"text","text":" but with exact location. A poll with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"relaxed location"}]},{"kind":"text","text":" is significantly more efficient than a poll with precise location as the compiler is able to move and combine the poll requests during compilation. This method is safe to be used on compiled code paths."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"TruffleSafepoint safepoint = TruffleSafepoint.getCurrent();\nboolean prev = safepoint.setAllowSideEffects(false);\ntry {\n    // criticial section\n} finally {\n    safepoint.setAllowSideEffects(prev);\n    TruffleSafepoint.pollHere(this);\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"poll(Node)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":178}},{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedWithException(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)","anchor":"setBlockedWithException(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)","kind":"method","name":"setBlockedWithException","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBlockedWithException"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"},{"kind":"punct","text":" "},{"kind":"param","text":"interrupter"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.Interruptible","ref":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"interruptible"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"beforeInterrupt"},{"kind":"punct","text":", "},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"afterInterrupt"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"interrupter","type":[{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"}]},{"name":"interruptible","type":[{"kind":"type","text":"TruffleSafepoint.Interruptible","ref":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},{"name":"object","type":[{"kind":"typeParam","text":"T"}]},{"name":"beforeInterrupt","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]},{"name":"afterInterrupt","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Transitions the current thread into a blocked state and calls an interruptible functional method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Transitions the current thread into a blocked state and calls an interruptible functional method. The blocked state is restored when the interruptible method returns. Setting the blocked state allows safepoint notification while the current thread is blocked. This allows Truffle to interrupt e.g. locks temporarily to perform a thread local action."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"location>"},{"kind":"text","text":" parameter is used "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"poll"}]},{"kind":"text","text":" all pending thread local actions before transition to blocked state."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"interrupter"},{"kind":"text","text":" parameter specifies how the blocked state can be interrupted from another thread. The interrupter allows to interrupt the blocked state from other threads. For most blocking java.util.concurrent primitives the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter#THREAD_INTERRUPT"},"code":true,"children":[{"kind":"text","text":"thread interrupter"}]},{"kind":"text","text":" can be used. If the thread will be blocked in native code, other ways of interrupting, like signals may be used by implementing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"},"code":true,"children":[{"kind":"text","text":"Interrupter"}]},{"kind":"text","text":" interface."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"interruptible"},{"kind":"text","text":" parameter provides the method that calls the blocking method which throws "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":" on interrupt. In order to avoid allocations of the functional interface a single argument can be provided that is passed to the interface. This is typically the "},{"kind":"link","target":{"id":"java.util.concurrent.locks.Lock","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/locks/Lock.html"},"code":true,"children":[{"kind":"text","text":"lock"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.util.concurrent.Semaphore","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Semaphore.html"},"code":true,"children":[{"kind":"text","text":"semaphore"}]},{"kind":"text","text":" instance. The implementation of this method is expected to throw an "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter#interrupt(java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"Interrupter.interrupt(Thread)"}]},{"kind":"text","text":" method is invoked for this thread. For most java.util.concurrent primitives this is supported by using the interruptible blocking method variant, for example "},{"kind":"link","target":{"id":"java.util.concurrent.locks.Lock#lockInterruptibly()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/locks/Lock.html#lockInterruptibly()"},"code":true,"children":[{"kind":"text","text":"Lock.lockInterruptibly()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Since it is common to use this method with method reference syntax e.g. "},{"kind":"code","text":"Lock::lockInterruptibly"},{"kind":"text","text":" for the interruptible parameter, we implicitlely apply a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"boundary"}]},{"kind":"text","text":" for the entire method call by default. If the interruptible is called from a compiled code path and the interruptible should get partial evaluated, then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$CompiledInterruptible"},"code":true,"children":[{"kind":"text","text":"CompiledInterruptible"}]},{"kind":"text","text":" should be used instead of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},"code":true,"children":[{"kind":"text","text":"Interruptible"}]},{"kind":"text","text":". In this case the parameter must be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#isPartialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"beforeInterrupt"},{"kind":"text","text":" "},{"kind":"link","target":{"id":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},"code":true,"children":[{"kind":"text","text":"runnable"}]},{"kind":"text","text":" and "},{"kind":"code","text":"afterInterrupt"},{"kind":"text","text":" "},{"kind":"link","target":{"id":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},"code":true,"children":[{"kind":"text","text":"consumer"}]},{"kind":"text","text":" optional parameters allow to run code before and after a thread got interrupted and safepoint events are processed. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided then no action will be performed. Arbitrary code may be executed in this runnable. Note that the blocked state is temporarily reset to its previous state while the afterInterrupt is called."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If an exception is thrown during the processing of the safepoint, "},{"kind":"code","text":"afterInterrupt"},{"kind":"text","text":" will receive the throwable as argument, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the safepoint successfully completed. This exception will still be thrown after completion of "},{"kind":"code","text":"afterInterrupt"},{"kind":"text","text":", unless "},{"kind":"code","text":"afterInterrupt"},{"kind":"text","text":" throws an exception of its own."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Multiple recursive invocations of this method is supported. The previous blocked state will be restored when the method completes or fails."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note there is a short-cut method to achieve the same behavior as in this example "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedThreadInterruptible(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T)"},"code":true,"children":[{"kind":"text","text":"setBlockedThreadInterruptible(Node, Interruptible, Object)"}]},{"kind":"text","text":"."}]},{"kind":"code","text":"Lock lock = new ReentrantLock();\nTruffleSafepoint sp = TruffleSafepoint.getCurrent();\nsp.setBlocked(location, Interrupter.THREAD_INTERRUPT, ReentrantLock::lockInterruptibly, lock, null, null);"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlocked(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"setBlocked(Node, Interrupter, Interruptible, Object, Runnable, Consumer)"}]}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":248}},{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)","anchor":"setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)","kind":"method","name":"setBlockedFunction","modifiers":["public","abstract"],"typeParams":[{"name":"T"},{"name":"R"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"name","text":"setBlockedFunction"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"},{"kind":"punct","text":" "},{"kind":"param","text":"interrupter"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.InterruptibleFunction","ref":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"param","text":"interruptible"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"beforeInterrupt"},{"kind":"punct","text":", "},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"afterInterrupt"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"interrupter","type":[{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"}]},{"name":"interruptible","type":[{"kind":"type","text":"TruffleSafepoint.InterruptibleFunction","ref":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}]},{"name":"object","type":[{"kind":"typeParam","text":"T"}]},{"name":"beforeInterrupt","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]},{"name":"afterInterrupt","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"R"}]},"doc":{"summary":[{"kind":"text","text":"Transitions the current thread into a blocked state and calls an interruptible functional method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Transitions the current thread into a blocked state and calls an interruptible functional method. The blocked state is restored when the interruptible method returns. Setting the blocked state allows safepoint notification while the current thread is blocked. This allows Truffle to interrupt e.g. locks temporarily to perform a thread local action."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"location"},{"kind":"text","text":" parameter is used to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"poll"}]},{"kind":"text","text":" all pending thread local actions before transition to blocked state. It may be "},{"kind":"code","text":"null"},{"kind":"text","text":", but it is recommended to always pass a location node, if available."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"interrupter"},{"kind":"text","text":" parameter specifies how the blocked state can be interrupted from another thread. The interrupter allows to interrupt the blocked state from other threads. For most blocking java.util.concurrent primitives the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter#THREAD_INTERRUPT"},"code":true,"children":[{"kind":"text","text":"thread interrupter"}]},{"kind":"text","text":" can be used. If the thread will be blocked in native code, other ways of interrupting, like signals may be used by implementing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"},"code":true,"children":[{"kind":"text","text":"Interrupter"}]},{"kind":"text","text":" interface."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"interruptible"},{"kind":"text","text":" parameter provides the method that calls the blocking method which throws "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":" on interrupt. In order to avoid allocations of the functional interface a single argument can be provided that is passed to the interface. This is typically the "},{"kind":"link","target":{"id":"java.util.concurrent.locks.Lock","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/locks/Lock.html"},"code":true,"children":[{"kind":"text","text":"lock"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.util.concurrent.Semaphore","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Semaphore.html"},"code":true,"children":[{"kind":"text","text":"semaphore"}]},{"kind":"text","text":" instance. The implementation of this method is expected to throw an "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter#interrupt(java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"Interrupter.interrupt(Thread)"}]},{"kind":"text","text":" method is invoked for this thread. For most java.util.concurrent primitives this is supported by using the interruptible blocking method variant, for example "},{"kind":"link","target":{"id":"java.util.concurrent.locks.Lock#lockInterruptibly()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/locks/Lock.html#lockInterruptibly()"},"code":true,"children":[{"kind":"text","text":"Lock.lockInterruptibly()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"boundary"}]},{"kind":"text","text":" is applied for the entire interruptible method call by default. If the interruptible is called from a compiled code path and the interruptible should get partial evaluated, then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$CompiledInterruptibleFunction"},"code":true,"children":[{"kind":"text","text":"CompiledInterruptibleFunction"}]},{"kind":"text","text":" should be used instead of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},"code":true,"children":[{"kind":"text","text":"InterruptibleFunction"}]},{"kind":"text","text":". In this case the parameter must be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#isPartialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"beforeInterrupt"},{"kind":"text","text":" "},{"kind":"link","target":{"id":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},"code":true,"children":[{"kind":"text","text":"runnable"}]},{"kind":"text","text":" and "},{"kind":"code","text":"afterInterrupt"},{"kind":"text","text":" "},{"kind":"link","target":{"id":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},"code":true,"children":[{"kind":"text","text":"consumer"}]},{"kind":"text","text":" optional parameters allow to run code before and after a thread got interrupted and safepoint events are processed. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided then no action will be performed. Arbitrary code may be executed in this runnable. Note that the blocked state is temporarily reset to its previous state while the afterInterrupt is called."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If an exception is thrown during the processing of the safepoint, "},{"kind":"code","text":"afterInterrupt"},{"kind":"text","text":" will receive the throwable as argument, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the safepoint successfully completed. This exception will still be thrown after completion of "},{"kind":"code","text":"afterInterrupt"},{"kind":"text","text":", unless "},{"kind":"code","text":"afterInterrupt"},{"kind":"text","text":" throws an exception of its own."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Multiple recursive invocations of this method is supported. The previous blocked state will be restored when the method completes or fails."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note there is a short-cut method to achieve the same behavior as in this example "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedThreadInterruptibleFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T)"},"code":true,"children":[{"kind":"text","text":"setBlockedThreadInterruptibleFunction(Node, InterruptibleFunction, Object)"}]},{"kind":"text","text":"."}]},{"kind":"code","text":"Queue<Object> queue = new ArrayBlockingQueue<>(10);\nTruffleSafepoint sp = TruffleSafepoint.getCurrent();\nsp.setBlockedFunction(location, Interrupter.THREAD_INTERRUPT, BlockingQueue::take, queue, null, null);"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":315}},{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlocked(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)","anchor":"setBlocked(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)","kind":"method","name":"setBlocked","modifiers":["public","abstract"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBlocked"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"},{"kind":"punct","text":" "},{"kind":"param","text":"interrupter"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.Interruptible","ref":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"interruptible"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"beforeInterrupt"},{"kind":"punct","text":", "},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"afterInterrupt"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"interrupter","type":[{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"}]},{"name":"interruptible","type":[{"kind":"type","text":"TruffleSafepoint.Interruptible","ref":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},{"name":"object","type":[{"kind":"typeParam","text":"T"}]},{"name":"beforeInterrupt","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]},{"name":"afterInterrupt","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"The same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"setBlockedFunction(Node, Interrupter, InterruptibleFunction, Object, Runnable, Consumer)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"setBlockedFunction(Node, Interrupter, InterruptibleFunction, Object, Runnable, Consumer)"}]},{"kind":"text","text":". The only difference is that the interruptible functional method does not return anything."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":325}},{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedThreadInterruptible(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T)","anchor":"setBlockedThreadInterruptible(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T)","kind":"method","name":"setBlockedThreadInterruptible","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBlockedThreadInterruptible"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.Interruptible","ref":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"interruptible"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the location with which the safepoint should be polled."}]}]},{"name":"interruptible","type":[{"kind":"type","text":"TruffleSafepoint.Interruptible","ref":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread interruptable method to use for locking the object"}]}]},{"name":"object","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance to use the interruptable method with."}]}]}],"doc":{"summary":[{"kind":"text","text":"Short-cut method to allow setting the blocked status for methods that throw "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":" and support interrupting using "},{"kind":"link","target":{"id":"java.lang.Thread#interrupt()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#interrupt()"},"code":true,"children":[{"kind":"text","text":"Thread.interrupt()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Short-cut method to allow setting the blocked status for methods that throw "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":" and support interrupting using "},{"kind":"link","target":{"id":"java.lang.Thread#interrupt()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#interrupt()"},"code":true,"children":[{"kind":"text","text":"Thread.interrupt()"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":337}},{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedThreadInterruptibleFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T)","anchor":"setBlockedThreadInterruptibleFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T)","kind":"method","name":"setBlockedThreadInterruptibleFunction","modifiers":["public","static"],"typeParams":[{"name":"T"},{"name":"R"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"name","text":"setBlockedThreadInterruptibleFunction"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleSafepoint.InterruptibleFunction","ref":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"param","text":"interruptible"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the location with which the safepoint should be polled."}]}]},{"name":"interruptible","type":[{"kind":"type","text":"TruffleSafepoint.InterruptibleFunction","ref":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread interruptable method to use for locking the object"}]}]},{"name":"object","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance to use the interruptable method with."}]}]}],"returns":{"type":[{"kind":"typeParam","text":"R"}]},"doc":{"summary":[{"kind":"text","text":"Short-cut method to allow setting the blocked status for methods that throw "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":" and support interrupting using "},{"kind":"link","target":{"id":"java.lang.Thread#interrupt()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#interrupt()"},"code":true,"children":[{"kind":"text","text":"Thread.interrupt()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Short-cut method to allow setting the blocked status for methods that throw "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":" and support interrupting using "},{"kind":"link","target":{"id":"java.lang.Thread#interrupt()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#interrupt()"},"code":true,"children":[{"kind":"text","text":"Thread.interrupt()"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":351}},{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowActions(boolean)","anchor":"setAllowActions(boolean)","kind":"method","name":"setAllowActions","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"setAllowActions"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if allow actions can currently not be set, for example outside the scope of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"context finalization"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Allows to temporarily delay all thread local actions on the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows to temporarily delay all thread local actions on the current thread. It is recommended to delay actions only for a constant period of time and while trusted and internal guest code is running. Please consider using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"setAllowSideEffects(boolean)"}]},{"kind":"text","text":" before using this method. While actions are disabled the value of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"setAllowSideEffects(boolean)"}]},{"kind":"text","text":" has no effect. When "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowActions(boolean)"},"code":true,"children":[{"kind":"text","text":"actions"}]},{"kind":"text","text":" are enabled again the value of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"setAllowSideEffects(boolean)"}]},{"kind":"text","text":" will be interpreted again."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Currently this method may only be used during "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"context finalization"}]},{"kind":"text","text":". This could be necessary to free up native resources through guest code when a context is cancelled to avoid resource leakage. Any usage of this method should be subject to a detailed security review to ensure only internal and well-known guest code is executed. Disabling thread local actions may delay thread local actions like exit, cancellation and interruption."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"TruffleSafepoint sp = TruffleSafepoint.getCurrent();\nboolean prev = sp.setAllowActions(false);\ntry {\n    // critical section\n} finally {\n    sp.setAllowActions(prev);\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.finalizeContext(Object)"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":389}},{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)","anchor":"setAllowSideEffects(boolean)","kind":"method","name":"setAllowSideEffects","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"setAllowSideEffects"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Allows to temporarily delay side-effecting thread local actions on the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows to temporarily delay side-effecting thread local actions on the current thread. It is recommended to delay side-effecting actions only for a short and constant period of time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"While side-effecting thread local actions are delayed on this thread, only non-side-effecting thread local actions will be scheduled in this thread. Non-side-effecting thread local actions do not mutate guest objects, run guest code or throw guest exceptions, but they might still throw internal errors."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"TruffleSafepoint sp = TruffleSafepoint.getCurrent();\nboolean prev = sp.setAllowSideEffects(false);\ntry {\n    // critical section\n} finally {\n    sp.setAllowSideEffects(prev);\n}"}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":414}},{"id":"com.oracle.truffle.api.TruffleSafepoint#hasPendingSideEffectingActions()","anchor":"hasPendingSideEffectingActions()","kind":"method","name":"hasPendingSideEffectingActions","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasPendingSideEffectingActions"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns whether there is any pending side-effecting thread local action on this thread, due to being in a critical section using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"setAllowSideEffects(boolean)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether there is any pending side-effecting thread local action on this thread, due to being in a critical section using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"setAllowSideEffects(boolean)"}]},{"kind":"text","text":". When side-effecting actions are allowed, this method always returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This is useful if the language exposes a way to know if there are any pending side-effecting thread local action due to using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"setAllowSideEffects(boolean)"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":426}},{"id":"com.oracle.truffle.api.TruffleSafepoint#getCurrent()","anchor":"getCurrent()","kind":"method","name":"getCurrent","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleSafepoint","ref":"com.oracle.truffle.api.TruffleSafepoint"},{"kind":"punct","text":" "},{"kind":"name","text":"getCurrent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleSafepoint","ref":"com.oracle.truffle.api.TruffleSafepoint"}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current thread is not entered with a polyglot context."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the current safepoint configuration for the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current safepoint configuration for the current thread. This method is useful to access configuration methods like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlocked(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"setBlocked(Node, Interrupter, Interruptible, Object, Runnable, Consumer)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"setAllowSideEffects(boolean)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Important: The result of this method must not be stored or used on a different thread than the current thread."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":440}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Truffle safepoints allow interrupting the guest language execution to execute thread-local actions submitted by a language or tool."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Truffle safepoints allow interrupting the guest language execution to execute thread-local actions submitted by a language or tool. A safepoint is a location during the guest language execution where the state is consistent, and other operations can read its state."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Supporting Safepoints in a Language"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Safepoints are explicitly polled by invoking the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"poll(Node)"}]},{"kind":"text","text":" method. Safepoints are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"polled"}]},{"kind":"text","text":" with relaxed location or with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#pollHere(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"exact location"}]},{"kind":"text","text":". A poll with a relaxed location is significantly more efficient than a poll with a precise location as the compiler is able to move and combine the poll requests during compilation. A Truffle guest language implementation must ensure that a safepoint is polled repeatedly within a constant time interval. For example, a single arithmetic expression completes within a constant number of CPU cycles. However, a loop that summarizes values over an array uses a non-constant time dependent on the array size. This typically means that safepoints are best polled at the end of loops and at the end of function or method calls to cover recursion. In addition, any guest language code that blocks the execution, like guest language locks, need to use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlocked(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"blocking API"}]},{"kind":"text","text":" to allow polling of safepoints while the thread is waiting."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Truffle's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"loop node"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"root node"}]},{"kind":"text","text":" support safepoint polling automatically. No further calls to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"poll(Node)"}]},{"kind":"text","text":" are therefore necessary. Custom loops or loops behind "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"boundary"}]},{"kind":"text","text":" annotated method calls are expected to be notified by the guest language implementation manually."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Thread local actions optionally incur side-effects. By default side-effects are enabled. A language implementation may disable side-effects temporarily for the current thread using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setAllowSideEffects(boolean)"},"code":true,"children":[{"kind":"text","text":"setAllowSideEffects(boolean)"}]},{"kind":"text","text":" method."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Submitting thread local actions"}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]},{"kind":"text","text":" for details on how to submit actions."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Further information can be found in the "},{"kind":"link","url":"http://github.com/oracle/graal/blob/master/truffle/docs/Safepoints.md","children":[{"kind":"text","text":"safepoint tutorial"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Context#safepoint()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html#safepoint()"},"code":true,"children":[{"kind":"text","text":"Context.safepoint()"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":98}},{"id":"com.oracle.truffle.api.TruffleSafepoint$CompiledInterruptible","name":"TruffleSafepoint.CompiledInterruptible","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleSafepoint.CompiledInterruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleSafepoint.Interruptible","ref":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"interfaces":[[{"kind":"type","text":"TruffleSafepoint.Interruptible","ref":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]],"enclosing":"com.oracle.truffle.api.TruffleSafepoint","members":[{"id":"com.oracle.truffle.api.TruffleSafepoint$CompiledInterruptible#apply(T)","anchor":"apply(T)","kind":"method","name":"apply","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"apply"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"arg"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"InterruptedException","ref":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"}],"params":[{"name":"arg","type":[{"kind":"typeParam","text":"T"}]}],"throws":[{"type":[{"kind":"type","text":"InterruptedException","ref":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"}],"declared":true}],"overrides":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interruptible#apply(T)"},"doc":{"summary":[{"kind":"text","text":"Runs the interruptable method for a given object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Runs the interruptable method for a given object."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":483}}],"doc":{"summary":[{"kind":"text","text":"Just like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},"code":true,"children":[{"kind":"text","text":"Interruptible"}]},{"kind":"text","text":" but allows partial evaluation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Just like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},"code":true,"children":[{"kind":"text","text":"Interruptible"}]},{"kind":"text","text":" but allows partial evaluation."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":475}},{"id":"com.oracle.truffle.api.TruffleSafepoint$CompiledInterruptibleFunction","name":"TruffleSafepoint.CompiledInterruptibleFunction","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"typeParams":[{"name":"T"},{"name":"R"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleSafepoint.CompiledInterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleSafepoint.InterruptibleFunction","ref":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}],"interfaces":[[{"kind":"type","text":"TruffleSafepoint.InterruptibleFunction","ref":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}]],"enclosing":"com.oracle.truffle.api.TruffleSafepoint","members":[{"id":"com.oracle.truffle.api.TruffleSafepoint$CompiledInterruptibleFunction#apply(T)","anchor":"apply(T)","kind":"method","name":"apply","signature":[{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"name","text":"apply"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"arg"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"InterruptedException","ref":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"}],"params":[{"name":"arg","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"R"}]},"throws":[{"type":[{"kind":"type","text":"InterruptedException","ref":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"}],"declared":true}],"overrides":{"id":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction#apply(T)"},"doc":{"summary":[{"kind":"text","text":"Runs the interruptible method for a given object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Runs the interruptible method for a given object."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":523}}],"doc":{"summary":[{"kind":"text","text":"Just like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},"code":true,"children":[{"kind":"text","text":"InterruptibleFunction"}]},{"kind":"text","text":" but allows partial evaluation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Just like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction"},"code":true,"children":[{"kind":"text","text":"InterruptibleFunction"}]},{"kind":"text","text":" but allows partial evaluation."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":515}},{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter","name":"TruffleSafepoint.Interrupter","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleSafepoint.Interrupter"}],"enclosing":"com.oracle.truffle.api.TruffleSafepoint","members":[{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter#interrupt(java.lang.Thread)","anchor":"interrupt(java.lang.Thread)","kind":"method","name":"interrupt","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"interrupt"},{"kind":"punct","text":"("},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread to interrupt"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the interrupted state on a foreign thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the interrupted state on a foreign thread. Internal locks are held while this method is invoked, therefore this method must not block or run complex or guest language code that could cause deadlocks."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":546}},{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter#resetInterrupted()","anchor":"resetInterrupted()","kind":"method","name":"resetInterrupted","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"resetInterrupted"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Resets the interrupted state when executing on a thread after the thread was interrupted."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets the interrupted state when executing on a thread after the thread was interrupted. If a thread was interrupted it is guaranteed to be reset at least once, but might be reset multiple times. Internal locks are held while this method is invoked, therefore this method must not block or run complex or guest language code that could cause deadlocks."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":557}},{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter#THREAD_INTERRUPT","anchor":"THREAD_INTERRUPT","kind":"field","name":"THREAD_INTERRUPT","signature":[{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"},{"kind":"punct","text":" "},{"kind":"name","text":"THREAD_INTERRUPT"}],"type":[{"kind":"type","text":"TruffleSafepoint.Interrupter","ref":"com.oracle.truffle.api.TruffleSafepoint$Interrupter"}],"doc":{"summary":[{"kind":"text","text":"A thread interrupter implementation that uses "},{"kind":"link","target":{"id":"java.lang.Thread#interrupt()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#interrupt()"},"code":true,"children":[{"kind":"text","text":"Thread.interrupt()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Thread#interrupted()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#interrupted()"},"code":true,"children":[{"kind":"text","text":"Thread.interrupted()"}]},{"kind":"text","text":" to clear the thread state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A thread interrupter implementation that uses "},{"kind":"link","target":{"id":"java.lang.Thread#interrupt()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#interrupt()"},"code":true,"children":[{"kind":"text","text":"Thread.interrupt()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Thread#interrupted()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#interrupted()"},"code":true,"children":[{"kind":"text","text":"Thread.interrupted()"}]},{"kind":"text","text":" to clear the thread state."}]},{"kind":"code","text":"THREAD_INTERRUPT = new Interrupter() {\n\n    @Override\n    public void interrupt(Thread t) {\n        t.interrupt();\n    }\n\n    @Override\n    public void interrupted() {\n        Thread.interrupted();\n    }\n\n};"}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":582}}],"doc":{"summary":[{"kind":"text","text":"An interrupter allows a foreign thread to interrupt the execution on a separate thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An interrupter allows a foreign thread to interrupt the execution on a separate thread. Used to allow the Truffle safepoint mechanism to interrupt a blocked thread and schedule a safepoint."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlocked(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint.setBlocked(Node, Interrupter, Interruptible, Object, Runnable,\n     Consumer)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interrupter#THREAD_INTERRUPT"},"code":true,"children":[{"kind":"text","text":"Interrupter.THREAD_INTERRUPT"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":536}},{"id":"com.oracle.truffle.api.TruffleSafepoint$Interruptible","name":"TruffleSafepoint.Interruptible","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleSafepoint.Interruptible"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"enclosing":"com.oracle.truffle.api.TruffleSafepoint","members":[{"id":"com.oracle.truffle.api.TruffleSafepoint$Interruptible#apply(T)","anchor":"apply(T)","kind":"method","name":"apply","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"apply"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"arg"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"InterruptedException","ref":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"}],"params":[{"name":"arg","type":[{"kind":"typeParam","text":"T"}]}],"throws":[{"type":[{"kind":"type","text":"InterruptedException","ref":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Runs the interruptable method for a given object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Runs the interruptable method for a given object."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":466}}],"doc":{"summary":[{"kind":"text","text":"Function interface that represent interruptable Java methods."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Function interface that represent interruptable Java methods. Examples are "},{"kind":"link","target":{"id":"java.util.concurrent.locks.Lock#lockInterruptibly()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/locks/Lock.html#lockInterruptibly()"},"code":true,"children":[{"kind":"text","text":"Lock::lockInterruptibly"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.util.concurrent.Semaphore#acquire()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Semaphore.html#acquire()"},"code":true,"children":[{"kind":"text","text":"Semaphore::acquire"}]},{"kind":"text","text":". If used directly implies a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"boundary"}]},{"kind":"text","text":". Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$CompiledInterruptible"},"code":true,"children":[{"kind":"text","text":"CompiledInterruptible"}]},{"kind":"text","text":" if you need partial evaluation for this functional interface."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlocked(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"setBlocked(Node, Interrupter, Interruptible, Object, Runnable, Consumer)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":458}},{"id":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction","name":"TruffleSafepoint.InterruptibleFunction","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"typeParams":[{"name":"T"},{"name":"R"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleSafepoint.InterruptibleFunction"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}],"enclosing":"com.oracle.truffle.api.TruffleSafepoint","members":[{"id":"com.oracle.truffle.api.TruffleSafepoint$InterruptibleFunction#apply(T)","anchor":"apply(T)","kind":"method","name":"apply","signature":[{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"name","text":"apply"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"arg"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"InterruptedException","ref":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"}],"params":[{"name":"arg","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"R"}]},"throws":[{"type":[{"kind":"type","text":"InterruptedException","ref":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Runs the interruptible method for a given object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Runs the interruptible method for a given object."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":507}}],"doc":{"summary":[{"kind":"text","text":"Function interface that represent interruptable Java methods."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Function interface that represent interruptable Java methods. Examples are "},{"kind":"link","target":{"id":"java.util.concurrent.locks.Lock#lockInterruptibly()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/locks/Lock.html#lockInterruptibly()"},"code":true,"children":[{"kind":"text","text":"Lock::lockInterruptibly"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.util.concurrent.Semaphore#acquire()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Semaphore.html#acquire()"},"code":true,"children":[{"kind":"text","text":"Semaphore::acquire"}]},{"kind":"text","text":". If used directly implies a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"boundary"}]},{"kind":"text","text":". Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$CompiledInterruptibleFunction"},"code":true,"children":[{"kind":"text","text":"CompiledInterruptibleFunction"}]},{"kind":"text","text":" if you need partial evaluation for this functional interface."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlockedFunction(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.InterruptibleFunction,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint.setBlockedFunction(Node, Interrupter, InterruptibleFunction, Object,\n     Runnable, Consumer)"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleSafepoint.java","line":499}},{"id":"com.oracle.truffle.api.TruffleStackTrace","name":"TruffleStackTrace","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStackTrace"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"superclass":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"ancestors":[{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.TruffleStackTrace#fillInStackTrace()","anchor":"fillInStackTrace()","kind":"method","name":"fillInStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"fillInStackTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},"overrides":{"id":"java.lang.Throwable#fillInStackTrace()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleStackTrace.java","line":127}},{"id":"com.oracle.truffle.api.TruffleStackTrace#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleStackTrace.java","line":151}},{"id":"com.oracle.truffle.api.TruffleStackTrace#getStackTrace(java.lang.Throwable)","anchor":"getStackTrace(java.lang.Throwable)","kind":"method","name":"getStackTrace","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":"> "},{"kind":"name","text":"getStackTrace"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"throwable"},{"kind":"punct","text":")"}],"params":[{"name":"throwable","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":" instance to look for guest language frames"}]}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":">"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":" is "},{"kind":"code","text":"null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the guest language frames that are stored in this throwable or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no guest language frames can ever be stored in this throwable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the guest language frames that are stored in this throwable or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no guest language frames can ever be stored in this throwable. This method fills in the stacktrace by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#fillIn(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"fillIn(Throwable)"}]},{"kind":"text","text":", so it is not necessary to call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#fillIn(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"fillIn(Throwable)"}]},{"kind":"text","text":" before. The returned list is not modifiable. The number of stack trace elements that are filled in can be customized by the "},{"kind":"code","text":"stackTraceElementLimit"},{"kind":"text","text":" parameter of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#<init>(java.lang.String,java.lang.Throwable,int,com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException constructor"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleStackTrace.java","line":170}},{"id":"com.oracle.truffle.api.TruffleStackTrace#getAsynchronousStackTrace(com.oracle.truffle.api.CallTarget,com.oracle.truffle.api.frame.Frame)","anchor":"getAsynchronousStackTrace(com.oracle.truffle.api.CallTarget,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"getAsynchronousStackTrace","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":"> "},{"kind":"name","text":"getAsynchronousStackTrace"},{"kind":"punct","text":"("},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a list of asynchronous frames, or "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns asynchronous guest language stack frames that led to the execution of given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" on the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns asynchronous guest language stack frames that led to the execution of given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" on the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":". Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if no asynchronous stack is known. Call this with a context entered only."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Languages might not provide asynchronous stack frames by default for performance reasons. Instruments might need to instruct languages to provide the asynchronous stacks."}]}]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/TruffleStackTrace.java","line":190}},{"id":"com.oracle.truffle.api.TruffleStackTrace#fillIn(java.lang.Throwable)","anchor":"fillIn(java.lang.Throwable)","kind":"method","name":"fillIn","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStackTrace","ref":"com.oracle.truffle.api.TruffleStackTrace"},{"kind":"punct","text":" "},{"kind":"name","text":"fillIn"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"throwable"},{"kind":"punct","text":")"}],"params":[{"name":"throwable","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":" to fill"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleStackTrace","ref":"com.oracle.truffle.api.TruffleStackTrace"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":" is null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Fills in the guest language stack frames from the current frames on the stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Fills in the guest language stack frames from the current frames on the stack. If the stack was already filled before then this method has no effect. The number stack trace elements that are filled in can be customized by the "},{"kind":"code","text":"stackTraceElementLimit"},{"kind":"text","text":" parameter of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#<init>(java.lang.String,java.lang.Throwable,int,com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException constructor"}]},{"kind":"text","text":". The implementation attaches a lightweight exception object as a suppressed exception to internal and host (but not guest) exceptions."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleStackTrace.java","line":222}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a guest language stack trace."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a guest language stack trace. A TruffleStackTrace is automatically added when a "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":" passes through a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"call target"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ControlFlowException"},"code":true,"children":[{"kind":"text","text":"ControlFlowException"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"org.graalvm.polyglot.PolyglotException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html"},"code":true,"children":[{"kind":"text","text":"PolyglotException"}]},{"kind":"text","text":" do not get a TruffleStackTrace. An internal or host "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":" is added a TruffleStackTrace, as long as suppression is not disabled for this throwable, via a Throwable added to the list of "},{"kind":"link","target":{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},"children":[{"kind":"text","text":"suppressed exceptions"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A guest language stack trace element is automatically added by the Truffle runtime every time the "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":" passes through a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"call target"}]},{"kind":"text","text":". This is incremental and therefore efficient if the exception is later caught in the same compilation unit."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that if the Throwable is caught, its stack trace should be filled eagerly with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#fillIn(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"fillIn(Throwable)"}]},{"kind":"text","text":", unless it can be guaranteed to be re-thrown in the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"call target"}]},{"kind":"text","text":", or that the stack trace will not be used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#getStackTrace(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"getStackTrace(Throwable)"}]},{"kind":"text","text":" to retrieve the guest language stack trace from a "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/TruffleStackTrace.java","line":83}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement","name":"TruffleStackTraceElement","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStackTraceElement"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.TruffleStackTraceElement#create(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.RootCallTarget,com.oracle.truffle.api.frame.Frame)","anchor":"create(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.RootCallTarget,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getLocation()"},"code":true,"children":[{"kind":"text","text":"getLocation()"}]}]}]},{"name":"target","type":[{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getTarget()"},"code":true,"children":[{"kind":"text","text":"getTarget()"}]}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getFrame()"},"code":true,"children":[{"kind":"text","text":"getFrame()"}]}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}]},"doc":{"summary":[{"kind":"text","text":"Create a new stack trace element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new stack trace element."}]}]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":77}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement#create(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.RootCallTarget,com.oracle.truffle.api.frame.Frame,int)","anchor":"create(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.RootCallTarget,com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getLocation()"},"code":true,"children":[{"kind":"text","text":"getLocation()"}]}]}]},{"name":"target","type":[{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getTarget()"},"code":true,"children":[{"kind":"text","text":"getTarget()"}]}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getFrame()"},"code":true,"children":[{"kind":"text","text":"getFrame()"}]}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"getBytecodeIndex()"}]}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}]},"doc":{"summary":[{"kind":"text","text":"Create a new stack trace element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new stack trace element."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":91}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getLocation()","anchor":"getLocation()","kind":"method","name":"getLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Returns a node representing the callsite on the stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a node representing the callsite on the stack."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if no detailed callsite information is available. This is the case when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(Object...)"}]},{"kind":"text","text":" is used or for the top-of-the-stack element or if the exception is an internal exception or the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getLocation()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException.getLocation()"}]},{"kind":"text","text":" returned "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallNode()"},"code":true,"children":[{"kind":"text","text":"FrameInstance.getCallNode()"}]},{"kind":"text","text":" for the relation between callsite and CallTarget."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":109}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getInstrumentableLocation()","anchor":"getInstrumentableLocation()","kind":"method","name":"getInstrumentableLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstrumentableLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Returns an instrumentable call node from a frame instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an instrumentable call node from a frame instance. This method should be preferred over "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getLocation()"},"code":true,"children":[{"kind":"text","text":"getLocation()"}]},{"kind":"text","text":" by tools to find the instrumentable node associated with this stack trace element."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In case of bytecode interpreters the instrumentable node needs to be resolved by the language and is not directly accessible from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" chain of the regular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getLocation()"},"code":true,"children":[{"kind":"text","text":"location"}]},{"kind":"text","text":". Just like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getLocation()"},"code":true,"children":[{"kind":"text","text":"getLocation()"}]},{"kind":"text","text":" this method may not directly return an instrumentable node. To find the eventual instrumentable node the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" chain must be searched. There is no guarantee that an instrumentable node can be found, e.g. if the language does not support instrumentation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findInstrumentableCallNode(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"RootNode.findInstrumentableCallNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getInstrumentableCallNode()"},"code":true,"children":[{"kind":"text","text":"FrameInstance.getInstrumentableCallNode()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findInstrumentableParent(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.InstrumentableNode.findInstrumentableParent(Node)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":130}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getTarget()","anchor":"getTarget()","kind":"method","name":"getTarget","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"getTarget"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"}]},"doc":{"summary":[{"kind":"text","text":"Returns the call target on the stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the call target on the stack. Never returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallNode()"},"code":true,"children":[{"kind":"text","text":"FrameInstance.getCallNode()"}]},{"kind":"text","text":" for the relation between callsite and CallTarget."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":141}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getFrame()","anchor":"getFrame()","kind":"method","name":"getFrame","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrame"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},"doc":{"summary":[{"kind":"text","text":"Returns the read-only frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the read-only frame. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the initial "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" that filled in the stack trace did not request frames to be captured by overriding "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"RootNode.isCaptureFramesForTrace(Node)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Bytecode DSL note: This method should "},{"kind":"strong","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" be used with Bytecode DSL interpreters. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#captureFramesForTrace()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.bytecode.GenerateBytecode.captureFramesForTrace"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.bytecode.BytecodeFrame"}]},{"kind":"text","text":" for more information."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":157}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement#hasBytecodeIndex()","anchor":"hasBytecodeIndex()","kind":"method","name":"hasBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the stack trace element contains a valid bytecode index, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the stack trace element contains a valid bytecode index, else "},{"kind":"code","text":"false"},{"kind":"text","text":". If this method returns "},{"kind":"code","text":"false"},{"kind":"text","text":" then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"getBytecodeIndex()"}]},{"kind":"text","text":" will return a negative "},{"kind":"code","text":"int"},{"kind":"text","text":" value."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":168}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getBytecodeIndex()","anchor":"getBytecodeIndex()","kind":"method","name":"getBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index at the time when this frame was created."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index at the time when this frame was created. If no bytecode index was captured then a negative "},{"kind":"code","text":"int"},{"kind":"text","text":" value is returned. When the stack trace element is captured "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"RootNode.findBytecodeIndex"}]},{"kind":"text","text":" is invoked to resolve the byte code index returned by this method."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"RootNode.findBytecodeIndex"}]}]]},"since":"24.1","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":181}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getGuestObject()","anchor":"getGuestObject()","kind":"method","name":"getGuestObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getGuestObject"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns an interop object representing this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":" supporting the "},{"kind":"code","text":"hasExecutableName"},{"kind":"text","text":" and potentially "},{"kind":"code","text":"hasDeclaringMetaObject"},{"kind":"text","text":" and "},{"kind":"code","text":"hasSourceLocation"},{"kind":"text","text":" messages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an interop object representing this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":" supporting the "},{"kind":"code","text":"hasExecutableName"},{"kind":"text","text":" and potentially "},{"kind":"code","text":"hasDeclaringMetaObject"},{"kind":"text","text":" and "},{"kind":"code","text":"hasSourceLocation"},{"kind":"text","text":" messages."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must only be called on an interpreter thread with a valid "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#isEntered()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":". The current entered context can be accessed through the language or instrument environment."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":197}},{"id":"com.oracle.truffle.api.TruffleStackTraceElement#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"24.0","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":209}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a guest stack trace element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a guest stack trace element."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/TruffleStackTraceElement.java","line":55}},{"id":"com.oracle.truffle.api.TruffleThreadBuilder","name":"TruffleThreadBuilder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleThreadBuilder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.TruffleThreadBuilder#context(com.oracle.truffle.api.TruffleContext)","anchor":"context(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"context","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"context"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"innerContext"},{"kind":"punct","text":")"}],"params":[{"name":"innerContext","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" for the threads created by this builder."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" for the threads created by the builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" for the threads created by the builder. It has to be an inner context created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newInnerContextBuilder(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Env.newInnerContextBuilder(String...)"}]},{"kind":"text","text":"."},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext$Builder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":". If not specified, the context associated with the language environment that created this builder is used ("},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getContext()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Env.getContext()"}]},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Threads without an associated context should be created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createSystemThread(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Env.createSystemThread(Runnable)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleThreadBuilder.java","line":94}},{"id":"com.oracle.truffle.api.TruffleThreadBuilder#threadGroup(java.lang.ThreadGroup)","anchor":"threadGroup(java.lang.ThreadGroup)","kind":"method","name":"threadGroup","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"threadGroup"},{"kind":"punct","text":"("},{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"g"},{"kind":"punct","text":")"}],"params":[{"name":"g","type":[{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"thread group for the threads created by this builder."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies thread group for the threads created by this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies thread group for the threads created by this builder."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleThreadBuilder.java","line":106}},{"id":"com.oracle.truffle.api.TruffleThreadBuilder#stackSize(long)","anchor":"stackSize(long)","kind":"method","name":"stackSize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"stackSize"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"size"},{"kind":"punct","text":")"}],"params":[{"name":"size","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"stack size for the threads created by this builder."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies stack size for the threads created by this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies stack size for the threads created by this builder. The default is 0 which means that the parameter is ignored."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleThreadBuilder.java","line":119}},{"id":"com.oracle.truffle.api.TruffleThreadBuilder#beforeEnter(java.lang.Runnable)","anchor":"beforeEnter(java.lang.Runnable)","kind":"method","name":"beforeEnter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"beforeEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"r"},{"kind":"punct","text":")"}],"params":[{"name":"r","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"before enter notification runnable for the threads created by this builder."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies before enter notification for the threads created by this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies before enter notification for the threads created by this builder. The notification runnable is invoked on the thread when the threads starts before the context is entered on the thread."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The default value for the notification runnable is "},{"kind":"code","text":"null"},{"kind":"text","text":" which means that no notification is executed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the notification runnable throws an exception, it is propagated up and can be handled by an "},{"kind":"link","target":{"id":"java.lang.Thread#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)"},"code":true,"children":[{"kind":"text","text":"uncaught exception handler"}]}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleThreadBuilder.java","line":140}},{"id":"com.oracle.truffle.api.TruffleThreadBuilder#afterLeave(java.lang.Runnable)","anchor":"afterLeave(java.lang.Runnable)","kind":"method","name":"afterLeave","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"afterLeave"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"r"},{"kind":"punct","text":")"}],"params":[{"name":"r","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"after leave notification runnable for the threads created by this builder."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies after leave notification for the threads created by this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies after leave notification for the threads created by this builder. The notification runnable is invoked on the thread after the thread leaves the context for the last time, i.e. the thread is about to finish."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The default value for the notification runnable is "},{"kind":"code","text":"null"},{"kind":"text","text":" which means that no notification is executed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the notification runnable throws an exception, it is propagated up and can be handled by an "},{"kind":"link","target":{"id":"java.lang.Thread#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)"},"code":true,"children":[{"kind":"text","text":"uncaught exception handler"}]}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleThreadBuilder.java","line":161}},{"id":"com.oracle.truffle.api.TruffleThreadBuilder#virtual(boolean)","anchor":"virtual(boolean)","kind":"method","name":"virtual","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"virtual"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"v"},{"kind":"punct","text":")"}],"params":[{"name":"v","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to create a virtual thread."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleThreadBuilder","ref":"com.oracle.truffle.api.TruffleThreadBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies whether to create a virtual thread (Thread#ofVirtual()) or a regular platform thread (the default) for the threads created by this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies whether to create a virtual thread (Thread#ofVirtual()) or a regular platform thread (the default) for the threads created by this builder."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/TruffleThreadBuilder.java","line":174}},{"id":"com.oracle.truffle.api.TruffleThreadBuilder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new thread based on the parameters specified by this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread based on the parameters specified by this builder. The thread is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#initializeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"initialized"}]},{"kind":"text","text":" when it is "},{"kind":"link","target":{"id":"java.lang.Thread#start()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#start()"},"code":true,"children":[{"kind":"text","text":"started"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"finalized"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#disposeThread(C,java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":" when it finishes its execution."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended to set an "},{"kind":"link","target":{"id":"java.lang.Thread#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)"},"code":true,"children":[{"kind":"text","text":"uncaught exception handler"}]},{"kind":"text","text":" for the created thread. For example the thread can throw an uncaught exception if one of the initialized language contexts don't support execution on this thread."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The language that created and started the thread is responsible to stop and join it during the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#finalizeContext(C)"},"code":true,"children":[{"kind":"text","text":"finalizeContext"}]},{"kind":"text","text":", otherwise an internal error is thrown. It's not safe to use the "},{"kind":"link","target":{"id":"java.util.concurrent.ExecutorService#awaitTermination(long,java.util.concurrent.TimeUnit)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/ExecutorService.html#awaitTermination(long,java.util.concurrent.TimeUnit)"},"code":true,"children":[{"kind":"text","text":"ExecutorService.awaitTermination(long, java.util.concurrent.TimeUnit)"}]},{"kind":"text","text":" to detect Thread termination as the polyglot thread may be cancelled before executing the executor worker. "},{"kind":"break"},{"kind":"text","text":" A typical implementation looks like: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguageSnippets$AsyncThreadLanguage#finalizeContext(com.oracle.truffle.api.TruffleLanguageSnippets.Context)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguageSnippets.AsyncThreadLanguage.finalizeContext"}]}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/TruffleThreadBuilder.java","line":202}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A builder for threads that have access to the appropriate "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A builder for threads that have access to the appropriate "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":". The context is either the one that corresponds to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env"},"code":true,"children":[{"kind":"text","text":"language environment"}]},{"kind":"text","text":" that was used to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"create"}]},{"kind":"text","text":" the builder, or the one specified by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleThreadBuilder#context(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"TruffleThreadBuilder.context(TruffleContext)"}]},{"kind":"text","text":". The method "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#newTruffleThreadBuilder(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Env.newTruffleThreadBuilder(Runnable)"}]},{"kind":"text","text":" is the only way to create the builder."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Threads without an associated context should be created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#createSystemThread(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.Env.createSystemThread(Runnable)"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/TruffleThreadBuilder.java","line":63}}]},{"id":"com.oracle.truffle.api.bytecode","name":"com.oracle.truffle.api.bytecode","doc":{"summary":[{"kind":"text","text":"The Bytecode DSL is a DSL and runtime support component of Truffle that makes it easier to implement bytecode interpreters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The Bytecode DSL is a DSL and runtime support component of Truffle that makes it easier to implement bytecode interpreters. Start "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode"},"code":true,"children":[{"kind":"text","text":"here"}]},{"kind":"text","text":"."}]}]},"since":"24.2","types":[{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder","name":"BytecodeBuilder","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeBuilder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"BytecodeBuilder","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeBuilder.java","line":66}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Parent class for a bytecode builder generated by the Bytecode DSL."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Parent class for a bytecode builder generated by the Bytecode DSL. A parser uses a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":" instance to generate and validate bytecode for each root node. Since each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" defines its own set of operations, each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":" has its own set of builder methods. Thus, this class is an opaque definition with no declared methods. Parser code should reference the builder class directly (e.g., "},{"kind":"code","text":"MyBytecodeRootNodeGen.Builder"},{"kind":"text","text":")."}]}],"see":[[{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/bytecode_dsl/UserGuide.md","children":[{"kind":"text","text":"Bytecode DSL user guide"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeBuilder.java","line":58}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig","name":"BytecodeConfig","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeConfig"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#DEFAULT","anchor":"DEFAULT","kind":"field","name":"DEFAULT","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"name","text":"DEFAULT"}],"type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":{"summary":[{"kind":"text","text":"Do not materialize any source or instrumentation information."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Do not materialize any source or instrumentation information."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":73}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#WITH_SOURCE","anchor":"WITH_SOURCE","kind":"field","name":"WITH_SOURCE","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"name","text":"WITH_SOURCE"}],"type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":{"summary":[{"kind":"text","text":"Materialize source information."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Materialize source information."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":80}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#WITH_SOURCE_CONTENT","anchor":"WITH_SOURCE_CONTENT","kind":"field","name":"WITH_SOURCE_CONTENT","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"name","text":"WITH_SOURCE_CONTENT"}],"type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":{"summary":[{"kind":"text","text":"Materialize source information and load content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Materialize source information and load content."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the interpreter does not declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#sourceContentSupplier()"},"code":true,"children":[{"kind":"text","text":"source content supplier"}]},{"kind":"text","text":", this config is equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#WITH_SOURCE"},"code":true,"children":[{"kind":"text","text":"WITH_SOURCE"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":90}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#COMPLETE","anchor":"COMPLETE","kind":"field","name":"COMPLETE","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"name","text":"COMPLETE"}],"type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":{"summary":[{"kind":"text","text":"Materialize all information."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Materialize all information."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":97}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#newBuilder(com.oracle.truffle.api.bytecode.BytecodeConfigEncoder)","anchor":"newBuilder(com.oracle.truffle.api.bytecode.BytecodeConfigEncoder)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeConfigEncoder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder"},{"kind":"punct","text":" "},{"kind":"param","text":"encoder"},{"kind":"punct","text":")"}],"params":[{"name":"encoder","type":[{"kind":"type","text":"BytecodeConfigEncoder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Produces a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":" that can be used to programmatically build a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Produces a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":" that can be used to programmatically build a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note this method is not intended to be used directly. Use the generated method, for example "},{"kind":"code","text":"MyBytecodeRootNodeGen.newConfigBuilder()"},{"kind":"text","text":" instead."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":116}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#matches(com.oracle.truffle.api.bytecode.BytecodeConfig)","anchor":"matches(com.oracle.truffle.api.bytecode.BytecodeConfig)","kind":"method","name":"matches","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"matches"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns whether this configuration matches "},{"kind":"code","text":"other"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether this configuration matches "},{"kind":"code","text":"other"},{"kind":"text","text":". This method allows configs built for a particular interpreter to be compared with the generic singleton configurations declared in this class. For example, {MyRootNodeGen.newConfigBuilder().addSource().build()} matches the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#WITH_SOURCE"},"code":true,"children":[{"kind":"text","text":"WITH_SOURCE"}]},{"kind":"text","text":" singleton. Configurations built by different interpreters never match, even if they logically describe the same metadata."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use this method instead of "},{"kind":"link","target":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"equals(Object)"}]},{"kind":"text","text":" to compare configurations. Matching is symmetric but not transitive: a generic configuration can match configurations from two different interpreters that do not match each other."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":133}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"The configuration to use while generating bytecode."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The configuration to use while generating bytecode. The configuration determines what optional information (source sections, instrumentation instructions, etc.) should be materialized during parsing. The interpreter memory footprint can be improved by omitting this information by default and lazily re-parsing it when it is needed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instances of this class should be stored as static final constants. It is important for them to be constant so partial evaluation can detect when reparsing is unnecessary."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#matches(com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"matches(BytecodeConfig)"}]},{"kind":"text","text":" to compare configurations. Do not use "},{"kind":"link","target":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"equals(Object)"}]},{"kind":"text","text":", which compares object identity."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":63}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder","name":"BytecodeConfig.Builder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeConfig.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.BytecodeConfig","members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder#addSource()","anchor":"addSource()","kind":"method","name":"addSource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"addSource"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets whether to materialize sources."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets whether to materialize sources."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":164}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder#addSourceContent()","anchor":"addSourceContent()","kind":"method","name":"addSourceContent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"addSourceContent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets whether to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder#addSource()"},"code":true,"children":[{"kind":"text","text":"materialize sources"}]},{"kind":"text","text":" and their content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets whether to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder#addSource()"},"code":true,"children":[{"kind":"text","text":"materialize sources"}]},{"kind":"text","text":" and their content."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method has no effect unless a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#sourceContentSupplier()"},"code":true,"children":[{"kind":"text","text":"source content supplier"}]},{"kind":"text","text":" is provided."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":178}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder#addTag(java.lang.Class)","anchor":"addTag(java.lang.Class)","kind":"method","name":"addTag","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"addTag"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":"> "},{"kind":"param","text":"tag"},{"kind":"punct","text":")"}],"params":[{"name":"tag","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets a specific set of tags to be materialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a specific set of tags to be materialized."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":189}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder#addInstrumentation(java.lang.Class)","anchor":"addInstrumentation(java.lang.Class)","kind":"method","name":"addInstrumentation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"addInstrumentation"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"instrumentation"},{"kind":"punct","text":")"}],"params":[{"name":"instrumentation","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets a specific set of instrumentations to be materialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a specific set of instrumentations to be materialized."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":203}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}]},"doc":{"summary":[{"kind":"text","text":"Builds the config."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds the config."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":232}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder to generate a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":" programmatically."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder to generate a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":" programmatically."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfig.java","line":150}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder","name":"BytecodeConfigEncoder","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeConfigEncoder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"BytecodeConfigEncoder","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeConfigEncoder"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfigEncoder.java","line":51}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder#encodeInstrumentation(java.lang.Class)","anchor":"encodeInstrumentation(java.lang.Class)","kind":"method","name":"encodeInstrumentation","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"encodeInstrumentation"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"instrumentations"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"instrumentations","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true}],"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfigEncoder.java","line":55}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder#encodeTag(java.lang.Class)","anchor":"encodeTag(java.lang.Class)","kind":"method","name":"encodeTag","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"encodeTag"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"tag"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"tag","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true}],"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfigEncoder.java","line":57}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder#getEncoding(com.oracle.truffle.api.bytecode.BytecodeConfig)","anchor":"getEncoding(com.oracle.truffle.api.bytecode.BytecodeConfig)","kind":"method","name":"getEncoding","modifiers":["protected","static"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getEncoding"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":")"}],"params":[{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfigEncoder.java","line":59}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder#getEncoder(com.oracle.truffle.api.bytecode.BytecodeConfig)","anchor":"getEncoder(com.oracle.truffle.api.bytecode.BytecodeConfig)","kind":"method","name":"getEncoder","modifiers":["protected","static"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfigEncoder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder"},{"kind":"punct","text":" "},{"kind":"name","text":"getEncoder"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":")"}],"params":[{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeConfigEncoder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder"}]},"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfigEncoder.java","line":63}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder#normalizeEncoding(long)","anchor":"normalizeEncoding(long)","kind":"method","name":"normalizeEncoding","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"normalizeEncoding"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"encoding","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"Normalizes configuration bits for this interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Normalizes configuration bits for this interpreter. The default implementation leaves the encoding unchanged."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfigEncoder.java","line":73}},{"id":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder#decode(com.oracle.truffle.api.bytecode.BytecodeConfigEncoder,long)","anchor":"decode(com.oracle.truffle.api.bytecode.BytecodeConfigEncoder,long)","kind":"method","name":"decode","modifiers":["protected","static"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"name","text":"decode"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeConfigEncoder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder"},{"kind":"punct","text":" "},{"kind":"param","text":"encoder"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"encoder","type":[{"kind":"type","text":"BytecodeConfigEncoder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder"}]},{"name":"encoding","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}]},"doc":{"summary":[{"kind":"text","text":"Decodes a configuration from its encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Decodes a configuration from its encoding."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfigEncoder.java","line":82}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Abstract class implemented by generated code to encode "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":" data."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Abstract class implemented by generated code to encode "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":" data. Do not use directly."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeConfigEncoder.java","line":49}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess","name":"BytecodeDSLAccess","kind":"class","language":"java","modifiers":["public","abstract","sealed"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"sealed"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeDSLAccess"},{"kind":"punct","text":" "},{"kind":"keyword","text":"permits"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeDSLCheckedAccess","ref":"com.oracle.truffle.api.bytecode.BytecodeDSLCheckedAccess"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeDSLUncheckedAccess","ref":"com.oracle.truffle.api.bytecode.BytecodeDSLUncheckedAccess"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"permits":[{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLCheckedAccess"},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLUncheckedAccess"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#lookup(java.lang.Object,boolean)","anchor":"lookup(java.lang.Object,boolean)","kind":"method","name":"lookup","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeDSLAccess","ref":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess"},{"kind":"punct","text":" "},{"kind":"name","text":"lookup"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowUnsafe"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"allowUnsafe","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeDSLAccess","ref":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess"}]},"doc":{"summary":[{"kind":"text","text":"Obtains an accessor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Obtains an accessor. Used by generated code; do not use directly."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":64}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getByteArraySupport()","anchor":"getByteArraySupport()","kind":"method","name":"getByteArraySupport","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"ByteArraySupport","ref":"com.oracle.truffle.api.memory.ByteArraySupport"},{"kind":"punct","text":" "},{"kind":"name","text":"getByteArraySupport"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ByteArraySupport","ref":"com.oracle.truffle.api.memory.ByteArraySupport"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport"},"code":true,"children":[{"kind":"text","text":"ByteArraySupport"}]},{"kind":"text","text":" to use for byte array accesses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport"},"code":true,"children":[{"kind":"text","text":"ByteArraySupport"}]},{"kind":"text","text":" to use for byte array accesses."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":97}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getFrameExtensions()","anchor":"getFrameExtensions()","kind":"method","name":"getFrameExtensions","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameExtensions","ref":"com.oracle.truffle.api.frame.FrameExtensions"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrameExtensions"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameExtensions","ref":"com.oracle.truffle.api.frame.FrameExtensions"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameExtensions"},"code":true,"children":[{"kind":"text","text":"FrameExtensions"}]},{"kind":"text","text":" to use for frame accesses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameExtensions"},"code":true,"children":[{"kind":"text","text":"FrameExtensions"}]},{"kind":"text","text":" to use for frame accesses."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":104}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#readInt(int[],int)","anchor":"readInt(int[],int)","kind":"method","name":"readInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"readInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arr"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"arr","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Reads from an int array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads from an int array."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":111}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#writeInt(int[],int,int)","anchor":"writeInt(int[],int,int)","kind":"method","name":"writeInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arr"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"arr","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Writes to an int array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes to an int array."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":118}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#readObject(T[],int)","anchor":"readObject(T[],int)","kind":"method","name":"readObject","modifiers":["public","abstract"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"readObject"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arr"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"arr","type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Reads from an Object array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads from an Object array."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":125}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#writeObject(T[],int,T)","anchor":"writeObject(T[],int,T)","kind":"method","name":"writeObject","modifiers":["public","abstract"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeObject"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arr"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"arr","type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"typeParam","text":"T"}]}],"doc":{"summary":[{"kind":"text","text":"Writes to an Object array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes to an Object array."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":132}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#uncheckedCast(java.lang.Object,java.lang.Class)","anchor":"uncheckedCast(java.lang.Object,java.lang.Class)","kind":"method","name":"uncheckedCast","modifiers":["public","abstract"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"uncheckedCast"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"arr"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"arr","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Casts a value to the given class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Casts a value to the given class. Also assumes non-null. If used in the form uncheckedCast(this.field, ...) and the field is a final field, then the field will get transformed into an immutable field read."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":141}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getSerializationKey(java.lang.Object)","anchor":"getSerializationKey(java.lang.Object)","kind":"method","name":"getSerializationKey","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSerializationKey"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a key for deduplicating serialized constants."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a key for deduplicating serialized constants. "},{"kind":"link","target":{"id":"java.lang.Float","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html"},"code":true,"children":[{"kind":"text","text":"Float"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Double","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html"},"code":true,"children":[{"kind":"text","text":"Double"}]},{"kind":"text","text":" "},{"kind":"code","text":"NaN"},{"kind":"text","text":" values are replaced with wrappers that preserve NaN bit patterns."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":149}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getLocalOffset(com.oracle.truffle.api.bytecode.LocalAccessor)","anchor":"getLocalOffset(com.oracle.truffle.api.bytecode.LocalAccessor)","kind":"method","name":"getLocalOffset","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalOffset"},{"kind":"punct","text":"("},{"kind":"type","text":"LocalAccessor","ref":"com.oracle.truffle.api.bytecode.LocalAccessor"},{"kind":"punct","text":" "},{"kind":"param","text":"accessor"},{"kind":"punct","text":")"}],"params":[{"name":"accessor","type":[{"kind":"type","text":"LocalAccessor","ref":"com.oracle.truffle.api.bytecode.LocalAccessor"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the local offset of a local accessor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the local offset of a local accessor."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":171}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getLocalIndex(com.oracle.truffle.api.bytecode.LocalAccessor)","anchor":"getLocalIndex(com.oracle.truffle.api.bytecode.LocalAccessor)","kind":"method","name":"getLocalIndex","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"LocalAccessor","ref":"com.oracle.truffle.api.bytecode.LocalAccessor"},{"kind":"punct","text":" "},{"kind":"param","text":"accessor"},{"kind":"punct","text":")"}],"params":[{"name":"accessor","type":[{"kind":"type","text":"LocalAccessor","ref":"com.oracle.truffle.api.bytecode.LocalAccessor"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the local index of a local accessor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the local index of a local accessor."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":181}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getStartOffset(com.oracle.truffle.api.bytecode.LocalRangeAccessor)","anchor":"getStartOffset(com.oracle.truffle.api.bytecode.LocalRangeAccessor)","kind":"method","name":"getStartOffset","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getStartOffset"},{"kind":"punct","text":"("},{"kind":"type","text":"LocalRangeAccessor","ref":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},{"kind":"punct","text":" "},{"kind":"param","text":"accessor"},{"kind":"punct","text":")"}],"params":[{"name":"accessor","type":[{"kind":"type","text":"LocalRangeAccessor","ref":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the starting local offset of a local range accessor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the starting local offset of a local range accessor."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":191}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getStartIndex(com.oracle.truffle.api.bytecode.LocalRangeAccessor)","anchor":"getStartIndex(com.oracle.truffle.api.bytecode.LocalRangeAccessor)","kind":"method","name":"getStartIndex","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getStartIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"LocalRangeAccessor","ref":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},{"kind":"punct","text":" "},{"kind":"param","text":"accessor"},{"kind":"punct","text":")"}],"params":[{"name":"accessor","type":[{"kind":"type","text":"LocalRangeAccessor","ref":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the starting local index of a local range accessor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the starting local index of a local range accessor."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":201}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getRootIndex(com.oracle.truffle.api.bytecode.MaterializedLocalAccessor)","anchor":"getRootIndex(com.oracle.truffle.api.bytecode.MaterializedLocalAccessor)","kind":"method","name":"getRootIndex","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getRootIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},{"kind":"punct","text":" "},{"kind":"param","text":"accessor"},{"kind":"punct","text":")"}],"params":[{"name":"accessor","type":[{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the index of the root declaring the local of a materialized local accessor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the root declaring the local of a materialized local accessor."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":211}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getLocalOffset(com.oracle.truffle.api.bytecode.MaterializedLocalAccessor)","anchor":"getLocalOffset(com.oracle.truffle.api.bytecode.MaterializedLocalAccessor)","kind":"method","name":"getLocalOffset","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalOffset"},{"kind":"punct","text":"("},{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},{"kind":"punct","text":" "},{"kind":"param","text":"accessor"},{"kind":"punct","text":")"}],"params":[{"name":"accessor","type":[{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the local offset of a materialized local accessor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the local offset of a materialized local accessor."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":221}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getLocalIndex(com.oracle.truffle.api.bytecode.MaterializedLocalAccessor)","anchor":"getLocalIndex(com.oracle.truffle.api.bytecode.MaterializedLocalAccessor)","kind":"method","name":"getLocalIndex","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},{"kind":"punct","text":" "},{"kind":"param","text":"accessor"},{"kind":"punct","text":")"}],"params":[{"name":"accessor","type":[{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the local index of a materialized local accessor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the local index of a materialized local accessor."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":231}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getLocalAccessorConstant(int,int)","anchor":"getLocalAccessorConstant(int,int)","kind":"method","name":"getLocalAccessorConstant","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"LocalAccessor","ref":"com.oracle.truffle.api.bytecode.LocalAccessor"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalAccessorConstant"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"offset","type":[{"kind":"keyword","text":"int"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"LocalAccessor","ref":"com.oracle.truffle.api.bytecode.LocalAccessor"}]},"doc":{"summary":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":" from its local offset and index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":" from its local offset and index."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":241}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getLocalRangeAccessorConstant(int,int,int)","anchor":"getLocalRangeAccessorConstant(int,int,int)","kind":"method","name":"getLocalRangeAccessorConstant","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"LocalRangeAccessor","ref":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalRangeAccessorConstant"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"startOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"startIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"LocalRangeAccessor","ref":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"}]},"doc":{"summary":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},"code":true,"children":[{"kind":"text","text":"LocalRangeAccessor"}]},{"kind":"text","text":" from its starting local offset, index, and length."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},"code":true,"children":[{"kind":"text","text":"LocalRangeAccessor"}]},{"kind":"text","text":" from its starting local offset, index, and length."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":251}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDSLAccess#getMaterializedLocalAccessorConstant(int,int,int)","anchor":"getMaterializedLocalAccessorConstant(int,int,int)","kind":"method","name":"getMaterializedLocalAccessorConstant","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},{"kind":"punct","text":" "},{"kind":"name","text":"getMaterializedLocalAccessorConstant"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"rootIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"rootIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"}]},"doc":{"summary":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},"code":true,"children":[{"kind":"text","text":"MaterializedLocalAccessor"}]},{"kind":"text","text":" from its root index, local offset, and local index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},"code":true,"children":[{"kind":"text","text":"MaterializedLocalAccessor"}]},{"kind":"text","text":" from its root index, local offset, and local index."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":262}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Accessor class used by generated code for low-level access to frames, bytecode arrays, and other bytecode classes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Accessor class used by generated code for low-level access to frames, bytecode arrays, and other bytecode classes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Do not use directly."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDSLAccess.java","line":54}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor","name":"BytecodeDescriptor","kind":"class","language":"java","modifiers":["public","abstract"],"typeParams":[{"name":"R","bounds":[[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],[{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"}]],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getSpecificationClass()"},"code":true,"children":[{"kind":"text","text":"specification class"}]},{"kind":"text","text":", which is both a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" and a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]}]}]},{"name":"L","bounds":[[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}]],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Truffle language type"}]}]},{"name":"B","bounds":[[{"kind":"type","text":"BytecodeBuilder","ref":"com.oracle.truffle.api.bytecode.BytecodeBuilder"}]],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder type used to emit bytecode for this interpreter"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeDescriptor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" & "},{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>, "},{"kind":"typeParam","text":"B"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeBuilder","ref":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"BytecodeDescriptor","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeDescriptor"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":157}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getSpecificationClass()","anchor":"getSpecificationClass()","kind":"method","name":"getSpecificationClass","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"name","text":"getSpecificationClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the specification class, never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the specification class for this descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the specification class for this descriptor. This is the user defined "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" subclass that was annotated to generate this bytecode interpreter."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":168}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getGeneratedClass()","anchor":"getGeneratedClass()","kind":"method","name":"getGeneratedClass","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"name","text":"getGeneratedClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the generated root node class, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the generated root node class that implements the bytecode interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the generated root node class that implements the bytecode interpreter. This is the concrete "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" subclass created by the bytecode generator."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":177}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getLanguageClass()","anchor":"getLanguageClass()","kind":"method","name":"getLanguageClass","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"L"},{"kind":"punct","text":"> "},{"kind":"name","text":"getLanguageClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"L"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" class that this descriptor is associated with, never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" class that this descriptor is associated with, never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#languageClass()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.languageClass()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":186}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getInstructionDescriptor(int)","anchor":"getInstructionDescriptor(int)","kind":"method","name":"getInstructionDescriptor","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstructionDescriptor"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"operationCode"},{"kind":"punct","text":")"}],"params":[{"name":"operationCode","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the numeric operation code of the instruction"}]}]}],"returns":{"type":[{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},"code":true,"children":[{"kind":"text","text":"InstructionDescriptor"}]},{"kind":"text","text":" for the given operation code, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the code is not defined by this interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},"code":true,"children":[{"kind":"text","text":"InstructionDescriptor"}]},{"kind":"text","text":" for the given operation code, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the code is not defined by this interpreter."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getOperationCode()"},"code":true,"children":[{"kind":"text","text":"InstructionDescriptor.getOperationCode()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getOperationCode()"},"code":true,"children":[{"kind":"text","text":"Instruction.getOperationCode()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":197}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getInstructionDescriptors()","anchor":"getInstructionDescriptors()","kind":"method","name":"getInstructionDescriptors","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},{"kind":"punct","text":"> "},{"kind":"name","text":"getInstructionDescriptors"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns an immutable list of all instruction descriptors known to this interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an immutable list of all instruction descriptors known to this interpreter. The list describes every instruction kind that can be executed by nodes generated from this interpreter."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":206}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#cast(com.oracle.truffle.api.nodes.RootNode)","anchor":"cast(com.oracle.truffle.api.nodes.RootNode)","kind":"method","name":"cast","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"name","text":"cast"},{"kind":"punct","text":"("},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"rootNode"},{"kind":"punct","text":")"}],"params":[{"name":"rootNode","type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a root node, must not be "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"R"}]},"doc":{"summary":[{"kind":"text","text":"Casts a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" to the specification root node type "},{"kind":"code","text":"R"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Casts a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" to the specification root node type "},{"kind":"code","text":"R"},{"kind":"text","text":". This also handles "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationRootNode"},"code":true,"children":[{"kind":"text","text":"ContinuationRootNode"}]},{"kind":"text","text":" if yield is enabled. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the given root is not compatible with this descriptor."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":216}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#cast(com.oracle.truffle.api.CallTarget)","anchor":"cast(com.oracle.truffle.api.CallTarget)","kind":"method","name":"cast","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"name","text":"cast"},{"kind":"punct","text":"("},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a call target, must not be "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"R"}]},"doc":{"summary":[{"kind":"text","text":"Casts a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" to the specification root node type "},{"kind":"code","text":"R"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Casts a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" to the specification root node type "},{"kind":"code","text":"R"},{"kind":"text","text":". Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the given root is not compatible with this descriptor."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":225}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#newConfigBuilder()","anchor":"newConfigBuilder()","kind":"method","name":"newConfigBuilder","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newConfigBuilder"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeConfig.Builder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new mutable configuration builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig.Builder"}]},{"kind":"text","text":" initialized with defaults that are valid for this descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig$Builder"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig.Builder"}]},{"kind":"text","text":" initialized with defaults that are valid for this descriptor."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":240}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#create(L,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.BytecodeParser)","anchor":"create(L,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.BytecodeParser)","kind":"method","name":"create","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"B"},{"kind":"punct","text":"> "},{"kind":"param","text":"parser"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"typeParam","text":"L"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language instance"}]}]},{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode configuration, for example whether to include source information"}]}]},{"name":"parser","type":[{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"B"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parser that drives the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the created bytecode root nodes"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates one or more bytecode root nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates one or more bytecode root nodes. This is the entrypoint for creating new "},{"kind":"code","text":"R"},{"kind":"text","text":" instances."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"parser"},{"kind":"text","text":" is invoked to emit builder calls on a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":" which is then materialized into executable bytecode. The returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":" contains the created root nodes, for example entry points and helper nodes."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":256}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serialize(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)","anchor":"serialize(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)","kind":"method","name":"serialize","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.7\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"serialize"},{"kind":"punct","text":"("},{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"B"},{"kind":"punct","text":"> "},{"kind":"param","text":"parser"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"buffer","type":[{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"}]},{"name":"callback","type":[{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"}]},{"name":"parser","type":[{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"B"},{"kind":"punct","text":">"}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Serializes builder bytecode for the nodes parsed by "},{"kind":"code","text":"parser"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Serializes builder bytecode for the nodes parsed by "},{"kind":"code","text":"parser"},{"kind":"text","text":"."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"serializeBuilderBytecode"}]},{"kind":"text","text":"."}]}],"since":"25.7"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":264}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)","anchor":"serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)","kind":"method","name":"serializeBuilderBytecode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"serializeBuilderBytecode"},{"kind":"punct","text":"("},{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"B"},{"kind":"punct","text":"> "},{"kind":"param","text":"parser"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"buffer","type":[{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the buffer to write the builder payload to."}]}]},{"name":"callback","type":[{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language-specific serializer for constants in the bytecode."}]}]},{"name":"parser","type":[{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"B"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parser."}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Serializes the bytecode nodes parsed by the "},{"kind":"code","text":"parser"},{"kind":"text","text":" as a sequence of builder calls."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Serializes the bytecode nodes parsed by the "},{"kind":"code","text":"parser"},{"kind":"text","text":" as a sequence of builder calls. All metadata (e.g., source information) is serialized, so the nodes can be deserialized with any configuration or reparsed later when more metadata is requested."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method does not validate the builder calls performed by "},{"kind":"code","text":"parser"},{"kind":"text","text":". Validation happens when the builder calls are replayed during deserialization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes.serializeBuilderBytecode"}]},{"kind":"text","text":", this method cannot serialize field values set outside the parser, since it does not have access to existing root node instances."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeExecutionBytecode(L,java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"serializeExecutionBytecode"}]}]]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":287}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeExecutionBytecode(L,java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)","anchor":"serializeExecutionBytecode(L,java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)","kind":"method","name":"serializeExecutionBytecode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"serializeExecutionBytecode"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"B"},{"kind":"punct","text":"> "},{"kind":"param","text":"parser"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"language","type":[{"kind":"typeParam","text":"L"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language instance used to construct the temporary representation."}]}]},{"name":"buffer","type":[{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the buffer to write the execution bytecode payload to."}]}]},{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the target configuration for execution bytecode."}]}]},{"name":"callback","type":[{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language-specific serializer for constants in the bytecode."}]}]},{"name":"parser","type":[{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"B"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parser."}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Serializes execution bytecode and its metadata for the requested "},{"kind":"code","text":"config"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Serializes execution bytecode and its metadata for the requested "},{"kind":"code","text":"config"},{"kind":"text","text":". This method invokes "},{"kind":"code","text":"parser"},{"kind":"text","text":" to construct a temporary representation with that configuration, validating its builder calls. The bytecodes are serialized in an unquickened form and do not preserve execution profiles."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The output contains only the execution bytecode payload. A corresponding builder payload must be produced separately using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"serializeBuilderBytecode"}]},{"kind":"text","text":" and supplied during deserialization to support reparsing."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Since execution bytecode skips builder validation during deserialization, it should only be used in trusted environments"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Each payload must be independently decodable. If constant object identity matters, its identity must be encoded consistently across both payloads, for example by sharing serializer state that assigns identity indices to constants."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serializeExecutionBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes.serializeExecutionBytecode"}]},{"kind":"text","text":", this method cannot serialize field values that are set outside the parser, since it does not have access to existing root node instances."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":321}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#deserialize(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)","anchor":"deserialize(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)","kind":"method","name":"deserialize","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.7\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"name","text":"deserialize"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":", "},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"builderBytecodeInput"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeDeserializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"language","type":[{"kind":"typeParam","text":"L"}]},{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}]},{"name":"builderBytecodeInput","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":">"}]},{"name":"callback","type":[{"kind":"type","text":"BytecodeDeserializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Deserializes bytecode nodes by replaying serialized builder calls."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Deserializes bytecode nodes by replaying serialized builder calls."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#deserializeBuilderBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)"},"code":true,"children":[{"kind":"text","text":"deserializeBuilderBytecode"}]},{"kind":"text","text":"."}]}],"since":"25.7"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":333}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#deserializeBuilderBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)","anchor":"deserializeBuilderBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)","kind":"method","name":"deserializeBuilderBytecode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"name","text":"deserializeBuilderBytecode"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":", "},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"builderBytecodeInput"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeDeserializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"language","type":[{"kind":"typeParam","text":"L"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language instance."}]}]},{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the requested bytecode configuration, including optional metadata."}]}]},{"name":"builderBytecodeInput","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a function that supplies the builder bytecode payload. It must produce a new "},{"kind":"link","target":{"id":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},"code":true,"children":[{"kind":"text","text":"DataInput"}]},{"kind":"text","text":" on each invocation to support reparsing."}]}]},{"name":"callback","type":[{"kind":"type","text":"BytecodeDeserializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language-specific deserializer for constants in the bytecode."}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Deserializes bytecode nodes by replaying serialized builder calls."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Deserializes bytecode nodes by replaying serialized builder calls."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#deserializeExecutionBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,java.util.function.Function,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)"},"code":true,"children":[{"kind":"text","text":"deserializeExecutionBytecode"}]}]]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":350}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#deserializeExecutionBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,java.util.function.Function,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)","anchor":"deserializeExecutionBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,java.util.function.Function,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)","kind":"method","name":"deserializeExecutionBytecode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":"> "},{"kind":"name","text":"deserializeExecutionBytecode"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":", "},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"builderBytecodeInput"},{"kind":"punct","text":", "},{"kind":"type","text":"Function","ref":"java.util.function.Function","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":", "},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"executionBytecodeInput"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeDeserializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"language","type":[{"kind":"typeParam","text":"L"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language instance."}]}]},{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the requested bytecode configuration, including optional metadata (e.g., source information)."}]}]},{"name":"builderBytecodeInput","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a function that supplies the builder payload. This supplier is always required and must produce a new "},{"kind":"link","target":{"id":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},"code":true,"children":[{"kind":"text","text":"DataInput"}]},{"kind":"text","text":", since the bytes may be processed multiple times for reparsing."}]}]},{"name":"executionBytecodeInput","type":[{"kind":"type","text":"Function","ref":"java.util.function.Function","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":", "},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a function that supplies execution bytecode for the effective configuration, returning "},{"kind":"code","text":"null"},{"kind":"text","text":" if no matching payload is available. The function itself may also be "},{"kind":"code","text":"null"},{"kind":"text","text":" if the builder payload should be used. It is invoked at most once and is not retained for subsequent reparses."}]}]},{"name":"callback","type":[{"kind":"type","text":"BytecodeDeserializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The language-specific deserializer for constants in the bytecode. This callback must perform the inverse of the callback that was used to serialize each payload."}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"R"},{"kind":"punct","text":">"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Deserializes bytecode nodes from a builder payload and an optional execution bytecode payload."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Deserializes bytecode nodes from a builder payload and an optional execution bytecode payload. Both payloads must describe the same program, with matching serialized root-node field values. Produce them using the same parser and input, or from the same BytecodeRootNodes instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"executionBytecodeInput"},{"kind":"text","text":" is non-null, it is called with the requested "},{"kind":"code","text":"config"},{"kind":"text","text":" augmented with any globally enabled metadata or instrumentation. The function should check whether the requested configuration "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#matches(com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"matches"}]},{"kind":"text","text":" an available execution bytecode payload; if one exists, it should return the payload, and otherwise it should return "},{"kind":"code","text":"null"},{"kind":"text","text":". A returned payload is loaded directly without invoking "},{"kind":"code","text":"builderBytecodeInput"},{"kind":"text","text":". Invalid execution bytecode, including a mismatched configuration, causes deserialization to fail. If the function is null or returns null, the serialized builder calls supplied by "},{"kind":"code","text":"builderBytecodeInput"},{"kind":"text","text":" are replayed. Subsequent metadata updates always replay the builder payload."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Since execution bytecode skips builder validation during deserialization, it should only be used in trusted environments"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Each payload must be independently decodable by "},{"kind":"code","text":"callback"},{"kind":"text","text":". The same callback is retained for subsequent reparses. If constant object identity matters, the callback must return the same object for that logical constant across both payloads and reparses, for example by caching objects using identity indices shared by the two payloads."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":394}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#addInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)","anchor":"addInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)","kind":"method","name":"addInstructionTracer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"addInstructionTracer"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"},{"kind":"punct","text":" "},{"kind":"param","text":"tracer"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"typeParam","text":"L"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language instance whose bytecode roots should start reporting"}]}]},{"name":"tracer","type":[{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the tracer to install"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"tracer"},{"kind":"text","text":" is exclusive to a different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if instruction tracing is not enabled for this descriptor"}]}]}],"doc":{"summary":[{"kind":"text","text":"Registers an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" for all bytecode root nodes created from this descriptor in the given language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Registers an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" for all bytecode root nodes created from this descriptor in the given language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"After a tracer is installed, all existing and future "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" instances associated with this descriptor and "},{"kind":"code","text":"language"},{"kind":"text","text":" will start invoking the tracer's callback before executing each instruction."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Installing a tracer is intentionally invasive and may be expensive:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"All affected bytecode roots may need to be invalidated and re-parsed so that tracing hooks (for example "},{"kind":"code","text":"trace.instruction"},{"kind":"text","text":") can be inserted."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The change applies process-wide to that language instance, not just to a single root node."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Tracing itself runs on the language execution thread and may be called at very high frequency."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this bytecode interpreter was generated without instruction tracing support (for example using "},{"kind":"code","text":"@GenerateBytecode(enableInstructionTracing = false)"},{"kind":"text","text":"), this method throws "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":431}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#removeInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)","anchor":"removeInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)","kind":"method","name":"removeInstructionTracer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"removeInstructionTracer"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"},{"kind":"punct","text":" "},{"kind":"param","text":"tracer"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"typeParam","text":"L"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language instance whose bytecode roots should stop reporting"}]}]},{"name":"tracer","type":[{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the tracer to remove"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"tracer"},{"kind":"text","text":" is exclusive to a different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if instruction tracing is not enabled for this descriptor"}]}]}],"doc":{"summary":[{"kind":"text","text":"Unregisters a previously installed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" for the given language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unregisters a previously installed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" for the given language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"After removal, bytecode roots created from this descriptor for "},{"kind":"code","text":"language"},{"kind":"text","text":" will stop invoking the tracer's callback. Future roots created for the same language will also not attach the tracer. The "},{"kind":"code","text":"tracer"},{"kind":"text","text":" argument must be the same tracer instance that was passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#addInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"addInstructionTracer(TruffleLanguage, InstructionTracer)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that currently when all instruction tracers were removed, the trace instructions remain in the bytecode. This may be improved in the future."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this bytecode interpreter was generated without instruction tracing support (for example using "},{"kind":"code","text":"@GenerateBytecode(enableInstructionTracing = false)"},{"kind":"text","text":"), this method throws "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":460}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#update(L,com.oracle.truffle.api.bytecode.BytecodeConfig)","anchor":"update(L,com.oracle.truffle.api.bytecode.BytecodeConfig)","kind":"method","name":"update","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"update"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"L"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"typeParam","text":"L"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language instance"}]}]},{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the configuration to apply"}]}]}],"doc":{"summary":[{"kind":"text","text":"Updates the bytecode configuration for all bytecode root nodes that were created by this descriptor for the given language instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Updates the bytecode configuration for all bytecode root nodes that were created by this descriptor for the given language instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This can be used to enable features such as source information or instrumentation globally. Options are applied cumulatively and cannot be reverted for that language instance."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":477}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a concise descriptor string"}]}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a short string representation for debugging."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a short string representation for debugging."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":487}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#dump()","anchor":"dump()","kind":"method","name":"dump","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"dump"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a multi line string describing the bytecode descriptor"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a human readable dump of this bytecode descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a human readable dump of this bytecode descriptor."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The dump includes the instruction set, statistics such as encoded size, and formatted instruction listings. This is intended for diagnostics and test assertions, not for programmatic parsing."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":502}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#onTransition(com.oracle.truffle.api.TruffleLanguage,R,com.oracle.truffle.api.bytecode.BytecodeTransition)","anchor":"onTransition(com.oracle.truffle.api.TruffleLanguage,R,com.oracle.truffle.api.bytecode.BytecodeTransition)","kind":"method","name":"onTransition","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onTransition"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"param","text":"rootNode"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeTransition","ref":"com.oracle.truffle.api.bytecode.BytecodeTransition"},{"kind":"punct","text":" "},{"kind":"param","text":"transition"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}]},{"name":"rootNode","type":[{"kind":"typeParam","text":"R"}]},{"name":"transition","type":[{"kind":"type","text":"BytecodeTransition","ref":"com.oracle.truffle.api.bytecode.BytecodeTransition"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method called by generated code to notify the engine of a transition."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method called by generated code to notify the engine of a transition. This method unconditionally routes the transition to the engine-level logger and cannot be overridden by bytecode interpreter implementations."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":557}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#onPrepareForLoad(com.oracle.truffle.api.TruffleLanguage,R)","anchor":"onPrepareForLoad(com.oracle.truffle.api.TruffleLanguage,R)","kind":"method","name":"onPrepareForLoad","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onPrepareForLoad"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"R"},{"kind":"punct","text":" "},{"kind":"param","text":"rootNode"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}]},{"name":"rootNode","type":[{"kind":"typeParam","text":"R"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method called by generated code on root node load."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method called by generated code on root node load."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":569}},{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#withGlobalConfig(com.oracle.truffle.api.TruffleLanguage,long)","anchor":"withGlobalConfig(com.oracle.truffle.api.TruffleLanguage,long)","kind":"method","name":"withGlobalConfig","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"withGlobalConfig"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}]},{"name":"config","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"Internal method called by generated code whenever the a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":" is used."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method called by generated code whenever the a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":" is used."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":584}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Describes the bytecode interpreter generated for a specific "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" class and provides the management API for that interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Describes the bytecode interpreter generated for a specific "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" class and provides the management API for that interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A generated bytecode interpreter exposes a public static "},{"kind":"code","text":"BYTECODE"},{"kind":"text","text":" field of the generated "},{"kind":"code","text":"*Gen.Bytecode"},{"kind":"text","text":" class. It is recommended to not refer to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":" directly and instead use the generated "},{"kind":"code","text":"*Gen.Bytecode"},{"kind":"text","text":" class to avoid the rather verbose generic type. That field is a concrete subclass of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":", and acts as the central entry point for:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Creating executable bytecode:"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#create(L,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"create(TruffleLanguage, BytecodeConfig, BytecodeParser)"}]},{"kind":"text","text":" builds one or more "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" instances by driving a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Serialization support:"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"serializeBuilderBytecode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeExecutionBytecode(L,java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"serializeExecutionBytecode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#deserializeBuilderBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)"},"code":true,"children":[{"kind":"text","text":"deserializeBuilderBytecode"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#deserializeExecutionBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,java.util.function.Function,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)"},"code":true,"children":[{"kind":"text","text":"deserializeExecutionBytecode"}]},{"kind":"text","text":" define the contract for turning parsed bytecode into a byte stream and restoring it. Generated interpreters that were built with "},{"kind":"code","text":"enableSerialization=true"},{"kind":"text","text":" implement these methods. The default implementation throws "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Describing the instruction set:"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getInstructionDescriptors()"},"code":true,"children":[{"kind":"text","text":"getInstructionDescriptors()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getInstructionDescriptor(int)"},"code":true,"children":[{"kind":"text","text":"getInstructionDescriptor(int)"}]},{"kind":"text","text":" expose all instructions, including normal language operations and injected instrumentation instructions. The descriptor can also produce a human readable dump via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#dump()"},"code":true,"children":[{"kind":"text","text":"dump()"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Per-language runtime configuration:"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#update(L,com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"update(TruffleLanguage, BytecodeConfig)"}]},{"kind":"text","text":" applies configuration (for example enabling instrumentations) to all bytecode roots that were already created for the given language, and to any future roots."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Instruction tracing:"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#addInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"addInstructionTracer(TruffleLanguage, InstructionTracer)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#removeInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"removeInstructionTracer(TruffleLanguage, InstructionTracer)"}]},{"kind":"text","text":" install and remove "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":"s for all roots created for a given language. After a tracer is installed, the interpreter automatically injects tracing instructions (for example "},{"kind":"code","text":"trace.instruction"},{"kind":"text","text":") and invokes the tracer callback on every executed instruction."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The descriptor also exposes metadata about the interpreter itself: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getGeneratedClass()"},"code":true,"children":[{"kind":"text","text":"getGeneratedClass()"}]},{"kind":"text","text":" returns the generated root node class that implements execution, and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getSpecificationClass()"},"code":true,"children":[{"kind":"text","text":"getSpecificationClass()"}]},{"kind":"text","text":" identifies the original user-declared "},{"kind":"code","text":"@GenerateBytecode"},{"kind":"text","text":" root node (when available). "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getLanguageClass()"},"code":true,"children":[{"kind":"text","text":"getLanguageClass()"}]},{"kind":"text","text":" identifies the owning "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In short, "},{"kind":"code","text":"BytecodeDescriptor"},{"kind":"text","text":" is both: "},{"kind":"emphasis","children":[{"kind":"text","text":"(1)"}]},{"kind":"text","text":" a static description of the generated bytecode interpreter (instruction set, generated classes, language binding), and "},{"kind":"emphasis","children":[{"kind":"text","text":"(2)"}]},{"kind":"text","text":" the runtime control surface for all bytecode roots created from that interpreter in a given language context (creation, tracing, instrumentation, serialization)."}]},{"kind":"heading","level":2,"children":[{"kind":"text","text":"Usage example"}]},{"kind":"code","text":"// Assume you have a language MyLanguage and a bytecode root node\n// declared as:\n//\n//   @GenerateBytecode(languageClass = MyLanguage.class)\n//   abstract class MyBytecodeRootNode extends RootNode implements BytecodeRootNode { ... }\n//\n// The annotation processor generates MyBytecodeRootNodeGen and a nested\n// MyBytecodeRootNodeGen.Bytecode class with a public static BYTECODE field:\n//\n//   public static final MyBytecodeRootNodeGen.Bytecode BYTECODE;\n//\n// The BYTECODE field is a concrete BytecodeDescriptor.\n\nMyLanguage language = ...; // instance of the Truffle language\n\n// Create a new bytecode root node by emitting bytecode through the builder.\n// The parser lambda drives the builder to generate the bytecode body.\nMyBytecodeRootNode root = MyBytecodeRootNodeGen.BYTECODE\n    .create(language, BytecodeConfig.DEFAULT, (builder) -> {\n        builder.beginRoot();\n        builder.beginReturn();\n        builder.emitLoadArgument(0);   // return the first argument\n        builder.endReturn();\n        builder.endRoot();\n    })\n    .getNode(0); // obtain the first created root node\n\n// Execute the generated root node through its call target.\nObject result = root.getCallTarget().call(42);"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeDescriptor.java","line":152}},{"id":"com.oracle.truffle.api.bytecode.BytecodeEncodingException","name":"BytecodeEncodingException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeEncodingException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"superclass":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"ancestors":[{"id":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeEncodingException#create(java.lang.String)","anchor":"create(java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeEncodingException","ref":"com.oracle.truffle.api.bytecode.BytecodeEncodingException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"reason"},{"kind":"punct","text":")"}],"params":[{"name":"reason","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeEncodingException","ref":"com.oracle.truffle.api.bytecode.BytecodeEncodingException"}]},"doc":{"summary":[{"kind":"text","text":"Creates a bytecode encoding exception with a reason string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a bytecode encoding exception with a reason string."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeEncodingException.java","line":62}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#fillInStackTrace()","text":"fillInStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Class representing an exception thrown by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":" when the program cannot be encoded, for example, when the bytecode exceeds the maximum addressable bytecode size."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Class representing an exception thrown by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":" when the program cannot be encoded, for example, when the bytecode exceeds the maximum addressable bytecode size."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeEncodingException.java","line":49}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame","name":"BytecodeFrame","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeFrame"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#copy()","anchor":"copy()","kind":"method","name":"copy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"copy"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a copy of this frame that is always valid and will not observe updates"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a copy of this frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a copy of this frame. This method can be used to snapshot the current state of a bytecode frame, in case it may be modified or become invalid in the future."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":122}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getLocation()","anchor":"getLocation()","kind":"method","name":"getLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode location associated with the captured frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode location associated with the captured frame. This location is only valid until the bytecode interpreter resumes execution."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":132}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getBytecodeNode()","anchor":"getBytecodeNode()","kind":"method","name":"getBytecodeNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode node associated with the captured frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode node associated with the captured frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":141}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getBytecodeIndex()","anchor":"getBytecodeIndex()","kind":"method","name":"getBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index associated with the captured frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index associated with the captured frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":150}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getLocalCount()","anchor":"getLocalCount()","kind":"method","name":"getLocalCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of live locals in the captured frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of live locals in the captured frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":159}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getLocalValue(int)","anchor":"getLocalValue(int)","kind":"method","name":"getLocalValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalValue"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":")"}],"params":[{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the value of the local at the given offset."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the value of the local at the given offset. The offset should be in the range "},{"kind":"code","text":"[0, getLocalCount())"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValue(int, Frame, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":170}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#setLocalValue(int,java.lang.Object)","anchor":"setLocalValue(int,java.lang.Object)","kind":"method","name":"setLocalValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValue"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Updates the value of the local at the given offset."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Updates the value of the local at the given offset. The offset should be in the range "},{"kind":"code","text":"[0, getLocalCount())"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will throw an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" if the captured frame does not support writes."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValue(int,com.oracle.truffle.api.frame.Frame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.setLocalValue(int, Frame, int, Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":184}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getLocalNames()","anchor":"getLocalNames()","kind":"method","name":"getLocalNames","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getLocalNames"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Returns the names associated with the live locals, if provided."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the names associated with the live locals, if provided."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":193}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getArgumentCount()","anchor":"getArgumentCount()","kind":"method","name":"getArgumentCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getArgumentCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of arguments in the captured frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of arguments in the captured frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":202}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getArgument(int)","anchor":"getArgument(int)","kind":"method","name":"getArgument","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getArgument"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argumentIndex"},{"kind":"punct","text":")"}],"params":[{"name":"argumentIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the value of the argument at the given index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the value of the argument at the given index. The offset should be between 0 and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getArgumentCount()"},"code":true,"children":[{"kind":"text","text":"getArgumentCount()"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":212}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#setArgument(int,java.lang.Object)","anchor":"setArgument(int,java.lang.Object)","kind":"method","name":"setArgument","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setArgument"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argumentIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"argumentIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Updates the value of the local at the given offset."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Updates the value of the local at the given offset. The offset should be between 0 and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getArgumentCount()"},"code":true,"children":[{"kind":"text","text":"getArgumentCount()"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":222}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getFrameDescriptorInfo()","anchor":"getFrameDescriptorInfo()","kind":"method","name":"getFrameDescriptorInfo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrameDescriptorInfo"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getInfo()"},"code":true,"children":[{"kind":"text","text":"info"}]},{"kind":"text","text":" object associated with the frame's descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getInfo()"},"code":true,"children":[{"kind":"text","text":"info"}]},{"kind":"text","text":" object associated with the frame's descriptor."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":232}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#get(com.oracle.truffle.api.frame.FrameInstance,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)","anchor":"get(com.oracle.truffle.api.frame.FrameInstance,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]},{"name":"access","type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the access mode to use when capturing the frame"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a bytecode frame, or null if the frame instance is missing location info."}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a bytecode frame from the given frame instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a bytecode frame from the given frame instance."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":255}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getNonVirtual(com.oracle.truffle.api.frame.FrameInstance)","anchor":"getNonVirtual(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"getNonVirtual","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"getNonVirtual"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a bytecode frame or null if the frame is virtual or if the frame instance is missing location info."}]}]},"doc":{"summary":[{"kind":"text","text":"Attempts to create a bytecode frame from the given frame instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attempts to create a bytecode frame from the given frame instance. Returns null if the corresponding frame is virtual. The frame can be read from, written to, and escaped."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be used to probe for a frame that can safely escape without forcing materialization. For example, if a language needs to capture local variables from a stack frame, it's often more efficient to use an existing non-virtual frame rather than create a copy of all variables."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":281}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#get(com.oracle.truffle.api.TruffleStackTraceElement)","anchor":"get(com.oracle.truffle.api.TruffleStackTraceElement)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"element"},{"kind":"punct","text":")"}],"params":[{"name":"element","type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the stack trace element"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a bytecode frame, or null if the frame was not captured or the stack trace element is missing location information."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the element has an invalid bytecode index."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a bytecode frame from the given stack trace element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a bytecode frame from the given stack trace element."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will return null unless the interpreter specifies "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#captureFramesForTrace()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.captureFramesForTrace"}]},{"kind":"text","text":", which indicates whether frames should be captured."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":313}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getNonVirtual(com.oracle.truffle.api.TruffleStackTraceElement)","anchor":"getNonVirtual(com.oracle.truffle.api.TruffleStackTraceElement)","kind":"method","name":"getNonVirtual","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"getNonVirtual"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"element"},{"kind":"punct","text":")"}],"params":[{"name":"element","type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the stack trace element"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a bytecode frame or null if the frame is virtual/unavailable or if the frame instance is missing location info."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the element has an invalid bytecode index."}]}]}],"doc":{"summary":[{"kind":"text","text":"Attempts to create a bytecode frame from the given stack trace element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attempts to create a bytecode frame from the given stack trace element. Returns null if the corresponding frame is virtual. The frame can be read from, written to, and escaped."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be used to probe for a frame that can safely escape without forcing materialization. For example, if a language needs to capture local variables from a stack frame, it's often more efficient to use an existing non-virtual frame rather than create a copy of all variables."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":345}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getTop(com.oracle.truffle.api.frame.FrameInstance.FrameAccess,com.oracle.truffle.api.nodes.Node,int)","anchor":"getTop(com.oracle.truffle.api.frame.FrameInstance.FrameAccess,com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"getTop","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"getTop"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"topLocation"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"topBytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"access","type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the access mode used when resolving the top frame"}]}]},{"name":"topLocation","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a node in the current top bytecode activation"}]}]},{"name":"topBytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index of the current top bytecode activation, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" to resolve it from "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" and the resolved frame"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current top bytecode frame"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" and "},{"kind":"code","text":"topBytecodeIndex"},{"kind":"text","text":" do not identify a valid location for the top frame, or if the top frame is not a bytecode frame."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the current top stack activation as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"bytecode frame"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current top stack activation as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"bytecode frame"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The top frame's location is derived using "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" and "},{"kind":"code","text":"topBytecodeIndex"},{"kind":"text","text":". If "},{"kind":"code","text":"topBytecodeIndex"},{"kind":"text","text":" is "},{"kind":"code","text":"-1"},{"kind":"text","text":", the bytecode index is resolved from "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" and the resolved top "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":378}},{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#iterateBytecodeFrames(java.util.function.Function,com.oracle.truffle.api.frame.FrameInstance.FrameAccess,com.oracle.truffle.api.nodes.Node,int,int)","anchor":"iterateBytecodeFrames(java.util.function.Function,com.oracle.truffle.api.frame.FrameInstance.FrameAccess,com.oracle.truffle.api.nodes.Node,int,int)","kind":"method","name":"iterateBytecodeFrames","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"iterateBytecodeFrames"},{"kind":"punct","text":"("},{"kind":"type","text":"Function","ref":"java.util.function.Function","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"visitor"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"topLocation"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"topBytecodeIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"skipBytecodeFrames"},{"kind":"punct","text":")"}],"params":[{"name":"visitor","type":[{"kind":"type","text":"Function","ref":"java.util.function.Function","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Function.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the visitor applied to each bytecode frame"}]}]},{"name":"access","type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the access mode used when resolving frames from runtime stack frames"}]}]},{"name":"topLocation","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a node in the current top bytecode activation; ignored if "},{"kind":"code","text":"skipBytecodeFrames > 0"}]}]},{"name":"topBytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index of the current top bytecode activation, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" to resolve it from "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" and the resolved frame; ignored if "},{"kind":"code","text":"skipBytecodeFrames > 0"}]}]},{"name":"skipBytecodeFrames","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of bytecode frames to skip before invoking the visitor"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the first non-"},{"kind":"code","text":"null"},{"kind":"text","text":" value returned by "},{"kind":"code","text":"visitor"},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no visited frame produces one"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the top frame is not skipped and "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" and "},{"kind":"code","text":"topBytecodeIndex"},{"kind":"text","text":" do not identify a valid location for the top frame, or if the top frame is not a bytecode frame."}]}]}],"doc":{"summary":[{"kind":"text","text":"Iterates the current stack as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"bytecode frames"}]},{"kind":"text","text":", starting with the current top activation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Iterates the current stack as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"bytecode frames"}]},{"kind":"text","text":", starting with the current top activation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method uses "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleRuntime.iterateFrames"}]},{"kind":"text","text":" to perform a stack walk, constructing each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame"}]},{"kind":"text","text":" instance from an underlying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":". Frame instances that do not correspond to bytecode frames are ignored."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The visitor is invoked for each available bytecode frame until it returns a non-"},{"kind":"code","text":"null"},{"kind":"text","text":" value, which is then returned from this method. If the visitor always returns "},{"kind":"code","text":"null"},{"kind":"text","text":", this method returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The stack walk begins with the current (top) activation. The top frame's location is derived using "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" and "},{"kind":"code","text":"topBytecodeIndex"},{"kind":"text","text":". These parameters are necessary because the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":" for the top activation does not necessarily provide location information."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"skipBytecodeFrames > 0"},{"kind":"text","text":", the top frame is skipped and "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" and "},{"kind":"code","text":"topBytecodeIndex"},{"kind":"text","text":" are ignored. Otherwise, "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" must identify a node in the current top bytecode activation, and "},{"kind":"code","text":"topBytecodeIndex"},{"kind":"text","text":" must be a valid bytecode index or "},{"kind":"code","text":"-1"},{"kind":"text","text":". When "},{"kind":"code","text":"topBytecodeIndex"},{"kind":"text","text":" is "},{"kind":"code","text":"-1"},{"kind":"text","text":", the bytecode index of the top frame is computed using "},{"kind":"code","text":"topLocation"},{"kind":"text","text":" and the resolved top "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":420}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a captured Bytecode DSL frame, including the location metadata needed to access the data in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a captured Bytecode DSL frame, including the location metadata needed to access the data in the frame."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame"}]},{"kind":"text","text":" is intended for use cases where the frame escapes or outlives the root node invocation. Prefer using a built-in operation or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":" to access the frame whenever possible."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame"}]},{"kind":"text","text":" should be used instead of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":" to access frame data because the frame captured in these abstractions is not always the actual frame used in execution (e.g., it may be different for a resumed continuation)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"There are a few ways to capture the frame:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#createCopiedFrame(int,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.createCopiedFrame"}]},{"kind":"text","text":" captures a copy."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#createMaterializedFrame(int,com.oracle.truffle.api.frame.MaterializedFrame)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.createMaterializedFrame"}]},{"kind":"text","text":" captures the original frame."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#get(com.oracle.truffle.api.frame.FrameInstance,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame.get(FrameInstance, FrameAccess)"}]},{"kind":"text","text":" captures a frame from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":". It captures the original frame if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#READ_WRITE"},"code":true,"children":[{"kind":"text","text":"FrameAccess.READ_WRITE"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#MATERIALIZE"},"code":true,"children":[{"kind":"text","text":"FrameAccess.MATERIALIZE"}]},{"kind":"text","text":" is requested. Otherwise, it captures either the original frame or a copy."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#get(com.oracle.truffle.api.TruffleStackTraceElement)"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame.get(TruffleStackTraceElement)"}]},{"kind":"text","text":" captures a frame from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":". It captures either the original frame or a copy."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getNonVirtual(com.oracle.truffle.api.frame.FrameInstance)"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame.getNonVirtual(FrameInstance)"}]},{"kind":"text","text":" captures the original frame from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":", if it is non-virtual."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#getNonVirtual(com.oracle.truffle.api.TruffleStackTraceElement)"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame.getNonVirtual(TruffleStackTraceElement)"}]},{"kind":"text","text":" captures the original frame from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":", if it is non-virtual and available in the stack trace."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Copied frames do not observe updates made to the original frame."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: if the interpreter uses "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"block scoping"}]},{"kind":"text","text":", local offsets are location-dependent and physical frame slots may be reused for different locals as execution proceeds. After execution continues, a captured frame may therefore expose values belonging to a different lexical scope. Any non-copied "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame"}]},{"kind":"text","text":" is consequently only valid until the interpreter continues execution. The frame "},{"kind":"strong","children":[{"kind":"text","text":"must not"}]},{"kind":"text","text":" be used after this point; doing so can cause undefined behaviour. If you need to access the frame after execution continues, you should capture a copy or explicitly "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#copy()"},"code":true,"children":[{"kind":"text","text":"copy()"}]},{"kind":"text","text":" the captured bytecode frame. This restriction also applies to frames created by methods like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#get(com.oracle.truffle.api.TruffleStackTraceElement)"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame.get(TruffleStackTraceElement)"}]},{"kind":"text","text":", which do not specify whether they capture the original frame or a copy."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeFrame.java","line":102}},{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode","name":"BytecodeIndexMode","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeIndexMode"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME","anchor":"FRAME","kind":"enumConstant","name":"FRAME","signature":[{"kind":"name","text":"FRAME"}],"type":[{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"}],"doc":{"summary":[{"kind":"text","text":"Stores the current bytecode index automatically in the frame in all interpreter tiers."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores the current bytecode index automatically in the frame in all interpreter tiers. The stored index can also be read or updated manually using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeIndex(com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getBytecodeIndex"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setBytecodeIndex(com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.setBytecodeIndex"}]},{"kind":"text","text":". A manual value persists until the next automatic update. Implicit stack-frame lookup still requires a non-null location node."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeIndexMode.java","line":60}},{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#CACHED_NODE","anchor":"CACHED_NODE","kind":"enumConstant","name":"CACHED_NODE","signature":[{"kind":"name","text":"CACHED_NODE"}],"type":[{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"}],"doc":{"summary":[{"kind":"text","text":"Derives the bytecode index from the current operation node in the cached interpreter and stores it automatically in the frame in the uncached interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Derives the bytecode index from the current operation node in the cached interpreter and stores it automatically in the frame in the uncached interpreter. This is the default mode. The frame slot is an implementation detail and cannot be accessed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeIndex(com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getBytecodeIndex"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setBytecodeIndex(com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.setBytecodeIndex"}]},{"kind":"text","text":"."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeIndexMode.java","line":71}},{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#MANUAL","anchor":"MANUAL","kind":"enumConstant","name":"MANUAL","signature":[{"kind":"name","text":"MANUAL"}],"type":[{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"}],"doc":{"summary":[{"kind":"text","text":"Reserves a frame slot that is updated manually using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setBytecodeIndex(com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.setBytecodeIndex"}]},{"kind":"text","text":" or explicitly for operations using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Operation.storeBytecodeIndex()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex"},"code":true,"children":[{"kind":"text","text":"StoreBytecodeIndex"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reserves a frame slot that is updated manually using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setBytecodeIndex(com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.setBytecodeIndex"}]},{"kind":"text","text":" or explicitly for operations using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Operation.storeBytecodeIndex()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex"},"code":true,"children":[{"kind":"text","text":"StoreBytecodeIndex"}]},{"kind":"text","text":". Automatic operation storage is disabled by default. The stored index can be read using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeIndex(com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getBytecodeIndex"}]},{"kind":"text","text":" and is used for implicit stack-frame lookup even when no location node is available. The slot is not initialized on a fresh invocation. Once stored, the index is preserved across tier transitions and translated when the bytecode layout changes during execution. Resuming a continuation always replaces the stored value with the resume bytecode index, even if the value was unset or cleared."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeIndexMode.java","line":85}},{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#NONE","anchor":"NONE","kind":"enumConstant","name":"NONE","signature":[{"kind":"name","text":"NONE"}],"type":[{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"}],"doc":{"summary":[{"kind":"text","text":"Does not reserve a frame slot or perform implicit bytecode index lookup."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Does not reserve a frame slot or perform implicit bytecode index lookup. Bytecode indices must be passed explicitly to calls, exceptions, and other APIs that require them."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeIndexMode.java","line":93}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Configures how a generated bytecode interpreter makes its current bytecode index available for stack walking and frame introspection."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configures how a generated bytecode interpreter makes its current bytecode index available for stack walking and frame introspection."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#bytecodeIndexMode()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.bytecodeIndexMode()"}]}]]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeIndexMode.java","line":50}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLabel","name":"BytecodeLabel","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeLabel"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeLabel#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"BytecodeLabel","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeLabel"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLabel.java","line":59}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Abstract definition of a label."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Abstract definition of a label. Labels can be used to implement forward branches (for backward branches, use a "},{"kind":"code","text":"While"},{"kind":"text","text":" operation). The language parser can allocate labels using the builder's "},{"kind":"code","text":"createLabel"},{"kind":"text","text":" method, and subsequently emit it using "},{"kind":"code","text":"emitLabel"},{"kind":"text","text":". Labels are specified as parameters to branch operations."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLabel.java","line":53}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal","name":"BytecodeLocal","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeLocal"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"BytecodeLocal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocal.java","line":69}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal#getLocalOffset()","anchor":"getLocalOffset()","kind":"method","name":"getLocalOffset","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalOffset"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the local offset to use when accessing local values with a local accessor like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValue(int, Frame, int)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the local offset to use when accessing local values with a local accessor like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValue(int, Frame, int)"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocal.java","line":79}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal#getLocalIndex()","anchor":"getLocalIndex()","kind":"method","name":"getLocalIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the index when accessing into the locals table with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocals()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocals()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index when accessing into the locals table with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocals()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocals()"}]},{"kind":"text","text":". The local index is guaranteed to be equal to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"getLocalOffset()"}]},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"block scoping"}]},{"kind":"text","text":" is set to "},{"kind":"code","text":"false"},{"kind":"text","text":". Otherwise, the local index is distinct from the local offset and should not be used in places an offset is expected."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocal.java","line":90}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Abstract definition of a local variable in the interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Abstract definition of a local variable in the interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Local variables are stored in the frame. They are typically accessed in the bytecode using "},{"kind":"code","text":"StoreLocal"},{"kind":"text","text":" and "},{"kind":"code","text":"LoadLocal"},{"kind":"text","text":" operations. For uncommon scenarios where locals need to be accessed programmatically (e.g., in a node), locals can be accessed using accessor methods on the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":", such as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValue(int, Frame, int)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValue(int,com.oracle.truffle.api.frame.Frame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.setLocalValue(int, com.oracle.truffle.api.frame.Frame, int, Object)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default a local variable is live for the extent of the block that defines it (\"block scoping\"). Interpreters can also be configured so that locals live for the extent of the root node (\"root scoping\"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping()"}]},{"kind":"text","text":" for details."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Refer to the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/bytecode_dsl/UserGuide.md","children":[{"kind":"text","text":"user guide"}]},{"kind":"text","text":" for more details."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocal.java","line":62}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation","name":"BytecodeLocation","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeLocation"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()","anchor":"getBytecodeIndex()","kind":"method","name":"getBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index. This index is not stable and should only be used for debugging purposes. The bytecode index is only meaningful when coupled with a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeNode()"},"code":true,"children":[{"kind":"text","text":"bytecode node"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":87}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeNode()","anchor":"getBytecodeNode()","kind":"method","name":"getBytecodeNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" associated with this location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" associated with this location. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"bytecode index"}]},{"kind":"text","text":" is only valid for the returned node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":97}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":106}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":116}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":132}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#dump()","anchor":"dump()","kind":"method","name":"dump","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"dump"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"dump string"}]}]},"doc":{"summary":[{"kind":"text","text":"Dumps the bytecode debug information, highlighting this location in the result."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Dumps the bytecode debug information, highlighting this location in the result."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#dump(com.oracle.truffle.api.bytecode.BytecodeLocation)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.dump(BytecodeLocation)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":144}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#update()","anchor":"update()","kind":"method","name":"update","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"update"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Updates this location to the newest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"bytecode node"}]},{"kind":"text","text":" of the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"bytecode root node"}]},{"kind":"text","text":", translating the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"bytecode index"}]},{"kind":"text","text":" to the new bytecode node in the process."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Updates this location to the newest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"bytecode node"}]},{"kind":"text","text":" of the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"bytecode root node"}]},{"kind":"text","text":", translating the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"bytecode index"}]},{"kind":"text","text":" to the new bytecode node in the process. It is useful to update the location if source information or instrumentations were materialized in the meantime. Note that the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"bytecode index"}]},{"kind":"text","text":" may be different in the updated location."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":157}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#ensureSourceInformation()","anchor":"ensureSourceInformation()","kind":"method","name":"ensureSourceInformation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureSourceInformation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Ensures source information is available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures source information is available. If the current location already has source information, it is returned; otherwise, returns an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#update()"},"code":true,"children":[{"kind":"text","text":"updated"}]},{"kind":"text","text":" location that has source information. This may be an expensive operation if the source information was not yet materialized."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":175}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#ensureSourceInformationWithContent()","anchor":"ensureSourceInformationWithContent()","kind":"method","name":"ensureSourceInformationWithContent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureSourceInformationWithContent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Ensures source information with content is available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures source information with content is available. If the current location already has source information with content, it is returned; otherwise, returns an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#update()"},"code":true,"children":[{"kind":"text","text":"updated"}]},{"kind":"text","text":" location that has source information with content. This may be an expensive operation if the source information with content was not yet materialized"}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the interpreter does not declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#sourceContentSupplier()"},"code":true,"children":[{"kind":"text","text":"source content supplier"}]},{"kind":"text","text":", this method is equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":194}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getSourceLocation()","anchor":"getSourceLocation()","kind":"method","name":"getSourceLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Computes the most concrete source location of this bytecode location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Computes the most concrete source location of this bytecode location."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocation(int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getSourceLocation(int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":208}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getSourceLocations()","anchor":"getSourceLocations()","kind":"method","name":"getSourceLocations","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSourceLocations"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Computes all source locations of this bytecode location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Computes all source locations of this bytecode location. Returns an empty array if no source locations are available. The list is ordered from most to least concrete."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocations(int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getSourceLocations(int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":219}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getInstruction()","anchor":"getInstruction()","kind":"method","name":"getInstruction","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstruction"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode instruction at this location, which provides additional debug information for debugging and tracing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode instruction at this location, which provides additional debug information for debugging and tracing."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":229}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getExceptionHandlers()","anchor":"getExceptionHandlers()","kind":"method","name":"getExceptionHandlers","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ExceptionHandler","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler"},{"kind":"punct","text":"> "},{"kind":"name","text":"getExceptionHandlers"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ExceptionHandler","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all exception handlers that span over this bytecode location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all exception handlers that span over this bytecode location. Returns an empty list if no exception handlers span over this location."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":239}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getSourceInformation()","anchor":"getSourceInformation()","kind":"method","name":"getSourceInformation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SourceInformation","ref":"com.oracle.truffle.api.bytecode.SourceInformation"},{"kind":"punct","text":"> "},{"kind":"name","text":"getSourceInformation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SourceInformation","ref":"com.oracle.truffle.api.bytecode.SourceInformation"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all source informations available at this location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all source informations available at this location."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":258}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#get(com.oracle.truffle.api.frame.FrameInstance)","anchor":"get(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the corresponding bytecode location or null if no location can be found."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the bytecode location for a given FrameInstance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the bytecode location for a given FrameInstance. Frame instances are invalid as soon as the execution of a frame is continued. A bytecode location can be used to materialize an execution location in a bytecode interpreter, which can be used after the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":" is no longer valid."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":286}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#get(com.oracle.truffle.api.nodes.Node,int)","anchor":"get(com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bci"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a node in the interpreter (can be bound using "},{"kind":"code","text":"@Bind BytecodeNode bytecode"},{"kind":"text","text":")"}]}]},{"name":"bci","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a bytecode index (can be bound using "},{"kind":"code","text":"@Bind(\"$bytecodeIndex\") int bci"},{"kind":"text","text":")"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" or "},{"kind":"code","text":"null"},{"kind":"text","text":" if "},{"kind":"code","text":"location"},{"kind":"text","text":" is not adopted by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" associated with the given node and bci."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" associated with the given node and bci."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":313}},{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#get(com.oracle.truffle.api.TruffleStackTraceElement)","anchor":"get(com.oracle.truffle.api.TruffleStackTraceElement)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"element"},{"kind":"punct","text":")"}],"params":[{"name":"element","type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no bytecode interpreter can be found in the stack trace element."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the element has an invalid bytecode index."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" associated with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" associated with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":333}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A materialized bytecode location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A materialized bytecode location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The current bytecode location can be bound using "},{"kind":"code","text":"@Bind BytecodeLocation location"},{"kind":"text","text":" in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"operations"}]},{"kind":"text","text":". In order to avoid the overhead of the BytecodeLocation allocation, e.g. for exceptional cases, it is possible to create the bytecode location lazily from two fields: "},{"kind":"code","text":"@Bind BytecodeNode bytecode"},{"kind":"text","text":" and "},{"kind":"code","text":"@Bind(\"$bytecodeIndex\") int bci"},{"kind":"text","text":". This avoids the eager allocation of the bytecode location. To create a bytecode location when it is needed the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#get(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.get(Node, int)"}]},{"kind":"text","text":" method can be used."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeLocation.java","line":68}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode","name":"BytecodeNode","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"BytecodeNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeNode"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":102}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeLocation(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)","anchor":"getBytecodeLocation(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getBytecodeLocation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeLocation"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame"}]}]},{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current location"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode location, or null if the frame and node do not originate from a Bytecode DSL root node."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the current bytecode location using the current frame and location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current bytecode location using the current frame and location."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":115}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeLocation(com.oracle.truffle.api.frame.FrameInstance)","anchor":"getBytecodeLocation(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"getBytecodeLocation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeLocation"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode location, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the frame belongs to another bytecode node or its BCI is unavailable"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the bytecode location associated with a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":" obtained from a stack walk."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the bytecode location associated with a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":" obtained from a stack walk."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":132}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeLocation(int)","anchor":"getBytecodeLocation(int)","kind":"method","name":"getBytecodeLocation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeLocation"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation."}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an invalid bytecode index was passed. This check is performed only if assertions (-ea) are enabled for performance reasons."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the bytecode location associated with a bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the bytecode location associated with a bytecode index. The result is only valid if the bytecode index was obtained from this bytecode node by binding "},{"kind":"code","text":"$bytecodeIndex"},{"kind":"text","text":" or calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeIndex(com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"getBytecodeIndex"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":155}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeIndex(com.oracle.truffle.api.frame.Frame)","anchor":"getBytecodeIndex(com.oracle.truffle.api.frame.Frame)","kind":"method","name":"getBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the stored BCI, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if explicitly cleared"}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the configured bytecode index mode does not support frame access"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the BCI stored in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the BCI stored in the frame. Supported when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#bytecodeIndexMode()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.bytecodeIndexMode()"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.FRAME"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#MANUAL"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.MANUAL"}]},{"kind":"text","text":". In "},{"kind":"code","text":"MANUAL"},{"kind":"text","text":" mode, the value before the first store is unspecified."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":172}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setBytecodeIndex(com.oracle.truffle.api.frame.Frame,int)","anchor":"setBytecodeIndex(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"setBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index to store, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" to clear the manual value"}]}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the configured bytecode index mode does not support frame access"}]}]}],"doc":{"summary":[{"kind":"text","text":"Stores a bytecode index in the "},{"kind":"code","text":"frame"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a bytecode index in the "},{"kind":"code","text":"frame"},{"kind":"text","text":". This method is supported when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#bytecodeIndexMode()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.bytecodeIndexMode()"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.FRAME"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#MANUAL"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.MANUAL"}]},{"kind":"text","text":". In "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.FRAME"}]},{"kind":"text","text":" mode, a subsequent automatic update may replace the manually stored value. In "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#MANUAL"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.MANUAL"}]},{"kind":"text","text":" mode, resuming a continuation replaces the stored value with the resume bytecode index."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use at foreign-call boundaries; ordinary operations should bind "},{"kind":"code","text":"$bytecodeIndex"},{"kind":"text","text":" and pass it explicitly."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":193}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame,int)","anchor":"setBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"setBytecodeIndex","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current node location, which must be a partial evaluation constant, or null for uncached execution"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame belonging to the resolved bytecode node"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index to store, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" to clear it"}]}]}],"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if no bytecode node can be resolved"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the bytecode index mode does not support frame access"}]}]}],"doc":{"summary":[{"kind":"text","text":"Looks up the current bytecode node from "},{"kind":"code","text":"location"},{"kind":"text","text":" and stores a bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Looks up the current bytecode node from "},{"kind":"code","text":"location"},{"kind":"text","text":" and stores a bytecode index. Prefer "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setBytecodeIndex(com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"setBytecodeIndex(Frame, int)"}]},{"kind":"text","text":" when the bytecode node is already available, for example through "},{"kind":"code","text":"@Bind BytecodeNode bytecodeNode"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Cached execution must provide a location, typically "},{"kind":"code","text":"this"},{"kind":"text","text":". During uncached execution, null or non-adoptable locations use the current encapsulating node, which contains the bytecode node."}]},{"kind":"code","text":"BytecodeNode.setBytecodeIndex(this, frame, bytecodeIndex);"}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":219}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocation(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)","anchor":"getSourceLocation(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getSourceLocation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceLocation"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame"}]}]},{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current location"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a source section corresponding to the location. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the location is invalid or source sections are not available."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the most concrete "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" associated with a particular location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the most concrete "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" associated with a particular location. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the node was not parsed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#WITH_SOURCE"},"code":true,"children":[{"kind":"text","text":"with sources"}]},{"kind":"text","text":" or if there is no associated source section for the given location."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":242}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocations(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)","anchor":"getSourceLocations(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getSourceLocations","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSourceLocations"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame"}]}]},{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current location"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an array of source sections corresponding to the location. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the location is invalid or source sections are not available."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets all "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source locations"}]},{"kind":"text","text":" associated with a particular location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets all "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source locations"}]},{"kind":"text","text":" associated with a particular location. More concrete source sections appear earlier in the array. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the node was not parsed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#WITH_SOURCE"},"code":true,"children":[{"kind":"text","text":"with sources"}]},{"kind":"text","text":" or if there is no associated source section for the given location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If source sections have not yet been materialized, then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned. Source sections may be materialized by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]},{"kind":"text","text":"."}]}]},"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":264}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocation(int)","anchor":"getSourceLocation(int)","kind":"method","name":"getSourceLocation","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceLocation"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index, used to determine liveness of source sections. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation."}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Finds the most concrete source location associated with the given bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds the most concrete source location associated with the given bytecode index. The method returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if no source section could be found."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If source sections have not yet been materialized, then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned. Source sections can be materialized by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":285}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocations(int)","anchor":"getSourceLocations(int)","kind":"method","name":"getSourceLocations","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSourceLocations"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index, used to determine liveness of source sections. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation."}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Finds all source locations associated with the given bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds all source locations associated with the given bytecode index. More concrete source sections appear earlier in the array. Typically, a given section will contain the previous source section, but there is no guarantee that this the case."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If source sections have not yet been materialized, then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned. Source sections can be materialized by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":301}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocation(com.oracle.truffle.api.frame.FrameInstance)","anchor":"getSourceLocation(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"getSourceLocation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceLocation"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source location, or null if the frame instance does not originate from this bytecode node or a location could not be found"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the source location associated with a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the source location associated with a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If source sections have not yet been materialized, then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned. Source sections can be materialized by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":339}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocations(com.oracle.truffle.api.frame.FrameInstance)","anchor":"getSourceLocations(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"getSourceLocations","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSourceLocations"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source locations, or null if the frame instance does not originate from this bytecode node or locations could not be found"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets all source locations associated with a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets all source locations associated with a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If source sections have not yet been materialized, then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned. Source sections can be materialized by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":362}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeRootNode()","anchor":"getBytecodeRootNode()","kind":"method","name":"getBytecodeRootNode","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeRootNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" to which this node belongs."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" to which this node belongs."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":379}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstruction(int)","anchor":"getInstruction(int)","kind":"method","name":"getInstruction","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstruction"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation."}]}]}],"returns":{"type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},"doc":{"summary":[{"kind":"text","text":"Gets the instruction associated with the given bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the instruction associated with the given bytecode index. The result is only valid if "},{"kind":"code","text":"bytecodeIndex"},{"kind":"text","text":" was obtained from this bytecode node by binding "},{"kind":"code","text":"$bytecodeIndex"},{"kind":"text","text":" or calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeIndex(com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"getBytecodeIndex"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Compatibility note: The result of this method is subject to change without notice between Truffle versions. This introspection API is therefore intended to be used for debugging and tracing purposes only. Do not rely on instructions for your language semantics."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":397}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstructions()","anchor":"getInstructions()","kind":"method","name":"getInstructions","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":"> "},{"kind":"name","text":"getInstructions"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current set of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"instructions"}]},{"kind":"text","text":" as an "},{"kind":"link","target":{"id":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},"code":true,"children":[{"kind":"text","text":"Iterable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current set of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"instructions"}]},{"kind":"text","text":" as an "},{"kind":"link","target":{"id":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},"code":true,"children":[{"kind":"text","text":"Iterable"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Compatibility note: The result of this method is subject to change without notice between Truffle versions. This introspection API is therefore intended to be used for debugging and tracing purposes only. Do not rely on instructions for your language semantics."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Footprint note: the backing iterable implementation consumes a fixed amount of memory. It allocates the underlying instructions when it is iterated."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":414}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstructionsAsList()","anchor":"getInstructionsAsList()","kind":"method","name":"getInstructionsAsList","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":"> "},{"kind":"name","text":"getInstructionsAsList"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current set of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"instructions"}]},{"kind":"text","text":" as a "},{"kind":"link","target":{"id":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},"code":true,"children":[{"kind":"text","text":"List"}]},{"kind":"text","text":" with random access."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current set of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"instructions"}]},{"kind":"text","text":" as a "},{"kind":"link","target":{"id":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},"code":true,"children":[{"kind":"text","text":"List"}]},{"kind":"text","text":" with random access."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Compatibility note: The result of this method is subject to change without notice between Truffle versions. This introspection API is therefore intended to be used for debugging and tracing purposes only. Do not rely on instructions for your language semantics."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Footprint note: this method eagerly materializes an entire list, unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstructions()"},"code":true,"children":[{"kind":"text","text":"getInstructions()"}]},{"kind":"text","text":", which allocates its elements on demand. Prefer to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstructions()"},"code":true,"children":[{"kind":"text","text":"getInstructions()"}]},{"kind":"text","text":" for simple iteration use cases."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":432}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceInformation()","anchor":"getSourceInformation()","kind":"method","name":"getSourceInformation","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SourceInformation","ref":"com.oracle.truffle.api.bytecode.SourceInformation"},{"kind":"punct","text":"> "},{"kind":"name","text":"getSourceInformation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SourceInformation","ref":"com.oracle.truffle.api.bytecode.SourceInformation"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Produces a list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformation"},"code":true,"children":[{"kind":"text","text":"SourceInformation"}]},{"kind":"text","text":" for a bytecode node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Produces a list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformation"},"code":true,"children":[{"kind":"text","text":"SourceInformation"}]},{"kind":"text","text":" for a bytecode node. If no source information is available, returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Footprint note: the backing list implementation consumes a fixed amount of memory. It allocates the underlying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformation"},"code":true,"children":[{"kind":"text","text":"SourceInformation"}]},{"kind":"text","text":" elements when it is "},{"kind":"link","target":{"id":"java.util.List#get(int)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html#get(int)"},"code":true,"children":[{"kind":"text","text":"accessed"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":450}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceInformationTree()","anchor":"getSourceInformationTree()","kind":"method","name":"getSourceInformationTree","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceInformationTree","ref":"com.oracle.truffle.api.bytecode.SourceInformationTree"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceInformationTree"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceInformationTree","ref":"com.oracle.truffle.api.bytecode.SourceInformationTree"}]},"doc":{"summary":[{"kind":"text","text":"Produces a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformationTree"},"code":true,"children":[{"kind":"text","text":"SourceInformationTree"}]},{"kind":"text","text":" for this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Produces a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformationTree"},"code":true,"children":[{"kind":"text","text":"SourceInformationTree"}]},{"kind":"text","text":" for this node. If no source information is available, returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The tree returned by this method will have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformation#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":" that spans the whole bytecode range, or a "},{"kind":"code","text":"null"},{"kind":"text","text":" section if no such section exists. For example, if Root operation directly contains two SourceSection operations covering different bytecode ranges, the tree's source section will be "},{"kind":"code","text":"null"},{"kind":"text","text":". The source section can be "},{"kind":"code","text":"null"},{"kind":"text","text":" even if there is a single SourceSection operation containing the entire root body; for reliable source information that covers the entire bytecode range, the Root operation should be nested inside of a SourceSection operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Footprint note: this method eagerly materializes an entire tree, unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceInformation()"},"code":true,"children":[{"kind":"text","text":"getSourceInformation()"}]},{"kind":"text","text":", which allocates its elements on demand. Prefer to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceInformation()"},"code":true,"children":[{"kind":"text","text":"getSourceInformation()"}]},{"kind":"text","text":" unless you need to traverse the source tree."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":470}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()","anchor":"ensureSourceInformation()","kind":"method","name":"ensureSourceInformation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureSourceInformation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},"doc":{"summary":[{"kind":"text","text":"Ensures that sources are materialized for this node and returns an updated bytecode node if it changed during materialization."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that sources are materialized for this node and returns an updated bytecode node if it changed during materialization."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.ensureSourceInformation()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes.ensureSourceInformation()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":480}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#hasSourceInformation()","anchor":"hasSourceInformation()","kind":"method","name":"hasSourceInformation","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasSourceInformation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if source information was materialized for this bytecode node, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if source information was materialized for this bytecode node, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":499}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformationWithContent()","anchor":"ensureSourceInformationWithContent()","kind":"method","name":"ensureSourceInformationWithContent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureSourceInformationWithContent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},"doc":{"summary":[{"kind":"text","text":"Ensures that sources are materialized for this node (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]},{"kind":"text","text":") and that content is loaded."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that sources are materialized for this node (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]},{"kind":"text","text":") and that content is loaded."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method has no effect unless the interpreter declares a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#sourceContentSupplier()"},"code":true,"children":[{"kind":"text","text":"source content supplier"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#ensureSourceInformationWithContent()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.ensureSourceInformationWithContent()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#ensureSourceInformationWithContent()"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes.ensureSourceInformationWithContent()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":512}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#hasSourceInformationWithContent()","anchor":"hasSourceInformationWithContent()","kind":"method","name":"hasSourceInformationWithContent","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasSourceInformationWithContent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if source content was loaded for this bytecode node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if source content was loaded for this bytecode node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the interpreter does not declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#sourceContentSupplier()"},"code":true,"children":[{"kind":"text","text":"source content supplier"}]},{"kind":"text","text":", this method is equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#hasSourceInformation()"},"code":true,"children":[{"kind":"text","text":"hasSourceInformation"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformationWithContent()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformationWithContent()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":533}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getExceptionHandlers()","anchor":"getExceptionHandlers()","kind":"method","name":"getExceptionHandlers","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ExceptionHandler","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler"},{"kind":"punct","text":"> "},{"kind":"name","text":"getExceptionHandlers"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ExceptionHandler","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler"},"code":true,"children":[{"kind":"text","text":"exception handlers"}]},{"kind":"text","text":" associated with this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler"},"code":true,"children":[{"kind":"text","text":"exception handlers"}]},{"kind":"text","text":" associated with this node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":540}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getTagTree()","anchor":"getTagTree()","kind":"method","name":"getTagTree","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TagTree","ref":"com.oracle.truffle.api.bytecode.TagTree"},{"kind":"punct","text":" "},{"kind":"name","text":"getTagTree"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TagTree","ref":"com.oracle.truffle.api.bytecode.TagTree"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.TagTree"},"code":true,"children":[{"kind":"text","text":"TagTree"}]},{"kind":"text","text":" for this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.TagTree"},"code":true,"children":[{"kind":"text","text":"TagTree"}]},{"kind":"text","text":" for this node. The tree only contains tag operations for the tags that were enabled during parsing; if no tags were enabled, returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":548}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#createMaterializedFrame(int,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"createMaterializedFrame(int,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"createMaterializedFrame","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"createMaterializedFrame"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index"}]}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current materialized frame"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the captured bytecode frame"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame"}]},{"kind":"text","text":" capturing the materialized interpreter state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame"}]},{"kind":"text","text":" capturing the materialized interpreter state. Note that materialized frames "},{"kind":"strong","children":[{"kind":"text","text":"may become invalid"}]},{"kind":"text","text":" once the interpreter resumes; see the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame"}]},{"kind":"text","text":" javadoc for more info."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Prefer to capture the frame using this method (rather than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#createCopiedFrame(int,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"createCopiedFrame"}]},{"kind":"text","text":") when capturing the frame is a frequent operation or when future updates to the frame should be observable."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":564}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#createCopiedFrame(int,com.oracle.truffle.api.frame.Frame)","anchor":"createCopiedFrame(int,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"createCopiedFrame","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"createCopiedFrame"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeFrame","ref":"com.oracle.truffle.api.bytecode.BytecodeFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the captured bytecode frame"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame"}]},{"kind":"text","text":" capturing a copy of the interpreter state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame"}]},{"kind":"text","text":" capturing a copy of the interpreter state. The copy is always valid, but will not observe subsequent changes to the frame."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Prefer to capture the frame using this method (rather than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#createMaterializedFrame(int,com.oracle.truffle.api.frame.MaterializedFrame)"},"code":true,"children":[{"kind":"text","text":"createMaterializedFrame"}]},{"kind":"text","text":") when capturing the frame is an infrequent operation or when the frame does not need to observe future updates."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":581}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#INVALID","anchor":"INVALID","kind":"field","name":"INVALID","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"INVALID"}],"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":{"summary":[{"kind":"text","text":"Represents an illegal frame slot returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"getLocalValue(int, Frame, int)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an illegal frame slot returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"getLocalValue(int, Frame, int)"}]},{"kind":"text","text":". Pass this marker to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValue(int,com.oracle.truffle.api.frame.Frame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"setLocalValue(int, Frame, int, Object)"}]},{"kind":"text","text":" to mark a slot illegal without changing its type profile. The marker is reserved for this API representation and should not be used as a guest value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion#V2"},"code":true,"children":[{"kind":"text","text":"BytecodeVersion.V2"}]}]]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":594}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValues(int,com.oracle.truffle.api.frame.Frame)","anchor":"getLocalValues(int,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"getLocalValues","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getLocalValues"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index of the given frame. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant. If the bytecode index is inconsistent with the state of the frame passed then the result of this method is unspecified."}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to read locals from"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an array of local values, using the representation described by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"getLocalValue(int, Frame, int)"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a new array containing the current value of each local in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new array containing the current value of each local in the frame. This method should only be used for slow-path use cases (like frame introspection). Prefer reading locals directly in the bytecode (via "},{"kind":"code","text":"LoadLocal"},{"kind":"text","text":" operations or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":") when possible."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An operation can use this method by binding the bytecode node to a specialization parameter (via "},{"kind":"code","text":"@Bind(\"$bytecodeNode\")"},{"kind":"text","text":") and then invoking the method on the bytecode node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The order of the locals corresponds to the order in which they were created using one of the "},{"kind":"code","text":"createLocal()"},{"kind":"text","text":" overloads. It is up to the language to track the creation order."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":619}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)","anchor":"getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"getLocalValue","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalValue"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index of the given frame. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant. If the bytecode index is inconsistent with the state of the frame passed then the result of this method is unspecified."}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to read locals from"}]}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the offset of the local. The offset should be in the range "},{"kind":"code","text":"[0, getLocalCount(bytecodeIndex))"},{"kind":"text","text":" (and may come from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal.getLocalOffset()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"LocalVariable.getLocalOffset()"}]},{"kind":"text","text":"). The value must be a partial evaluation constant."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current local value or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#INVALID"},"code":true,"children":[{"kind":"text","text":"INVALID"}]},{"kind":"text","text":" for an illegal frame slot."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the current value of the local at offset "},{"kind":"code","text":"localOffset"},{"kind":"text","text":" in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current value of the local at offset "},{"kind":"code","text":"localOffset"},{"kind":"text","text":" in the frame. This method should be used for uncommon scenarios, like when a node needs to read a local directly from the frame. Prefer reading locals directly in the bytecode (via "},{"kind":"code","text":"LoadLocal"},{"kind":"text","text":" operations or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":") when possible."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This accessor does not respect the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#illegalLocalException()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.illegalLocalException()"}]},{"kind":"text","text":" attribute; an illegal frame slot is returned as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#INVALID"},"code":true,"children":[{"kind":"text","text":"INVALID"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion#V2"},"code":true,"children":[{"kind":"text","text":"BytecodeVersion.V2"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":656}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalNames(int)","anchor":"getLocalNames(int)","kind":"method","name":"getLocalNames","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getLocalNames"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index, used to determine liveness of locals. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an array of local names"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a new array containing the slot name of locals, as provided during bytecode building."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new array containing the slot name of locals, as provided during bytecode building. If a local is not allocated using a "},{"kind":"code","text":"createLocal"},{"kind":"text","text":" overload that takes a "},{"kind":"code","text":"name"},{"kind":"text","text":", its name will be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The order of the local names corresponds to the order in which the locals were created using one of the "},{"kind":"code","text":"createLocal()"},{"kind":"text","text":" overloads. It is up to the language to track the creation order."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":676}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalName(int,int)","anchor":"getLocalName(int,int)","kind":"method","name":"getLocalName","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalName"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index, used to determine liveness of locals. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant."}]}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the offset of the local. The offset should be in the range "},{"kind":"code","text":"[0, getLocalCount(bytecodeIndex))"},{"kind":"text","text":" (and may come from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal.getLocalOffset()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"LocalVariable.getLocalOffset()"}]},{"kind":"text","text":"). The value must be a partial evaluation constant."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the local name as a partial evaluation constant"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the name of the local at the given "},{"kind":"code","text":"localOffset"},{"kind":"text","text":", as provided during bytecode building."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name of the local at the given "},{"kind":"code","text":"localOffset"},{"kind":"text","text":", as provided during bytecode building. If a local is not allocated using a "},{"kind":"code","text":"createLocal"},{"kind":"text","text":" overload that takes a "},{"kind":"code","text":"name"},{"kind":"text","text":", its name will be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":706}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalInfos(int)","anchor":"getLocalInfos(int)","kind":"method","name":"getLocalInfos","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getLocalInfos"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index, used to determine liveness of locals. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an array of local names"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a new array containing the infos of locals, as provided during bytecode building."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new array containing the infos of locals, as provided during bytecode building. If a local is not allocated using a "},{"kind":"code","text":"createLocal"},{"kind":"text","text":" overload that takes an "},{"kind":"code","text":"info"},{"kind":"text","text":", its info will be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The order of the local infos corresponds to the order in which the locals were created using one of the "},{"kind":"code","text":"createLocal()"},{"kind":"text","text":" overloads. It is up to the language to track the creation order."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":726}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalInfo(int,int)","anchor":"getLocalInfo(int,int)","kind":"method","name":"getLocalInfo","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalInfo"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"bytecodeIndex the current bytecode index, used to determine liveness of locals. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant."}]}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the offset of the local. The offset should be in the range "},{"kind":"code","text":"[0, getLocalCount(bytecodeIndex))"},{"kind":"text","text":" (and may come from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal.getLocalOffset()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"LocalVariable.getLocalOffset()"}]},{"kind":"text","text":"). The value must be a partial evaluation constant."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the local info as a partial evaluation constant"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the info of a local, as provided during bytecode building."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the info of a local, as provided during bytecode building. If a local is not allocated using a "},{"kind":"code","text":"createLocal"},{"kind":"text","text":" overload that takes an "},{"kind":"code","text":"info"},{"kind":"text","text":", its info will be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":756}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValues(int,com.oracle.truffle.api.frame.Frame,java.lang.Object[])","anchor":"setLocalValues(int,com.oracle.truffle.api.frame.Frame,java.lang.Object[])","kind":"method","name":"setLocalValues","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValues"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index of the given frame. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant. If the bytecode index is inconsistent with the state of the frame passed then the result of this method is unspecified."}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to store the local values into"}]}]},{"name":"values","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the values to store into the frame. The length of this array should match the number of live locals."}]}]}],"doc":{"summary":[{"kind":"text","text":"Updates the values of the live locals in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Updates the values of the live locals in the frame. This method should be used for uncommon scenarios, like setting locals in the prolog/epilog or from another root node. Prefer setting locals directly in the bytecode (via "},{"kind":"code","text":"StoreLocal"},{"kind":"text","text":" operations or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},"code":true,"children":[{"kind":"text","text":"LocalRangeAccessor"}]},{"kind":"text","text":") when possible."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":777}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#copyLocalValues(int,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)","anchor":"copyLocalValues(int,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"copyLocalValues","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyLocalValues"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"destination"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index of the given frames. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant. If the bytecode index is inconsistent with the state of the frames passed then the result of this method is unspecified."}]}]},{"name":"source","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to copy locals from"}]}]},{"name":"destination","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to copy locals into"}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies the values of the live locals from the source frame to the destination frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies the values of the live locals from the source frame to the destination frame. The frames must have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getFrameDescriptor()"},"code":true,"children":[{"kind":"text","text":"descriptor"}]},{"kind":"text","text":" as this bytecode node."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":805}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#copyLocalValues(int,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame,int,int)","anchor":"copyLocalValues(int,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"copyLocalValues","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyLocalValues"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"destination"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localCount"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index of the given frames. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant. If the bytecode index is inconsistent with the state of the frame passed then the result of this method is unspecified."}]}]},{"name":"source","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to copy locals from"}]}]},{"name":"destination","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to copy locals into"}]}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the offset of the first local to be copied. The offset should be in the range "},{"kind":"code","text":"[0, getLocalCount(bytecodeIndex))"},{"kind":"text","text":" (and may come from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal.getLocalOffset()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"LocalVariable.getLocalOffset()"}]},{"kind":"text","text":"). The value must be a partial evaluation constant."}]}]},{"name":"localCount","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of locals to copy. The value must be a partial evaluation constant."}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies a range of locals from the "},{"kind":"code","text":"source"},{"kind":"text","text":" frame to the "},{"kind":"code","text":"destination"},{"kind":"text","text":" frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies a range of locals from the "},{"kind":"code","text":"source"},{"kind":"text","text":" frame to the "},{"kind":"code","text":"destination"},{"kind":"text","text":" frame. The frames must have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getFrameDescriptor()"},"code":true,"children":[{"kind":"text","text":"descriptor"}]},{"kind":"text","text":" as this bytecode node. Compared to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#copyLocalValues(int,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"copyLocalValues(int, Frame, Frame)"}]},{"kind":"text","text":", this method allows languages to selectively copy a subset of the frame's locals."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example, suppose that in addition to regular locals, a root node uses temporary locals for intermediate computations. Suppose also that the node needs to be able to compute the values of its regular locals (e.g., for frame introspection). This method can be used to only copy the regular locals and not the temporary locals -- assuming all of the regular locals were allocated (using "},{"kind":"code","text":"createLocal()"},{"kind":"text","text":") before the temporary locals."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":842}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValue(int,com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","anchor":"setLocalValue(int,com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","kind":"method","name":"setLocalValue","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValue"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index of the given frame. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant. If the bytecode index is inconsistent with the state of the frame passed then the result of this method is unspecified."}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to store the local value into"}]}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the offset of the local. The offset should be in the range "},{"kind":"code","text":"[0, getLocalCount(bytecodeIndex))"},{"kind":"text","text":" (and may come from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal.getLocalOffset()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getLocalOffset()"},"code":true,"children":[{"kind":"text","text":"LocalVariable.getLocalOffset()"}]},{"kind":"text","text":"). The value must be a partial evaluation constant."}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to store into the local"}]}]}],"doc":{"summary":[{"kind":"text","text":"Updates the current value of the local at index "},{"kind":"code","text":"localOffset"},{"kind":"text","text":" in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Updates the current value of the local at index "},{"kind":"code","text":"localOffset"},{"kind":"text","text":" in the frame. This method should be used for uncommon scenarios, like setting a local in the prolog/epilog or from another root node. Prefer setting locals directly in the bytecode (via "},{"kind":"code","text":"StoreLocal"},{"kind":"text","text":" operations or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":") when possible."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Passing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#INVALID"},"code":true,"children":[{"kind":"text","text":"INVALID"}]},{"kind":"text","text":" marks the frame slot illegal without changing its type profile, even when a default local value is configured. Passing Java "},{"kind":"code","text":"null"},{"kind":"text","text":" stores a valid Java "},{"kind":"code","text":"null"},{"kind":"text","text":" value using normal value profiling. These representations are also used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValues(int,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"getLocalValues(int, Frame)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValues(int,com.oracle.truffle.api.frame.Frame,java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"setLocalValues(int, Frame, Object[])"}]},{"kind":"text","text":", and both "},{"kind":"code","text":"copyLocalValues"},{"kind":"text","text":" overloads, so copying preserves illegal slots and null values. Passing a value identical ("},{"kind":"code","text":"=="},{"kind":"text","text":") to the configured "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultLocalValue()"},"code":true,"children":[{"kind":"text","text":"default local value"}]},{"kind":"text","text":" restores that default without changing the local's type profile."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will be generated by the Bytecode DSL. Do not override."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion#V2"},"code":true,"children":[{"kind":"text","text":"BytecodeVersion.V2"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":893}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValueInternal(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"getLocalValueInternal(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"getLocalValueInternal","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalValueInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":900}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValueInternalBoolean(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"getLocalValueInternalBoolean(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"getLocalValueInternalBoolean","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalValueInternalBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":907}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValueInternalByte(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"getLocalValueInternalByte(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"getLocalValueInternalByte","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalValueInternalByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":922}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValueInternalInt(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"getLocalValueInternalInt(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"getLocalValueInternalInt","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalValueInternalInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":937}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValueInternalLong(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"getLocalValueInternalLong(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"getLocalValueInternalLong","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalValueInternalLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":952}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValueInternalFloat(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"getLocalValueInternalFloat(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"getLocalValueInternalFloat","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalValueInternalFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":967}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValueInternalDouble(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"getLocalValueInternalDouble(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"getLocalValueInternalDouble","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalValueInternalDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":982}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValueInternal(com.oracle.truffle.api.frame.Frame,int,int,java.lang.Object)","anchor":"setLocalValueInternal(com.oracle.truffle.api.frame.Frame,int,int,java.lang.Object)","kind":"method","name":"setLocalValueInternal","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValueInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":997}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValueInternalBoolean(com.oracle.truffle.api.frame.Frame,int,int,boolean)","anchor":"setLocalValueInternalBoolean(com.oracle.truffle.api.frame.Frame,int,int,boolean)","kind":"method","name":"setLocalValueInternalBoolean","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValueInternalBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1004}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValueInternalByte(com.oracle.truffle.api.frame.Frame,int,int,byte)","anchor":"setLocalValueInternalByte(com.oracle.truffle.api.frame.Frame,int,int,byte)","kind":"method","name":"setLocalValueInternalByte","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValueInternalByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1013}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValueInternalInt(com.oracle.truffle.api.frame.Frame,int,int,int)","anchor":"setLocalValueInternalInt(com.oracle.truffle.api.frame.Frame,int,int,int)","kind":"method","name":"setLocalValueInternalInt","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValueInternalInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1022}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValueInternalLong(com.oracle.truffle.api.frame.Frame,int,int,long)","anchor":"setLocalValueInternalLong(com.oracle.truffle.api.frame.Frame,int,int,long)","kind":"method","name":"setLocalValueInternalLong","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValueInternalLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1031}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValueInternalFloat(com.oracle.truffle.api.frame.Frame,int,int,float)","anchor":"setLocalValueInternalFloat(com.oracle.truffle.api.frame.Frame,int,int,float)","kind":"method","name":"setLocalValueInternalFloat","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValueInternalFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1040}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValueInternalDouble(com.oracle.truffle.api.frame.Frame,int,int,double)","anchor":"setLocalValueInternalDouble(com.oracle.truffle.api.frame.Frame,int,int,double)","kind":"method","name":"setLocalValueInternalDouble","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValueInternalDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1049}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#clearLocalValueInternal(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"clearLocalValueInternal(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"clearLocalValueInternal","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clearLocalValueInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1058}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#isLocalClearedInternal(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"isLocalClearedInternal(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"isLocalClearedInternal","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isLocalClearedInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1065}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalNameInternal(int,int)","anchor":"getLocalNameInternal(int,int)","kind":"method","name":"getLocalNameInternal","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalNameInternal"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":")"}],"params":[{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1072}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalInfoInternal(int,int)","anchor":"getLocalInfoInternal(int,int)","kind":"method","name":"getLocalInfoInternal","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalInfoInternal"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"localIndex"},{"kind":"punct","text":")"}],"params":[{"name":"localOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"localIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1079}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalCount(int)","anchor":"getLocalCount(int)","kind":"method","name":"getLocalCount","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalCount"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index, used to determine liveness of locals. A valid bytecode index can be obtained by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getBytecodeIndex()"}]},{"kind":"text","text":" or using @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":"(\"$bytecodeIndex\") annotation. The value must be a partial evaluation constant."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of live locals as a partial evaluation constant."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of live locals at the given "},{"kind":"code","text":"bytecodeIndex"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of live locals at the given "},{"kind":"code","text":"bytecodeIndex"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBlockScoping"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1093}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocals()","anchor":"getLocals()","kind":"method","name":"getLocals","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"LocalVariable","ref":"com.oracle.truffle.api.bytecode.LocalVariable"},{"kind":"punct","text":"> "},{"kind":"name","text":"getLocals"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"LocalVariable","ref":"com.oracle.truffle.api.bytecode.LocalVariable"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a list of locals"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a list of all of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable"},"code":true,"children":[{"kind":"text","text":"local variables"}]},{"kind":"text","text":" with liveness info."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a list of all of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable"},"code":true,"children":[{"kind":"text","text":"local variables"}]},{"kind":"text","text":" with liveness info."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1101}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setUncachedThreshold(int)","anchor":"setUncachedThreshold(int)","kind":"method","name":"setUncachedThreshold","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setUncachedThreshold"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"threshold"},{"kind":"punct","text":")"}],"params":[{"name":"threshold","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Sets the number of invocations/resumptions or backward branches for which this interpreter executes uncached before transitioning to cached on the next such event."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the number of invocations/resumptions or backward branches for which this interpreter executes uncached before transitioning to cached on the next such event. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultUncachedThreshold()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.defaultUncachedThreshold"}]},{"kind":"text","text":" for information about the default threshold and the meaning of different "},{"kind":"code","text":"threshold"},{"kind":"text","text":" values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should be called before executing the root node. It will not have any effect on an uncached interpreter that is currently executing, an interpreter that is already cached, or an interpreter that does not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableUncachedInterpreter()"},"code":true,"children":[{"kind":"text","text":"enable uncached"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1116}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getTier()","anchor":"getTier()","kind":"method","name":"getTier","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeTier","ref":"com.oracle.truffle.api.bytecode.BytecodeTier"},{"kind":"punct","text":" "},{"kind":"name","text":"getTier"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeTier","ref":"com.oracle.truffle.api.bytecode.BytecodeTier"}]},"doc":{"summary":[{"kind":"text","text":"Returns the tier of this bytecode node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the tier of this bytecode node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1123}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#dump()","anchor":"dump()","kind":"method","name":"dump","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"dump"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Convert this bytecode node to a string representation for debugging purposes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Convert this bytecode node to a string representation for debugging purposes."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#dump(com.oracle.truffle.api.bytecode.BytecodeLocation)"},"code":true,"children":[{"kind":"text","text":"dump(BytecodeLocation)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1131}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#dump(int)","anchor":"dump(int)","kind":"method","name":"dump","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"dump"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an optional location to highlight in the dump."}]}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Convert this bytecode node to a string representation for debugging purposes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Convert this bytecode node to a string representation for debugging purposes. Highlights the location at the given bytecode index."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1142}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#dump(com.oracle.truffle.api.bytecode.BytecodeLocation)","anchor":"dump(com.oracle.truffle.api.bytecode.BytecodeLocation)","kind":"method","name":"dump","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"dump"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"param","text":"highlightedLocation"},{"kind":"punct","text":")"}],"params":[{"name":"highlightedLocation","type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an optional location to highlight in the dump."}]}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Convert this bytecode node to a string representation for debugging purposes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Convert this bytecode node to a string representation for debugging purposes. Highlights the given bytecode location."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1160}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#findInstruction(int)","anchor":"findInstruction(int)","kind":"method","name":"findInstruction","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"name","text":"findInstruction"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1330}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#findBytecodeIndex(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)","anchor":"findBytecodeIndex(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"findBytecodeIndex","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"findBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"operationNode"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"operationNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1337}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#findBytecodeIndex(com.oracle.truffle.api.frame.FrameInstance)","anchor":"findBytecodeIndex(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"findBytecodeIndex","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"findBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1344}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#translateBytecodeIndex(com.oracle.truffle.api.bytecode.BytecodeNode,int)","anchor":"translateBytecodeIndex(com.oracle.truffle.api.bytecode.BytecodeNode,int)","kind":"method","name":"translateBytecodeIndex","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"translateBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"newNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"newNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1362}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#validateBytecodeIndex(int)","anchor":"validateBytecodeIndex(int)","kind":"method","name":"validateBytecodeIndex","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"validateBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1369}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#findLocation(int)","anchor":"findLocation(int)","kind":"method","name":"findLocation","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"findLocation"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Internal method called by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method called by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1376}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#createTransition(com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.bytecode.BytecodeNode,int,boolean)","anchor":"createTransition(com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.bytecode.BytecodeNode,int,boolean)","kind":"method","name":"createTransition","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeTransition","ref":"com.oracle.truffle.api.bytecode.BytecodeTransition"},{"kind":"punct","text":" "},{"kind":"name","text":"createTransition"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"oldBytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"oldBytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"newBytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"newBytecodeIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"wasCompiled"},{"kind":"punct","text":")"}],"params":[{"name":"oldBytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"oldBytecodeIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"newBytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"newBytecodeIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"wasCompiled","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeTransition","ref":"com.oracle.truffle.api.bytecode.BytecodeTransition"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be implemented by generated code."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1385}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#createDefaultStackTraceElement(com.oracle.truffle.api.TruffleStackTraceElement)","anchor":"createDefaultStackTraceElement(com.oracle.truffle.api.TruffleStackTraceElement)","kind":"method","name":"createDefaultStackTraceElement","modifiers":["protected","static","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createDefaultStackTraceElement"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"e"},{"kind":"punct","text":")"}],"params":[{"name":"e","type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Internal method called by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method called by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1392}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValues(com.oracle.truffle.api.frame.FrameInstance)","anchor":"getLocalValues(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"getLocalValues","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getLocalValues"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new array of local values, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the frame instance does not correspond to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" or its bytecode index cannot be determined"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a new array containing the current value of each live local in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new array containing the current value of each live local in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValues(int,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"getLocalValues(int, Frame)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#get(com.oracle.truffle.api.frame.FrameInstance,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame.get(FrameInstance, FrameInstance.FrameAccess)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1407}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalNames(com.oracle.truffle.api.frame.FrameInstance)","anchor":"getLocalNames(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"getLocalNames","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getLocalNames"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new array of names, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the frame instance does not correspond to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" or its bytecode index cannot be determined"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a new array containing the names of the live locals in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new array containing the names of the live locals in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalNames(int)"},"code":true,"children":[{"kind":"text","text":"getLocalNames(int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#get(com.oracle.truffle.api.frame.FrameInstance,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame.get(FrameInstance, FrameInstance.FrameAccess)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1436}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValues(com.oracle.truffle.api.frame.FrameInstance,java.lang.Object[])","anchor":"setLocalValues(com.oracle.truffle.api.frame.FrameInstance,java.lang.Object[])","kind":"method","name":"setLocalValues","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"setLocalValues"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]},{"name":"values","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether the locals could be set; "},{"kind":"code","text":"false"},{"kind":"text","text":" if the frame instance does not correspond to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" or its bytecode index cannot be determined"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the current values of the live locals in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the current values of the live locals in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"frameInstance"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValues(int,com.oracle.truffle.api.frame.Frame,java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"setLocalValues(int, Frame, Object[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#get(com.oracle.truffle.api.frame.FrameInstance,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame.get(FrameInstance, FrameInstance.FrameAccess)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1464}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#resolveFrameImpl(com.oracle.truffle.api.frame.FrameInstance,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)","anchor":"resolveFrameImpl(com.oracle.truffle.api.frame.FrameInstance,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)","kind":"method","name":"resolveFrameImpl","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"name","text":"resolveFrameImpl"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}]},{"name":"access","type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}]}],"returns":{"type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be overridden by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be overridden by generated code."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1488}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#resolveFrameImpl(com.oracle.truffle.api.TruffleStackTraceElement)","anchor":"resolveFrameImpl(com.oracle.truffle.api.TruffleStackTraceElement)","kind":"method","name":"resolveFrameImpl","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"name","text":"resolveFrameImpl"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"element"},{"kind":"punct","text":")"}],"params":[{"name":"element","type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}]}],"returns":{"type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be overridden by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be overridden by generated code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default, frames are unavailable in stack trace elements unless "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#captureFramesForTrace()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.captureFramesForTrace()"}]},{"kind":"text","text":" is set."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1498}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#resolveNonVirtualFrameImpl(com.oracle.truffle.api.TruffleStackTraceElement)","anchor":"resolveNonVirtualFrameImpl(com.oracle.truffle.api.TruffleStackTraceElement)","kind":"method","name":"resolveNonVirtualFrameImpl","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"name","text":"resolveNonVirtualFrameImpl"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"element"},{"kind":"punct","text":")"}],"params":[{"name":"element","type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}]}],"returns":{"type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},"doc":{"summary":[{"kind":"text","text":"Internal method to be overridden by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method to be overridden by generated code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default, frames are unavailable in stack trace elements unless "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#captureFramesForTrace()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.captureFramesForTrace()"}]},{"kind":"text","text":" is set."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1511}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#get(com.oracle.truffle.api.frame.FrameInstance)","anchor":"get(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame instance"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the corresponding bytecode node or null if no node can be found."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the bytecode node for a given FrameInstance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the bytecode node for a given FrameInstance. Frame instances are invalid as soon as the execution of a frame is continued. A bytecode node can be used to materialize a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":", which can be used after the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":" is no longer valid."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1526}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node, which must be a partial evaluation constant."}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the corresponding bytecode location or null if no location can be found."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the bytecode location for a given Node, if it can be found in the parent chain."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the bytecode location for a given Node, if it can be found in the parent chain."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1539}},{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#get(com.oracle.truffle.api.TruffleStackTraceElement)","anchor":"get(com.oracle.truffle.api.TruffleStackTraceElement)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"element"},{"kind":"punct","text":")"}],"params":[{"name":"element","type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the stack trace element"}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the corresponding bytecode location or null if no location can be found."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the bytecode location for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":", if it can be found using the stack trace location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the bytecode location for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":", if it can be found using the stack trace location."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":1558}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents the current bytecode for a Bytecode DSL root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the current bytecode for a Bytecode DSL root node. The bytecode node may be replaced over time with newer versions whenever the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"bytecode configuration"}]},{"kind":"text","text":" or the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeTier"},"code":true,"children":[{"kind":"text","text":"tier"}]},{"kind":"text","text":" changes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getTier()"},"code":true,"children":[{"kind":"text","text":"tier"}]},{"kind":"text","text":" of a bytecode node initially always starts out as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeTier#UNCACHED"},"code":true,"children":[{"kind":"text","text":"BytecodeTier.UNCACHED"}]},{"kind":"text","text":". This means that no cached nodes were created yet. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setUncachedThreshold(int)"},"code":true,"children":[{"kind":"text","text":"uncached threshold"}]},{"kind":"text","text":" determines how many calls/resumes and back-edges are necessary for the node to transition to the cached tier. By default the uncached threshold is 16 if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableUncachedInterpreter()"},"code":true,"children":[{"kind":"text","text":"uncached interpreter"}]},{"kind":"text","text":" is enabled, and 0 if not (i.e., it will transition to cached on the first execution). The intention of the uncached bytecode tier is to reduce the footprint of root nodes that are executed infrequently."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The current bytecode node can be bound using "},{"kind":"code","text":"@Bind BytecodeNode bytecode"},{"kind":"text","text":" in the specialization of an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":". Since the instructions for a root node can change when the bytecode node changes, a bytecode index is only valid for a particular bytecode node. It is therefore recommended to create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" when storing a location (by using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getBytecodeLocation(int)"},"code":true,"children":[{"kind":"text","text":"getBytecodeLocation(int)"}]},{"kind":"text","text":" or binding it with "},{"kind":"code","text":"@Bind BytecodeLocation location"},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This class is not intended to be subclassed by clients, only by code generated by the Bytecode DSL."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeNode.java","line":94}},{"id":"com.oracle.truffle.api.bytecode.BytecodeParser","name":"BytecodeParser","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"BytecodeBuilder","ref":"com.oracle.truffle.api.bytecode.BytecodeBuilder"}]],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder class of the bytecode root node"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeParser"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeBuilder","ref":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},{"kind":"punct","text":">"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeParser#parse(T)","anchor":"parse(T)","kind":"method","name":"parse","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"parse"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"builder"},{"kind":"punct","text":")"}],"params":[{"name":"builder","type":[{"kind":"typeParam","text":"T"}]}],"doc":{"summary":[{"kind":"text","text":"The parse method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The parse method. Should be idempotent and free of side-effects."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeParser.java","line":84}}],"doc":{"summary":[{"kind":"text","text":"Functional interface containing a method to parse one or more nodes using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Functional interface containing a method to parse one or more nodes using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Implementations are commonly written as tree traversals. For example:"}]},{"kind":"code","text":"BytecodeRootNodes nodes = MyBytecodeRootNodeGen.create(BytecodeConfig.DEFAULT, b -> {\n    MyTree myTree = ...; // parse source code to AST\n    b.beginRoot(...);\n    myTree.accept(new MyTreeVisitor(b));\n    b.endRoot();\n})"},{"kind":"paragraph","children":[{"kind":"text","text":"In the above example, the visitor can use the builder "},{"kind":"code","text":"b"},{"kind":"text","text":" to emit bytecode."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The parser should be idempotent (i.e., it can be repeatedly invoked and produces the same result). This is because a parser can be invoked multiple times to "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/bytecode_dsl/UserGuide.md#reparsing-metadata","children":[{"kind":"text","text":"reparse"}]},{"kind":"text","text":" nodes (e.g., to add source information)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Additionally, if serialization is used, the parser should be free of most side effects. The only side effects permitted are field writes on the generated root nodes (since fields are serialized); all other side effects (e.g., non-builder method calls) will not be captured during serialization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Since the parser is kept alive for reparsing, any references it captures will be kept alive in the heap. To reduce memory footprint, it is recommended (where possible) to construct input data (e.g., a parse tree) inside the parser instead of capturing a reference to it."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeParser.java","line":77}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode","name":"BytecodeRootNode","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeRootNode"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"execute(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"execute","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame used for execution"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value returned by the root node"}]}]},"doc":{"summary":[{"kind":"text","text":"Entrypoint to the root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Entrypoint to the root node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will be generated by the Bytecode DSL. Do not override."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":86}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptIncomingValue(java.lang.Object)","anchor":"interceptIncomingValue(java.lang.Object)","kind":"method","name":"interceptIncomingValue","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"interceptIncomingValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the interop value received from tag instrumentation"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to resume execution with"}]}]},"doc":{"summary":[{"kind":"text","text":"Optional hook invoked to convert a value received from tag instrumentation before it resumes guest-language execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional hook invoked to convert a value received from tag instrumentation before it resumes guest-language execution. Instruments can introduce values by returning a non-"},{"kind":"code","text":"null"},{"kind":"text","text":" value from an unwind callback such as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode.onUnwind(VirtualFrame, Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onUnwind(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener.onUnwind(EventContext, VirtualFrame, Object)"}]},{"kind":"text","text":". Such values are interop values and may need to be converted to a representation supported by the guest language."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"EventContext.createUnwind(Object)"}]}]]},"since":"25.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":102}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptOutgoingValue(java.lang.Object)","anchor":"interceptOutgoingValue(java.lang.Object)","kind":"method","name":"interceptOutgoingValue","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"interceptOutgoingValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest-language value being exposed to tag instrumentation"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the interop value to report to tag instrumentation"}]}]},"doc":{"summary":[{"kind":"text","text":"Optional hook invoked to convert every guest-language value before it is exposed to tag instrumentation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional hook invoked to convert every guest-language value before it is exposed to tag instrumentation. This can be used to replace an internal representation with an interop-capable value. The original value continues to be used for guest-language execution."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned value must be an interop value or "},{"kind":"code","text":"null"},{"kind":"text","text":". For values reported after successful execution of a standard tag, this requirement is checked when Java assertions are enabled, and a violation results in a "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":". Values not subject to this check are passed to tag instrumentation unchanged. The hook is not invoked when the instrumented operation does not produce a value."}]}]},"since":"25.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":122}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#getInstrumentationNodeObject(com.oracle.truffle.api.bytecode.TagTreeNode)","anchor":"getInstrumentationNodeObject(com.oracle.truffle.api.bytecode.TagTreeNode)","kind":"method","name":"getInstrumentationNodeObject","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstrumentationNodeObject"},{"kind":"punct","text":"("},{"kind":"type","text":"TagTreeNode","ref":"com.oracle.truffle.api.bytecode.TagTreeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"TagTreeNode","ref":"com.oracle.truffle.api.bytecode.TagTreeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the tagged region belonging to this root"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an interop node object, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no properties are available"}]}]},"doc":{"summary":[{"kind":"text","text":"Supplies the node object for a tagged bytecode region."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Supplies the node object for a tagged bytecode region. The generated instrumentation node delegates "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode.getNodeObject()"}]},{"kind":"text","text":" to this hook. The default returns "},{"kind":"code","text":"null"},{"kind":"text","text":", which instrumentation treats as an empty node object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use the supplied node's tags and source sections to identify the region and expose language metadata. Source sections can be absent if source information has not been materialized or the parser did not supply a source section. The result must satisfy the interop and tag-specific contracts of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode.getNodeObject()"}]},{"kind":"text","text":". For example, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ReadVariableTag"},"code":true,"children":[{"kind":"text","text":"StandardTags.ReadVariableTag"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$WriteVariableTag"},"code":true,"children":[{"kind":"text","text":"StandardTags.WriteVariableTag"}]},{"kind":"text","text":" require a node object with the variable name."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The same restrictions and usage details of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode.getNodeObject()"}]},{"kind":"text","text":" also apply to this method. Since bytecode indices are not stable, they should not be used to identify the node's code region (unless accompanied by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":")."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":147}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptControlFlowException(com.oracle.truffle.api.nodes.ControlFlowException,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)","anchor":"interceptControlFlowException(com.oracle.truffle.api.nodes.ControlFlowException,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)","kind":"method","name":"interceptControlFlowException","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"interceptControlFlowException"},{"kind":"punct","text":"("},{"kind":"type","text":"ControlFlowException","ref":"com.oracle.truffle.api.nodes.ControlFlowException"},{"kind":"punct","text":" "},{"kind":"param","text":"ex"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"params":[{"name":"ex","type":[{"kind":"type","text":"ControlFlowException","ref":"com.oracle.truffle.api.nodes.ControlFlowException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the control flow exception"}]}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame at the point the exception was thrown"}]}]},{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode node executing when the exception was thrown"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index of the instruction that caused the exception"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Optional hook invoked when a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ControlFlowException"},"code":true,"children":[{"kind":"text","text":"ControlFlowException"}]},{"kind":"text","text":" is thrown during execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional hook invoked when a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ControlFlowException"},"code":true,"children":[{"kind":"text","text":"ControlFlowException"}]},{"kind":"text","text":" is thrown during execution. This hook is not invoked for exceptions configured by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#unwindExceptions()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.unwindExceptions()"}]},{"kind":"text","text":". It can do one of four things:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"It can return a value. The value will be returned from the root node (this can be used to implement early returns)."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It can throw the same or a different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ControlFlowException"},"code":true,"children":[{"kind":"text","text":"ControlFlowException"}]},{"kind":"text","text":". The thrown exception will be thrown from the root node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It can throw an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException"}]},{"kind":"text","text":". The thrown exception will be forwarded to the guest code for handling."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It can throw an internal error, which will be intercepted by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptInternalException(java.lang.Throwable,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)"},"code":true,"children":[{"kind":"text","text":"interceptInternalException"}]},{"kind":"text","text":"."}]}]]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":174}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptInternalException(java.lang.Throwable,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)","anchor":"interceptInternalException(java.lang.Throwable,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)","kind":"method","name":"interceptInternalException","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"interceptInternalException"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"t","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the internal exception"}]}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame at the point the exception was thrown"}]}]},{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode node executing when the exception was thrown"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index of the instruction that caused the exception"}]}]}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an equivalent guest-language exception or an exception to be rethrown"}]}]},"doc":{"summary":[{"kind":"text","text":"Optional hook invoked when an internal exception (i.e., anything other than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ControlFlowException"},"code":true,"children":[{"kind":"text","text":"ControlFlowException"}]},{"kind":"text","text":") is thrown during execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional hook invoked when an internal exception (i.e., anything other than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ControlFlowException"},"code":true,"children":[{"kind":"text","text":"ControlFlowException"}]},{"kind":"text","text":") is thrown during execution. This hook is not invoked for exceptions configured by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#unwindExceptions()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.unwindExceptions()"}]},{"kind":"text","text":". It can be used to convert other exceptions into guest-language exceptions that can be handled by guest code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example, if a Java "},{"kind":"link","target":{"id":"java.lang.StackOverflowError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StackOverflowError.html"},"code":true,"children":[{"kind":"text","text":"StackOverflowError"}]},{"kind":"text","text":" is thrown, this hook can be used to return a guest-language equivalent exception that the guest code understands."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the return value is an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException"}]},{"kind":"text","text":", it will be forwarded to the guest code for handling. The exception will also be intercepted by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptTruffleException(com.oracle.truffle.api.exception.AbstractTruffleException,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)"},"code":true,"children":[{"kind":"text","text":"interceptTruffleException"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the return value is not an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException"}]},{"kind":"text","text":", it will be rethrown. Thus, if an internal error cannot be converted to a guest exception, it can simply be returned."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":203}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptTruffleException(com.oracle.truffle.api.exception.AbstractTruffleException,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)","anchor":"interceptTruffleException(com.oracle.truffle.api.exception.AbstractTruffleException,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)","kind":"method","name":"interceptTruffleException","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractTruffleException","ref":"com.oracle.truffle.api.exception.AbstractTruffleException"},{"kind":"punct","text":" "},{"kind":"name","text":"interceptTruffleException"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleException","ref":"com.oracle.truffle.api.exception.AbstractTruffleException"},{"kind":"punct","text":" "},{"kind":"param","text":"ex"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"ex","type":[{"kind":"type","text":"AbstractTruffleException","ref":"com.oracle.truffle.api.exception.AbstractTruffleException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Truffle exception"}]}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame at the point the exception was thrown"}]}]},{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode node executing when the exception was thrown"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index of the instruction that caused the exception"}]}]}],"returns":{"type":[{"kind":"type","text":"AbstractTruffleException","ref":"com.oracle.truffle.api.exception.AbstractTruffleException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Truffle exception to be handled by guest code"}]}]},"doc":{"summary":[{"kind":"text","text":"Optional hook invoked when an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException"}]},{"kind":"text","text":" is thrown during execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional hook invoked when an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException"}]},{"kind":"text","text":" is thrown during execution. This hook is not invoked for exceptions configured by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#unwindExceptions()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.unwindExceptions()"}]},{"kind":"text","text":". It can be used to preprocess other exceptions or replace them with another exception before they are handled."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":221}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#traceTransition(com.oracle.truffle.api.bytecode.BytecodeTransition,com.oracle.truffle.api.frame.Frame)","anchor":"traceTransition(com.oracle.truffle.api.bytecode.BytecodeTransition,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"traceTransition","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"traceTransition"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeTransition","ref":"com.oracle.truffle.api.bytecode.BytecodeTransition"},{"kind":"punct","text":" "},{"kind":"param","text":"transition"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"transition","type":[{"kind":"type","text":"BytecodeTransition","ref":"com.oracle.truffle.api.bytecode.BytecodeTransition"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"describes the transition that occurred"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current execution frame"}]}]}],"doc":{"summary":[{"kind":"text","text":"Optional hook invoked when executing bytecode transitions from one bytecode node to another."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional hook invoked when executing bytecode transitions from one bytecode node to another. Transitions are emitted only for on-stack changes observed during execution, for example when moving from uncached to cached tier, when reparsing updates the bytecode due to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":" changes and execution continues in the new bytecode node, or when deoptimization transfers execution from Truffle runtime-compiled code back to the interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The frame is only valid during the invocation of this method. The transition object may outlive the execution of this method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Engine-level transition logging (via "},{"kind":"code","text":"engine.TraceBytecodeTransition"},{"kind":"text","text":") is always performed independently of this hook. Override this method only to add interpreter-specific behaviour on top of the engine logging."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":245}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#getBytecodeNode()","anchor":"getBytecodeNode()","kind":"method","name":"getBytecodeNode","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode node"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the current bytecode node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current bytecode node. Note that the bytecode may change at any point in time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will be generated by the Bytecode DSL. Do not override."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":257}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#getRootNodes()","anchor":"getRootNodes()","kind":"method","name":"getRootNodes","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getRootNodes"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeRootNodes","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":" instance associated with this root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":" instance associated with this root node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will be generated by the Bytecode DSL. Do not override."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":268}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#getStartLocation()","anchor":"getStartLocation()","kind":"method","name":"getStartLocation","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getStartLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"location"}]},{"kind":"text","text":" associated with the start of this root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"location"}]},{"kind":"text","text":" associated with the start of this root node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":277}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#getSource()","anchor":"getSource()","kind":"method","name":"getSource","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"getSource"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}]},"doc":{"summary":[{"kind":"text","text":"Returns the source for this root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the source for this root node. If no source information is available, returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will be generated by the Bytecode DSL. Do not override."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":289}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#ensureSourceSection()","anchor":"ensureSourceSection()","kind":"method","name":"ensureSourceSection","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns the source section for this root node and materializes source information if it was not yet materialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the source section for this root node and materializes source information if it was not yet materialized."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.ensureSourceInformation()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":300}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#ensureSourceSectionWithContent()","anchor":"ensureSourceSectionWithContent()","kind":"method","name":"ensureSourceSectionWithContent","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureSourceSectionWithContent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns the source section for this root node and materializes source information with content if it was not yet materialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the source section for this root node and materializes source information with content if it was not yet materialized."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can only be used if the interpreter declares a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#sourceContentSupplier()"},"code":true,"children":[{"kind":"text","text":"source content supplier"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#ensureSourceInformationWithContent()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.ensureSourceInformationWithContent()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":314}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#dump()","anchor":"dump()","kind":"method","name":"dump","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"dump"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a string representation of the bytecode"}]}]},"doc":{"summary":[{"kind":"text","text":"Helper method to dump the root node's bytecode."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Helper method to dump the root node's bytecode."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":324}}],"doc":{"summary":[{"kind":"text","text":"Base interface to be implemented by the bytecode root node of a Bytecode DSL interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Base interface to be implemented by the bytecode root node of a Bytecode DSL interpreter. The bytecode root node should extend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.nodes.RootNode"}]},{"kind":"text","text":" and be annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode"},"code":true,"children":[{"kind":"text","text":"@GenerateBytecode"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The current bytecode root node can be bound inside "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"operations"}]},{"kind":"text","text":" using "},{"kind":"code","text":"@Bind"},{"kind":"text","text":". For example, if the bytecode root node class is "},{"kind":"code","text":"MyBytecodeRootNode"},{"kind":"text","text":", it can be bound using "},{"kind":"code","text":"@Bind MyBytecodeRootNode root"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Bytecode root nodes can declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystemReference"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.dsl.TypeSystemReference"}]},{"kind":"text","text":" that will be inherited by all declared operations (including operation proxies). Operations can also declare their own type system references to override the root type system."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNode.java","line":74}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes","name":"BytecodeRootNodes","kind":"class","language":"java","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],[{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"}]],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the type of the bytecode root node"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeRootNodes"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" & "},{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#TOKEN","anchor":"TOKEN","kind":"field","name":"TOKEN","modifiers":["protected","static","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"TOKEN"}],"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":{"summary":[{"kind":"text","text":"A singleton object used to ensure certain Bytecode DSL APIs are only used by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A singleton object used to ensure certain Bytecode DSL APIs are only used by generated code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":72}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#nodes","anchor":"nodes","kind":"field","name":"nodes","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"name","text":"nodes"}],"type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}],"doc":{"summary":[{"kind":"text","text":"The array of parsed nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The array of parsed nodes."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":80}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#<init>(java.lang.Object,com.oracle.truffle.api.bytecode.BytecodeParser)","anchor":"<init>(java.lang.Object,com.oracle.truffle.api.bytecode.BytecodeParser)","kind":"constructor","name":"BytecodeRootNodes","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeRootNodes"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeBuilder","ref":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},{"kind":"punct","text":"> "},{"kind":"param","text":"parser"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"parser","type":[{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeBuilder","ref":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Default constructor for a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Default constructor for a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":87}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#getNodes()","anchor":"getNodes()","kind":"method","name":"getNodes","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"getNodes"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the list of bytecode root nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the list of bytecode root nodes. The order of the list corresponds to the order of "},{"kind":"code","text":"beginRoot(...)"},{"kind":"text","text":" calls on the builder."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":104}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#getNode(int)","anchor":"getNode(int)","kind":"method","name":"getNode","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getNode"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode root node at index "},{"kind":"code","text":"i"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode root node at index "},{"kind":"code","text":"i"},{"kind":"text","text":". The order of the list corresponds to the order of "},{"kind":"code","text":"beginRoot(...)"},{"kind":"text","text":" calls on the builder."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":114}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#count()","anchor":"count()","kind":"method","name":"count","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"count"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of root nodes produced from the parse."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of root nodes produced from the parse."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":123}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#getParser()","anchor":"getParser()","kind":"method","name":"getParser","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeBuilder","ref":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},{"kind":"punct","text":"> "},{"kind":"name","text":"getParser"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeParser","ref":"com.oracle.truffle.api.bytecode.BytecodeParser"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeBuilder","ref":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the parser used to parse the root nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the parser used to parse the root nodes."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":132}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#update(com.oracle.truffle.api.bytecode.BytecodeConfig)","anchor":"update(com.oracle.truffle.api.bytecode.BytecodeConfig)","kind":"method","name":"update","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"update"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":")"}],"params":[{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Updates the configuration for the given bytecode nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Updates the configuration for the given bytecode nodes. If the new configuration requires more information (e.g., sources, instrumentation or tags), this method may trigger a reparse to obtain it."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Performance considerations:"}]},{"kind":"text","text":" Updating and adding instrumentations or tags is a costly operation and requires reparsing all "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"root nodes"}]},{"kind":"text","text":" of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":" unit. Reparsing and modifying the generated bytecodes will also deoptimize and invalidate all currently optimized code of the reparsed root nodes. It also may or may not reset all profiling feedback gathered so far. Updating and adding just source information is a much less expensive operation and does not require any invalidation, but also requires to reparse all root nodes. Since compiled code is not invalidated when source information is added (and hence the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" is not updated), lazily updated source information should not be accessed in compiled code."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Usage in compiled code"}]},{"kind":"text","text":": This method may be used in compiled code, but the bytecode config must be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":". If the bytecode config is changed in compiled code then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreter()"},"code":true,"children":[{"kind":"text","text":"deoptimization"}]},{"kind":"text","text":" will be triggered. If an update does not require any changes then this operation will be a no-op in compiled code. In the interpreter it is also reasonably fast (a read and comparison of a volatile field), so it should reasonable to call this method on the fast path (e.g., in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Prolog"},"code":true,"children":[{"kind":"text","text":"prolog"}]},{"kind":"text","text":")."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":161}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#updateImpl(com.oracle.truffle.api.bytecode.BytecodeConfigEncoder,long)","anchor":"updateImpl(com.oracle.truffle.api.bytecode.BytecodeConfigEncoder,long)","kind":"method","name":"updateImpl","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"updateImpl"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeConfigEncoder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder"},{"kind":"punct","text":" "},{"kind":"param","text":"encoder"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"encoder","type":[{"kind":"type","text":"BytecodeConfigEncoder","ref":"com.oracle.truffle.api.bytecode.BytecodeConfigEncoder"}]},{"name":"encoding","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Implementation of reparse."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Implementation of reparse."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will be generated by the Bytecode DSL. Do not override."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":173}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serialize(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)","anchor":"serialize(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)","kind":"method","name":"serialize","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.7\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"serialize"},{"kind":"punct","text":"("},{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"buffer","type":[{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"}]},{"name":"callback","type":[{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Serializes builder bytecode for these nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Serializes builder bytecode for these nodes."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)"},"code":true,"children":[{"kind":"text","text":"serializeBuilderBytecode"}]},{"kind":"text","text":"."}]}],"since":"25.7"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":181}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)","anchor":"serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)","kind":"method","name":"serializeBuilderBytecode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"serializeBuilderBytecode"},{"kind":"punct","text":"("},{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"buffer","type":[{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The buffer to write the builder payload to."}]}]},{"name":"callback","type":[{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"A language-defined method for serializing language constants."}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an I/O error occurs with the buffer."}]}]}],"doc":{"summary":[{"kind":"text","text":"Serializes the nodes as a sequence of builder calls, including all optional metadata (e.g., source information), so the nodes can be deserialized with any configuration or reparsed later when more metadata is requested."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Serializes the nodes as a sequence of builder calls, including all optional metadata (e.g., source information), so the nodes can be deserialized with any configuration or reparsed later when more metadata is requested. This method will always fail unless serialization is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableSerialization()"},"code":true,"children":[{"kind":"text","text":"enabled"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.serializeBuilderBytecode"}]},{"kind":"text","text":", this method serializes the nodes using their current field values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will be overridden by the Bytecode DSL. Do not override."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serializeExecutionBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)"},"code":true,"children":[{"kind":"text","text":"serializeExecutionBytecode"}]}]]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":203}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serializeExecutionBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)","anchor":"serializeExecutionBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)","kind":"method","name":"serializeExecutionBytecode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"serializeExecutionBytecode"},{"kind":"punct","text":"("},{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"config"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"buffer","type":[{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The buffer to write the execution bytecode payload to."}]}]},{"name":"config","type":[{"kind":"type","text":"BytecodeConfig","ref":"com.oracle.truffle.api.bytecode.BytecodeConfig"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The target configuration for execution bytecode."}]}]},{"name":"callback","type":[{"kind":"type","text":"BytecodeSerializer","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"A language-defined method for serializing language constants."}]}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an I/O error occurs with the buffer."}]}]}],"doc":{"summary":[{"kind":"text","text":"Serializes execution bytecode and its metadata for the requested "},{"kind":"code","text":"config"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Serializes execution bytecode and its metadata for the requested "},{"kind":"code","text":"config"},{"kind":"text","text":". This method will always fail unless serialization is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableSerialization()"},"code":true,"children":[{"kind":"text","text":"enabled"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The output contains only the execution bytecode payload. A corresponding builder payload must be produced separately using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)"},"code":true,"children":[{"kind":"text","text":"serializeBuilderBytecode"}]},{"kind":"text","text":" and supplied during deserialization to support reparsing. Execution bytecode is serialized in an unquickened form and does not preserve execution profiles."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Since execution bytecode skips builder validation during deserialization, it should only be used in trusted environments"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Each payload must be independently decodable. If constant object identity matters, its identity must be encoded consistently across both payloads, for example by sharing serializer state that assigns identity indices to constants."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To produce the execution bytecode representation, this method reruns the stored parser to construct a temporary representation with the requested configuration. Serialization does not update the live bytecodes or their configuration."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeExecutionBytecode(L,java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.serializeExecutionBytecode"}]},{"kind":"text","text":", this method serializes the nodes using their current field values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method will be overridden by the Bytecode DSL. Do not override."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":239}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#ensureSourceInformation()","anchor":"ensureSourceInformation()","kind":"method","name":"ensureSourceInformation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureSourceInformation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Ensures that sources are available, reparsing if necessary."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that sources are available, reparsing if necessary."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":249}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#ensureSourceInformationWithContent()","anchor":"ensureSourceInformationWithContent()","kind":"method","name":"ensureSourceInformationWithContent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureSourceInformationWithContent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Ensures that sources are available (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]},{"kind":"text","text":") and that content is loaded."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that sources are available (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation()"}]},{"kind":"text","text":") and that content is loaded."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the interpreter does not declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#sourceContentSupplier()"},"code":true,"children":[{"kind":"text","text":"source content supplier"}]},{"kind":"text","text":", this method is equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#ensureSourceInformation()"},"code":true,"children":[{"kind":"text","text":"ensureSourceInformation"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":263}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#ensureComplete()","anchor":"ensureComplete()","kind":"method","name":"ensureComplete","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureComplete"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Ensures that all sources and instrumentation metadata is available, reparsing if necessary."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that all sources and instrumentation metadata is available, reparsing if necessary."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":272}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#addInstructionTracer(com.oracle.truffle.api.bytecode.InstructionTracer)","anchor":"addInstructionTracer(com.oracle.truffle.api.bytecode.InstructionTracer)","kind":"method","name":"addInstructionTracer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"addInstructionTracer"},{"kind":"punct","text":"("},{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"},{"kind":"punct","text":" "},{"kind":"param","text":"tracer"},{"kind":"punct","text":")"}],"params":[{"name":"tracer","type":[{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the tracer to install"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"tracer"},{"kind":"text","text":" is exclusive to a different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":" (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer#getExclusiveBytecodeDescriptor()"},"code":true,"children":[{"kind":"text","text":"InstructionTracer.getExclusiveBytecodeDescriptor()"}]},{"kind":"text","text":")"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if instruction tracing is not enabled for this interpreter"}]}]}],"doc":{"summary":[{"kind":"text","text":"Registers an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" for this "},{"kind":"code","text":"BytecodeRootNodes"},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Registers an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" for this "},{"kind":"code","text":"BytecodeRootNodes"},{"kind":"text","text":" instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This is a local variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#addInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.addInstructionTracer(TruffleLanguage, InstructionTracer)"}]},{"kind":"text","text":": it only affects the root nodes contained in this "},{"kind":"code","text":"BytecodeRootNodes"},{"kind":"text","text":" object, not all bytecode roots for the entire language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Tracer invocation happens on the language execution thread, at instruction granularity, and may run at very high frequency. Implementations should avoid unnecessary allocation or blocking."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The same tracer instance can only be attached once. If the tracer is already installed for this "},{"kind":"code","text":"BytecodeRootNodes"},{"kind":"text","text":" instance, then this method has no effect. The order in which multiple tracers are invoked is unspecified."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this bytecode interpreter was generated without instruction tracing support (for example using "},{"kind":"code","text":"@GenerateBytecode(enableInstructionTracing = false)"},{"kind":"text","text":"), this method throws "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":304}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#removeInstructionTracer(com.oracle.truffle.api.bytecode.InstructionTracer)","anchor":"removeInstructionTracer(com.oracle.truffle.api.bytecode.InstructionTracer)","kind":"method","name":"removeInstructionTracer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"removeInstructionTracer"},{"kind":"punct","text":"("},{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"},{"kind":"punct","text":" "},{"kind":"param","text":"tracer"},{"kind":"punct","text":")"}],"params":[{"name":"tracer","type":[{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the tracer to remove"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"tracer"},{"kind":"text","text":" is exclusive to a different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":" (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer#getExclusiveBytecodeDescriptor()"},"code":true,"children":[{"kind":"text","text":"InstructionTracer.getExclusiveBytecodeDescriptor()"}]},{"kind":"text","text":")"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if instruction tracing is not enabled for this interpreter"}]}]}],"doc":{"summary":[{"kind":"text","text":"Unregisters a previously installed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" from this "},{"kind":"code","text":"BytecodeRootNodes"},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unregisters a previously installed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" from this "},{"kind":"code","text":"BytecodeRootNodes"},{"kind":"text","text":" instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that currently when all instruction tracers were removed, the trace instructions remain in the bytecode. This may be improved in the future."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this bytecode interpreter was generated without instruction tracing support (for example using "},{"kind":"code","text":"@GenerateBytecode(enableInstructionTracing = false)"},{"kind":"text","text":"), this method throws "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":327}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#updateGlobalInstructionTracers(com.oracle.truffle.api.bytecode.InstructionTracer[])","anchor":"updateGlobalInstructionTracers(com.oracle.truffle.api.bytecode.InstructionTracer[])","kind":"method","name":"updateGlobalInstructionTracers","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"updateGlobalInstructionTracers"},{"kind":"punct","text":"("},{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"},{"kind":"punct","text":"[] "},{"kind":"param","text":"tracers"},{"kind":"punct","text":")"}],"params":[{"name":"tracers","type":[{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"},{"kind":"punct","text":"[]"}]}],"doc":{"summary":[{"kind":"text","text":"Internal callback to the generated code to notify when global instruction tracers change."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal callback to the generated code to notify when global instruction tracers change."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":341}},{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":351}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":" instance encapsulates one or more bytecode root nodes produced from a single parse."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":" instance encapsulates one or more bytecode root nodes produced from a single parse. To reduce interpreter footprint, it supports on-demand reparsing to compute source and instrumentation metadata."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This class will be overridden by the Bytecode DSL. Do not override manually."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeRootNodes.java","line":65}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport","name":"BytecodeSupport","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeSupport"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Contains code to support Bytecode DSL interpreters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Contains code to support Bytecode DSL interpreters. This code should not be used directly by language implementations."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":54}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$CloneReferenceList","name":"BytecodeSupport.CloneReferenceList","kind":"class","language":"java","modifiers":["public","static","final"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeSupport.CloneReferenceList"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.BytecodeSupport","members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$CloneReferenceList#<init>()","anchor":"<init>()","kind":"constructor","name":"CloneReferenceList","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"CloneReferenceList"},{"kind":"punct","text":"()"}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new CloneReferenceList instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new CloneReferenceList instance."}]}]}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$CloneReferenceList#add(T)","anchor":"add(T)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"reference"},{"kind":"punct","text":")"}],"params":[{"name":"reference","type":[{"kind":"typeParam","text":"T"}]}],"doc":{"summary":[{"kind":"text","text":"Adds a new reference to the list."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a new reference to the list. Note references cannot be removed."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":78}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$CloneReferenceList#forEach(java.util.function.Consumer)","anchor":"forEach(java.util.function.Consumer)","kind":"method","name":"forEach","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"forEach"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"forEach"},{"kind":"punct","text":")"}],"params":[{"name":"forEach","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Walks all references contained in the list."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Walks all references contained in the list."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":97}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Special list to weakly keep track of clones."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Special list to weakly keep track of clones. Assumes all operations run under a lock. Do not use directly. We deliberately do not use an memory intensive event queue here, we might leave around a few empty references here and there."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":67}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer","name":"BytecodeSupport.ConstantsBuffer","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeSupport.ConstantsBuffer"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.BytecodeSupport","members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#<init>()","anchor":"<init>()","kind":"constructor","name":"ConstantsBuffer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"ConstantsBuffer"},{"kind":"punct","text":"()"}],"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":172}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#add(java.lang.Object)","anchor":"add(java.lang.Object)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"c"},{"kind":"punct","text":")"}],"params":[{"name":"c","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"constant"},{"kind":"text","text":" is "},{"kind":"code","text":"null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Inserts "},{"kind":"code","text":"constant"},{"kind":"text","text":" (non-"},{"kind":"code","text":"null"},{"kind":"text","text":") and returns its pool index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Inserts "},{"kind":"code","text":"constant"},{"kind":"text","text":" (non-"},{"kind":"code","text":"null"},{"kind":"text","text":") and returns its pool index. If an equal constant is already present, its existing index is returned. "},{"kind":"link","target":{"id":"java.lang.Float","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html"},"code":true,"children":[{"kind":"text","text":"Float"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Double","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html"},"code":true,"children":[{"kind":"text","text":"Double"}]},{"kind":"text","text":" constants compare by raw bits rather than "},{"kind":"link","target":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Object.equals(Object)"}]},{"kind":"text","text":"."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":195}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#addNull()","anchor":"addNull()","kind":"method","name":"addNull","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"addNull"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Inserts a constant without value and returns its index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Inserts a constant without value and returns its index. The added null values are intended to be later patched after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#materialize()"},"code":true,"children":[{"kind":"text","text":"materialization"}]},{"kind":"text","text":". The client must ensure that the reserved null slots do not contain duplicates already contained in the materialized constants array."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":227}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#materialize()","anchor":"materialize()","kind":"method","name":"materialize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"materialize"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a freshly allocated array of exactly "},{"kind":"code","text":"size()"},{"kind":"text","text":" elements, never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Copies the internal "},{"kind":"code","text":"constants[]"},{"kind":"text","text":" array and returns it."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies the internal "},{"kind":"code","text":"constants[]"},{"kind":"text","text":" array and returns it. All auxiliary data structures are reset so that the buffer is ready for the next use. Note that this implementation deliberately does not clear all references contained in the buffer. If all references should be cleared, then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#clear()"},"code":true,"children":[{"kind":"text","text":"clear()"}]},{"kind":"text","text":" should be called after materialization."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":256}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":272}},{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#clear()","anchor":"clear()","kind":"method","name":"clear","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clear"},{"kind":"punct","text":"()"}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#materialize()"},"code":true,"children":[{"kind":"text","text":"materialize()"}]},{"kind":"text","text":" has not been called since the last insertion"}]}]}],"doc":{"summary":[{"kind":"text","text":"Clears all object references held in this buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clears all object references held in this buffer. If the pool had grown beyond "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#MAX_CAPACITY"},"code":true,"children":[{"kind":"code","text":"512"}]},{"kind":"text","text":" constants its internal arrays are replaced by new arrays of that bounded size; otherwise the existing arrays are reused."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The buffer must be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#materialize()"},"children":[{"kind":"text","text":"materialised"}]},{"kind":"text","text":" before it can be cleared."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":293}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized reusable and allocation-free buffer for constants."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized reusable and allocation-free buffer for constants. The first "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#HASH_THRESHOLD"},"code":true,"children":[{"kind":"code","text":"8"}]},{"kind":"text","text":" literals are stored linearly in "},{"kind":"code","text":"constants[]"},{"kind":"text","text":". Once that threshold is crossed, all literals are also entered into an open-address hash table ("},{"kind":"code","text":"keys[]/values[]"},{"kind":"text","text":") so that subsequent look-ups run in amortised O(1) without allocating any "},{"kind":"link","target":{"id":"java.util.Map$Entry","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.Entry.html"},"code":true,"children":[{"kind":"text","text":"java.util.Map.Entry"}]},{"kind":"text","text":" objects. After the client has finished emitting a method it must call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#materialize()"},"code":true,"children":[{"kind":"text","text":"materialize()"}]},{"kind":"text","text":" to obtain an immutable snapshot of the constant pool for that method. The buffer can then be filled again without further allocations. Call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeSupport$ConstantsBuffer#clear()"},"code":true,"children":[{"kind":"text","text":"clear()"}]},{"kind":"text","text":" at the end of using this buffer if you want to release the object references or down-size the backing arrays. Constants are deduplicated by "},{"kind":"link","target":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Object.equals(Object)"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"java.lang.Float","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html"},"code":true,"children":[{"kind":"text","text":"Float"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Double","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html"},"code":true,"children":[{"kind":"text","text":"Double"}]},{"kind":"text","text":" are the exception: they are compared by their raw bits, so distinct NaN payloads stay distinct. "},{"kind":"code","text":"+0.0"},{"kind":"text","text":" and "},{"kind":"code","text":"-0.0"},{"kind":"text","text":" stay distinct as well. "},{"kind":"strong","children":[{"kind":"text","text":"Not thread-safe."}]},{"kind":"text","text":" Intended for use in generated code. Do not use directly."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeSupport.java","line":155}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTier","name":"BytecodeTier","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeTier"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeTier","ref":"com.oracle.truffle.api.bytecode.BytecodeTier"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeTier#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeTier","ref":"com.oracle.truffle.api.bytecode.BytecodeTier"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeTier","ref":"com.oracle.truffle.api.bytecode.BytecodeTier"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTier#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeTier","ref":"com.oracle.truffle.api.bytecode.BytecodeTier"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeTier","ref":"com.oracle.truffle.api.bytecode.BytecodeTier"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTier#UNCACHED","anchor":"UNCACHED","kind":"enumConstant","name":"UNCACHED","signature":[{"kind":"name","text":"UNCACHED"}],"type":[{"kind":"type","text":"BytecodeTier","ref":"com.oracle.truffle.api.bytecode.BytecodeTier"}],"doc":{"summary":[{"kind":"text","text":"The uncached bytecode tier does not collect profiling feedback."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The uncached bytecode tier does not collect profiling feedback. This means that the node was either never executed or the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setUncachedThreshold(int)"},"code":true,"children":[{"kind":"text","text":"uncached threshold"}]},{"kind":"text","text":" did not yet reach zero."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTier.java","line":60}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTier#CACHED","anchor":"CACHED","kind":"enumConstant","name":"CACHED","signature":[{"kind":"name","text":"CACHED"}],"type":[{"kind":"type","text":"BytecodeTier","ref":"com.oracle.truffle.api.bytecode.BytecodeTier"}],"doc":{"summary":[{"kind":"text","text":"The cached bytecode tier does collect profiling feedback."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The cached bytecode tier does collect profiling feedback. This means that the bytecode interpreter is already collecting profiling information."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTier.java","line":68}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents the tier of a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the tier of a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTier.java","line":50}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition","name":"BytecodeTransition","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeTransition"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"BytecodeTransition","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeTransition"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTransition.java","line":69}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#isBytecodeUpdate()","anchor":"isBytecodeUpdate()","kind":"method","name":"isBytecodeUpdate","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isBytecodeUpdate"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if bytecode metadata or instructions changed for this transition, e.g."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if bytecode metadata or instructions changed for this transition, e.g. due to a tier change, instrumentation update, or tag update."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTransition.java","line":79}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#isTransferToInterpreter()","anchor":"isTransferToInterpreter()","kind":"method","name":"isTransferToInterpreter","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isTransferToInterpreter"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this transition was triggered by a deoptimization from compiled code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this transition was triggered by a deoptimization from compiled code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A deoptimization in an inlined Bytecode DSL root may not create a separate transition for that inlined root. In such cases, the transition may instead be reported for the enclosing compilation root."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTransition.java","line":90}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#getAddedTags()","anchor":"getAddedTags()","kind":"method","name":"getAddedTags","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>> "},{"kind":"name","text":"getAddedTags"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>>"}]},"doc":{"summary":[{"kind":"text","text":"Returns tags that were newly added by this transition."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns tags that were newly added by this transition."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This set is typically non-empty only for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#isBytecodeUpdate()"},"code":true,"children":[{"kind":"text","text":"isBytecodeUpdate()"}]},{"kind":"text","text":" transitions."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTransition.java","line":99}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#getAddedInstrumentations()","anchor":"getAddedInstrumentations()","kind":"method","name":"getAddedInstrumentations","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>> "},{"kind":"name","text":"getAddedInstrumentations"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>>"}]},"doc":{"summary":[{"kind":"text","text":"Returns instrumentations that were newly added by this transition."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns instrumentations that were newly added by this transition."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This set is typically non-empty only for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#isBytecodeUpdate()"},"code":true,"children":[{"kind":"text","text":"isBytecodeUpdate()"}]},{"kind":"text","text":" transitions."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTransition.java","line":108}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#getOldLocation()","anchor":"getOldLocation()","kind":"method","name":"getOldLocation","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getOldLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode location before the transition."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode location before the transition."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTransition.java","line":115}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#getNewLocation()","anchor":"getNewLocation()","kind":"method","name":"getNewLocation","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getNewLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode location after the transition."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode location after the transition."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTransition.java","line":122}},{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTransition.java","line":124}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Encapsulates information about a transition of the bytecode interpreter from one bytecode node to another."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Encapsulates information about a transition of the bytecode interpreter from one bytecode node to another. Transitions can be intercepted by overriding "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#traceTransition(com.oracle.truffle.api.bytecode.BytecodeTransition,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode.traceTransition(BytecodeTransition, Frame)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Transition kinds are not mutually exclusive; for example, a single transition can simultaneously report "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#isBytecodeUpdate()"},"code":true,"children":[{"kind":"text","text":"isBytecodeUpdate()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeTransition#isTransferToInterpreter()"},"code":true,"children":[{"kind":"text","text":"isTransferToInterpreter()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Deoptimization transitions report precise bytecode locations for compilation roots and continuation resumes. If a Bytecode DSL root is inlined into another compiled root, a deoptimization in that inlined root may be reported at the enclosing compilation root instead of the inlined root."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeTransition.java","line":62}},{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion","name":"BytecodeVersion","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeVersion"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion#V1","anchor":"V1","kind":"enumConstant","name":"V1","signature":[{"kind":"name","text":"V1"}],"type":[{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"}],"doc":{"summary":[{"kind":"text","text":"Original Bytecode DSL behaviour on initial release."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Original Bytecode DSL behaviour on initial release. Support will be removed in release 25.8."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeVersion.java","line":58}},{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion#V2","anchor":"V2","kind":"enumConstant","name":"V2","signature":[{"kind":"name","text":"V2"}],"type":[{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"}],"doc":{"summary":[{"kind":"text","text":"Distinguishes illegal locals from valid null values in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" local APIs."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Distinguishes illegal locals from valid null values in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" local APIs."}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValue(int, Frame, int)"}]},{"kind":"text","text":" returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#INVALID"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.INVALID"}]},{"kind":"text","text":" for an illegal slot instead of "},{"kind":"code","text":"null"},{"kind":"text","text":". Java "},{"kind":"code","text":"null"},{"kind":"text","text":" continues to represent a null value."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValue(int,com.oracle.truffle.api.frame.Frame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.setLocalValue(int, Frame, int, Object)"}]},{"kind":"text","text":" marks a slot illegal when passed "},{"kind":"code","text":"INVALID"},{"kind":"text","text":" instead of storing "},{"kind":"code","text":"null"},{"kind":"text","text":". Passing "},{"kind":"code","text":"null"},{"kind":"text","text":" continues to store a null value."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The bulk getters and setters use the same representation. Both "},{"kind":"code","text":"BytecodeNode.copyLocalValues"},{"kind":"text","text":" overloads preserve illegal slots and null values."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"To migrate, replace comparisons against "},{"kind":"code","text":"null"},{"kind":"text","text":" that detect illegal locals with comparisons against "},{"kind":"code","text":"BytecodeNode.INVALID"},{"kind":"text","text":". Keep comparisons against "},{"kind":"code","text":"null"},{"kind":"text","text":" that detect null values. Pass "},{"kind":"code","text":"INVALID"},{"kind":"text","text":" when you intend to mark a slot illegal. Ordinary bytecode local loads and stores and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":" retain their behaviour."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#INVALID"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.INVALID"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValues(int,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValues(int, Frame)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setLocalValues(int,com.oracle.truffle.api.frame.Frame,java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.setLocalValues(int, Frame, Object[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#copyLocalValues(int,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.copyLocalValues(int, Frame, Frame)"}]}]]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeVersion.java","line":83}},{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion#LATEST","anchor":"LATEST","kind":"enumConstant","name":"LATEST","signature":[{"kind":"name","text":"LATEST"}],"type":[{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"}],"doc":{"summary":[{"kind":"text","text":"The newest supported Bytecode DSL behaviour version."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The newest supported Bytecode DSL behaviour version. Using this constant explicitly opts into breaking behaviour changes when recompiling against a newer Truffle release. This constant should not be used in production language implementations; select an explicit version instead."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#version()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.version()"}]}]]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeVersion.java","line":94}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Bytecode DSL behaviour versions selectable through "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#version()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.version()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Bytecode DSL behaviour versions selectable through "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#version()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.version()"}]},{"kind":"text","text":". Versions distinguish breaking behaviour changes that require migration of language implementations. They do not identify Truffle releases or version internal implementation details, optimizations, or performance changes."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/BytecodeVersion.java","line":51}},{"id":"com.oracle.truffle.api.bytecode.ConstantOperand","name":"ConstantOperand","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.bytecode.ConstantOperand.Repeat.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ConstantOperand"}],"members":[{"id":"com.oracle.truffle.api.bytecode.ConstantOperand#type()","anchor":"type()","kind":"annotationElement","name":"type","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"type"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"The type of the constant operand."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The type of the constant operand. All specializations must declare a parameter with this exact type."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ConstantOperand.java","line":100}},{"id":"com.oracle.truffle.api.bytecode.ConstantOperand#name()","anchor":"name()","kind":"annotationElement","name":"name","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Optional name for the constant operand."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional name for the constant operand. When this field is not provided, the Bytecode DSL will infer a name from the specializations' parameters."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ConstantOperand.java","line":108}},{"id":"com.oracle.truffle.api.bytecode.ConstantOperand#javadoc()","anchor":"javadoc()","kind":"annotationElement","name":"javadoc","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"javadoc"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Optional documentation for the constant operand."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional documentation for the constant operand. This documentation is included in the javadoc for the generated interpreter."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ConstantOperand.java","line":116}},{"id":"com.oracle.truffle.api.bytecode.ConstantOperand#specifyAtEnd()","anchor":"specifyAtEnd()","kind":"annotationElement","name":"specifyAtEnd","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"specifyAtEnd"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"By default, when an operation has dynamic operands, the constant operands appear before them in signatures and must be supplied to the operation's "},{"kind":"code","text":"begin"},{"kind":"text","text":" method of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"By default, when an operation has dynamic operands, the constant operands appear before them in signatures and must be supplied to the operation's "},{"kind":"code","text":"begin"},{"kind":"text","text":" method of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":". When "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand#specifyAtEnd()"},"code":true,"children":[{"kind":"text","text":"specifyAtEnd()"}]},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", the constant operand instead appears after dynamic operands and is supplied to the operation's "},{"kind":"code","text":"end"},{"kind":"text","text":" method (constant operands to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Prolog"},"code":true,"children":[{"kind":"text","text":"Prolog"}]},{"kind":"text","text":" can be supplied to the "},{"kind":"code","text":"endRoot"},{"kind":"text","text":" method)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In some cases, it may be more convenient to specify a constant operand after parsing the child operations; for example, the constant may only be known after traversing child ASTs."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This flag is meaningless if the operation does not take dynamic operands, since all constant operands will be supplied to a single "},{"kind":"code","text":"emit"},{"kind":"text","text":" method. The exception to this rule is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Prolog"},"code":true,"children":[{"kind":"text","text":"Prolog"}]},{"kind":"text","text":"s, which can receive their operands as arguments to either "},{"kind":"code","text":"beginRoot"},{"kind":"text","text":" or "},{"kind":"code","text":"endRoot"},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ConstantOperand.java","line":135}},{"id":"com.oracle.truffle.api.bytecode.ConstantOperand#dimensions()","anchor":"dimensions()","kind":"annotationElement","name":"dimensions","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"dimensions"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Specifies the number of array dimensions to be marked as compilation final."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the number of array dimensions to be marked as compilation final. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal#dimensions()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.CompilerDirectives.CompilationFinal.dimensions"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The Bytecode DSL currently only supports a value of 0; that is, array elements are "},{"kind":"strong","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" compilation-final."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ConstantOperand.java","line":146}}],"doc":{"summary":[{"kind":"text","text":"Defines a constant operand for an operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines a constant operand for an operation. Constant operands are supported for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instrumentation"},"code":true,"children":[{"kind":"text","text":"Instrumentation"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Yield"},"code":true,"children":[{"kind":"text","text":"Yield"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Return"},"code":true,"children":[{"kind":"text","text":"Return"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Prolog"},"code":true,"children":[{"kind":"text","text":"Prolog"}]},{"kind":"text","text":" operations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Constant operands have a few benefits:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"In contrast to dynamic operands, which are computed by executing the \"children\" of an operation at run time, constant operands are specified at parse time and require no run-time computation."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Constant operands have "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.CompilerDirectives.CompilationFinal"}]},{"kind":"text","text":" semantics. Though an interpreter can use "},{"kind":"code","text":"LoadConstant"},{"kind":"text","text":" operations to supply dynamic operands, those constants are "},{"kind":"strong","children":[{"kind":"text","text":"not guaranteed to be compilation-final"}]},{"kind":"text","text":" (the constant is pushed onto and then popped from the stack, which PE cannot always constant fold)."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instrumentation"},"code":true,"children":[{"kind":"text","text":"Instrumentation"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Prolog"},"code":true,"children":[{"kind":"text","text":"Prolog"}]},{"kind":"text","text":" operations are restricted and cannot encode arbitrary dynamic operands. Constant operands can be used to encode other information needed by these operations."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"When an operation declares a constant operand, each specialization must declare a parameter for the operand before the dynamic operands. The parameter should have the exact "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand#type()"},"code":true,"children":[{"kind":"text","text":"type()"}]},{"kind":"text","text":" of the constant operand."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When parsing the operation, a constant must be supplied as an additional parameter to the "},{"kind":"code","text":"begin"},{"kind":"text","text":" or "},{"kind":"code","text":"emit"},{"kind":"text","text":" method of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"BytecodeBuilder"}]},{"kind":"text","text":". Constant operands to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Prolog"},"code":true,"children":[{"kind":"text","text":"Prolog"}]},{"kind":"text","text":" should be supplied to the "},{"kind":"code","text":"beginRoot"},{"kind":"text","text":" method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Except for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":"s, a constant operand cannot be a subclass of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". If an operation needs a compilation-final node operand, it can declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFactory"},"code":true,"children":[{"kind":"text","text":"NodeFactory"}]},{"kind":"text","text":" constant operand and then declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" parameter initialized with the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFactory#createNode(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"createNode"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ConstantOperand.java","line":90}},{"id":"com.oracle.truffle.api.bytecode.ConstantOperand$Repeat","name":"ConstantOperand.Repeat","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ConstantOperand.Repeat"}],"enclosing":"com.oracle.truffle.api.bytecode.ConstantOperand","members":[{"id":"com.oracle.truffle.api.bytecode.ConstantOperand$Repeat#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"ConstantOperand","ref":"com.oracle.truffle.api.bytecode.ConstantOperand"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ConstantOperand","ref":"com.oracle.truffle.api.bytecode.ConstantOperand"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"ConstantOperand"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"ConstantOperand"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ConstantOperand.java","line":161}}],"doc":{"summary":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"ConstantOperand"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"ConstantOperand"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ConstantOperand.java","line":153}},{"id":"com.oracle.truffle.api.bytecode.ContinuationResult","name":"ContinuationResult","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ContinuationResult"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleObject","ref":"com.oracle.truffle.api.interop.TruffleObject"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"TruffleObject","ref":"com.oracle.truffle.api.interop.TruffleObject"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#<init>(com.oracle.truffle.api.bytecode.ContinuationRootNode,com.oracle.truffle.api.frame.MaterializedFrame,java.lang.Object)","anchor":"<init>(com.oracle.truffle.api.bytecode.ContinuationRootNode,com.oracle.truffle.api.frame.MaterializedFrame,java.lang.Object)","kind":"constructor","name":"ContinuationResult","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"ContinuationResult"},{"kind":"punct","text":"("},{"kind":"type","text":"ContinuationRootNode","ref":"com.oracle.truffle.api.bytecode.ContinuationRootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"rootNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"rootNode","type":[{"kind":"type","text":"ContinuationRootNode","ref":"com.oracle.truffle.api.bytecode.ContinuationRootNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"name":"result","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Creates a continuation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a continuation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The generated interpreter will use this constructor. Continuations should not be created directly by user code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":102}},{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#create(com.oracle.truffle.api.bytecode.ContinuationRootNode,com.oracle.truffle.api.frame.MaterializedFrame,java.lang.Object)","anchor":"create(com.oracle.truffle.api.bytecode.ContinuationRootNode,com.oracle.truffle.api.frame.MaterializedFrame,java.lang.Object)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ContinuationResult","ref":"com.oracle.truffle.api.bytecode.ContinuationResult"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"ContinuationRootNode","ref":"com.oracle.truffle.api.bytecode.ContinuationRootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"rootNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"rootNode","type":[{"kind":"type","text":"ContinuationRootNode","ref":"com.oracle.truffle.api.bytecode.ContinuationRootNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"name":"result","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"ContinuationResult","ref":"com.oracle.truffle.api.bytecode.ContinuationResult"}]},"doc":{"summary":[{"kind":"text","text":"Public API for creating a continuation result."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Public API for creating a continuation result."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is mainly useful when using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Yield"},"code":true,"children":[{"kind":"text","text":"custom yield operations"}]},{"kind":"text","text":" since the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableYield()"},"code":true,"children":[{"kind":"text","text":"built-in yield"}]},{"kind":"text","text":" creates continuation results automatically."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":117}},{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#continueWith(java.lang.Object)","anchor":"continueWith(java.lang.Object)","kind":"method","name":"continueWith","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"continueWith"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value produced by the yield operation in the resumed execution."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Resumes the continuation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resumes the continuation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should generally not be used on compiled code paths. Each yield produces a unique "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"ContinuationResult"}]},{"kind":"text","text":", so the receiver object cannot be easily "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":", which means partial evaluation will be unable to resolve the call target. Instead, it is recommended to cache the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationCallTarget()"},"code":true,"children":[{"kind":"text","text":"continuation call target"}]},{"kind":"text","text":" and call it directly."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":133}},{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationRootNode()","anchor":"getContinuationRootNode()","kind":"method","name":"getContinuationRootNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ContinuationRootNode","ref":"com.oracle.truffle.api.bytecode.ContinuationRootNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getContinuationRootNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ContinuationRootNode","ref":"com.oracle.truffle.api.bytecode.ContinuationRootNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns the root node that resumes execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the root node that resumes execution."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that the continuation root node has a specific calling convention. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationCallTarget()"},"code":true,"children":[{"kind":"text","text":"getContinuationCallTarget"}]},{"kind":"text","text":" for more details, or invoke the root node directly using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#continueWith(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"continueWith"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationCallTarget()"},"code":true,"children":[{"kind":"text","text":"getContinuationCallTarget()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":147}},{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationCallTarget()","anchor":"getContinuationCallTarget()","kind":"method","name":"getContinuationCallTarget","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"getContinuationCallTarget"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"}]},"doc":{"summary":[{"kind":"text","text":"Returns the call target for the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationRootNode()"},"code":true,"children":[{"kind":"text","text":"continuation root node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the call target for the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationRootNode()"},"code":true,"children":[{"kind":"text","text":"continuation root node"}]},{"kind":"text","text":". The call target can be invoked to resume the continuation. It is recommended to register this call target in an inline cache and call it directly."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The call target takes two parameters: the materialized interpreter "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getFrame()"},"code":true,"children":[{"kind":"text","text":"frame"}]},{"kind":"text","text":" and an "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value to resume execution with. The value becomes the value produced by the yield operation in the resumed execution."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":162}},{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getFrame()","anchor":"getFrame()","kind":"method","name":"getFrame","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrame"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},"doc":{"summary":[{"kind":"text","text":"Returns the state of the interpreter at the point that it was suspended."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the state of the interpreter at the point that it was suspended."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":171}},{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getResult()","anchor":"getResult()","kind":"method","name":"getResult","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getResult"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the value yielded by the yield operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the value yielded by the yield operation."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":180}},{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getBytecodeLocation()","anchor":"getBytecodeLocation()","kind":"method","name":"getBytecodeLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Returns the location at which the continuation was created."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the location at which the continuation was created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This location can have a different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationRootNode#getSourceRootNode()"},"code":true,"children":[{"kind":"text","text":"source root node"}]},{"kind":"text","text":" if the source bytecode was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#update(com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"updated"}]},{"kind":"text","text":" (explicitly or implicitly)."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":193}},{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"ContinuationResult"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"ContinuationResult"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":202}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Representation of a continuation closure, consisting of a resumable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":", the interpreter state, and a yielded result."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Representation of a continuation closure, consisting of a resumable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":", the interpreter state, and a yielded result. A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"ContinuationResult"}]},{"kind":"text","text":" is returned when the interpreter yields. It can later be resumed to continue execution. It can be resumed only once."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Below illustrates an example usage of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"ContinuationResult"}]},{"kind":"text","text":"."}]},{"kind":"code","text":"// Assume yieldingRootNode implements the following pseudocode:\n//\n// fun f(x):\n//   y = yield (x + 1)\n//   return x + y\n//\nMyBytecodeRootNode yieldingRootNode = ...;\n\n// The result is a ContinuationResult\nContinuationResult yielded = (ContinuationResult) yieldingRootNode.getCallTarget().call(42);\nassert yielded.getResult() == 43;\n\n// Resume the continuation using continueWith. Pass 58 as the value for yield.\nInteger returned = (Integer) yielded.continueWith(58);\nassert returned == 100;"},{"kind":"paragraph","children":[{"kind":"text","text":"For performance reasons, a language may wish to define an inline cache over continuations. In such a case, they should not call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#continueWith(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"continueWith"}]},{"kind":"text","text":", but instead cache and call the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationRootNode()"},"code":true,"children":[{"kind":"text","text":"root node"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationCallTarget()"},"code":true,"children":[{"kind":"text","text":"call target"}]},{"kind":"text","text":" directly. This is necessary because continuation results are dynamic values, not partial evaluation constants. Be careful to conform to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationCallTarget()"},"code":true,"children":[{"kind":"text","text":"calling convention"}]},{"kind":"text","text":" when calling the continuation root node directly."}]}],"see":[[{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/src/com.oracle.truffle.api.bytecode.test/src/com/oracle/truffle/api/bytecode/test/examples/ContinuationsTutorial.java","children":[{"kind":"text","text":"Continuations tutorial"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationResult.java","line":87}},{"id":"com.oracle.truffle.api.bytecode.ContinuationRootNode","name":"ContinuationRootNode","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ContinuationRootNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"superclass":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.RootNode"},{"id":"com.oracle.truffle.api.nodes.ExecutableNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.ContinuationRootNode#<init>(java.lang.Object,com.oracle.truffle.api.TruffleLanguage,com.oracle.truffle.api.frame.FrameDescriptor)","anchor":"<init>(java.lang.Object,com.oracle.truffle.api.TruffleLanguage,com.oracle.truffle.api.frame.FrameDescriptor)","kind":"constructor","name":"ContinuationRootNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ContinuationRootNode"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"frameDescriptor"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}]},{"name":"frameDescriptor","type":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationRootNode.java","line":69}},{"id":"com.oracle.truffle.api.bytecode.ContinuationRootNode#getSourceRootNode()","anchor":"getSourceRootNode()","kind":"method","name":"getSourceRootNode","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceRootNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns the original root node from which this continuation was created."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the original root node from which this continuation was created."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationRootNode.java","line":79}},{"id":"com.oracle.truffle.api.bytecode.ContinuationRootNode#getLocation()","anchor":"getLocation()","kind":"method","name":"getLocation","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" associated with this continuation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" associated with this continuation."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationRootNode.java","line":86}},{"id":"com.oracle.truffle.api.bytecode.ContinuationRootNode#findFrame(com.oracle.truffle.api.frame.Frame)","anchor":"findFrame(com.oracle.truffle.api.frame.Frame)","kind":"method","name":"findFrame","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"name","text":"findFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]}],"returns":{"type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},"doc":{"summary":[{"kind":"text","text":"Internal method implemented by the generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method implemented by the generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationRootNode.java","line":93}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.RootNode","text":"RootNode"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.RootNode#call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])","text":"call"},{"id":"com.oracle.truffle.api.nodes.RootNode#cloneUninitialized()","text":"cloneUninitialized"},{"id":"com.oracle.truffle.api.nodes.RootNode#computeSize()","text":"computeSize"},{"id":"com.oracle.truffle.api.nodes.RootNode#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.RootNode#countsTowardsStackTraceLimit()","text":"countsTowardsStackTraceLimit"},{"id":"com.oracle.truffle.api.nodes.RootNode#createConstantNode(java.lang.Object)","text":"createConstantNode"},{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)","text":"execute"},{"id":"com.oracle.truffle.api.nodes.RootNode#findAsynchronousFrames(com.oracle.truffle.api.frame.Frame)","text":"findAsynchronousFrames"},{"id":"com.oracle.truffle.api.nodes.RootNode#findBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame)","text":"findBytecodeIndex"},{"id":"com.oracle.truffle.api.nodes.RootNode#findInstrumentableCallNode(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame,int)","text":"findInstrumentableCallNode"},{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()","text":"getCallTarget"},{"id":"com.oracle.truffle.api.nodes.RootNode#getFrameDescriptor()","text":"getFrameDescriptor"},{"id":"com.oracle.truffle.api.nodes.RootNode#getName()","text":"getName"},{"id":"com.oracle.truffle.api.nodes.RootNode#getParentFrameDescriptor()","text":"getParentFrameDescriptor"},{"id":"com.oracle.truffle.api.nodes.RootNode#getQualifiedName()","text":"getQualifiedName"},{"id":"com.oracle.truffle.api.nodes.RootNode#initializeCallTarget()","text":"initializeCallTarget"},{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace()","text":"isCaptureFramesForTrace"},{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(boolean)","text":"isCaptureFramesForTrace"},{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(com.oracle.truffle.api.nodes.Node)","text":"isCaptureFramesForTrace"},{"id":"com.oracle.truffle.api.nodes.RootNode#isCloneUninitializedSupported()","text":"isCloneUninitializedSupported"},{"id":"com.oracle.truffle.api.nodes.RootNode#isCloningAllowed()","text":"isCloningAllowed"},{"id":"com.oracle.truffle.api.nodes.RootNode#isInstrumentable()","text":"isInstrumentable"},{"id":"com.oracle.truffle.api.nodes.RootNode#isInternal()","text":"isInternal"},{"id":"com.oracle.truffle.api.nodes.RootNode#isSameFrame(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)","text":"isSameFrame"},{"id":"com.oracle.truffle.api.nodes.RootNode#isTrivial()","text":"isTrivial"},{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForAOT()","text":"prepareForAOT"},{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForCall()","text":"prepareForCall"},{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForCompilation(boolean,int,boolean)","text":"prepareForCompilation"},{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForInstrumentation(java.util.Set)","text":"prepareForInstrumentation"},{"id":"com.oracle.truffle.api.nodes.RootNode#translateStackTraceElement(com.oracle.truffle.api.TruffleStackTraceElement)","text":"translateStackTraceElement"},{"id":"com.oracle.truffle.api.nodes.RootNode#visitCloneableNodes(com.oracle.truffle.api.nodes.NodeVisitor)","text":"visitCloneableNodes"}]},{"from":{"id":"com.oracle.truffle.api.nodes.ExecutableNode","text":"ExecutableNode"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguage(java.lang.Class)","text":"getLanguage"},{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguageInfo()","text":"getLanguageInfo"}]},{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Abstract class representing the root node for a continuation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Abstract class representing the root node for a continuation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"These root nodes have a precise calling convention; see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#getContinuationCallTarget()"},"code":true,"children":[{"kind":"text","text":"ContinuationResult.getContinuationCallTarget()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a bytecode interpreter "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableYield()"},"code":true,"children":[{"kind":"text","text":"supports continuations"}]},{"kind":"text","text":", the Bytecode DSL will generate a concrete implementation of this interface. It should not be subclassed manually."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ContinuationRootNode.java","line":61}},{"id":"com.oracle.truffle.api.bytecode.EpilogExceptional","name":"EpilogExceptional","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"EpilogExceptional"}],"members":[{"id":"com.oracle.truffle.api.bytecode.EpilogExceptional#storeBytecodeIndex()","anchor":"storeBytecodeIndex()","kind":"annotationElement","name":"storeBytecodeIndex","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"storeBytecodeIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to enable operation-level BCI storage"}]}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether to store the BCI before executing this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to store the BCI before executing this operation. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Operation.storeBytecodeIndex()"}]},{"kind":"text","text":" for mode-dependent defaults. When "},{"kind":"code","text":"false"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex"},"code":true,"children":[{"kind":"text","text":"StoreBytecodeIndex"}]},{"kind":"text","text":" enables storage for individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" methods."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/EpilogExceptional.java","line":82}}],"doc":{"summary":[{"kind":"text","text":"Defines an exceptional epilog operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines an exceptional epilog operation. This epilog executes when an uncaught Truffle exception is thrown (whereas the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogReturn"},"code":true,"children":[{"kind":"text","text":"return epilog"}]},{"kind":"text","text":" executes before returning normally)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An exceptional epilog operation is defined the same way as an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":". It has the additional restriction that its specializations must take one operand (the exception), which must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" or a subtype. The return type must also be void."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The exceptional epilog is guarded by exception intercept methods (e.g., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptInternalException(java.lang.Throwable,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode.interceptInternalException(Throwable, VirtualFrame, BytecodeNode, int)"}]},{"kind":"text","text":"), but not language-level exception handlers."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogReturn"},"code":true,"children":[{"kind":"text","text":"EpilogReturn"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Prolog"},"code":true,"children":[{"kind":"text","text":"Prolog"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/EpilogExceptional.java","line":69}},{"id":"com.oracle.truffle.api.bytecode.EpilogReturn","name":"EpilogReturn","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"EpilogReturn"}],"members":[{"id":"com.oracle.truffle.api.bytecode.EpilogReturn#storeBytecodeIndex()","anchor":"storeBytecodeIndex()","kind":"annotationElement","name":"storeBytecodeIndex","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"storeBytecodeIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to enable operation-level BCI storage"}]}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether to store the BCI before executing this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to store the BCI before executing this operation. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Operation.storeBytecodeIndex()"}]},{"kind":"text","text":" for mode-dependent defaults. When "},{"kind":"code","text":"false"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex"},"code":true,"children":[{"kind":"text","text":"StoreBytecodeIndex"}]},{"kind":"text","text":" enables storage for individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" methods."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/EpilogReturn.java","line":82}}],"doc":{"summary":[{"kind":"text","text":"Defines a return epilog operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines a return epilog operation. This epilog executes before returning a value (whereas the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogExceptional"},"code":true,"children":[{"kind":"text","text":"exceptional epilog"}]},{"kind":"text","text":" handles uncaught Truffle exceptions)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A return epilog operation is defined the same way as an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":". It has the additional restriction that its specializations must take one operand (the returned value) and must return a value. The return value (which can simply be the input operand) is returned from the root node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The return epilog is guarded by exception intercept methods (e.g., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptInternalException(java.lang.Throwable,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode.interceptInternalException(Throwable, VirtualFrame, BytecodeNode, int)"}]},{"kind":"text","text":") and by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogExceptional"},"code":true,"children":[{"kind":"text","text":"exceptional epilog"}]},{"kind":"text","text":", if present. It is not guarded by user-defined language-level exception handlers that guard the return operation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogExceptional"},"code":true,"children":[{"kind":"text","text":"EpilogExceptional"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Prolog"},"code":true,"children":[{"kind":"text","text":"Prolog"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/EpilogReturn.java","line":69}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler","name":"ExceptionHandler","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ExceptionHandler"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"ExceptionHandler","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ExceptionHandler"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":62}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler#getKind()","anchor":"getKind()","kind":"method","name":"getKind","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"},{"kind":"punct","text":" "},{"kind":"name","text":"getKind"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"}]},"doc":{"summary":[{"kind":"text","text":"Returns a kind that determines whether the handler is a custom or special exception handler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a kind that determines whether the handler is a custom or special exception handler."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"},"code":true,"children":[{"kind":"text","text":"HandlerKind"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":72}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler#getStartBytecodeIndex()","anchor":"getStartBytecodeIndex()","kind":"method","name":"getStartBytecodeIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getStartBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the start bytecode index guarded by this exception handler (inclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the start bytecode index guarded by this exception handler (inclusive)."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":79}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler#getEndBytecodeIndex()","anchor":"getEndBytecodeIndex()","kind":"method","name":"getEndBytecodeIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getEndBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the end bytecode index guarded by this exception handler (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the end bytecode index guarded by this exception handler (exclusive)."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":86}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler#getHandlerBytecodeIndex()","anchor":"getHandlerBytecodeIndex()","kind":"method","name":"getHandlerBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getHandlerBytecodeIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"for handlers not of kind "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#CUSTOM"},"code":true,"children":[{"kind":"text","text":"HandlerKind.CUSTOM"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index of the handler code if this exception handler is of kind "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#CUSTOM"},"code":true,"children":[{"kind":"text","text":"HandlerKind.CUSTOM"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index of the handler code if this exception handler is of kind "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#CUSTOM"},"code":true,"children":[{"kind":"text","text":"HandlerKind.CUSTOM"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":95}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler#getTagTree()","anchor":"getTagTree()","kind":"method","name":"getTagTree","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TagTree","ref":"com.oracle.truffle.api.bytecode.TagTree"},{"kind":"punct","text":" "},{"kind":"name","text":"getTagTree"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"returns":{"type":[{"kind":"type","text":"TagTree","ref":"com.oracle.truffle.api.bytecode.TagTree"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"for handlers not of kind "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#TAG"},"code":true,"children":[{"kind":"text","text":"HandlerKind.TAG"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the tag tree of this exception handler if this exception handler is of kind "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#TAG"},"code":true,"children":[{"kind":"text","text":"HandlerKind.TAG"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the tag tree of this exception handler if this exception handler is of kind "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#TAG"},"code":true,"children":[{"kind":"text","text":"HandlerKind.TAG"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":106}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":115}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Introspection class modeling the meta-information of an exception handler in a bytecode interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Introspection class modeling the meta-information of an exception handler in a bytecode interpreter. An exception handler stores information for bytecode index ranges that determine how an exception should be handled at a particular location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: Introspection classes are intended to be used for debugging purposes only. These APIs may change in the future."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getExceptionHandlers()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getExceptionHandlers()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getExceptionHandlers()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getExceptionHandlers()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":55}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind","name":"ExceptionHandler.HandlerKind","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"ExceptionHandler.HandlerKind"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.ExceptionHandler","members":[{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#CUSTOM","anchor":"CUSTOM","kind":"enumConstant","name":"CUSTOM","signature":[{"kind":"name","text":"CUSTOM"}],"type":[{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"}],"doc":{"summary":[{"kind":"text","text":"Handler directly emitted with the bytecode builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Handler directly emitted with the bytecode builder."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":146}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#TAG","anchor":"TAG","kind":"enumConstant","name":"TAG","signature":[{"kind":"name","text":"TAG"}],"type":[{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"}],"doc":{"summary":[{"kind":"text","text":"A special handler which handles tag instrumentation exceptional behavior."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A special handler which handles tag instrumentation exceptional behavior. Only emitted if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"tag instrumentation"}]},{"kind":"text","text":" is enabled."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":154}},{"id":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind#EPILOG","anchor":"EPILOG","kind":"enumConstant","name":"EPILOG","signature":[{"kind":"name","text":"EPILOG"}],"type":[{"kind":"type","text":"ExceptionHandler.HandlerKind","ref":"com.oracle.truffle.api.bytecode.ExceptionHandler$HandlerKind"}],"doc":{"summary":[{"kind":"text","text":"A special handler which handles epilog exceptional behavior."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A special handler which handles epilog exceptional behavior. Only emitted if the language specifies an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogExceptional"},"code":true,"children":[{"kind":"text","text":"EpilogExceptional"}]},{"kind":"text","text":" annotated operation."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":162}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents the kind of the exception handler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the kind of the exception handler."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ExceptionHandler.java","line":139}},{"id":"com.oracle.truffle.api.bytecode.ForceQuickening","name":"ForceQuickening","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.bytecode.ForceQuickening.Repeat.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ForceQuickening"}],"members":[{"id":"com.oracle.truffle.api.bytecode.ForceQuickening#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"The name of the quickening group."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The name of the quickening group. If nonempty, all specializations annotated with the same value will be included in a quickened instruction together. By default, this value is empty, which signifies that a specialization should have its own quickened instruction."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ForceQuickening.java","line":103}}],"doc":{"summary":[{"kind":"text","text":"Forces quickening for an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specialization"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Forces quickening for an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specialization"}]},{"kind":"text","text":". To quicken a combination of specializations, use the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ForceQuickening#value()"},"code":true,"children":[{"kind":"text","text":"name"}]},{"kind":"text","text":". If no name is specified then only the annotated specialization is quickened. It is possible to specify multiple quickenings per specialization (e.g., if a specialization is quickened individually and in a group of specializations). For example, the following code declares two quickenings: one that supports only "},{"kind":"code","text":"ints"},{"kind":"text","text":" (the plain "},{"kind":"code","text":"@ForceQuickening"},{"kind":"text","text":" on "},{"kind":"code","text":"doInts"},{"kind":"text","text":"), and another that supports both "},{"kind":"code","text":"ints"},{"kind":"text","text":" and "},{"kind":"code","text":"doubles"},{"kind":"text","text":" ("},{"kind":"code","text":"@ForceQuickening(\"primitives\")"},{"kind":"text","text":"):"}]},{"kind":"code","text":"@Operation\npublic static final class Add {\n    @Specialization\n    @ForceQuickening\n    @ForceQuickening(\"primitives\")\n    public static int doInts(int lhs, int rhs) {\n        return lhs + rhs;\n    }\n\n    @Specialization\n    @ForceQuickening(\"primitives\")\n    public static double doDoubles(double lhs, double rhs) {\n        return lhs + rhs;\n    }\n\n    @Specialization\n    @TruffleBoundary\n    public static String doStrings(String lhs, String rhs) {\n        return lhs + rhs;\n    }\n}"}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ForceQuickening.java","line":89}},{"id":"com.oracle.truffle.api.bytecode.ForceQuickening$Repeat","name":"ForceQuickening.Repeat","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ForceQuickening.Repeat"}],"enclosing":"com.oracle.truffle.api.bytecode.ForceQuickening","members":[{"id":"com.oracle.truffle.api.bytecode.ForceQuickening$Repeat#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"ForceQuickening","ref":"com.oracle.truffle.api.bytecode.ForceQuickening"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ForceQuickening","ref":"com.oracle.truffle.api.bytecode.ForceQuickening"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ForceQuickening"},"code":true,"children":[{"kind":"text","text":"ForceQuickening"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ForceQuickening"},"code":true,"children":[{"kind":"text","text":"ForceQuickening"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ForceQuickening.java","line":118}}],"doc":{"summary":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ForceQuickening"},"code":true,"children":[{"kind":"text","text":"ForceQuickening"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ForceQuickening"},"code":true,"children":[{"kind":"text","text":"ForceQuickening"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ForceQuickening.java","line":110}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode","name":"GenerateBytecode","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateBytecode"}],"members":[{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#languageClass()","anchor":"languageClass()","kind":"annotationElement","name":"languageClass","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"name","text":"languageClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}]},"doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" class associated with this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" class associated with this node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":118}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#version()","anchor":"version()","kind":"annotationElement","name":"version","signature":[{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"},{"kind":"punct","text":" "},{"kind":"name","text":"version"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"V1"}],"returns":{"type":[{"kind":"type","text":"BytecodeVersion","ref":"com.oracle.truffle.api.bytecode.BytecodeVersion"}]},"defaultValue":"V1","doc":{"summary":[{"kind":"text","text":"Selects the Bytecode DSL behaviour version."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Selects the Bytecode DSL behaviour version. Versions distinguish breaking behaviour changes that require migration of language implementations. They do not identify Truffle releases or version internal implementation details, optimizations, or performance changes. Breaking changes are rare and avoided whenever possible. For details, refer to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion"},"code":true,"children":[{"kind":"text","text":"BytecodeVersion"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This field allows you to pin the version so that updating Truffle does not automatically adopt breaking changes. Instead, when new breaking changes are introduced, the compiler will emit a warning referring to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion"},"code":true,"children":[{"kind":"text","text":"BytecodeVersion"}]},{"kind":"text","text":" Javadoc for migration instructions. It is recommended to always migrate to the newest version, since old versions are deprecated and will eventually be unsupported in future releases."}]},{"kind":"paragraph","children":[{"kind":"text","text":"You can specify "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion#LATEST"},"code":true,"children":[{"kind":"text","text":"BytecodeVersion.LATEST"}]},{"kind":"text","text":" to always opt in to the newest behaviour. Your interpreter will be recompiled with the latest behaviour every time Truffle is updated. This option should not be used in production language implementations; select an explicit version instead."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For compatibility, this field defaults to version 1, with a compiler warning to explicitly specify it. An explicit version will be required in subsequent releases."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeVersion"},"code":true,"children":[{"kind":"text","text":"BytecodeVersion"}]}]]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":144}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#unwindExceptions()","anchor":"unwindExceptions()","kind":"annotationElement","name":"unwindExceptions","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":">[] "},{"kind":"name","text":"unwindExceptions"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":">[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Specifies exception types that unwind the bytecode interpreter through guest "},{"kind":"code","text":"finally"},{"kind":"text","text":" handlers."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies exception types that unwind the bytecode interpreter through guest "},{"kind":"code","text":"finally"},{"kind":"text","text":" handlers."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An exception that is an instance of one of the specified types bypasses exception interception hooks, guest exception handlers, and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogExceptional"},"code":true,"children":[{"kind":"text","text":"EpilogExceptional"}]},{"kind":"text","text":". Instrumentation is still notified, and "},{"kind":"code","text":"finally"},{"kind":"text","text":" handlers are executed before the original exception instance is rethrown. If a "},{"kind":"code","text":"finally"},{"kind":"text","text":" handler yields, the continuation preserves the pending exception and continues unwinding after the handler resumes. A return or exception from a "},{"kind":"code","text":"finally"},{"kind":"text","text":" handler supersedes the pending exception."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ControlFlowException"},"code":true,"children":[{"kind":"text","text":"ControlFlowException"}]},{"kind":"text","text":" subtypes for unwind exceptions, but any "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":" subtype is permitted. "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" and its subtypes are reserved for instrumentation unwinds and cannot be specified explicitly. They retain their existing behavior even when a configured supertype would match them."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":164}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableUncachedInterpreter()","anchor":"enableUncachedInterpreter()","kind":"annotationElement","name":"enableUncachedInterpreter","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableUncachedInterpreter"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether to generate an uncached interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to generate an uncached interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The uncached interpreter improves start-up performance by executing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" nodes instead of allocating and executing cached (specializing) nodes. The node will transition to a specializing interpreter after enough invocations/back-edges (as determined by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultUncachedThreshold()"},"code":true,"children":[{"kind":"text","text":"defaultUncachedThreshold"}]},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To generate an uncached interpreter, all operations need to support uncached execution. If an operation cannot easily support uncached execution, it can instead "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#forceCached()"},"code":true,"children":[{"kind":"text","text":"force a transition to cached"}]},{"kind":"text","text":" before the operation is executed (this may limit the utility of the uncached interpreter)."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":181}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultUncachedThreshold()","anchor":"defaultUncachedThreshold()","kind":"annotationElement","name":"defaultUncachedThreshold","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"defaultUncachedThreshold"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"16\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"16\"","doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The default uncached threshold expression supports a subset of Java (see the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" documentation). It should evaluate to an int. It should be a positive value, "},{"kind":"code","text":"0"},{"kind":"text","text":", or "},{"kind":"code","text":"Integer.MIN_VALUE"},{"kind":"text","text":". A threshold of "},{"kind":"code","text":"0"},{"kind":"text","text":" will cause each bytecode node to immediately transition to cached on the first invocation/resume. A threshold of "},{"kind":"code","text":"Integer.MIN_VALUE"},{"kind":"text","text":" forces a bytecode node to stay uncached (i.e., it will not transition to cached)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The default local value expression can be a constant literal (e.g., "},{"kind":"code","text":"\"42\""},{"kind":"text","text":"), in which case the value will be validated at build time. However, the expression can also refer to static members of the bytecode root node (and validation is deferred to run time). The following example declares a default threshold of 32 that can be overridden with a system property:"}]},{"kind":"code","text":"@GenerateBytecode(..., defaultUncachedThreshold = \"DEFAULT_UNCACHED_THRESHOLD\")\nabstract class MyBytecodeRootNode extends RootNode implements BytecodeRootNode {\n\n    static final int DEFAULT_UNCACHED_THRESHOLD = Integer.parseInt(System.getProperty(\"defaultUncachedThreshold\", \"32\"));\n\n    // ...\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Other expressions like static method calls are also possible. Note that instance members of the root node cannot be bound with the default uncached threshold expression for efficiency reasons."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To override this default threshold for a given bytecode node, an explicit threshold can be set using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#setUncachedThreshold(int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.setUncachedThreshold"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This field has no effect unless the uncached interpreter is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableUncachedInterpreter()"},"code":true,"children":[{"kind":"text","text":"enabled"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":222}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableSerialization()","anchor":"enableSerialization()","kind":"annotationElement","name":"enableSerialization","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableSerialization"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether the generated interpreter should support serialization and deserialization."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether the generated interpreter should support serialization and deserialization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When serialization is enabled, the Bytecode DSL generates code to convert bytecode nodes to and from a serialized byte array representation. The code effectively serializes the node's execution data (bytecode, constants, etc.) and all of its non-transient fields."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The serialization logic is available through "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.serializeBuilderBytecode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeExecutionBytecode(L,java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.serializeExecutionBytecode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#deserializeBuilderBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.deserializeBuilderBytecode"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#deserializeExecutionBytecode(L,com.oracle.truffle.api.bytecode.BytecodeConfig,java.util.function.Supplier,java.util.function.Function,com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.deserializeExecutionBytecode"}]},{"kind":"text","text":". Equivalent static methods are also generated on the root class. The generated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":" class overrides "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes.serializeBuilderBytecode"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#serializeExecutionBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes.serializeExecutionBytecode"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This feature can be used to avoid the overhead of parsing source code on start up. Builder bytecode encodes builder method calls, which are replayed and validated during deserialization (balanced stack pointers, valid branches, etc.). When the serialized bytes are trusted, execution bytecode can be loaded directly to avoid builder replay for a particular configuration."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The deserialization methods take "},{"kind":"link","target":{"id":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},"code":true,"children":[{"kind":"text","text":"Supplier"}]},{"kind":"text","text":"s of "},{"kind":"link","target":{"id":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},"code":true,"children":[{"kind":"text","text":"DataInput"}]},{"kind":"text","text":" rather than inputs directly. The builder bytecode supplier should produce a fresh "},{"kind":"link","target":{"id":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},"code":true,"children":[{"kind":"text","text":"DataInput"}]},{"kind":"text","text":" each time because the input may be processed multiple times (due to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#update(com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"reparsing"}]},{"kind":"text","text":"). The execution bytecode supplier is invoked at most once during initial deserialization."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},"code":true,"children":[{"kind":"text","text":"BytecodeSerializer"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"},"code":true,"children":[{"kind":"text","text":"BytecodeDeserializer"}]}],[{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/src/com.oracle.truffle.api.bytecode.test/src/com/oracle/truffle/api/bytecode/test/examples/SerializationTutorial.java","children":[{"kind":"text","text":"Serialization tutorial"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":259}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()","anchor":"enableTagInstrumentation()","kind":"annotationElement","name":"enableTagInstrumentation","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableTagInstrumentation"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether the generated interpreter should support Truffle tag instrumentation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether the generated interpreter should support Truffle tag instrumentation. When instrumentation is enabled, the generated builder will define "},{"kind":"code","text":"beginTag(...)"},{"kind":"text","text":" and "},{"kind":"code","text":"endTag(...)"},{"kind":"text","text":" methods that can be used to annotate the bytecode with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag"},"code":true,"children":[{"kind":"text","text":"tags"}]},{"kind":"text","text":". Truffle tag instrumentation also allows you to specify implicit tagging using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#tags()"},"code":true,"children":[{"kind":"text","text":"Operation.tags()"}]},{"kind":"text","text":". If tag instrumentation is enabled all tagged operations will automatically handle and insert "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode"},"code":true,"children":[{"kind":"text","text":"probes"}]},{"kind":"text","text":" from the Truffle instrumentation framework."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Only tags that are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags"},"code":true,"children":[{"kind":"text","text":"provided"}]},{"kind":"text","text":" by the specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#languageClass()"},"code":true,"children":[{"kind":"text","text":"Truffle language"}]},{"kind":"text","text":" can be used."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableRootTagging()"},"code":true,"children":[{"kind":"text","text":"enableRootTagging()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableRootBodyTagging()"},"code":true,"children":[{"kind":"text","text":"enableRootBodyTagging()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":277}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableRootTagging()","anchor":"enableRootTagging()","kind":"annotationElement","name":"enableRootTagging","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableRootTagging"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Enables automatic root tagging if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"instrumentation"}]},{"kind":"text","text":" is enabled."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables automatic root tagging if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"instrumentation"}]},{"kind":"text","text":" is enabled. Automatic root tagging automatically tags each root with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootTag"},"code":true,"children":[{"kind":"text","text":"RootTag"}]},{"kind":"text","text":" if the language "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags"},"code":true,"children":[{"kind":"text","text":"provides"}]},{"kind":"text","text":" it."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Root tagging requires the probe to be notified before the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Prolog"},"code":true,"children":[{"kind":"text","text":"prolog"}]},{"kind":"text","text":" is executed. Implementing this behaviour manually is not trivial and not recommended. It is recommended to use automatic root tagging. For inlining performed by the parser it may be useful to emit custom "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootTag"},"code":true,"children":[{"kind":"text","text":"root"}]},{"kind":"text","text":" tag using the builder methods for inlined methods. This ensures that tools can still work correctly for inlined calls."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableRootBodyTagging()"},"code":true,"children":[{"kind":"text","text":"enableRootBodyTagging()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":293}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableRootBodyTagging()","anchor":"enableRootBodyTagging()","kind":"annotationElement","name":"enableRootBodyTagging","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableRootBodyTagging"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Enables automatic root body tagging if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"instrumentation"}]},{"kind":"text","text":" is enabled."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables automatic root body tagging if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"instrumentation"}]},{"kind":"text","text":" is enabled. Automatic root body tagging automatically tags each root with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootBodyTag"},"code":true,"children":[{"kind":"text","text":"RootBodyTag"}]},{"kind":"text","text":" if the language "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags"},"code":true,"children":[{"kind":"text","text":"provides"}]},{"kind":"text","text":" it."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableRootTagging()"},"code":true,"children":[{"kind":"text","text":"enableRootTagging()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":303}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#tagTreeNodeLibrary()","anchor":"tagTreeNodeLibrary()","kind":"annotationElement","name":"tagTreeNodeLibrary","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"tagTreeNodeLibrary"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"com.oracle.truffle.api.bytecode.TagTreeNodeExports.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"defaultValue":"com.oracle.truffle.api.bytecode.TagTreeNodeExports.class","doc":{"summary":[{"kind":"text","text":"Allows to customize the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary"},"code":true,"children":[{"kind":"text","text":"NodeLibrary"}]},{"kind":"text","text":" implementation that is used for tag instrumentation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows to customize the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary"},"code":true,"children":[{"kind":"text","text":"NodeLibrary"}]},{"kind":"text","text":" implementation that is used for tag instrumentation. This option only makes sense if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"enableTagInstrumentation()"}]},{"kind":"text","text":" is set to "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Common use-cases when implementing a custom tag tree node library is required:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Allowing instruments to access the current receiver or function object."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Implementing custom scopes for local variables instead of the default scope."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Hiding certain local variables or arguments from instruments."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Minimal example of a tag node library:"}]},{"kind":"code","text":"@ExportLibrary(value = NodeLibrary.class, receiverType = TagTreeNode.class)\nfinal class MyTagTreeNodeExports {\n\n    @ExportMessage\n    static boolean hasScope(TagTreeNode node, Frame frame) {\n        return true;\n    }\n\n    @ExportMessage\n    @SuppressWarnings(\"unused\")\n    static Object getScope(TagTreeNode node, Frame frame, boolean nodeEnter) throws UnsupportedMessageException {\n        return new MyScope(node, frame);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"See the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary"},"code":true,"children":[{"kind":"text","text":"NodeLibrary"}]},{"kind":"text","text":" javadoc for more details."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.TagTreeNode"},"code":true,"children":[{"kind":"text","text":"TagTreeNode"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":341}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#allowUnsafe()","anchor":"allowUnsafe()","kind":"annotationElement","name":"allowUnsafe","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"allowUnsafe"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether to use unsafe array accesses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to use unsafe array accesses."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unsafe accesses are faster, but they do not perform array bounds checks. This means it is possible (though unlikely) for unsafe accesses to cause undefined behaviour. Undefined behaviour may only happen due to a bug in the Bytecode DSL implementation and not language implementation code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":353}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableYield()","anchor":"enableYield()","kind":"annotationElement","name":"enableYield","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableYield"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether the generated interpreter should support coroutines via a built-in "},{"kind":"code","text":"yield"},{"kind":"text","text":" operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether the generated interpreter should support coroutines via a built-in "},{"kind":"code","text":"yield"},{"kind":"text","text":" operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The built-in yield operation returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"ContinuationResult"}]},{"kind":"text","text":" from the current point in execution. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"ContinuationResult"}]},{"kind":"text","text":" saves the current state of the interpreter so that it can be resumed at a later time. The yield and resume actions pass values, enabling communication between the caller and callee."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If more control over the yield process is required, consider defining a custom "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Yield"},"code":true,"children":[{"kind":"text","text":"Yield"}]},{"kind":"text","text":" instead. You can enable built-in and custom yields separately (i.e., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableYield()"},"code":true,"children":[{"kind":"text","text":"enableYield"}]},{"kind":"text","text":" does not need to be "},{"kind":"code","text":"true"},{"kind":"text","text":" if you only use a custom yield)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Technical note: in theoretical terms, a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"ContinuationResult"}]},{"kind":"text","text":" implements an asymmetric stack-less coroutine."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.bytecode.ContinuationResult"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":374}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableMaterializedLocalAccesses()","anchor":"enableMaterializedLocalAccesses()","kind":"annotationElement","name":"enableMaterializedLocalAccesses","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableMaterializedLocalAccesses"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Enables materialized local accesses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables materialized local accesses. Materialized local accesses allow a root node to access the locals of any outer root nodes (root nodes created by enclosing "},{"kind":"code","text":"Root"},{"kind":"text","text":" operations) in addition to its own locals. These accesses take the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.MaterializedFrame"},"code":true,"children":[{"kind":"text","text":"materialized frame"}]},{"kind":"text","text":" containing the local as an operand. Materialized local accesses can be used to implement closures and nested functions with lexical scoping."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When materialized local accesses are enabled, the interpreter defines two additional operations, "},{"kind":"code","text":"LoadLocalMaterialized"},{"kind":"text","text":" and "},{"kind":"code","text":"StoreLocalMaterialized"},{"kind":"text","text":", which implement the local accesses. Implementations can also use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},"code":true,"children":[{"kind":"text","text":"MaterializedLocalAccessor"}]},{"kind":"text","text":"s to access locals from user-defined operations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Materialized local accesses can "},{"kind":"emphasis","children":[{"kind":"text","text":"only"}]},{"kind":"text","text":" be used where the local is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"in scope"}]},{"kind":"text","text":". The bytecode generator guarantees that each materialized access's local is in scope at the static location of the access, but since root nodes can be called at any time, it is still possible to execute the root node (and thus perform the access) when the local is out of scope, leading to unexpected behaviour (e.g., reading an incorrect local value). When "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#bytecodeIndexMode()"},"code":true,"children":[{"kind":"text","text":"bytecodeIndexMode()"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.FRAME"}]},{"kind":"text","text":", the interpreter will dynamically validate each materialized access, throwing a runtime exception when the local is not in scope. Thus, to diagnose issues with invalid materialized accesses, it is recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.FRAME"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":402}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()","anchor":"enableBlockScoping()","kind":"annotationElement","name":"enableBlockScoping","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableBlockScoping"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Enables block scoping, which limits a local's lifetime to the lifetime of the enclosing Block/Root operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables block scoping, which limits a local's lifetime to the lifetime of the enclosing Block/Root operation. Block scoping is enabled by default. If this flag is set to "},{"kind":"code","text":"false"},{"kind":"text","text":", locals use root scoping, which keeps locals alive for the lifetime of the root node (i.e., the entire invocation)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The value of this flag significantly changes the behaviour of local variables, so the value of this flag should be decided relatively early in the development of a language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When block scoping is enabled, all local variables are scoped to the closest enclosing Block/Root operation. When a local variable's enclosing Block ends, it falls out of scope and its value is automatically "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#clear(int)"},"code":true,"children":[{"kind":"text","text":"cleared"}]},{"kind":"text","text":" (or reset to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultLocalValue()"},"code":true,"children":[{"kind":"text","text":"default value"}]},{"kind":"text","text":", if provided). Locals scoped to the Root operation are not cleared on exit. Block scoping allows the interpreter to reuse a frame index for multiple locals that have disjoint lifetimes, which can reduce the frame size."}]},{"kind":"paragraph","children":[{"kind":"text","text":"With block scoping, a different set of locals can be live at different bytecode indices. The interpreter retains extra metadata to track the lifetimes of each local. The local accessor methods of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" (e.g., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValues(int,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValues(int, Frame)"}]},{"kind":"text","text":") take the current bytecode index as a parameter so that they can correctly compute the locals in scope. These liveness computations can require extra computation, so accessing locals using bytecode instructions or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessors"}]},{"kind":"text","text":" (which validate liveness at parse time) is encouraged when possible. The bytecode index should be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(boolean)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":" for performance reasons. The lifetime of local variables can also be accessed through introspection using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getStartIndex()"},"code":true,"children":[{"kind":"text","text":"LocalVariable.getStartIndex()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getEndIndex()"},"code":true,"children":[{"kind":"text","text":"LocalVariable.getEndIndex()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When root scoping is enabled, all local variables are assigned a unique index in the frame regardless of the current source location. They are never cleared, and frame indexes are not reused. Consequently, the bytecode index parameter on the local accessor methods of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" has no effect. Root scoping does not retain additional liveness metadata (which may be a useful footprint optimization); this also means "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getStartIndex()"},"code":true,"children":[{"kind":"text","text":"LocalVariable.getStartIndex()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getEndIndex()"},"code":true,"children":[{"kind":"text","text":"LocalVariable.getEndIndex()"}]},{"kind":"text","text":" methods do not return lifetime data."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Root scoping is primarily intended for cases where the implemented language does not use block scoping. It can also be useful if the default block scoping is not flexible enough and custom scoping rules are needed."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":446}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableQuickening()","anchor":"enableQuickening()","kind":"annotationElement","name":"enableQuickening","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableQuickening"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether to generate quickened bytecodes for user-provided operations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to generate quickened bytecodes for user-provided operations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Quickened versions of instructions support a subset of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializations"}]},{"kind":"text","text":" defined by an operation. They can improve interpreted performance by reducing footprint and requiring fewer guards."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Quickened versions of operations can be specified using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ForceQuickening"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.bytecode.ForceQuickening"}]},{"kind":"text","text":". When an instruction re-specializes itself, the interpreter attempts to automatically replace it with a quickened instruction."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":461}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#bytecodeIndexMode()","anchor":"bytecodeIndexMode()","kind":"annotationElement","name":"bytecodeIndexMode","signature":[{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"},{"kind":"punct","text":" "},{"kind":"name","text":"bytecodeIndexMode"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"CACHED_NODE"}],"returns":{"type":[{"kind":"type","text":"BytecodeIndexMode","ref":"com.oracle.truffle.api.bytecode.BytecodeIndexMode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the lookup mode; defaults to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#CACHED_NODE"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.CACHED_NODE"}]}]}]},"defaultValue":"CACHED_NODE","doc":{"summary":[{"kind":"text","text":"Configures how the generated interpreter makes its current bytecode index available for stack walking and frame introspection."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configures how the generated interpreter makes its current bytecode index available for stack walking and frame introspection."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Operations can always bind "},{"kind":"code","text":"@Bind(\"$bytecodeIndex\") int bci"},{"kind":"text","text":" for explicit propagation."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":472}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#storeBytecodeIndexInFrame()","anchor":"storeBytecodeIndexInFrame()","kind":"annotationElement","name":"storeBytecodeIndexInFrame","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"storeBytecodeIndexInFrame"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether the generated interpreter should automatically store the bytecode index in the frame in all interpreter tiers."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether the generated interpreter should automatically store the bytecode index in the frame in all interpreter tiers."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Setting this attribute to "},{"kind":"code","text":"true"},{"kind":"text","text":" is equivalent to setting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#bytecodeIndexMode()"},"code":true,"children":[{"kind":"text","text":"bytecodeIndexMode()"}]},{"kind":"text","text":" to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.FRAME"}]},{"kind":"text","text":". It cannot be combined with a non-default bytecode index mode. Setting it to "},{"kind":"code","text":"false"},{"kind":"text","text":" does not override "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#bytecodeIndexMode()"},"code":true,"children":[{"kind":"text","text":"bytecodeIndexMode()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For new interpreters, prefer "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#bytecodeIndexMode()"},"code":true,"children":[{"kind":"text","text":"bytecodeIndexMode()"}]},{"kind":"text","text":" with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.FRAME"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":488}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#captureFramesForTrace()","anchor":"captureFramesForTrace()","kind":"annotationElement","name":"captureFramesForTrace","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"captureFramesForTrace"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"stack trace elements"}]},{"kind":"text","text":" of the annotated root node should capture frames."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"stack trace elements"}]},{"kind":"text","text":" of the annotated root node should capture frames. This flag should be used instead of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(boolean)"},"code":true,"children":[{"kind":"text","text":"RootNode.isCaptureFramesForTrace(boolean)"}]},{"kind":"text","text":", which the Bytecode DSL prevents you from overriding."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When this flag is non-null, you can use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame#get(com.oracle.truffle.api.TruffleStackTraceElement)"},"code":true,"children":[{"kind":"text","text":"BytecodeFrame.get(TruffleStackTraceElement)"}]},{"kind":"text","text":" to access frame data from a stack trace element. The frame only supports read-only access."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Bytecode DSL interpreters "},{"kind":"strong","children":[{"kind":"text","text":"must not"}]},{"kind":"text","text":" access frames directly using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getFrame()"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement.getFrame"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":504}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#boxingEliminationTypes()","anchor":"boxingEliminationTypes()","kind":"annotationElement","name":"boxingEliminationTypes","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[] "},{"kind":"name","text":"boxingEliminationTypes"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Primitive types the interpreter should attempt to avoid boxing up."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Primitive types the interpreter should attempt to avoid boxing up. Each type should be primitive class literal (e.g., "},{"kind":"code","text":"int.class"},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If boxing elimination types are provided, the cached interpreter will generate instruction variants that load/store primitive values when possible. It will automatically use these instructions in a best-effort manner (falling back on boxed representations when necessary)."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":554}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#inlinePrimitiveConstants()","anchor":"inlinePrimitiveConstants()","kind":"annotationElement","name":"inlinePrimitiveConstants","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inlinePrimitiveConstants"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether constant operands of primitive type should be encoded directly in the bytecode."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether constant operands of primitive type should be encoded directly in the bytecode. Inlining can reduce the number of memory reads required to access constants."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Currently, inlining is only supported for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"ConstantOperand"}]},{"kind":"text","text":"s."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":564}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableSpecializationIntrospection()","anchor":"enableSpecializationIntrospection()","kind":"annotationElement","name":"enableSpecializationIntrospection","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableSpecializationIntrospection"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether to generate introspection data for specializations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to generate introspection data for specializations. The data is accessible using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getSpecializationInfo()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.bytecode.Instruction.Argument.getSpecializationInfo()"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":572}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultLocalValue()","anchor":"defaultLocalValue()","kind":"annotationElement","name":"defaultLocalValue","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"defaultLocalValue"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Specifies the default value produced when attempting to load a cleared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"local"}]},{"kind":"text","text":" (i.e., a local that has not been written to)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the default value produced when attempting to load a cleared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"local"}]},{"kind":"text","text":" (i.e., a local that has not been written to)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This attribute is mutually exclusive with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#illegalLocalException()"},"code":true,"children":[{"kind":"text","text":"illegalLocalException()"}]},{"kind":"text","text":": the interpreter can either produce a default value or throw a user-provided exception when loading a cleared local. If neither is explicitly specified, the interpreter defaults to throwing a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException"},"code":true,"children":[{"kind":"text","text":"FrameSlotTypeException"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended for the default local value expression to refer to a static and final constant in the bytecode root node. For example:"}]},{"kind":"code","text":"@GenerateBytecode(..., defaultLocalValue = \"DEFAULT_VALUE\")\nabstract class MyBytecodeRootNode extends RootNode implements BytecodeRootNode {\n\n    static final DefaultValue DEFAULT_VALUE = DefaultValue.INSTANCE;\n\n    // ...\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The expression supports a subset of Java (see the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" documentation), including other expressions like "},{"kind":"code","text":"null"},{"kind":"text","text":" or a static method call. Note that instance members of the root node cannot be bound with the default local value expression for efficiency reasons."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":603}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#illegalLocalException()","anchor":"illegalLocalException()","kind":"annotationElement","name":"illegalLocalException","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"illegalLocalException"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"com.oracle.truffle.api.frame.FrameSlotTypeException.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"kind":"punct","text":">"}]},"defaultValue":"com.oracle.truffle.api.frame.FrameSlotTypeException.class","doc":{"summary":[{"kind":"text","text":"Specifies the exception to throw when attempting to load a cleared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"local"}]},{"kind":"text","text":" (i.e., a local that has not been written to)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the exception to throw when attempting to load a cleared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"local"}]},{"kind":"text","text":" (i.e., a local that has not been written to)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This attribute is mutually exclusive with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultLocalValue()"},"code":true,"children":[{"kind":"text","text":"defaultLocalValue()"}]},{"kind":"text","text":": the interpreter can either produce a default value or throw a user-provided exception when loading a cleared local. If neither is explicitly specified, the interpreter defaults to throwing a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException"},"code":true,"children":[{"kind":"text","text":"FrameSlotTypeException"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When an illegal local exception is specified, the interpreter checks if a local is cleared before each load; if the local is cleared, the interpreter creates and throws an instance of the exception using the factory method. The interpreter will attempt to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableQuickening()"},"code":true,"children":[{"kind":"text","text":"quicken"}]},{"kind":"text","text":" away the clear check when possible."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Below is an example:"}]},{"kind":"code","text":"@GenerateBytecode(..., illegalLocalException = MyIllegalLocalException.class)\nabstract class MyBytecodeRootNode extends RootNode implements BytecodeRootNode {\n    // ...\n}\n\nclass MyIllegalLocalException extends AbstractTruffleException {\n    public static MyIllegalLocalException create(Node location, BytecodeNode bytecode, BytecodeLocation bytecodeLocation, LocalVariable variable) {\n        // ...\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The provided exception class must declare a static factory method for instantiating exceptions. By default, this method is named "},{"kind":"code","text":"create"},{"kind":"text","text":", but this can be overridden using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#illegalLocalExceptionFactory()"},"code":true,"children":[{"kind":"text","text":"illegalLocalExceptionFactory()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The factory method should return an instance of the exception class. It may take zero or more parameters of the following types (in any order):"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":": the current location (equivalent to "},{"kind":"code","text":"@Bind(\"$node\")"},{"kind":"text","text":")"}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":": the current bytecode node"}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":": the current bytecode location"}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"int"},{"kind":"text","text":": the current bytecode index, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" when the index is unavailable"}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable"},"code":true,"children":[{"kind":"text","text":"LocalVariable"}]},{"kind":"text","text":": an introspection object modeling the local's metadata (name, info, etc.)"}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If the provided exception class is a Truffle exception (i.e., it extends "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":"), the exception can be thrown from runtime compiled code without deoptimization; otherwise, it is considered an internal error and throwing the exception will always trigger deoptimization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: due to current limitations of the Bytecode DSL implementation, illegal local exceptions are not yet fully supported with local accessors:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"If an operation uses a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},"code":true,"children":[{"kind":"text","text":"LocalRangeAccessor"}]},{"kind":"text","text":", the factory method cannot declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" parameter."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If an operation uses a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},"code":true,"children":[{"kind":"text","text":"MaterializedLocalAccessor"}]},{"kind":"text","text":", illegal local exceptions cannot be used."}]}]]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":666}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#illegalLocalExceptionFactory()","anchor":"illegalLocalExceptionFactory()","kind":"annotationElement","name":"illegalLocalExceptionFactory","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"illegalLocalExceptionFactory"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"create\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"create\"","doc":{"summary":[{"kind":"text","text":"Specifies the name of the static factory method used to instantiate illegal local exceptions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the name of the static factory method used to instantiate illegal local exceptions. This attribute is only applicable if an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#illegalLocalException()"},"code":true,"children":[{"kind":"text","text":"illegalLocalException()"}]},{"kind":"text","text":" class is specified."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#illegalLocalException()"},"code":true,"children":[{"kind":"text","text":"illegalLocalException()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":675}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBytecodeDebugListener()","anchor":"enableBytecodeDebugListener()","kind":"annotationElement","name":"enableBytecodeDebugListener","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableBytecodeDebugListener"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener"},"code":true,"children":[{"kind":"text","text":"BytecodeDebugListener"}]},{"kind":"text","text":" methods should be notified by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener"},"code":true,"children":[{"kind":"text","text":"BytecodeDebugListener"}]},{"kind":"text","text":" methods should be notified by generated code. By default the debug bytecode listener is enabled if the root node implements "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener"},"code":true,"children":[{"kind":"text","text":"BytecodeDebugListener"}]},{"kind":"text","text":". If this attribute is set to "},{"kind":"code","text":"false"},{"kind":"text","text":" then the debug bytecode listener won't be notified. This attribute may be useful to keep a default debug listener implementation permanently in the source code but only enable it temporarily during debug sessions."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":687}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#variadicStackLimit()","anchor":"variadicStackLimit()","kind":"annotationElement","name":"variadicStackLimit","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"variadicStackLimit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"32\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"32\"","doc":{"summary":[{"kind":"text","text":"Sets the maximum number of stack slots that will be used for parameters annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Variadic"},"code":true,"children":[{"kind":"text","text":"Variadic"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the maximum number of stack slots that will be used for parameters annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Variadic"},"code":true,"children":[{"kind":"text","text":"Variadic"}]},{"kind":"text","text":". The value must represent a power of 2 greater than 1 and must not exceed "},{"kind":"link","target":{"id":"java.lang.Short#MAX_VALUE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Short.html#MAX_VALUE"},"code":true,"children":[{"kind":"text","text":"Short.MAX_VALUE"}]},{"kind":"text","text":". The default value is \"32\". As with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultLocalValue()"},"code":true,"children":[{"kind":"text","text":"defaultLocalValue()"}]},{"kind":"text","text":", it is possible to specify this limit via an expression. If a constant value is provided, the limit is validated at compile time; otherwise, it is validated at class initialization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The expression supports a subset of Java (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":"), and may include simple constants (for example, "},{"kind":"code","text":"0"},{"kind":"text","text":") or static method calls. It must evaluate to an "},{"kind":"code","text":"int"},{"kind":"text","text":". Note that only static members of the root node can be bound with the expression."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":703}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#additionalAssertions()","anchor":"additionalAssertions()","kind":"annotationElement","name":"additionalAssertions","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"additionalAssertions"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Enables additional assertions, that would be otherwise too costly outside testing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables additional assertions, that would be otherwise too costly outside testing. The additional assertions can also be enabled dynamically at build time by passing "},{"kind":"code","text":"-Atruffle.dsl.AdditionalAssertions=true"},{"kind":"text","text":" to the Java compiler."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":712}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableThreadedSwitch()","anchor":"enableThreadedSwitch()","kind":"annotationElement","name":"enableThreadedSwitch","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableThreadedSwitch"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Enables the use of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives#markThreadedSwitch(int)"},"code":true,"children":[{"kind":"text","text":"threaded switch"}]},{"kind":"text","text":" for the generated bytecode switch."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables the use of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives#markThreadedSwitch(int)"},"code":true,"children":[{"kind":"text","text":"threaded switch"}]},{"kind":"text","text":" for the generated bytecode switch."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The threaded-switch mechanism reduces dispatch overhead for large or frequently executed bytecode switches, improving interpreter performance. Disabling it forces a traditional (non-threaded) switch implementation, which can be useful for benchmarking or debugging but is generally slower."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This option is enabled by default. It is not recommended to disable the threaded switch in production, as doing so may significantly reduce performance without improving stability. On JVMs that do not support "},{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives#markThreadedSwitch(int)"},"code":true,"children":[{"kind":"text","text":"HostCompilerDirectives.markThreadedSwitch(int)"}]},{"kind":"text","text":" this flag has no effect."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives#markThreadedSwitch(int)"},"code":true,"children":[{"kind":"text","text":"HostCompilerDirectives.markThreadedSwitch(int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":731}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableInstructionTracing()","anchor":"enableInstructionTracing()","kind":"annotationElement","name":"enableInstructionTracing","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableInstructionTracing"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Enables instruction tracing support for the generated bytecode interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables instruction tracing support for the generated bytecode interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":", the interpreter is generated with tracing hooks so that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":"s can be attached at run time (via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#addInstructionTracer(com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes.addInstructionTracer"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#addInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.addInstructionTracer"}]},{"kind":"text","text":"). Attaching a tracer causes all executed instructions to invoke the tracer before execution."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"false"},{"kind":"text","text":", no tracing hooks are generated and any attempt to attach a tracer will throw "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":747}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableInstructionRewriting()","anchor":"enableInstructionRewriting()","kind":"annotationElement","name":"enableInstructionRewriting","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableInstructionRewriting"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Enables instruction rewriting support for the generated bytecode interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables instruction rewriting support for the generated bytecode interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instruction rewriting is used to implement peephole optimizations (e.g., remove redundant loads) and other bytecode optimizations."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":757}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTailCallHandlers()","anchor":"enableTailCallHandlers()","kind":"annotationElement","name":"enableTailCallHandlers","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableTailCallHandlers"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Enables tail call handlers for the generated bytecode interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables tail call handlers for the generated bytecode interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For more details, see the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/OneCompilationPerBytecodeHandler.md","children":[{"kind":"text","text":" One Compilation per Bytecode Handler documentation"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.HostCompilerDirectives$BytecodeInterpreterHandlerConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeInterpreterHandlerConfig"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":769}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#sourceContentSupplier()","anchor":"sourceContentSupplier()","kind":"annotationElement","name":"sourceContentSupplier","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceContentSupplier"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Specifies the name of a supplier method used to convert a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" without content into one with content (i.e., one which has "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"bytes"}]},{"kind":"text","text":")."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the name of a supplier method used to convert a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" without content into one with content (i.e., one which has "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"bytes"}]},{"kind":"text","text":"). Currently, only character-based sources are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Bytecode DSL interpreters reparse source information lazily to reduce memory footprint. By default, a root node can have either no source information or full source information:"}]},{"kind":"code","text":"[No Source Information] --ensureSourceInformation()--> [Full Source Information]"},{"kind":"paragraph","children":[{"kind":"text","text":"The following example demonstrates the default behavior:"}]},{"kind":"code","text":"CharSequence content = ...;\nSource source = Source.newBuilder(MyLanguage.ID, content, ...).build();\nvar nodes = MyBytecodeRootNodeGen.create(myLanguage, BytecodeConfig.DEFAULT, b -> {\n    b.beginSource(source);\n    b.beginSourceSection(0, 10);\n    b.beginRoot();\n    ...\n    b.endRoot();\n    b.endSourceSection();\n    b.endSource();\n});\n\nnodes.getNode(0).getSourceSection();                   // == null\nnodes.ensureSourceInformation();                       // materializes sources by reparsing\nnodes.getNode(0).getSourceSection();                   // == source.createSection(0, 10)\nnodes.getNode(0).getSourceSection().getCharacters();   // == content"},{"kind":"paragraph","children":[{"kind":"text","text":"Some interpreters may use basic source information (e.g., line numbers) frequently, but rarely need full source content. Declaring a source content supplier allows a root node to load source information without content and later load source content only if needed:"}]},{"kind":"code","text":"[No Source Information] ---ensureSourceInformationWithContent()---> [Full Source Information]\n          |                                                                    ^\n          | ensureSourceInformation()     ensureSourceInformationWithContent() |\n          v                                                                    |\n          +----------------> [Source Information (No Content)] ----------------+"},{"kind":"paragraph","children":[{"kind":"text","text":"The following example demonstrates how to add a supplier method:"}]},{"kind":"code","text":"@GenerateBytecode(sourceContentSupplier = \"loadSourceContent\", ...)\npublic abstract class MyBytecodeRootNode extends RootNode implements BytecodeRootNode {\n\n    public static Source loadSourceContent(MyLanguage language, Source sourceWithoutContent) {\n        CharSequence characters = loadCharactersFromFile(sourceWithoutContent.getURI());\n        return Source.newBuilder(sourceWithoutContent).content(characters).build();\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The supplier should use the source argument's attributes (e.g., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getURI()"},"code":true,"children":[{"kind":"text","text":"Source.getURI"}]},{"kind":"text","text":") to load content and then return a new source object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"With a source content supplier, the previous example can be modified to avoid materializing source content until it is needed:"}]},{"kind":"code","text":"Source source = Source.newBuilder(MyLanguage.ID, \"\", ...)\n                .content(Source.CONTENT_NONE)\n                .build();\nvar nodes = MyBytecodeRootNodeGen.create(myLanguage, BytecodeConfig.DEFAULT, b -> {\n    b.beginSource(source);\n    b.beginSourceSection(0, 10);\n    b.beginRoot();\n    ...\n    b.endRoot();\n    b.endSourceSection();\n    b.endSource();\n});\n\nnodes.getNode(0).getSourceSection();                   // == null\nnodes.ensureSourceInformation();                       // materializes sources without content\nnodes.getNode(0).getSourceSection();                   // == source.createSection(0, 10)\nnodes.getNode(0).getSourceSection().hasCharacters();   // == false\nnodes.ensureSourceInformationWithContent();            // materializes source content\nnodes.getNode(0).getSourceSection().getCharacters();   // == content supplied by loadSourceContent"},{"kind":"paragraph","children":[{"kind":"text","text":"The supplier may be called multiple times for a given source, so it is recommended to cache the loaded sources on the language instance, for example using a map:"}]},{"kind":"code","text":"class MyLanguage extends TruffleLanguage<MyLanguageContext> {\n    Map<Source, Source> sourceContentCache = ...;\n}\n\npublic static Source loadSourceContent(MyLanguage language, Source sourceWithoutContent) {\n    return language.sourceContentCache.computeIfAbsent(sourceWithoutContent, unused -> {\n        CharSequence characters = loadCharactersFromFile(sourceWithoutContent.getURI());\n        return Source.newBuilder(sourceWithoutContent).content(characters).build();\n    });\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The supplier method must:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"be a "},{"kind":"code","text":"static"},{"kind":"text","text":" method defined on the root node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"declare two parameters: the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#languageClass()"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" instance and a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" instance that does not have content."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"return a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" instance with content. If loading the content can fail (e.g., a source file was deleted), the result can be a source without content (such as the original source argument), but in such a scenario the interpreter should not assume that sources will always have content after content is supplied."}]}]]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":886}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableCompressedSources()","anchor":"enableCompressedSources()","kind":"annotationElement","name":"enableCompressedSources","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"enableCompressedSources"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Enables compression of source information tables."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables compression of source information tables."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Source information can require a large amount of memory, and so this option makes source tables rely on a compressed encoding. This significantly reduces source table footprint, at the cost of making accessing source information less efficient because of the additional decoding step. It is set to `true` as a default, as the assumption is that the language is likely to only access source information infrequently, e.g. to get debugging information."}]}]},"since":"25.4","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":900}}],"doc":{"summary":[{"kind":"text","text":"Generates a bytecode interpreter using the Bytecode DSL."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Generates a bytecode interpreter using the Bytecode DSL. The Bytecode DSL automatically produces an optimizing bytecode interpreter from a set of Node-like \"operations\". The following is an example of a Bytecode DSL interpreter with a single "},{"kind":"code","text":"Add"},{"kind":"text","text":" operation."}]},{"kind":"code","text":"@GenerateBytecode(languageClass = MyLanguage.class)\npublic abstract class MyBytecodeRootNode extends RootNode implements BytecodeRootNode {\n    @Operation\n    public static final class Add {\n        @Specialization\n        public static int doInts(int lhs, int rhs) {\n            return lhs + rhs;\n        }\n\n        @Specialization\n        @TruffleBoundary\n        public static String doStrings(String lhs, String rhs) {\n            return lhs + rhs;\n        }\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The Bytecode DSL generates a node suffixed with "},{"kind":"code","text":"Gen"},{"kind":"text","text":" (e.g., "},{"kind":"code","text":"MyBytecodeRootNodeGen"},{"kind":"text","text":") that contains (among other things) a full bytecode encoding, an optimizing interpreter, and a "},{"kind":"code","text":"Builder"},{"kind":"text","text":" class to generate and validate bytecode automatically."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A node can opt in to additional features, like an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableUncachedInterpreter()"},"code":true,"children":[{"kind":"text","text":"uncached interpreter"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#boxingEliminationTypes()"},"code":true,"children":[{"kind":"text","text":"boxing elimination"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableQuickening()"},"code":true,"children":[{"kind":"text","text":"quickened instructions"}]},{"kind":"text","text":", and more. The fields of this annotation control which features are included in the generated interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For information about using the Bytecode DSL, please consult the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/bytecode_dsl/BytecodeDSL.md","children":[{"kind":"text","text":"tutorial"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecode.java","line":109}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecodeTestVariants","name":"GenerateBytecodeTestVariants","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateBytecodeTestVariants"}],"members":[{"id":"com.oracle.truffle.api.bytecode.GenerateBytecodeTestVariants#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"GenerateBytecodeTestVariants.Variant","ref":"com.oracle.truffle.api.bytecode.GenerateBytecodeTestVariants$Variant"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"GenerateBytecodeTestVariants.Variant","ref":"com.oracle.truffle.api.bytecode.GenerateBytecodeTestVariants$Variant"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"The variants to generate."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The variants to generate."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecodeTestVariants.java","line":70}}],"doc":{"summary":[{"kind":"text","text":"This annotation should only be used for testing to generate multiple variants of the interpreter with slightly different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode"},"code":true,"children":[{"kind":"text","text":"configurations"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This annotation should only be used for testing to generate multiple variants of the interpreter with slightly different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode"},"code":true,"children":[{"kind":"text","text":"configurations"}]},{"kind":"text","text":". Importantly, all of the variants' Builders share a common superclass, which allows tests to be written once and then executed with multiple configurations. In order for the variants and their Builders to be compatible, the configurations must agree on specific fields. In particular, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#languageClass()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.languageClass"}]},{"kind":"text","text":" must match, and fields that generate new builder methods (e.g. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableYield()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableYield()"}]},{"kind":"text","text":") must agree. These properties are checked by the Bytecode DSL processor."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecodeTestVariants.java","line":62}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecodeTestVariants$Variant","name":"GenerateBytecodeTestVariants.Variant","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateBytecodeTestVariants.Variant"}],"enclosing":"com.oracle.truffle.api.bytecode.GenerateBytecodeTestVariants","members":[{"id":"com.oracle.truffle.api.bytecode.GenerateBytecodeTestVariants$Variant#suffix()","anchor":"suffix()","kind":"annotationElement","name":"suffix","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"suffix"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"The class name suffix for this variant."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The class name suffix for this variant."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecodeTestVariants.java","line":85}},{"id":"com.oracle.truffle.api.bytecode.GenerateBytecodeTestVariants$Variant#configuration()","anchor":"configuration()","kind":"annotationElement","name":"configuration","signature":[{"kind":"type","text":"GenerateBytecode","ref":"com.oracle.truffle.api.bytecode.GenerateBytecode"},{"kind":"punct","text":" "},{"kind":"name","text":"configuration"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"GenerateBytecode","ref":"com.oracle.truffle.api.bytecode.GenerateBytecode"}]},"doc":{"summary":[{"kind":"text","text":"The configuration for this variant."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The configuration for this variant."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecodeTestVariants.java","line":92}}],"doc":{"summary":[{"kind":"text","text":"The annotation used to declare a variant."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The annotation used to declare a variant."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/GenerateBytecodeTestVariants.java","line":77}},{"id":"com.oracle.truffle.api.bytecode.Instruction","name":"Instruction","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Instruction"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.Instruction#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"Instruction","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Instruction"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":82}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getBytecodeNode()","anchor":"getBytecodeNode()","kind":"method","name":"getBytecodeNode","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode node this instruction belongs to."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode node this instruction belongs to."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":91}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getBytecodeIndex()","anchor":"getBytecodeIndex()","kind":"method","name":"getBytecodeIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index of this instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index of this instruction. A bytecode index is only valid for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":", it is therefore recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getLocation()"},"code":true,"children":[{"kind":"text","text":"getLocation()"}]},{"kind":"text","text":" instead whenever possible."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getLocation()"},"code":true,"children":[{"kind":"text","text":"getLocation()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":101}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getDescriptor()","anchor":"getDescriptor()","kind":"method","name":"getDescriptor","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"getDescriptor"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"}]},"doc":{"summary":[{"kind":"text","text":"Returns the descriptor object for this instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the descriptor object for this instruction."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The descriptor provides static metadata about the instruction executed at this bytecode index, such as its name, operation code, length in bytes, argument layout, and whether it is considered instrumentation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#getInstructionDescriptors()"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.getInstructionDescriptors()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":113}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getLength()","anchor":"getLength()","kind":"method","name":"getLength","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the length of this instruction in bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the length of this instruction in bytes."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getDescriptor()"},"code":true,"children":[{"kind":"text","text":"getDescriptor()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getLength()"},"code":true,"children":[{"kind":"text","text":"InstructionDescriptor.getLength()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":124}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getLocation()","anchor":"getLocation()","kind":"method","name":"getLocation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeLocation","ref":"com.oracle.truffle.api.bytecode.BytecodeLocation"}]},"doc":{"summary":[{"kind":"text","text":"Converts this instruction pointer into a bytecode location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this instruction pointer into a bytecode location. It is recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":" to persist a bytecode location instead of using instruction."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":134}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the name of this instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name of this instruction. The name of the instruction is purely for human consumption and no structure should be assumed. If two instructions have the same instruction name then they also have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getOperationCode()"},"code":true,"children":[{"kind":"text","text":"operation code"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The name is fixed for an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"Instruction"}]},{"kind":"text","text":" object, but the name of an instruction at a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"location"}]},{"kind":"text","text":" can change during execution due to quickening and other optimizations."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getOperationCode()"},"code":true,"children":[{"kind":"text","text":"getOperationCode()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getDescriptor()"},"code":true,"children":[{"kind":"text","text":"getDescriptor()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getName()"},"code":true,"children":[{"kind":"text","text":"InstructionDescriptor.getName()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":152}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getOperationCode()","anchor":"getOperationCode()","kind":"method","name":"getOperationCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getOperationCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the operation code of this instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the operation code of this instruction. The operation code of the instruction is purely for human consumption and no values should be assumed. If two instructions have the same instruction operation code then they also have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getName()"},"code":true,"children":[{"kind":"text","text":"name"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The operation code is fixed for an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"Instruction"}]},{"kind":"text","text":" object, but the operation code of an instruction at a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"location"}]},{"kind":"text","text":" can change during execution due to quickening and other optimizations."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getName()"},"code":true,"children":[{"kind":"text","text":"getName()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getDescriptor()"},"code":true,"children":[{"kind":"text","text":"getDescriptor()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getOperationCode()"},"code":true,"children":[{"kind":"text","text":"InstructionDescriptor.getOperationCode()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":170}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getArguments()","anchor":"getArguments()","kind":"method","name":"getArguments","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Instruction.Argument","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument"},{"kind":"punct","text":"> "},{"kind":"name","text":"getArguments"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Instruction.Argument","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns an immutable list of immediate arguments for this instructions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an immutable list of immediate arguments for this instructions. The number and kinds of arguments remain stable during execution, however, the actual values of the arguments (e.g., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asBranchProfile()"},"code":true,"children":[{"kind":"text","text":"Argument.asBranchProfile"}]},{"kind":"text","text":") may change during execution."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":181}},{"id":"com.oracle.truffle.api.bytecode.Instruction#isInstrumentation()","anchor":"isInstrumentation()","kind":"method","name":"isInstrumentation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInstrumentation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this instruction represents a bytecode or tag instrumentation instruction, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this instruction represents a bytecode or tag instrumentation instruction, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Instrumentation instructions may get inserted dynamically during execution, e.g., if a tag is materialized or an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instrumentation"},"code":true,"children":[{"kind":"text","text":"Instrumentation"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#update(com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"configured"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":191}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns the most concrete source section associated with this instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the most concrete source section associated with this instruction. If no source section is available for this instruction or source sections have not yet been materialized, then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned. Source sections may be materialized by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#update(com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"update"}]},{"kind":"text","text":" with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#WITH_SOURCE"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig.WITH_SOURCE"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":204}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getSourceSections()","anchor":"getSourceSections()","kind":"method","name":"getSourceSections","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSourceSections"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Returns all source section associated with this instruction starting with the most concrete source section."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all source section associated with this instruction starting with the most concrete source section. If no source sections are available, then an empty array is returned. If source sections have not yet been materialized, then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned. Source sections may be materialized by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#update(com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"update"}]},{"kind":"text","text":" with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig#WITH_SOURCE"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig.WITH_SOURCE"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":222}},{"id":"com.oracle.truffle.api.bytecode.Instruction#getNextBytecodeIndex()","anchor":"getNextBytecodeIndex()","kind":"method","name":"getNextBytecodeIndex","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getNextBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index of the next instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index of the next instruction. This method is useful to quickly find the next instruction. The next bytecode index is computed as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"getBytecodeIndex()"}]},{"kind":"code","text":" +\n"},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getLength()"},"code":true,"children":[{"kind":"text","text":"getLength()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The next bytecode index may not be a valid index if this instruction is the last instruction. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstructions()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getInstructions()"}]},{"kind":"text","text":" to walk all instructions efficiently and safely. Since the bytecode encoding is variable length, there is no efficient way to get to the previous bytecode index. Only forward traversial is efficient. If random access is desired use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstructionsAsList()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getInstructionsAsList()"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":244}},{"id":"com.oracle.truffle.api.bytecode.Instruction#next()","anchor":"next()","kind":"method","name":"next","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"name","text":"next"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},"doc":{"summary":[{"kind":"text","text":"Returns the next instruction object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the next instruction object. Implemented by generated code, intended for internal use only."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":254}},{"id":"com.oracle.truffle.api.bytecode.Instruction#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":261}},{"id":"com.oracle.truffle.api.bytecode.Instruction#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":271}},{"id":"com.oracle.truffle.api.bytecode.Instruction#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":287}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents metadata for an instruction in a bytecode node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents metadata for an instruction in a bytecode node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Compatibility note: The data contained in instruction classes is subject to change without notice between Truffle versions. This introspection API is therefore intended to be used for debugging and tracing purposes only. Do not rely on instructions for your language semantics."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The current instruction can be bound using "},{"kind":"code","text":"@Bind Instruction instruction"},{"kind":"text","text":" from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"operations"}]},{"kind":"text","text":". This class is not intended to be subclassed by clients, only by code generated by the Bytecode DSL."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstructions()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getInstructions()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstructionsAsList()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getInstructionsAsList()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getInstruction(int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getInstruction(int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":74}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument","name":"Instruction.Argument","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Instruction.Argument"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.Instruction","members":[{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"Argument","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Argument"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":355}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getDescriptor()","anchor":"getDescriptor()","kind":"method","name":"getDescriptor","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InstructionDescriptor.ArgumentDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"getDescriptor"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InstructionDescriptor.ArgumentDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor"}]},"doc":{"summary":[{"kind":"text","text":"Returns the descriptor object for this argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the descriptor object for this argument."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The descriptor provides static metadata about the argument position and interpretation for this instruction, including its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},"code":true,"children":[{"kind":"text","text":"Kind"}]},{"kind":"text","text":", printable name, and encoded width in bytes."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":368}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()","anchor":"getKind()","kind":"method","name":"getKind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},{"kind":"punct","text":" "},{"kind":"name","text":"getKind"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},"code":true,"children":[{"kind":"text","text":"Kind"}]},{"kind":"text","text":" of this argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},"code":true,"children":[{"kind":"text","text":"Kind"}]},{"kind":"text","text":" of this argument. The kind determines which "},{"kind":"code","text":"asX"},{"kind":"text","text":" method can be called on a given argument."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example, if the kind is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#INTEGER"},"code":true,"children":[{"kind":"text","text":"Kind.INTEGER"}]},{"kind":"text","text":", the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asInteger()"},"code":true,"children":[{"kind":"text","text":"asInteger"}]},{"kind":"text","text":" method will return the integer value. All other "},{"kind":"code","text":"asX"},{"kind":"text","text":" methods (e.g., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asBranchProfile()"},"code":true,"children":[{"kind":"text","text":"asBranchProfile"}]},{"kind":"text","text":") will throw an exception."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":382}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a human readable name for this argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a human readable name for this argument. This could be for example "},{"kind":"code","text":"\"localOffset\""},{"kind":"text","text":" for a local variable access instruction. Arguments with the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"getKind()"}]},{"kind":"text","text":" may have different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getName()"},"code":true,"children":[{"kind":"text","text":"names"}]},{"kind":"text","text":". A name is typically more descriptive than just the kind and should be preferred over the kind for debug output."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":395}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asInteger()","anchor":"asInteger()","kind":"method","name":"asInteger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"asInteger"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Converts this argument to an "},{"kind":"code","text":"int"},{"kind":"text","text":" value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this argument to an "},{"kind":"code","text":"int"},{"kind":"text","text":" value. This method is only supported if the argument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"kind"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#INTEGER"},"code":true,"children":[{"kind":"text","text":"Kind.INTEGER"}]},{"kind":"text","text":". If called for arguments of other kinds then an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":406}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asBytecodeIndex()","anchor":"asBytecodeIndex()","kind":"method","name":"asBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"asBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Converts this argument to a bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this argument to a bytecode index. This method is only supported if the argument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"kind"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#BYTECODE_INDEX"},"code":true,"children":[{"kind":"text","text":"Kind.BYTECODE_INDEX"}]},{"kind":"text","text":". If called for arguments of other kinds then an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown. If the returned value is >= 0 then the bytecode index can be used to be converted to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":418}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asConstant()","anchor":"asConstant()","kind":"method","name":"asConstant","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asConstant"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Converts this argument to a object constant."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this argument to a object constant. This method is only supported if the argument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"kind"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#CONSTANT"},"code":true,"children":[{"kind":"text","text":"Kind.CONSTANT"}]},{"kind":"text","text":". If called for arguments of other kinds then an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":429}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asCachedNode()","anchor":"asCachedNode()","kind":"method","name":"asCachedNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"asCachedNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Converts this argument to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"cached node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this argument to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"cached node"}]},{"kind":"text","text":". This method is only supported if the argument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"kind"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#NODE_PROFILE"},"code":true,"children":[{"kind":"text","text":"Kind.NODE_PROFILE"}]},{"kind":"text","text":". If called for arguments of other kinds then an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown. The returned value is never "},{"kind":"code","text":"null"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeTier"},"code":true,"children":[{"kind":"text","text":"BytecodeTier"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeTier#CACHED"},"code":true,"children":[{"kind":"text","text":"BytecodeTier.CACHED"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":442}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asTagNode()","anchor":"asTagNode()","kind":"method","name":"asTagNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TagTreeNode","ref":"com.oracle.truffle.api.bytecode.TagTreeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"asTagNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TagTreeNode","ref":"com.oracle.truffle.api.bytecode.TagTreeNode"}]},"doc":{"summary":[{"kind":"text","text":"Converts this argument to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.TagTreeNode"},"code":true,"children":[{"kind":"text","text":"tag tree node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this argument to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.TagTreeNode"},"code":true,"children":[{"kind":"text","text":"tag tree node"}]},{"kind":"text","text":". This method is only supported if the argument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"kind"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#TAG_NODE"},"code":true,"children":[{"kind":"text","text":"Kind.TAG_NODE"}]},{"kind":"text","text":". If called for arguments of other kinds then an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown. The returned value is never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":454}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asLocalOffset()","anchor":"asLocalOffset()","kind":"method","name":"asLocalOffset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"asLocalOffset"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Converts this argument to a local offset."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this argument to a local offset. This method is only supported if the argument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"kind"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#LOCAL_OFFSET"},"code":true,"children":[{"kind":"text","text":"Kind.LOCAL_OFFSET"}]},{"kind":"text","text":". If called for arguments of other kinds then an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown. This index may be used to access locals with the local access methods in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValue(int, com.oracle.truffle.api.frame.Frame, int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":467}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asLocalIndex()","anchor":"asLocalIndex()","kind":"method","name":"asLocalIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"asLocalIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Converts this argument to a local index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this argument to a local index. This method is only supported if the argument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"kind"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#LOCAL_INDEX"},"code":true,"children":[{"kind":"text","text":"Kind.LOCAL_INDEX"}]},{"kind":"text","text":". If called for arguments of other kinds then an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown. The local index can be used to index into the list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocals()"},"code":true,"children":[{"kind":"text","text":"locals"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocals()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocals()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":480}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asBranchProfile()","anchor":"asBranchProfile()","kind":"method","name":"asBranchProfile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction.Argument.BranchProfile","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"asBranchProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Instruction.Argument.BranchProfile","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile"}]},"doc":{"summary":[{"kind":"text","text":"Converts this argument to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile"},"code":true,"children":[{"kind":"text","text":"branch profile"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this argument to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile"},"code":true,"children":[{"kind":"text","text":"branch profile"}]},{"kind":"text","text":". This method is only supported if the argument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"kind"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#BRANCH_PROFILE"},"code":true,"children":[{"kind":"text","text":"Kind.BRANCH_PROFILE"}]},{"kind":"text","text":". If called for arguments of other kinds then an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown. The returned value is never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":492}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getSpecializationInfo()","anchor":"getSpecializationInfo()","kind":"method","name":"getSpecializationInfo","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getSpecializationInfo"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Converts this argument to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},"code":true,"children":[{"kind":"text","text":"specialization info"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this argument to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},"code":true,"children":[{"kind":"text","text":"specialization info"}]},{"kind":"text","text":". This method is only supported if the argument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getKind()"},"code":true,"children":[{"kind":"text","text":"kind"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#NODE_PROFILE"},"code":true,"children":[{"kind":"text","text":"Kind.NODE_PROFILE"}]},{"kind":"text","text":". If called for arguments of other kinds then an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown. The specialization info is only available if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableSpecializationIntrospection()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableSpecializationIntrospection()"}]},{"kind":"text","text":" is set to "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":505}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#getSpecializationInfoInternal()","anchor":"getSpecializationInfoInternal()","kind":"method","name":"getSpecializationInfoInternal","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getSpecializationInfoInternal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Allows the generated code to customize the specialization info lookup."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows the generated code to customize the specialization info lookup."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":527}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":540}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents metadata for an argument of an instruction in a bytecode node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents metadata for an argument of an instruction in a bytecode node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Compatibility note: The data contained in instruction classes is subject to change without notice between Truffle versions. This introspection API is therefore intended to be used for debugging and tracing purposes only. Do not rely on instructions for your language semantics."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getArguments()"},"code":true,"children":[{"kind":"text","text":"Instruction.getArguments()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":348}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile","name":"Instruction.Argument.BranchProfile","kind":"record","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"record"},{"kind":"punct","text":" "},{"kind":"name","text":"Instruction.Argument.BranchProfile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"trueCount"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"falseCount"},{"kind":"punct","text":")"}],"superclass":[{"kind":"type","text":"Record","ref":"java.lang.Record","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html"}],"ancestors":[{"id":"java.lang.Record","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.Instruction$Argument","components":[{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"trueCount","type":[{"kind":"keyword","text":"int"}]},{"name":"falseCount","type":[{"kind":"keyword","text":"int"}]}],"members":[{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile#<init>(int,int,int)","anchor":"<init>(int,int,int)","kind":"constructor","name":"BranchProfile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"BranchProfile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"trueCount"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"falseCount"},{"kind":"punct","text":")"}],"params":[{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"trueCount","type":[{"kind":"keyword","text":"int"}]},{"name":"falseCount","type":[{"kind":"keyword","text":"int"}]}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new BranchProfile instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new BranchProfile instance."}]}]}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile#getFrequency()","anchor":"getFrequency()","kind":"method","name":"getFrequency","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrequency"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"doc":{"summary":[{"kind":"text","text":"Returns the frequency recorded by this profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the frequency recorded by this profile."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":816}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Record#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html#toString()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":829}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a hash code computed from the record components."}]}]},"overrides":{"id":"java.lang.Record#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html#hashCode()"},"doc":{"summary":[{"kind":"text","text":"Returns a hash code computed from the record components."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a hash code computed from the record components."}]}]}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"o"},{"kind":"punct","text":")"}],"params":[{"name":"o","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The object to compare with this record."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether the other object is a record of the same class with equal components."}]}]},"overrides":{"id":"java.lang.Record#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html#equals(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Returns whether the other object is a record of the same class with equal components."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether the other object is a record of the same class with equal components."}]}]}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile#index()","anchor":"index()","kind":"method","name":"index","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"index"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile#trueCount()","anchor":"trueCount()","kind":"method","name":"trueCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"trueCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$BranchProfile#falseCount()","anchor":"falseCount()","kind":"method","name":"falseCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"falseCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a branch profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a branch profile."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":787}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind","name":"Instruction.Argument.Kind","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"Instruction.Argument.Kind"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.Instruction$Argument","members":[{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#CONSTANT","anchor":"CONSTANT","kind":"enumConstant","name":"CONSTANT","signature":[{"kind":"name","text":"CONSTANT"}],"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}],"doc":{"summary":[{"kind":"text","text":"A constant value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A constant value. Typically, constants are used to encode "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"ConstantOperand"}]},{"kind":"text","text":" and LoadConstant builtin operations."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asConstant()"},"code":true,"children":[{"kind":"text","text":"Argument.asConstant()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":712}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#BYTECODE_INDEX","anchor":"BYTECODE_INDEX","kind":"enumConstant","name":"BYTECODE_INDEX","signature":[{"kind":"name","text":"BYTECODE_INDEX"}],"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}],"doc":{"summary":[{"kind":"text","text":"A bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A bytecode index. Typically, bytecode indices are used to encode branch targets or the locations of child instructions."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Argument.asBytecodeIndex()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":721}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#INTEGER","anchor":"INTEGER","kind":"enumConstant","name":"INTEGER","signature":[{"kind":"name","text":"INTEGER"}],"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}],"doc":{"summary":[{"kind":"text","text":"An integer value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An integer value. Typically, integer arguments are used to encode argument indices and other integer constants."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asInteger()"},"code":true,"children":[{"kind":"text","text":"Argument.asInteger()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":730}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#LOCAL_OFFSET","anchor":"LOCAL_OFFSET","kind":"enumConstant","name":"LOCAL_OFFSET","signature":[{"kind":"name","text":"LOCAL_OFFSET"}],"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}],"doc":{"summary":[{"kind":"text","text":"The logical frame offset of a local variable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The logical frame offset of a local variable. If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"block scoping"}]},{"kind":"text","text":" is enabled, multiple locals can share an offset; otherwise, a local's offset is the same as its index. Typically, local offset arguments are used to encode local variable metadata in local variable instructions."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The local offset does "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" represent a frame index that can be used to directly access locals from the frame. Instead, use local accessor instructions, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":" operands, or the helper methods defined by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asLocalOffset()"},"code":true,"children":[{"kind":"text","text":"Argument.asLocalOffset()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":747}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#LOCAL_INDEX","anchor":"LOCAL_INDEX","kind":"enumConstant","name":"LOCAL_INDEX","signature":[{"kind":"name","text":"LOCAL_INDEX"}],"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}],"doc":{"summary":[{"kind":"text","text":"The unique index of a local variable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The unique index of a local variable. Typically, local index arguments are used to encode local variable metadata in local variable instructions."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asLocalIndex()"},"code":true,"children":[{"kind":"text","text":"Argument.asLocalIndex()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":756}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#NODE_PROFILE","anchor":"NODE_PROFILE","kind":"enumConstant","name":"NODE_PROFILE","signature":[{"kind":"name","text":"NODE_PROFILE"}],"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}],"doc":{"summary":[{"kind":"text","text":"A node profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A node profile. Typically, node profile arguments are used to encode cached nodes for user-defined "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"operations"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asCachedNode()"},"code":true,"children":[{"kind":"text","text":"Argument.asCachedNode()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":765}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#BRANCH_PROFILE","anchor":"BRANCH_PROFILE","kind":"enumConstant","name":"BRANCH_PROFILE","signature":[{"kind":"name","text":"BRANCH_PROFILE"}],"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}],"doc":{"summary":[{"kind":"text","text":"A branch profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A branch profile. Typically, branch profiles are used to profile the outcomes of conditional branch instructions."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument#asBranchProfile()"},"code":true,"children":[{"kind":"text","text":"Argument.asBranchProfile()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":774}},{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind#TAG_NODE","anchor":"TAG_NODE","kind":"enumConstant","name":"TAG_NODE","signature":[{"kind":"name","text":"TAG_NODE"}],"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}],"doc":{"summary":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.TagTreeNode"},"code":true,"children":[{"kind":"text","text":"TagTreeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.TagTreeNode"},"code":true,"children":[{"kind":"text","text":"TagTreeNode"}]},{"kind":"text","text":". Typically, tag tree nodes are used to represent nodes in the logical tag tree defined by Tag operations."}]}]},"source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":779}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents the kind of an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument"},"code":true,"children":[{"kind":"text","text":"Argument"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the kind of an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument"},"code":true,"children":[{"kind":"text","text":"Argument"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instruction.java","line":704}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor","name":"InstructionDescriptor","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InstructionDescriptor"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"InstructionDescriptor","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"InstructionDescriptor"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":62}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getLength()","anchor":"getLength()","kind":"method","name":"getLength","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the encoded size of this instruction in bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the encoded size of this instruction in bytes."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":71}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a human readable instruction name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a human readable instruction name. Two descriptors with the same name also have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getOperationCode()"},"code":true,"children":[{"kind":"text","text":"operation code"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getOperationCode()"},"code":true,"children":[{"kind":"text","text":"getOperationCode()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":80}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getOperationCode()","anchor":"getOperationCode()","kind":"method","name":"getOperationCode","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getOperationCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the operation code for this instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the operation code for this instruction. The value is only intended for debugging or tooling. Two descriptors with the same operation code also have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getName()"},"code":true,"children":[{"kind":"text","text":"name"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getName()"},"code":true,"children":[{"kind":"text","text":"getName()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":90}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getOperationClass()","anchor":"getOperationClass()","kind":"method","name":"getOperationClass","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getOperationClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the operation class, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if unavailable"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the class defining the custom operation that produced this instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the class defining the custom operation that produced this instruction. Quickened instructions return the same class as their unquickened instruction. For an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy"},"code":true,"children":[{"kind":"text","text":"OperationProxy"}]},{"kind":"text","text":", this is the proxied class, not a generated node class."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the operation class is unavailable, including for built-in instructions and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},"code":true,"children":[{"kind":"text","text":"short-circuit instructions"}]},{"kind":"text","text":"."}]}]},"since":"25.7","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":103}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#getArgumentDescriptors()","anchor":"getArgumentDescriptors()","kind":"method","name":"getArgumentDescriptors","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InstructionDescriptor.ArgumentDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor"},{"kind":"punct","text":"> "},{"kind":"name","text":"getArgumentDescriptors"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InstructionDescriptor.ArgumentDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns an immutable list describing the immediate arguments of this instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an immutable list describing the immediate arguments of this instruction. The list size and the descriptor kinds are stable, the runtime values of the arguments may change."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":113}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#isInstrumentation()","anchor":"isInstrumentation()","kind":"method","name":"isInstrumentation","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInstrumentation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this instruction represents a bytecode or tag instrumentation instruction, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this instruction represents a bytecode or tag instrumentation instruction, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Instrumentation instructions may get inserted dynamically during execution, e.g., if a tag is materialized or an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instrumentation"},"code":true,"children":[{"kind":"text","text":"Instrumentation"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#update(com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"configured"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":123}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":130}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":140}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":150}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Descriptor for a concrete bytecode instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Descriptor for a concrete bytecode instruction. Instances describe static properties of an instruction, for example name, length and arguments."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":55}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor","name":"InstructionDescriptor.ArgumentDescriptor","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InstructionDescriptor.ArgumentDescriptor"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.InstructionDescriptor","members":[{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"ArgumentDescriptor","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ArgumentDescriptor"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":199}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor#getKind()","anchor":"getKind()","kind":"method","name":"getKind","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},{"kind":"punct","text":" "},{"kind":"name","text":"getKind"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Instruction.Argument.Kind","ref":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},"code":true,"children":[{"kind":"text","text":"Kind"}]},{"kind":"text","text":" of this argument descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction$Argument$Kind"},"code":true,"children":[{"kind":"text","text":"Kind"}]},{"kind":"text","text":" of this argument descriptor."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":208}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a human readable name for this argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a human readable name for this argument. This could be for example "},{"kind":"code","text":"\"localOffset\""},{"kind":"text","text":" for a local variable access instruction. Arguments with the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor#getKind()"},"code":true,"children":[{"kind":"text","text":"getKind()"}]},{"kind":"text","text":" may have different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor#getName()"},"code":true,"children":[{"kind":"text","text":"names"}]},{"kind":"text","text":". A name is typically more descriptive than just the kind and should be preferred over the kind for debug output."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":219}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor#getLength()","anchor":"getLength()","kind":"method","name":"getLength","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns width in bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns width in bytes."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":226}},{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor$ArgumentDescriptor#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":233}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Descriptor for a single immediate argument of an instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Descriptor for a single immediate argument of an instruction. Captures kind, name and encoded width of the argument."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionDescriptor.java","line":192}},{"id":"com.oracle.truffle.api.bytecode.InstructionTracer","name":"InstructionTracer","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"InstructionTracer"}],"members":[{"id":"com.oracle.truffle.api.bytecode.InstructionTracer#onInstructionEnter(com.oracle.truffle.api.bytecode.InstructionTracer.InstructionAccess,com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.frame.Frame)","anchor":"onInstructionEnter(com.oracle.truffle.api.bytecode.InstructionTracer.InstructionAccess,com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"onInstructionEnter","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onInstructionEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"InstructionTracer.InstructionAccess","ref":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"access","type":[{"kind":"type","text":"InstructionTracer.InstructionAccess","ref":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"accessor to query information about the current instruction, valid only during this call"}]}]},{"name":"bytecode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" currently being interpreted"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index (BCI) of the instruction to be executed"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame for the root being interpreted"}]}]}],"doc":{"summary":[{"kind":"text","text":"Called immediately before executing the instruction at "},{"kind":"code","text":"bytecodeIndex"},{"kind":"text","text":" of the given "},{"kind":"code","text":"bytecode"},{"kind":"text","text":" node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called immediately before executing the instruction at "},{"kind":"code","text":"bytecodeIndex"},{"kind":"text","text":" of the given "},{"kind":"code","text":"bytecode"},{"kind":"text","text":" node."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionTracer.java","line":98}},{"id":"com.oracle.truffle.api.bytecode.InstructionTracer#getExclusiveBytecodeDescriptor()","anchor":"getExclusiveBytecodeDescriptor()","kind":"method","name":"getExclusiveBytecodeDescriptor","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeDescriptor","ref":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},{"kind":"punct","text":"<?, ?, ?> "},{"kind":"name","text":"getExclusiveBytecodeDescriptor"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeDescriptor","ref":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},{"kind":"punct","text":"<?, ?, ?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":" that this tracer is exclusive for, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if this instruction tracer may be used with any bytecode descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":" that this tracer is exclusive for, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if this instruction tracer may be used with any bytecode descriptor."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionTracer.java","line":106}}],"doc":{"summary":[{"kind":"text","text":"A low-overhead callback interface to observe instruction execution in Bytecode DSL interpreters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A low-overhead callback interface to observe instruction execution in Bytecode DSL interpreters. A tracer receives a notification immediately before the interpreter executes the instruction at a given bytecode index. The callback runs on the language thread that executes the bytecode, on the hot path, and may be invoked at very high frequency."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Tracers for a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes"}]},{"kind":"text","text":" instance may be attached via the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#addInstructionTracer(com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes.addInstructionTracer(InstructionTracer)"}]},{"kind":"text","text":" method. Attaching tracers to all root node instances of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":" is possible using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#addInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.addInstructionTracer(TruffleLanguage, InstructionTracer)"}]},{"kind":"text","text":". Note that attaching a tracer requires all affected root nodes to be invalidated and is therefore a very expensive operation. It also potentially requires all root nodes to be re-parsed. As a trade-off, not using an instruction tracer is basically free, except for reserving instructions in the bytecode interpreter, similar to how the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instrumentation"},"code":true,"children":[{"kind":"text","text":"@Instrumentation"}]},{"kind":"text","text":" annotation is implemented."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Typical uses include printing a trace, maintaining per-opcode counters, or driving custom debugging or testing utilities. For convenience, the "},{"kind":"code","text":"com.oracle.truffle.api.bytecode.debug"},{"kind":"text","text":" package provides reference implementations such as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer"},"code":true,"children":[{"kind":"text","text":"line printer"}]},{"kind":"text","text":" and a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"},"code":true,"children":[{"kind":"text","text":"histogram tracer"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Performance considerations."}]}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Instruction tracers are subject to partial evaluation, with the tracer reference being a partial-evaluation constant, allowing the tracer to be optimized."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Prefer "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess#getTracedOperationCode(com.oracle.truffle.api.bytecode.BytecodeNode,int)"},"code":true,"children":[{"kind":"text","text":"InstructionAccess.getTracedOperationCode(BytecodeNode, int)"}]},{"kind":"text","text":" for fast-path logic. In generated interpreters this typically avoids allocating an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"Instruction"}]},{"kind":"text","text":" object."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess#getTracedInstruction(com.oracle.truffle.api.bytecode.BytecodeNode,int)"},"code":true,"children":[{"kind":"text","text":"InstructionAccess.getTracedInstruction(BytecodeNode, int)"}]},{"kind":"text","text":" materializes an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"Instruction"}]},{"kind":"text","text":" object and is therefore more expensive. Use it only when metadata is actually needed, for example to print the instruction name or retrieve source sections."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#addInstructionTracer(com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNodes.addInstructionTracer(InstructionTracer)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#addInstructionTracer(L,com.oracle.truffle.api.bytecode.InstructionTracer)"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor.addInstructionTracer(TruffleLanguage, InstructionTracer)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionTracer.java","line":85}},{"id":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess","name":"InstructionTracer.InstructionAccess","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InstructionTracer.InstructionAccess"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.InstructionTracer","members":[{"id":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"InstructionAccess","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"InstructionAccess"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionTracer.java","line":126}},{"id":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess#getTracedInstruction(com.oracle.truffle.api.bytecode.BytecodeNode,int)","anchor":"getTracedInstruction(com.oracle.truffle.api.bytecode.BytecodeNode,int)","kind":"method","name":"getTracedInstruction","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"name","text":"getTracedInstruction"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" currently being interpreted"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index (BCI) of the instruction"}]}]}],"returns":{"type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the materialized "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"Instruction"}]},{"kind":"text","text":" representing the instruction at "},{"kind":"code","text":"BCI"}]}]},"doc":{"summary":[{"kind":"text","text":"Materializes the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"Instruction"}]},{"kind":"text","text":" object for the instruction at the given bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Materializes the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"Instruction"}]},{"kind":"text","text":" object for the instruction at the given bytecode index."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionTracer.java","line":139}},{"id":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess#getTracedOperationCode(com.oracle.truffle.api.bytecode.BytecodeNode,int)","anchor":"getTracedOperationCode(com.oracle.truffle.api.bytecode.BytecodeNode,int)","kind":"method","name":"getTracedOperationCode","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getTracedOperationCode"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" currently being interpreted"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index (BCI) of the instruction"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the integer operation code of the instruction at "},{"kind":"code","text":"BCI"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the operation code for the instruction at the given bytecode index, without allocating an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"Instruction"}]},{"kind":"text","text":" object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the operation code for the instruction at the given bytecode index, without allocating an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction"},"code":true,"children":[{"kind":"text","text":"Instruction"}]},{"kind":"text","text":" object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned value corresponds to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getOperationCode()"},"code":true,"children":[{"kind":"text","text":"Instruction.getOperationCode()"}]},{"kind":"text","text":" for the same instruction."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Instruction#getOperationCode()"},"code":true,"children":[{"kind":"text","text":"Instruction.getOperationCode()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionTracer.java","line":154}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Accessor for properties of the instruction about to execute."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Accessor for properties of the instruction about to execute."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instances of this class are provided by the generated interpreter and are scoped to a single "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer#onInstructionEnter(com.oracle.truffle.api.bytecode.InstructionTracer.InstructionAccess,com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"InstructionTracer.onInstructionEnter"}]},{"kind":"text","text":" invocation. They must not be stored, shared across threads, or used after the callback returns."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/InstructionTracer.java","line":119}},{"id":"com.oracle.truffle.api.bytecode.Instrumentation","name":"Instrumentation","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Instrumentation"}],"members":[{"id":"com.oracle.truffle.api.bytecode.Instrumentation#forceCached()","anchor":"forceCached()","kind":"annotationElement","name":"forceCached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"forceCached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#forceCached()"},"code":true,"children":[{"kind":"text","text":"Operation.forceCached()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instrumentation.java","line":88}},{"id":"com.oracle.truffle.api.bytecode.Instrumentation#javadoc()","anchor":"javadoc()","kind":"annotationElement","name":"javadoc","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"javadoc"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Optional documentation for the instrumentation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional documentation for the instrumentation. This documentation is included in the javadoc for the generated interpreter."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instrumentation.java","line":96}},{"id":"com.oracle.truffle.api.bytecode.Instrumentation#storeBytecodeIndex()","anchor":"storeBytecodeIndex()","kind":"annotationElement","name":"storeBytecodeIndex","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"storeBytecodeIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to enable operation-level BCI storage"}]}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether to store the BCI before executing this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to store the BCI before executing this operation. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Operation.storeBytecodeIndex()"}]},{"kind":"text","text":" for mode-dependent defaults. When "},{"kind":"code","text":"false"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex"},"code":true,"children":[{"kind":"text","text":"StoreBytecodeIndex"}]},{"kind":"text","text":" enables storage for individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" methods."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Instrumentation.java","line":107}}],"doc":{"summary":[{"kind":"text","text":"Instrumentations are operations that can be dynamically enabled at runtime."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Instrumentations are operations that can be dynamically enabled at runtime. Dynamically enabling them at runtime allows them to be used to implement features that are not commonly enabled, like tracing, language internal debugging, profiling or taint tracking."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instrumentations are emitted like regular operations with the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]},{"kind":"text","text":", but only generate instructions if they are enabled in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeConfig"},"code":true,"children":[{"kind":"text","text":"BytecodeConfig"}]},{"kind":"text","text":". A bytecode config with enabled instrumentations can be provided at parse time, when deserializing or using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNodes#update(com.oracle.truffle.api.bytecode.BytecodeConfig)"},"code":true,"children":[{"kind":"text","text":"update"}]},{"kind":"text","text":" method at any time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike regular operations, instrumentations must have transparent stack effects. This is important to ensure that the stack layout remains compatible when instrumentations are enabled at runtime. This means that instrumentations can either have no dynamic operands and no return value or one dynamic operand and one return value. Note that instrumentations can declare "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"constant operands"}]},{"kind":"text","text":" since those do not affect the stack."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instrumentations with one operand and return value may freely modify values observed at runtime. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#boxingEliminationTypes()"},"code":true,"children":[{"kind":"text","text":"Boxing elimination"}]},{"kind":"text","text":" is reset when new instrumentations are enabled, but it will also work for instrumentation operations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that instrumentations cannot specify any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#tags()"},"code":true,"children":[{"kind":"text","text":"tags"}]},{"kind":"text","text":", because tags must be stable and new tags cannot be specified at runtime. Instrumentations can also not be used as boolean converters for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},"code":true,"children":[{"kind":"text","text":"short circuits"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Instrumentation.java","line":77}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor","name":"LocalAccessor","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LocalAccessor"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":103}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#getObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"getObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"getObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getObject"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Loads an object from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads an object from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":113}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#getBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"getBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"getBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"getBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a boolean from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a boolean from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":124}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#getByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"getByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"getByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByte"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a byte from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a byte from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":135}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#getInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"getInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"getInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads an int from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads an int from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":146}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#getLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"getLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"getLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLong"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a long from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a long from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":157}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#getFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"getFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"getFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a float from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a float from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":168}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#getDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"getDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"getDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a double from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a double from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":179}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#setObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","anchor":"setObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","kind":"method","name":"setObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setObject"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an object into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an object into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":190}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#setBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,boolean)","anchor":"setBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,boolean)","kind":"method","name":"setBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a short into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a short into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":201}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#setByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,byte)","anchor":"setByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,byte)","kind":"method","name":"setByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByte"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a byte into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a byte into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":212}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#setInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"setInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"setInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setInt"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an int into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an int into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":223}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#setLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,long)","anchor":"setLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,long)","kind":"method","name":"setLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLong"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a long into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a long into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":234}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#setFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,float)","anchor":"setFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,float)","kind":"method","name":"setFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a float into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a float into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":245}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#setDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,double)","anchor":"setDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,double)","kind":"method","name":"setDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a double into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a double into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":256}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"clear","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clear"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"doc":{"summary":[{"kind":"text","text":"Clears the local from the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clears the local from the frame."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Clearing the slot marks the frame slot as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Illegal"},"code":true,"children":[{"kind":"text","text":"illegal"}]},{"kind":"text","text":". An exception will be thrown if it is read before being set. Clearing does "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" insert a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultLocalValue()"},"code":true,"children":[{"kind":"text","text":"default local value"}]},{"kind":"text","text":", if specified."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":272}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#isCleared(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"isCleared(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"isCleared","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCleared"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks whether the local has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"cleared"}]},{"kind":"text","text":" (and a new value has not been set)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether the local has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"cleared"}]},{"kind":"text","text":" (and a new value has not been set)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method also returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a local has not been initialized and no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultLocalValue()"},"code":true,"children":[{"kind":"text","text":"default local value"}]},{"kind":"text","text":" is specified."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":286}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#getLocalName(com.oracle.truffle.api.bytecode.BytecodeNode)","anchor":"getLocalName(com.oracle.truffle.api.bytecode.BytecodeNode)","kind":"method","name":"getLocalName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalName"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the name associated with the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name associated with the local."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalName(int,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalName(int, int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":298}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#getLocalInfo(com.oracle.truffle.api.bytecode.BytecodeNode)","anchor":"getLocalInfo(com.oracle.truffle.api.bytecode.BytecodeNode)","kind":"method","name":"getLocalInfo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalInfo"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the info associated with the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the info associated with the local."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalInfo(int,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalInfo(int, int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":310}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#constantOf(com.oracle.truffle.api.bytecode.BytecodeLocal)","anchor":"constantOf(com.oracle.truffle.api.bytecode.BytecodeLocal)","kind":"method","name":"constantOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LocalAccessor","ref":"com.oracle.truffle.api.bytecode.LocalAccessor"},{"kind":"punct","text":" "},{"kind":"name","text":"constantOf"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeLocal","ref":"com.oracle.truffle.api.bytecode.BytecodeLocal"},{"kind":"punct","text":" "},{"kind":"param","text":"local"},{"kind":"punct","text":")"}],"params":[{"name":"local","type":[{"kind":"type","text":"BytecodeLocal","ref":"com.oracle.truffle.api.bytecode.BytecodeLocal"}]}],"returns":{"type":[{"kind":"type","text":"LocalAccessor","ref":"com.oracle.truffle.api.bytecode.LocalAccessor"}]},"doc":{"summary":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":". This method is invoked by the generated code and should not be called directly."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":335}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":347}},{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":352}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Operation parameter that allows an operation to get, set, and clear the value of a local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Operation parameter that allows an operation to get, set, and clear the value of a local."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To use a local accessor, declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"ConstantOperand"}]},{"kind":"text","text":" on the operation. The corresponding builder method for the operation will take a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal"}]},{"kind":"text","text":" argument for the local to be accessed. At run time, a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":" for the local will be supplied as a parameter to the operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Local accessors are useful to implement behaviour that cannot be implemented with the builtin local operations (like StoreLocal). For example, if an operation produces multiple outputs, it can write one of the outputs to a local using a local accessor. Prefer builtin operations when possible, since they automatically work with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#boxingEliminationTypes()"},"code":true,"children":[{"kind":"text","text":"boxing elimination"}]},{"kind":"text","text":". Local accessors should be preferred over "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" helpers like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValue(int, Frame, int)"}]},{"kind":"text","text":", since the helpers use extra indirection."}]},{"kind":"paragraph","children":[{"kind":"text","text":"All of the accessor methods take a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"bytecode node"}]},{"kind":"text","text":" and the current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.VirtualFrame"},"code":true,"children":[{"kind":"text","text":"frame"}]},{"kind":"text","text":". The bytecode node should be the current bytecode node and correspond to the root that declares the local; it should be compilation-final. The frame should contain the local."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"@Operation\n@ConstantOperand(type = LocalAccessor.class)\npublic static final class GetLocal {\n    @Specialization\n    public static Object perform(VirtualFrame frame,\n                    LocalAccessor accessor,\n                    @Bind BytecodeNode bytecodeNode) {\n        return accessor.getObject(bytecodeNode, frame);\n    }\n}"}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalAccessor.java","line":88}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor","name":"LocalRangeAccessor","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LocalRangeAccessor"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getLength()","anchor":"getLength()","kind":"method","name":"getLength","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the length of the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the length of the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":85}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":89}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":94}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},"code":true,"children":[{"kind":"text","text":"LocalRangeAccessor"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},"code":true,"children":[{"kind":"text","text":"LocalRangeAccessor"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":113}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"getObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"getObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getObject"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Loads an object from the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads an object from the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":127}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"getBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"getBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"getBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a boolean from the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a boolean from the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":141}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"getByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"getByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByte"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a byte from the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a byte from the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":155}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"getInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"getInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads an int from the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads an int from the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":169}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"getLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"getLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLong"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a long from the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a long from the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":183}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"getFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"getFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a float from the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a float from the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":197}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"getDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"getDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a double from the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a double from the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":211}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#setObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)","anchor":"setObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)","kind":"method","name":"setObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setObject"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an object into the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an object into the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":225}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#setBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,boolean)","anchor":"setBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,boolean)","kind":"method","name":"setBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a boolean into the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a boolean into the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":239}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#setByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,byte)","anchor":"setByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,byte)","kind":"method","name":"setByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByte"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a byte into the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a byte into the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":253}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#setInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,int)","anchor":"setInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,int)","kind":"method","name":"setInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setInt"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an int into the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an int into the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":267}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#setLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,long)","anchor":"setLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,long)","kind":"method","name":"setLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLong"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a long into the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a long into the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":281}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#setFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,float)","anchor":"setFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,float)","kind":"method","name":"setFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]},{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a float into the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a float into the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":295}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#setDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,double)","anchor":"setDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int,double)","kind":"method","name":"setDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a double into the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a double into the local at the given offset into the range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":309}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"clear","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clear"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]}],"doc":{"summary":[{"kind":"text","text":"Clears the local at the given offset into the range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clears the local at the given offset into the range."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"LocalAccessor.clear"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":324}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#isCleared(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"isCleared(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"isCleared","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCleared"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a partial evaluation constant offset into the range."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks whether the local at the given offset into the range has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)"},"code":true,"children":[{"kind":"text","text":"cleared"}]},{"kind":"text","text":" (and a new value has not been set)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether the local at the given offset into the range has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame,int)"},"code":true,"children":[{"kind":"text","text":"cleared"}]},{"kind":"text","text":" (and a new value has not been set)."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor#isCleared(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"LocalAccessor.isCleared"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":340}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getLocalName(com.oracle.truffle.api.bytecode.BytecodeNode,int)","anchor":"getLocalName(com.oracle.truffle.api.bytecode.BytecodeNode,int)","kind":"method","name":"getLocalName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalName"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the name associated with the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name associated with the local."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalName(int,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalName(int, int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":354}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#getLocalInfo(com.oracle.truffle.api.bytecode.BytecodeNode,int)","anchor":"getLocalInfo(com.oracle.truffle.api.bytecode.BytecodeNode,int)","kind":"method","name":"getLocalInfo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalInfo"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"offset","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the info associated with the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the info associated with the local."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalInfo(int,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalInfo(int, int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":367}},{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor#constantOf(com.oracle.truffle.api.bytecode.BytecodeLocal[])","anchor":"constantOf(com.oracle.truffle.api.bytecode.BytecodeLocal[])","kind":"method","name":"constantOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LocalRangeAccessor","ref":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},{"kind":"punct","text":" "},{"kind":"name","text":"constantOf"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeLocal","ref":"com.oracle.truffle.api.bytecode.BytecodeLocal"},{"kind":"punct","text":"[] "},{"kind":"param","text":"locals"},{"kind":"punct","text":")"}],"params":[{"name":"locals","type":[{"kind":"type","text":"BytecodeLocal","ref":"com.oracle.truffle.api.bytecode.BytecodeLocal"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"LocalRangeAccessor","ref":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"}]},"doc":{"summary":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},"code":true,"children":[{"kind":"text","text":"LocalRangeAccessor"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},"code":true,"children":[{"kind":"text","text":"LocalRangeAccessor"}]},{"kind":"text","text":". This method is invoked by the generated code and should not be called directly."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":403}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Operation parameter that allows an operation to get, set, or clear locals declared in a contiguous range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Operation parameter that allows an operation to get, set, or clear locals declared in a contiguous range."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To use a local range accessor, declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"ConstantOperand"}]},{"kind":"text","text":" on the operation. The corresponding builder method for the operation will take a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal"}]},{"kind":"text","text":" array argument for the locals to be accessed. These locals must be allocated sequentially during building. At run time, a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalRangeAccessor"},"code":true,"children":[{"kind":"text","text":"LocalRangeAccessor"}]},{"kind":"text","text":" for the locals will be supplied as a parameter to the operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"All of the accessor methods take a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":", the current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":", and an offset. The offset should be a valid compilation-final index into the array of locals. See the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"LocalAccessor"}]},{"kind":"text","text":" javadoc for restrictions on the other parameters and usage recommendations."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalRangeAccessor.java","line":68}},{"id":"com.oracle.truffle.api.bytecode.LocalVariable","name":"LocalVariable","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LocalVariable"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.LocalVariable#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"LocalVariable","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"LocalVariable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":64}},{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getStartIndex()","anchor":"getStartIndex()","kind":"method","name":"getStartIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getStartIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index at which this local starts being live."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index at which this local starts being live. If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"block scoping"}]},{"kind":"text","text":" is disabled, returns "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":75}},{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getEndIndex()","anchor":"getEndIndex()","kind":"method","name":"getEndIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getEndIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index at which this local stops being live."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index at which this local stops being live. If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"block scoping"}]},{"kind":"text","text":" is disabled, returns "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":86}},{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getLocalOffset()","anchor":"getLocalOffset()","kind":"method","name":"getLocalOffset","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalOffset"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the logical frame offset of a local variable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the logical frame offset of a local variable. The local index should be used with local accessor methods like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalValue(int,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalValue(int, Frame, int)"}]},{"kind":"text","text":" (it does "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" represent a frame index that can be used to directly access the frame). Always returns an integer greater or equal to zero."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"block scoping"}]},{"kind":"text","text":" is enabled, multiple locals can share an offset; otherwise, the local offset is the same as the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getLocalIndex()"},"code":true,"children":[{"kind":"text","text":"local index"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Using the local offset to access a local variable is only valid if the current bytecode index is in the range "},{"kind":"code","text":"[getStartIndex(), getEndIndex())"},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":105}},{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getLocalIndex()","anchor":"getLocalIndex()","kind":"method","name":"getLocalIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the local index, a unique identifier for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal"}]},{"kind":"text","text":" in a root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the local index, a unique identifier for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal"}]},{"kind":"text","text":" in a root node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":112}},{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getTypeProfile()","anchor":"getTypeProfile()","kind":"method","name":"getTypeProfile","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"name","text":"getTypeProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}]},"doc":{"summary":[{"kind":"text","text":"Returns the type profile that was collected for this local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the type profile that was collected for this local. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if no profile was yet collected or the interpreter does not collect profiles."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":120}},{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getInfo()","anchor":"getInfo()","kind":"method","name":"getInfo","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getInfo"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the info provided for the local, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no info was provided."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the info provided for the local, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no info was provided."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":127}},{"id":"com.oracle.truffle.api.bytecode.LocalVariable#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the name provided for the local, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no name was provided."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name provided for the local, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no name was provided."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":134}},{"id":"com.oracle.truffle.api.bytecode.LocalVariable#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":141}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Introspection class modeling a local variable and its liveness info in a bytecode interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Introspection class modeling a local variable and its liveness info in a bytecode interpreter. There can be more than one local variable for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal"}]},{"kind":"text","text":" because locals can be live for multiple disjoint bytecode ranges."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: Introspection classes are intended to be used for debugging purposes only. These APIs may change in the future."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocals()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocals()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/LocalVariable.java","line":57}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor","name":"MaterializedLocalAccessor","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MaterializedLocalAccessor"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},"code":true,"children":[{"kind":"text","text":"MaterializedLocalAccessor"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},"code":true,"children":[{"kind":"text","text":"MaterializedLocalAccessor"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":104}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#getObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"getObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"getObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getObject"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Loads an object from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads an object from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":114}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#getBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"getBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"getBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"getBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a boolean from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a boolean from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":127}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#getByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"getByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"getByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByte"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a byte from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a byte from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":140}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#getInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"getInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"getInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads an int from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads an int from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":153}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#getLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"getLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"getLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLong"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a long from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a long from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":166}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#getFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"getFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"getFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a float from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a float from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":179}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#getDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"getDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"getDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Loads a double from the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Loads a double from the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":192}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#setObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,java.lang.Object)","anchor":"setObject(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,java.lang.Object)","kind":"method","name":"setObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setObject"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an object into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an object into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":205}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#setBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,boolean)","anchor":"setBoolean(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,boolean)","kind":"method","name":"setBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a boolean into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a boolean into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":218}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#setByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,byte)","anchor":"setByte(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,byte)","kind":"method","name":"setByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByte"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a byte into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a byte into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":231}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#setInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,int)","anchor":"setInt(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,int)","kind":"method","name":"setInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setInt"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an int into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an int into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":244}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#setLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,long)","anchor":"setLong(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,long)","kind":"method","name":"setLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLong"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a long into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a long into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":257}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#setFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,float)","anchor":"setFloat(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,float)","kind":"method","name":"setFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a float into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a float into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":270}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#setDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,double)","anchor":"setDouble(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame,double)","kind":"method","name":"setDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a double into the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a double into the local."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":283}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"clear","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clear"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]}],"doc":{"summary":[{"kind":"text","text":"Clears the local from the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clears the local from the frame."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Clearing the slot marks the frame slot as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Illegal"},"code":true,"children":[{"kind":"text","text":"illegal"}]},{"kind":"text","text":". An exception will be thrown if it is read before being set. Clearing does "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" insert a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultLocalValue()"},"code":true,"children":[{"kind":"text","text":"default local value"}]},{"kind":"text","text":", if specified."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":301}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#isCleared(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"isCleared(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"isCleared","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCleared"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks whether the local has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)"},"code":true,"children":[{"kind":"text","text":"cleared"}]},{"kind":"text","text":" (and a new value has not been set)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether the local has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#clear(com.oracle.truffle.api.bytecode.BytecodeNode,com.oracle.truffle.api.frame.MaterializedFrame)"},"code":true,"children":[{"kind":"text","text":"cleared"}]},{"kind":"text","text":" (and a new value has not been set)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method also returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a local has not been initialized and no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#defaultLocalValue()"},"code":true,"children":[{"kind":"text","text":"default local value"}]},{"kind":"text","text":" is specified."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":317}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#getLocalName(com.oracle.truffle.api.bytecode.BytecodeNode)","anchor":"getLocalName(com.oracle.truffle.api.bytecode.BytecodeNode)","kind":"method","name":"getLocalName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalName"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the name associated with the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name associated with the local."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalName(int,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalName(int, int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":331}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#getLocalInfo(com.oracle.truffle.api.bytecode.BytecodeNode)","anchor":"getLocalInfo(com.oracle.truffle.api.bytecode.BytecodeNode)","kind":"method","name":"getLocalInfo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocalInfo"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the info associated with the local."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the info associated with the local."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getLocalInfo(int,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getLocalInfo(int, int)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":345}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#constantOf(int,com.oracle.truffle.api.bytecode.BytecodeLocal)","anchor":"constantOf(int,com.oracle.truffle.api.bytecode.BytecodeLocal)","kind":"method","name":"constantOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},{"kind":"punct","text":" "},{"kind":"name","text":"constantOf"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"rootIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeLocal","ref":"com.oracle.truffle.api.bytecode.BytecodeLocal"},{"kind":"punct","text":" "},{"kind":"param","text":"local"},{"kind":"punct","text":")"}],"params":[{"name":"rootIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"local","type":[{"kind":"type","text":"BytecodeLocal","ref":"com.oracle.truffle.api.bytecode.BytecodeLocal"}]}],"returns":{"type":[{"kind":"type","text":"MaterializedLocalAccessor","ref":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"}]},"doc":{"summary":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},"code":true,"children":[{"kind":"text","text":"MaterializedLocalAccessor"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Obtains a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},"code":true,"children":[{"kind":"text","text":"MaterializedLocalAccessor"}]},{"kind":"text","text":". This method is invoked by the generated code and should not be called directly."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":372}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":384}},{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":390}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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. This class can only be used if the root node supports "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableMaterializedLocalAccesses()"},"code":true,"children":[{"kind":"text","text":"materialized local accesses"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To use a materialized local accessor, declare a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"ConstantOperand"}]},{"kind":"text","text":" on the operation. The corresponding builder method for the operation will take a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocal"},"code":true,"children":[{"kind":"text","text":"BytecodeLocal"}]},{"kind":"text","text":" argument for the local to be accessed. At run time, a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.MaterializedLocalAccessor"},"code":true,"children":[{"kind":"text","text":"MaterializedLocalAccessor"}]},{"kind":"text","text":" for the local will be supplied as a parameter to the operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Materialized local accessors are useful to implement behaviour that cannot be implemented with the builtin materialized local operations (like StoreLocalMaterialized), nor with plain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.LocalAccessor"},"code":true,"children":[{"kind":"text","text":"local accessors"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"All of the materialized accessor methods take a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"bytecode node"}]},{"kind":"text","text":" and the current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.MaterializedFrame"},"code":true,"children":[{"kind":"text","text":"frame"}]},{"kind":"text","text":". The bytecode node should be the current bytecode node (not necessarily corresponding to the root node that declares the local); it should be compilation-final. The frame should contain the local and be materialized."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"@Operation\n@ConstantOperand(type = MaterializedLocalAccessor.class)\npublic static final class GetMaterializedLocal {\n    @Specialization\n    public static Object perform(VirtualFrame frame,\n                    MaterializedLocalAccessor accessor,\n                    MaterializedFrame materializedFrame,\n                    @Bind BytecodeNode bytecodeNode) {\n        return accessor.getObject(bytecodeNode, materializedFrame);\n    }\n}"}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/MaterializedLocalAccessor.java","line":88}},{"id":"com.oracle.truffle.api.bytecode.Operation","name":"Operation","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Operation"}],"members":[{"id":"com.oracle.truffle.api.bytecode.Operation#forceCached()","anchor":"forceCached()","kind":"annotationElement","name":"forceCached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"forceCached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached. This field allows you to generate an uncached interpreter with operations that cannot be easily rewritten to support uncached execution. It should only be set if the uncached interpreter is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableUncachedInterpreter()"},"code":true,"children":[{"kind":"text","text":"enabled"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default, to generate an uncached interpreter the Bytecode DSL requires every operation to support "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" execution. Setting this field to "},{"kind":"code","text":"true"},{"kind":"text","text":" overrides this requirement: instead, if the uncached interpreter tries to execute this operation, it will transition to cached and execute the cached operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Bear in mind that the usefulness of such an interpreter depends on the frequency of the operation. For example, if a very common operation forces cached execution, it will cause most bytecode nodes to transition to cached, negating the intended benefits of an uncached interpreter."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Operation.java","line":120}},{"id":"com.oracle.truffle.api.bytecode.Operation#tags()","anchor":"tags()","kind":"annotationElement","name":"tags","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">[] "},{"kind":"name","text":"tags"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"The instrumentation tags that should be implicitly associated with this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The instrumentation tags that should be implicitly associated with this operation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableTagInstrumentation()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Operation.java","line":128}},{"id":"com.oracle.truffle.api.bytecode.Operation#javadoc()","anchor":"javadoc()","kind":"annotationElement","name":"javadoc","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"javadoc"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Optional documentation for the operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional documentation for the operation. This documentation is included in the javadoc for the generated interpreter."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Operation.java","line":136}},{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()","anchor":"storeBytecodeIndex()","kind":"annotationElement","name":"storeBytecodeIndex","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"storeBytecodeIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to enable operation-level BCI storage"}]}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether to store the BCI in the frame before executing this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to store the BCI in the frame before executing this operation. Applies in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.FRAME"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#MANUAL"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.MANUAL"}]},{"kind":"text","text":", and uncached "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#CACHED_NODE"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.CACHED_NODE"}]},{"kind":"text","text":" execution."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When unspecified, storage is disabled in "},{"kind":"code","text":"MANUAL"},{"kind":"text","text":" mode and inferred from specialization caches (including bind parameters) in other modes. The DSL warns when an explicit choice is recommended. When "},{"kind":"code","text":"false"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex"},"code":true,"children":[{"kind":"text","text":"StoreBytecodeIndex"}]},{"kind":"text","text":" can enable storage for individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" methods."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex"},"code":true,"children":[{"kind":"text","text":"StoreBytecodeIndex"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Operation.java","line":152}}],"doc":{"summary":[{"kind":"text","text":"Declares an operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares an operation. An operation serves as a specification for a bytecode instruction in the generated interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An operation class is declared the same way as a regular Truffle AST node. It declares a set of specializations that define the behaviour of the operation. The specializations should all have a specific number of operands (dynamic input parameters), and they should all be "},{"kind":"code","text":"void"},{"kind":"text","text":" or return a value. These properties make up the \"signature\" for an operation; for example, an operation may consume two input values and produce a value."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Operations have a few additional restrictions compared to Truffle AST nodes:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"The operation class should be nested inside the bytecode root node class."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The operation class should be "},{"kind":"code","text":"static"},{"kind":"text","text":" "},{"kind":"code","text":"final"},{"kind":"text","text":", and have at least package-private visibility."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The operation class may extend other static classes to inherit specializations, but they must adhere to the same restrictions as operation classes. This is useful to share common specializations across multiple operations."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"For convenient access to helper methods/fields from Truffle DSL expressions, consider using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImportStatic"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.dsl.ImportStatic"}]},{"kind":"text","text":". Static imports can be declared on the root node or on individual operations; operation imports take precedence over root node imports."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The operation class should not contain instance members."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The specializations also have some differences:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Specializations should be "},{"kind":"code","text":"static"},{"kind":"text","text":" and have at least package-private visibility. Members referenced in Truffle DSL expressions (e.g., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"@Cached"}]},{"kind":"text","text":" parameters) have the same restrictions."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The parameters of any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.dsl.Fallback"}]},{"kind":"text","text":" specialization must be of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":". Unlike ASTs, which can define execute methods with specialized parameter types, operation arguments are consumed from the stack, where the type is not guaranteed."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Specializations can bind some special parameters: "},{"kind":"code","text":"$rootNode"},{"kind":"text","text":", "},{"kind":"code","text":"$bytecodeNode"},{"kind":"text","text":", and "},{"kind":"code","text":"$bytecodeIndex"},{"kind":"text","text":"."}]}]]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"To aid migration, there is also the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy"},"code":true,"children":[{"kind":"text","text":"OperationProxy"}]},{"kind":"text","text":" annotation that creates an operation from an existing AST node. This proxy can be defined outside of the root node, which may be convenient for code organization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Refer to the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/bytecode_dsl/UserGuide.md","children":[{"kind":"text","text":"user guide"}]},{"kind":"text","text":" for more details."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Operation.java","line":97}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy","name":"OperationProxy","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.bytecode.OperationProxy.Repeat.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"OperationProxy"}],"members":[{"id":"com.oracle.truffle.api.bytecode.OperationProxy#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.nodes.Node"}]},{"kind":"text","text":" class to proxy."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.nodes.Node"}]},{"kind":"text","text":" class to proxy."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":83}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy#name()","anchor":"name()","kind":"annotationElement","name":"name","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"The name to use for the operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The name to use for the operation. If no name is specified, the class name (without the \"Node\" suffix, if present) will be used."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":91}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy#forceCached()","anchor":"forceCached()","kind":"annotationElement","name":"forceCached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"forceCached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#forceCached()"},"code":true,"children":[{"kind":"text","text":"Operation.forceCached()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":100}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy#javadoc()","anchor":"javadoc()","kind":"annotationElement","name":"javadoc","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"javadoc"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Optional documentation for the operation proxy."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional documentation for the operation proxy. This documentation is included in the javadoc for the generated interpreter."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":108}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy#tags()","anchor":"tags()","kind":"annotationElement","name":"tags","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">[] "},{"kind":"name","text":"tags"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"The instrumentation tags that should be implicitly associated with this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The instrumentation tags that should be implicitly associated with this operation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableTagInstrumentation()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":187}}],"doc":{"summary":[{"kind":"text","text":"Defines an operation using an existing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.nodes.Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines an operation using an existing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.nodes.Node"}]},{"kind":"text","text":". The node class should be annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable"},"code":true,"children":[{"kind":"text","text":"Proxyable"}]},{"kind":"text","text":" in order to validate the class for use as an operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Operation proxies are useful for migrating AST interpreters to the Bytecode DSL. Additionally, they can be a code organization tool, separating operation classes from the bytecode root node class."}]},{"kind":"paragraph","children":[{"kind":"text","text":"There are some extra restrictions on nodes that are used as proxies. In general, the node should be written using static specializations with at least package-private visibility. There may be additional restrictions; the Truffle annotation processor will report any problems and describe how to fix them."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Refer to the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/bytecode_dsl/UserGuide.md","children":[{"kind":"text","text":"user guide"}]},{"kind":"text","text":" for more details."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":74}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable","name":"OperationProxy.Proxyable","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"OperationProxy.Proxyable"}],"enclosing":"com.oracle.truffle.api.bytecode.OperationProxy","members":[{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable#bindFrame()","anchor":"bindFrame()","kind":"annotationElement","name":"bindFrame","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"bindFrame"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to bind the frame; defaults to "},{"kind":"code","text":"true"}]}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether to recognize an optional leading frame as execution metadata, accessible through "},{"kind":"code","text":"@Bind(\"$frame\")"},{"kind":"text","text":" or a leading specialization parameter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to recognize an optional leading frame as execution metadata, accessible through "},{"kind":"code","text":"@Bind(\"$frame\")"},{"kind":"text","text":" or a leading specialization parameter. When disabled, frame parameters are evaluated arguments."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":140}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable#bindBytecodeNode()","anchor":"bindBytecodeNode()","kind":"annotationElement","name":"bindBytecodeNode","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"bindBytecodeNode"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to bind the bytecode node; defaults to "},{"kind":"code","text":"false"}]}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether each execute method supplies a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" metadata parameter for "},{"kind":"code","text":"@Bind(\"$bytecodeNode\")"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether each execute method supplies a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" metadata parameter for "},{"kind":"code","text":"@Bind(\"$bytecodeNode\")"},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable"},"code":true,"children":[{"kind":"text","text":"Proxyable"}]},{"kind":"text","text":" for parameter order."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":149}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable#bindBytecodeIndex()","anchor":"bindBytecodeIndex()","kind":"annotationElement","name":"bindBytecodeIndex","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"bindBytecodeIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to bind the bytecode index; defaults to "},{"kind":"code","text":"false"}]}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether each execute method supplies an "},{"kind":"code","text":"int"},{"kind":"text","text":" metadata parameter for "},{"kind":"code","text":"@Bind(\"$bytecodeIndex\")"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether each execute method supplies an "},{"kind":"code","text":"int"},{"kind":"text","text":" metadata parameter for "},{"kind":"code","text":"@Bind(\"$bytecodeIndex\")"},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable"},"code":true,"children":[{"kind":"text","text":"Proxyable"}]},{"kind":"text","text":" for parameter order."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":158}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable#allowUncached()","anchor":"allowUncached()","kind":"annotationElement","name":"allowUncached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"allowUncached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether a proxyable node allows use for uncached."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether a proxyable node allows use for uncached. If uncached use is enabled, additional validations are performed to ensure the node supports uncached."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":166}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable#storeBytecodeIndex()","anchor":"storeBytecodeIndex()","kind":"annotationElement","name":"storeBytecodeIndex","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"storeBytecodeIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to enable operation-level BCI storage"}]}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether to store the BCI before executing this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to store the BCI before executing this operation. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Operation.storeBytecodeIndex()"}]},{"kind":"text","text":" for mode-dependent defaults. When "},{"kind":"code","text":"false"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex"},"code":true,"children":[{"kind":"text","text":"StoreBytecodeIndex"}]},{"kind":"text","text":" enables storage for individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" methods."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":177}}],"doc":{"summary":[{"kind":"text","text":"Designates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.nodes.Node"}]},{"kind":"text","text":" class as eligible for proxying."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Designates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.nodes.Node"}]},{"kind":"text","text":" class as eligible for proxying."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Execute parameters are ordered as: optional frame when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable#bindFrame()"},"code":true,"children":[{"kind":"text","text":"bindFrame()"}]},{"kind":"text","text":" is enabled, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable#bindBytecodeNode()"},"code":true,"children":[{"kind":"text","text":"bindBytecodeNode()"}]},{"kind":"text","text":" is enabled, "},{"kind":"code","text":"int"},{"kind":"text","text":" when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Proxyable#bindBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"bindBytecodeIndex()"}]},{"kind":"text","text":" is enabled, then evaluated arguments. Enabled bytecode node and index parameters are required on every execute method and are not specialization operands."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Specializations access metadata through "},{"kind":"code","text":"@Bind"},{"kind":"text","text":": this metadata comes from execute arguments during AST execution and from current interpreter state during operation execution. Without "},{"kind":"code","text":"bindBytecodeIndex"},{"kind":"text","text":", "},{"kind":"code","text":"$bytecodeIndex"},{"kind":"text","text":" is "},{"kind":"code","text":"-1"},{"kind":"text","text":" during AST execution. Binding "},{"kind":"code","text":"$bytecodeNode"},{"kind":"text","text":" during AST execution without enabling "},{"kind":"code","text":"bindBytecodeNode"},{"kind":"text","text":" is a generation error."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":128}},{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Repeat","name":"OperationProxy.Repeat","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"OperationProxy.Repeat"}],"enclosing":"com.oracle.truffle.api.bytecode.OperationProxy","members":[{"id":"com.oracle.truffle.api.bytecode.OperationProxy$Repeat#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"OperationProxy","ref":"com.oracle.truffle.api.bytecode.OperationProxy"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OperationProxy","ref":"com.oracle.truffle.api.bytecode.OperationProxy"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy"},"code":true,"children":[{"kind":"text","text":"OperationProxy"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy"},"code":true,"children":[{"kind":"text","text":"OperationProxy"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":202}}],"doc":{"summary":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy"},"code":true,"children":[{"kind":"text","text":"OperationProxy"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy"},"code":true,"children":[{"kind":"text","text":"OperationProxy"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/OperationProxy.java","line":194}},{"id":"com.oracle.truffle.api.bytecode.Prolog","name":"Prolog","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Prolog"}],"members":[{"id":"com.oracle.truffle.api.bytecode.Prolog#storeBytecodeIndex()","anchor":"storeBytecodeIndex()","kind":"annotationElement","name":"storeBytecodeIndex","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"storeBytecodeIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to enable operation-level BCI storage"}]}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Whether to store the BCI before executing this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether to store the BCI before executing this operation. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Operation.storeBytecodeIndex()"}]},{"kind":"text","text":" for mode-dependent defaults. When "},{"kind":"code","text":"false"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex"},"code":true,"children":[{"kind":"text","text":"StoreBytecodeIndex"}]},{"kind":"text","text":" enables storage for individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" methods."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Prolog.java","line":85}}],"doc":{"summary":[{"kind":"text","text":"Defines a prolog operation that executes before the body of a Root operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines a prolog operation that executes before the body of a Root operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A prolog operation is defined the same way as an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":". It has the additional restriction that it must have no dynamic operands and must declare a "},{"kind":"code","text":"void"},{"kind":"text","text":" return type. It can declare "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ConstantOperand"},"code":true,"children":[{"kind":"text","text":"constant operands"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The prolog is guarded by exception intercept methods (e.g., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#interceptInternalException(java.lang.Throwable,com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.bytecode.BytecodeNode,int)"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode.interceptInternalException(Throwable, VirtualFrame, BytecodeNode, int)"}]},{"kind":"text","text":") as well as the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogExceptional"},"code":true,"children":[{"kind":"text","text":"exceptional epilog"}]},{"kind":"text","text":", if present."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag"},"code":true,"children":[{"kind":"text","text":"Tag"}]},{"kind":"text","text":" instrumentation is enabled, the prolog will execute after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootTag"},"code":true,"children":[{"kind":"text","text":"root"}]},{"kind":"text","text":" probes and before "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootBodyTag"},"code":true,"children":[{"kind":"text","text":"root body"}]},{"kind":"text","text":" probes."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogReturn"},"code":true,"children":[{"kind":"text","text":"EpilogReturn"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogExceptional"},"code":true,"children":[{"kind":"text","text":"EpilogExceptional"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Prolog.java","line":73}},{"id":"com.oracle.truffle.api.bytecode.Return","name":"Return","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Return"}],"members":[{"id":"com.oracle.truffle.api.bytecode.Return#forceCached()","anchor":"forceCached()","kind":"annotationElement","name":"forceCached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"forceCached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#forceCached()"},"code":true,"children":[{"kind":"text","text":"Operation.forceCached()"}]}]]},"since":"25.2","source":{"path":"com/oracle/truffle/api/bytecode/Return.java","line":82}},{"id":"com.oracle.truffle.api.bytecode.Return#tags()","anchor":"tags()","kind":"annotationElement","name":"tags","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">[] "},{"kind":"name","text":"tags"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"The instrumentation tags that should be implicitly associated with this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The instrumentation tags that should be implicitly associated with this operation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableTagInstrumentation()"}]}]]},"since":"25.2","source":{"path":"com/oracle/truffle/api/bytecode/Return.java","line":90}},{"id":"com.oracle.truffle.api.bytecode.Return#javadoc()","anchor":"javadoc()","kind":"annotationElement","name":"javadoc","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"javadoc"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Optional documentation for the operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional documentation for the operation. This documentation is included in the javadoc for the generated interpreter."}]}]},"since":"25.2","source":{"path":"com/oracle/truffle/api/bytecode/Return.java","line":98}},{"id":"com.oracle.truffle.api.bytecode.Return#resultOperandIndex()","anchor":"resultOperandIndex()","kind":"annotationElement","name":"resultOperandIndex","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"resultOperandIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Index of the dynamic operand that represents the logical \"result\" of the return before the custom return executes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Index of the dynamic operand that represents the logical \"result\" of the return before the custom return executes. This result is used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"tag instrumentation"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogReturn"},"code":true,"children":[{"kind":"text","text":"EpilogReturn"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This field must be specified for custom returns with multiple dynamic operands; it should not be specified for custom returns with no dynamic operands."}]}]},"since":"25.2","source":{"path":"com/oracle/truffle/api/bytecode/Return.java","line":111}}],"doc":{"summary":[{"kind":"text","text":"Declares a custom return operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares a custom return operation. A custom return operation has the same control-flow behavior as the built-in "},{"kind":"code","text":"Return"},{"kind":"text","text":" operation, but allows custom logic to compute the value returned from the bytecode root node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A custom return operation has many of the same restrictions and capabilities of a regular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":", with a few differences:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"It must take one or more dynamic operands."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It must have a return value. This value is returned from the bytecode root node and should be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isValidValue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"valid interop type"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If a custom return takes multiple dynamic operands, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Return#resultOperandIndex()"},"code":true,"children":[{"kind":"text","text":"resultOperandIndex()"}]},{"kind":"text","text":" specifies which operand represents the logical \"result\" of the return before the custom return executes. This result is used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"tag instrumentation"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.EpilogReturn"},"code":true,"children":[{"kind":"text","text":"EpilogReturn"}]},{"kind":"text","text":"."}]}]},"since":"25.2","source":{"path":"com/oracle/truffle/api/bytecode/Return.java","line":71}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation","name":"ShortCircuitOperation","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.bytecode.ShortCircuitOperation.Repeat.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ShortCircuitOperation"}],"members":[{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation#name()","anchor":"name()","kind":"annotationElement","name":"name","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"The name of this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The name of this operation."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":116}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation#operator()","anchor":"operator()","kind":"annotationElement","name":"operator","signature":[{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"},{"kind":"punct","text":" "},{"kind":"name","text":"operator"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"}]},"doc":{"summary":[{"kind":"text","text":"The short-circuit operator to use for this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The short-circuit operator to use for this operation. The operator decides whether to perform a boolean AND or OR. It also determines whether the operation produces the original operand or the boolean that results from conversion."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An OR operation will execute children until a "},{"kind":"code","text":"true"},{"kind":"text","text":" value; an AND operation will execute children until a "},{"kind":"code","text":"false"},{"kind":"text","text":" value. Note that this means "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation#booleanConverter()"},"code":true,"children":[{"kind":"text","text":"booleanConverter"}]},{"kind":"text","text":" can be negated by changing an OR to an AND (or vice-versa) and then inverting the result. For example, "},{"kind":"code","text":"!convert(A) OR !convert(B) OR ..."},{"kind":"text","text":" can be implemented using "},{"kind":"code","text":"!(convert(A) AND convert(B) AND ...)"},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":147}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation#booleanConverter()","anchor":"booleanConverter()","kind":"annotationElement","name":"booleanConverter","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"booleanConverter"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"void.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"defaultValue":"void.class","doc":{"summary":[{"kind":"text","text":"A node or operation class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A node or operation class. The short-circuit operation uses this class to convert each operand value to a "},{"kind":"code","text":"boolean"},{"kind":"text","text":" value used by the boolean operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If no converter is provided, the operands must already be "},{"kind":"code","text":"boolean"},{"kind":"text","text":"s. The interpreter will cast each operand to "},{"kind":"code","text":"boolean"},{"kind":"text","text":" in order to compare it against "},{"kind":"code","text":"true"},{"kind":"text","text":" or "},{"kind":"code","text":"false"},{"kind":"text","text":" (throwing "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" as appropriate). However, since the last operand is not compared against "},{"kind":"code","text":"true"},{"kind":"text","text":" or "},{"kind":"code","text":"false"},{"kind":"text","text":", it is "},{"kind":"strong","children":[{"kind":"text","text":"not checked"}]},{"kind":"text","text":"; it is the language's responsibility to ensure the operands are "},{"kind":"code","text":"boolean"},{"kind":"text","text":" (or to properly handle a non-"},{"kind":"code","text":"boolean"},{"kind":"text","text":" result in the consuming operation)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The class can be (but does not need to be) declared as an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.OperationProxy"},"code":true,"children":[{"kind":"text","text":"OperationProxy"}]},{"kind":"text","text":". If it is not declared as either, it will undergo the same validation as an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":" (see the Operation Javadoc for the specific requirements). In addition, such a node/operation must:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Only have specializations returning "},{"kind":"code","text":"boolean"},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Only have specializations that take a single dynamic operand."}]}]]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":172}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation#javadoc()","anchor":"javadoc()","kind":"annotationElement","name":"javadoc","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"javadoc"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Optional documentation for the short circuit operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional documentation for the short circuit operation. This documentation is included in the javadoc for the generated interpreter."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":180}}],"doc":{"summary":[{"kind":"text","text":"Declares a short-circuiting operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares a short-circuiting operation. A short-circuiting operation serves as a specification for a short-circuiting bytecode instruction in the generated interpreter. Whereas regular operations evaluate all of their operands eagerly, short-circuiting operations evaluate them one at a time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A short-circuiting operation "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation#booleanConverter()"},"code":true,"children":[{"kind":"text","text":"converts"}]},{"kind":"text","text":" each operand to a "},{"kind":"code","text":"boolean"},{"kind":"text","text":" to determine whether to continue execution. An OR operation continues until it encounters "},{"kind":"code","text":"true"},{"kind":"text","text":"; an AND operation continues until it encounters "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A short-circuiting operation produces either the last operand evaluated, or the "},{"kind":"code","text":"boolean"},{"kind":"text","text":" it converted to. Both the boolean operator and the return semantics are specified by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation#operator()"},"code":true,"children":[{"kind":"text","text":"operator"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example, the following code declares a short-circuiting \"Or\" operation that continues to evaluate operands as long as they coerce to "},{"kind":"code","text":"false"},{"kind":"text","text":":"}]},{"kind":"code","text":"@GenerateBytecode(...)\n@ShortCircuitOperation(name = \"Or\", operator=Operator.OR_RETURN_VALUE, booleanConverter = CoerceBoolean.class)\npublic static final class MyBytecodeNode extends RootNode implements BytecodeRootNode {\n  @Operation\n  public static final class CoerceBoolean {\n    @Specialization\n    public static boolean fromInt(int x) { return x != 0; }\n    @Specialization\n    public static boolean fromBool(boolean x) { return x; }\n    @Specialization\n    public static boolean fromObject(Object x) { return x != null; }\n  }\n\n  ...\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In pseudocode, the "},{"kind":"code","text":"Or"},{"kind":"text","text":" operation declared above has the following semantics:"}]},{"kind":"code","text":"value_1 = // compute operand_1\nif CoerceBoolean(value_1) != false\n  return value_1\n\nvalue_2 = // compute operand_2\nif CoerceBoolean(value_2) != false\n  return value_2\n\n...\n\nvalue_n = // compute operand_n\nreturn value_n"},{"kind":"paragraph","children":[{"kind":"text","text":"Since the operand value itself is returned, this operation can be used to implement null-coalescing operations (e.g., "},{"kind":"code","text":"someArray or []"},{"kind":"text","text":" in Python)."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":107}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator","name":"ShortCircuitOperation.Operator","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"ShortCircuitOperation.Operator"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.ShortCircuitOperation","members":[{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator#AND_RETURN_VALUE","anchor":"AND_RETURN_VALUE","kind":"enumConstant","name":"AND_RETURN_VALUE","signature":[{"kind":"name","text":"AND_RETURN_VALUE"}],"type":[{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"}],"doc":{"summary":[{"kind":"text","text":"AND operator that produces the operand value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"AND operator that produces the operand value."}]}]},"source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":125}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator#AND_RETURN_CONVERTED","anchor":"AND_RETURN_CONVERTED","kind":"enumConstant","name":"AND_RETURN_CONVERTED","signature":[{"kind":"name","text":"AND_RETURN_CONVERTED"}],"type":[{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"}],"doc":{"summary":[{"kind":"text","text":"AND operator that produces the converted boolean value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"AND operator that produces the converted boolean value."}]}]},"source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":127}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator#OR_RETURN_VALUE","anchor":"OR_RETURN_VALUE","kind":"enumConstant","name":"OR_RETURN_VALUE","signature":[{"kind":"name","text":"OR_RETURN_VALUE"}],"type":[{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"}],"doc":{"summary":[{"kind":"text","text":"OR operator that produces the operand value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"OR operator that produces the operand value."}]}]},"source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":129}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator#OR_RETURN_CONVERTED","anchor":"OR_RETURN_CONVERTED","kind":"enumConstant","name":"OR_RETURN_CONVERTED","signature":[{"kind":"name","text":"OR_RETURN_CONVERTED"}],"type":[{"kind":"type","text":"ShortCircuitOperation.Operator","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Operator"}],"doc":{"summary":[{"kind":"text","text":"OR operator that produces the converted boolean value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"OR operator that produces the converted boolean value."}]}]},"source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":131}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Defines the behaviour of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},"code":true,"children":[{"kind":"text","text":"ShortCircuitOperation"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines the behaviour of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},"code":true,"children":[{"kind":"text","text":"ShortCircuitOperation"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":123}},{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Repeat","name":"ShortCircuitOperation.Repeat","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ShortCircuitOperation.Repeat"}],"enclosing":"com.oracle.truffle.api.bytecode.ShortCircuitOperation","members":[{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation$Repeat#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"ShortCircuitOperation","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ShortCircuitOperation","ref":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},"code":true,"children":[{"kind":"text","text":"ShortCircuitOperation"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},"code":true,"children":[{"kind":"text","text":"ShortCircuitOperation"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":195}}],"doc":{"summary":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},"code":true,"children":[{"kind":"text","text":"ShortCircuitOperation"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ShortCircuitOperation"},"code":true,"children":[{"kind":"text","text":"ShortCircuitOperation"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/ShortCircuitOperation.java","line":187}},{"id":"com.oracle.truffle.api.bytecode.SourceInformation","name":"SourceInformation","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceInformation"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.SourceInformation#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"SourceInformation","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceInformation"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/SourceInformation.java","line":61}},{"id":"com.oracle.truffle.api.bytecode.SourceInformation#getStartBytecodeIndex()","anchor":"getStartBytecodeIndex()","kind":"method","name":"getStartBytecodeIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getStartBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the start bytecode index for this source information object (inclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the start bytecode index for this source information object (inclusive)."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/SourceInformation.java","line":70}},{"id":"com.oracle.truffle.api.bytecode.SourceInformation#getEndBytecodeIndex()","anchor":"getEndBytecodeIndex()","kind":"method","name":"getEndBytecodeIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getEndBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the end bytecode index for this source information object (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the end bytecode index for this source information object (exclusive)."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/SourceInformation.java","line":77}},{"id":"com.oracle.truffle.api.bytecode.SourceInformation#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns the source section associated with this source information object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the source section associated with this source information object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The result is never "},{"kind":"code","text":"null"},{"kind":"text","text":", with the possible exception of the root of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformationTree"},"code":true,"children":[{"kind":"text","text":"SourceInformationTree"}]},{"kind":"text","text":" (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceInformationTree()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getSourceInformationTree"}]},{"kind":"text","text":")."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/SourceInformation.java","line":87}},{"id":"com.oracle.truffle.api.bytecode.SourceInformation#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/SourceInformation.java","line":94}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Introspection class modeling source section information for a range of bytecodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Introspection class modeling source section information for a range of bytecodes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: Introspection classes are intended to be used for debugging purposes only. These APIs may change in the future."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceInformation()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getSourceInformation()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeLocation#getSourceInformation()"},"code":true,"children":[{"kind":"text","text":"BytecodeLocation.getSourceInformation()"}]}]]},"source":{"path":"com/oracle/truffle/api/bytecode/SourceInformation.java","line":54}},{"id":"com.oracle.truffle.api.bytecode.SourceInformationTree","name":"SourceInformationTree","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceInformationTree"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceInformation","ref":"com.oracle.truffle.api.bytecode.SourceInformation"}],"superclass":[{"kind":"type","text":"SourceInformation","ref":"com.oracle.truffle.api.bytecode.SourceInformation"}],"ancestors":[{"id":"com.oracle.truffle.api.bytecode.SourceInformation"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.SourceInformationTree#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"SourceInformationTree","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceInformationTree"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/SourceInformationTree.java","line":67}},{"id":"com.oracle.truffle.api.bytecode.SourceInformationTree#getChildren()","anchor":"getChildren()","kind":"method","name":"getChildren","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SourceInformationTree","ref":"com.oracle.truffle.api.bytecode.SourceInformationTree"},{"kind":"punct","text":"> "},{"kind":"name","text":"getChildren"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SourceInformationTree","ref":"com.oracle.truffle.api.bytecode.SourceInformationTree"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns a list of child trees, ordered by bytecode range."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a list of child trees, ordered by bytecode range."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/SourceInformationTree.java","line":76}},{"id":"com.oracle.truffle.api.bytecode.SourceInformationTree#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.bytecode.SourceInformation#toString()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/SourceInformationTree.java","line":83}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.bytecode.SourceInformation","text":"SourceInformation"},"kind":"class","members":[{"id":"com.oracle.truffle.api.bytecode.SourceInformation#getEndBytecodeIndex()","text":"getEndBytecodeIndex"},{"id":"com.oracle.truffle.api.bytecode.SourceInformation#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.bytecode.SourceInformation#getStartBytecodeIndex()","text":"getStartBytecodeIndex"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Introspection class modeling a tree of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformation"},"code":true,"children":[{"kind":"text","text":"SourceInformation"}]},{"kind":"text","text":" instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Introspection class modeling a tree of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformation"},"code":true,"children":[{"kind":"text","text":"SourceInformation"}]},{"kind":"text","text":" instances. Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformation"},"code":true,"children":[{"kind":"text","text":"SourceInformation"}]},{"kind":"text","text":", this class models the source section for a bytecode range. Its children model the source sections of subranges directly contained by this node's bytecode range."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: it is possible for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.SourceInformation#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"SourceInformationTree.getSourceSection()"}]},{"kind":"text","text":" to return "},{"kind":"code","text":"null"},{"kind":"text","text":" for the root of the tree when the Root operation is not enclosed in a SourceSection operation. See the discussion in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceInformationTree()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getSourceInformationTree()"}]},{"kind":"text","text":" for more information."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: Introspection classes are intended to be used for debugging purposes only. These APIs may change in the future."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceInformationTree()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getSourceInformationTree()"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/SourceInformationTree.java","line":60}},{"id":"com.oracle.truffle.api.bytecode.StackValue","name":"StackValue","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StackValue"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.StackValue#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"StackValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"StackValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"25.4","source":{"path":"com/oracle/truffle/api/bytecode/StackValue.java","line":59}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Abstract definition of a stack value in the interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Abstract definition of a stack value in the interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Stack values are build-time handles to values on the operand stack. A stack value can be bound using "},{"kind":"code","text":"BindStackValue"},{"kind":"text","text":" and then accessed using "},{"kind":"code","text":"LoadStackValue"},{"kind":"text","text":" and "},{"kind":"code","text":"StoreStackValue"},{"kind":"text","text":". A stack value is valid while the enclosing custom operation or "},{"kind":"code","text":"Block"},{"kind":"text","text":" is active."}]}]},"since":"25.4","source":{"path":"com/oracle/truffle/api/bytecode/StackValue.java","line":52}},{"id":"com.oracle.truffle.api.bytecode.StoreBytecodeIndex","name":"StoreBytecodeIndex","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"StoreBytecodeIndex"}],"doc":{"summary":[{"kind":"text","text":"Stores the BCI in the frame before an annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" executes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores the BCI in the frame before an annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" executes. Requires "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Operation.storeBytecodeIndex()"}]},{"kind":"text","text":" to be "},{"kind":"code","text":"false"},{"kind":"text","text":", the default in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#MANUAL"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.MANUAL"}]},{"kind":"text","text":" mode."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Applies in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#FRAME"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.FRAME"}]},{"kind":"text","text":", "},{"kind":"code","text":"MANUAL"},{"kind":"text","text":", and uncached "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeIndexMode#CACHED_NODE"},"code":true,"children":[{"kind":"text","text":"BytecodeIndexMode.CACHED_NODE"}]},{"kind":"text","text":" execution."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#storeBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"Operation.storeBytecodeIndex()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/StoreBytecodeIndex.java","line":62}},{"id":"com.oracle.truffle.api.bytecode.TagTree","name":"TagTree","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TagTree"}],"members":[{"id":"com.oracle.truffle.api.bytecode.TagTree#getTreeChildren()","anchor":"getTreeChildren()","kind":"method","name":"getTreeChildren","signature":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TagTree","ref":"com.oracle.truffle.api.bytecode.TagTree"},{"kind":"punct","text":"> "},{"kind":"name","text":"getTreeChildren"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TagTree","ref":"com.oracle.truffle.api.bytecode.TagTree"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the child trees corresponding to "},{"kind":"code","text":"Tag"},{"kind":"text","text":" operations nested in this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the child trees corresponding to "},{"kind":"code","text":"Tag"},{"kind":"text","text":" operations nested in this node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTree.java","line":62}},{"id":"com.oracle.truffle.api.bytecode.TagTree#getTags()","anchor":"getTags()","kind":"method","name":"getTags","signature":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">> "},{"kind":"name","text":"getTags"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">>"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag"},"code":true,"children":[{"kind":"text","text":"tags"}]},{"kind":"text","text":" associated with this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag"},"code":true,"children":[{"kind":"text","text":"tags"}]},{"kind":"text","text":" associated with this node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTree.java","line":69}},{"id":"com.oracle.truffle.api.bytecode.TagTree#hasTag(java.lang.Class)","anchor":"hasTag(java.lang.Class)","kind":"method","name":"hasTag","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasTag"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":"> "},{"kind":"param","text":"tag"},{"kind":"punct","text":")"}],"params":[{"name":"tag","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the tag to search for"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns whether the given "},{"kind":"code","text":"tag"},{"kind":"text","text":" is associated with this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether the given "},{"kind":"code","text":"tag"},{"kind":"text","text":" is associated with this node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTree.java","line":78}},{"id":"com.oracle.truffle.api.bytecode.TagTree#getEnterBytecodeIndex()","anchor":"getEnterBytecodeIndex()","kind":"method","name":"getEnterBytecodeIndex","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getEnterBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index at which the interpreter enters the tag operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index at which the interpreter enters the tag operation. The bytecode interpreter will invoke "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onEnter(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"ProbeNode.onEnter"}]},{"kind":"text","text":" at this point in the program."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTree.java","line":86}},{"id":"com.oracle.truffle.api.bytecode.TagTree#getReturnBytecodeIndex()","anchor":"getReturnBytecodeIndex()","kind":"method","name":"getReturnBytecodeIndex","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getReturnBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index at which the interpreter \"returns\" from the tag operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index at which the interpreter \"returns\" from the tag operation. The bytecode interpreter will invoke "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ProbeNode.onReturnValue"}]},{"kind":"text","text":" with the child operation's result (if any) at this point in the program."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: the instruction at this index is not necessarily a return, but the value it produces is treated as a return value for the sake of instrumentation. There can also be other return points if the child operation has early exits; this method returns the regular return point."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTree.java","line":99}},{"id":"com.oracle.truffle.api.bytecode.TagTree#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","signature":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Gets the most concrete "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" associated with the tag operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the most concrete "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" associated with the tag operation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocation(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getSourceLocation(com.oracle.truffle.api.frame.Frame,\n     com.oracle.truffle.api.nodes.Node)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTree.java","line":109}},{"id":"com.oracle.truffle.api.bytecode.TagTree#getSourceSections()","anchor":"getSourceSections()","kind":"method","name":"getSourceSections","signature":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSourceSections"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Gets all "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source locations"}]},{"kind":"text","text":" associated with the tag operation, ordered from most to least concrete."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets all "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source locations"}]},{"kind":"text","text":" associated with the tag operation, ordered from most to least concrete."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getSourceLocations(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getSourceLocations(com.oracle.truffle.api.frame.Frame,\n     com.oracle.truffle.api.nodes.Node)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTree.java","line":119}}],"doc":{"summary":[{"kind":"text","text":"Logical tree representation of the "},{"kind":"code","text":"Tag"},{"kind":"text","text":" operations of a bytecode program."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Logical tree representation of the "},{"kind":"code","text":"Tag"},{"kind":"text","text":" operations of a bytecode program."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag"},"code":true,"children":[{"kind":"text","text":"Tag"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode#getTagTree()"},"code":true,"children":[{"kind":"text","text":"BytecodeNode.getTagTree"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTree.java","line":56}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNode","name":"TagTreeNode","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TagTreeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"TagTree","ref":"com.oracle.truffle.api.bytecode.TagTree"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"interfaces":[[{"kind":"type","text":"TagTree","ref":"com.oracle.truffle.api.bytecode.TagTree"}]],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.TagTreeNode#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"TagTreeNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"TagTreeNode"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"token"},{"kind":"punct","text":")"}],"params":[{"name":"token","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for generated code. Do not use."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNode.java","line":73}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNode#getLanguage()","anchor":"getLanguage()","kind":"method","name":"getLanguage","modifiers":["protected","abstract"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"name","text":"getLanguage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}]},"doc":{"summary":[{"kind":"text","text":"Allows to access the language instance associated with this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows to access the language instance associated with this node."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.TagTreeNode#getLanguageId()"},"code":true,"children":[{"kind":"text","text":"getLanguageId()"}]},{"kind":"text","text":"."}]}],"since":"25.1"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNode.java","line":84}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNode#getLanguageId()","anchor":"getLanguageId()","kind":"method","name":"getLanguageId","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguageId"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns an id of a language associated with this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an id of a language associated with this node."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNode.java","line":92}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNode#dispatch()","anchor":"dispatch()","kind":"method","name":"dispatch","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"dispatch"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns the currently used "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary"},"code":true,"children":[{"kind":"text","text":"NodeLibrary"}]},{"kind":"text","text":" exports for this tag library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the currently used "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary"},"code":true,"children":[{"kind":"text","text":"NodeLibrary"}]},{"kind":"text","text":" exports for this tag library."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNode.java","line":101}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNode#getBytecodeNode()","anchor":"getBytecodeNode()","kind":"method","name":"getBytecodeNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode node associated with this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode node associated with this node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNode.java","line":111}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNode#createDefaultScope(com.oracle.truffle.api.frame.Frame,boolean)","anchor":"createDefaultScope(com.oracle.truffle.api.frame.Frame,boolean)","kind":"method","name":"createDefaultScope","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createDefaultScope"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"nodeEnter"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"nodeEnter","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a default scope implementation based on this tag tree node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a default scope implementation based on this tag tree node. The scope returned exposes the live locals at the given location in the program (respecting the configured "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBlockScoping()"},"code":true,"children":[{"kind":"text","text":"scoping mode"}]},{"kind":"text","text":"). It uses the "},{"kind":"code","text":"name"},{"kind":"text","text":"s supplied at local declaration time, falling back on generic names when unavailable."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This is the default scope used by Bytecode DSL interpreters. The scope can be customized by setting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#tagTreeNodeLibrary()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.tagTreeNodeLibrary()"}]},{"kind":"text","text":" to a class that exports "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#getScope(java.lang.Object,com.oracle.truffle.api.frame.Frame,boolean)"},"code":true,"children":[{"kind":"text","text":"NodeLibrary.getScope(Object, Frame, boolean)"}]},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.TagTreeNode"},"code":true,"children":[{"kind":"text","text":"TagTreeNode"}]},{"kind":"text","text":". Your library can use this method if the default scope implementation is appropriate for your language but other methods in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary"},"code":true,"children":[{"kind":"text","text":"NodeLibrary"}]},{"kind":"text","text":" need to be implemented differently."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNode.java","line":129}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNode#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.nodes.Node#toString()"},"doc":{"summary":[{"kind":"text","text":"Converts this node to a textual representation useful for debugging."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this node to a textual representation useful for debugging."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNode.java","line":138}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]},{"from":{"id":"com.oracle.truffle.api.bytecode.TagTree","text":"TagTree"},"kind":"interface","members":[{"id":"com.oracle.truffle.api.bytecode.TagTree#getEnterBytecodeIndex()","text":"getEnterBytecodeIndex"},{"id":"com.oracle.truffle.api.bytecode.TagTree#getReturnBytecodeIndex()","text":"getReturnBytecodeIndex"},{"id":"com.oracle.truffle.api.bytecode.TagTree#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.bytecode.TagTree#getSourceSections()","text":"getSourceSections"},{"id":"com.oracle.truffle.api.bytecode.TagTree#getTags()","text":"getTags"},{"id":"com.oracle.truffle.api.bytecode.TagTree#getTreeChildren()","text":"getTreeChildren"},{"id":"com.oracle.truffle.api.bytecode.TagTree#hasTag(java.lang.Class)","text":"hasTag"}]}],"doc":{"summary":[{"kind":"text","text":"Class that implements tag tree "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary"},"code":true,"children":[{"kind":"text","text":"NodeLibrary"}]},{"kind":"text","text":" dispatch for tag tree items."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Class that implements tag tree "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary"},"code":true,"children":[{"kind":"text","text":"NodeLibrary"}]},{"kind":"text","text":" dispatch for tag tree items. This class is intended to be used when implementing a custom "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#tagTreeNodeLibrary()"},"code":true,"children":[{"kind":"text","text":"tag tree node library"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode#getInstrumentationNodeObject(com.oracle.truffle.api.bytecode.TagTreeNode)"},"code":true,"children":[{"kind":"text","text":"instrumentation node objects"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"All implementations of this class are intended to be generated and are not supposed to be implemented manually."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNode.java","line":65}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen","name":"TagTreeNodeGen","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TagTreeNodeGen"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":11}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports","name":"TagTreeNodeGen.DynamicDispatchLibraryExports","kind":"class","language":"java","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TagTreeNodeGen.DynamicDispatchLibraryExports"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"LibraryExport","ref":"com.oracle.truffle.api.library.LibraryExport"},{"kind":"punct","text":"<"},{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"LibraryExport","ref":"com.oracle.truffle.api.library.LibraryExport"},{"kind":"punct","text":"<"},{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},{"kind":"punct","text":">"}],"ancestors":[{"id":"com.oracle.truffle.api.library.LibraryExport"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.TagTreeNodeGen","members":[{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports#createUncached(java.lang.Object)","anchor":"createUncached(java.lang.Object)","kind":"method","name":"createUncached","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},{"kind":"punct","text":" "},{"kind":"name","text":"createUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"}]},"overrides":{"id":"com.oracle.truffle.api.library.LibraryExport#createUncached(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Implemented generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Implemented generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":". Do not implement manually."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.library.LibraryExport#createUncached(java.lang.Object)"}},"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":29}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports#createCached(java.lang.Object)","anchor":"createCached(java.lang.Object)","kind":"method","name":"createCached","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},{"kind":"punct","text":" "},{"kind":"name","text":"createCached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"}]},"overrides":{"id":"com.oracle.truffle.api.library.LibraryExport#createCached(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Implemented generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Implemented generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":". Do not implement manually."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.library.LibraryExport#createCached(java.lang.Object)"}},"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":36}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.library.LibraryExport","text":"LibraryExport"},"kind":"class","members":[{"id":"com.oracle.truffle.api.library.LibraryExport#assertAdopted(com.oracle.truffle.api.nodes.Node)","text":"assertAdopted"},{"id":"com.oracle.truffle.api.library.LibraryExport#createDelegate(com.oracle.truffle.api.library.LibraryFactory,T)","text":"createDelegate"},{"id":"com.oracle.truffle.api.library.LibraryExport#createMessageBitSet(com.oracle.truffle.api.library.LibraryFactory,java.lang.String...)","text":"createMessageBitSet"},{"id":"com.oracle.truffle.api.library.LibraryExport#register(java.lang.Class,com.oracle.truffle.api.library.LibraryExport...)","text":"register"},{"id":"com.oracle.truffle.api.library.LibraryExport#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":22}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Cached","name":"TagTreeNodeGen.DynamicDispatchLibraryExports.Cached","kind":"class","language":"java","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TagTreeNodeGen.DynamicDispatchLibraryExports.Cached"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"}],"superclass":[{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"}],"ancestors":[{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},{"id":"com.oracle.truffle.api.library.Library"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports","members":[{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Cached#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"Cached","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Cached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":47}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Cached#cast(java.lang.Object)","anchor":"cast(java.lang.Object)","kind":"method","name":"cast","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"cast"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"overrides":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#cast(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Cast the object receiver type to the dispatched type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Cast the object receiver type to the dispatched type. This is not supposed to be implemented by dynamic dispatch implementer but is automatically implemented when implementing dynamic dispatch."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#cast(java.lang.Object)"}},"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":52}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Cached#accepts(java.lang.Object)","anchor":"accepts(java.lang.Object)","kind":"method","name":"accepts","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"accepts"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this library instance supports sending messages with the given receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this library instance supports sending messages with the given receiver. If accepts returns "},{"kind":"code","text":"false"},{"kind":"text","text":" and a library message is sent anyway then an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown if assertions are enabled (-ea). Otherwise a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" may be thrown by the method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A library that was created using a receiver value i.e. a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#create(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.create(Object)"}]},{"kind":"text","text":" only guarantees to accept the value it was constructed with. For other values, the method may return "},{"kind":"code","text":"false"},{"kind":"text","text":". Such libraries need to check for acceptance before calling a library method with a receiver. If receiver values are not accepted then a new library needs to be created or fetched. Dispatched versions of libraries always return "},{"kind":"code","text":"true"},{"kind":"text","text":" for any value as they take care of dispatching to any receiver type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is not necessary to call accepts manually for most use cases. Instead the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]},{"kind":"text","text":" should be used instead. For slow-paths the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached()"},"code":true,"children":[{"kind":"text","text":"internally dispatched"}]},{"kind":"text","text":" versions of the uncached library should be used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The accepts message may be exported by receiver types. When exported it can only be further restricted in addition to the default accepts implementation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory"},"code":true,"children":[{"kind":"text","text":"for ways how to dispatch libraries."}]}]],"inheritedFrom":{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)"}},"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":57}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Cached#dispatch(java.lang.Object)","anchor":"dispatch(java.lang.Object)","kind":"method","name":"dispatch","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"dispatch"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"overrides":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#dispatch(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Returns a class that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"exports"}]},{"kind":"text","text":" at least one library with an explicit receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a class that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"exports"}]},{"kind":"text","text":" at least one library with an explicit receiver. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate that the default dispatch of the library should be used."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#dispatch(java.lang.Object)"}},"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":62}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary","text":"DynamicDispatchLibrary"},"kind":"class","members":[{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#getFactory()","text":"getFactory"}]},{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":42}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Uncached","name":"TagTreeNodeGen.DynamicDispatchLibraryExports.Uncached","kind":"class","language":"java","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TagTreeNodeGen.DynamicDispatchLibraryExports.Uncached"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"UnadoptableNode","ref":"com.oracle.truffle.api.nodes.UnadoptableNode"}],"superclass":[{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"}],"interfaces":[[{"kind":"type","text":"UnadoptableNode","ref":"com.oracle.truffle.api.nodes.UnadoptableNode"}]],"ancestors":[{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},{"id":"com.oracle.truffle.api.library.Library"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports","members":[{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Uncached#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"Uncached","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Uncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":72}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Uncached#accepts(java.lang.Object)","anchor":"accepts(java.lang.Object)","kind":"method","name":"accepts","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"accepts"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this library instance supports sending messages with the given receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this library instance supports sending messages with the given receiver. If accepts returns "},{"kind":"code","text":"false"},{"kind":"text","text":" and a library message is sent anyway then an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown if assertions are enabled (-ea). Otherwise a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" may be thrown by the method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A library that was created using a receiver value i.e. a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#create(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.create(Object)"}]},{"kind":"text","text":" only guarantees to accept the value it was constructed with. For other values, the method may return "},{"kind":"code","text":"false"},{"kind":"text","text":". Such libraries need to check for acceptance before calling a library method with a receiver. If receiver values are not accepted then a new library needs to be created or fetched. Dispatched versions of libraries always return "},{"kind":"code","text":"true"},{"kind":"text","text":" for any value as they take care of dispatching to any receiver type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is not necessary to call accepts manually for most use cases. Instead the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]},{"kind":"text","text":" should be used instead. For slow-paths the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached()"},"code":true,"children":[{"kind":"text","text":"internally dispatched"}]},{"kind":"text","text":" versions of the uncached library should be used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The accepts message may be exported by receiver types. When exported it can only be further restricted in addition to the default accepts implementation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory"},"code":true,"children":[{"kind":"text","text":"for ways how to dispatch libraries."}]}]],"inheritedFrom":{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)"}},"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":75}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Uncached#cast(java.lang.Object)","anchor":"cast(java.lang.Object)","kind":"method","name":"cast","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"cast"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"overrides":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#cast(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Cast the object receiver type to the dispatched type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Cast the object receiver type to the dispatched type. This is not supposed to be implemented by dynamic dispatch implementer but is automatically implemented when implementing dynamic dispatch."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#cast(java.lang.Object)"}},"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":81}},{"id":"com.oracle.truffle.api.bytecode.TagTreeNodeGen$DynamicDispatchLibraryExports$Uncached#dispatch(java.lang.Object)","anchor":"dispatch(java.lang.Object)","kind":"method","name":"dispatch","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"dispatch"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"overrides":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#dispatch(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Returns a class that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"exports"}]},{"kind":"text","text":" at least one library with an explicit receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a class that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"exports"}]},{"kind":"text","text":" at least one library with an explicit receiver. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate that the default dispatch of the library should be used."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#dispatch(java.lang.Object)"}},"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":88}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary","text":"DynamicDispatchLibrary"},"kind":"class","members":[{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#getFactory()","text":"getFactory"}]},{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/bytecode/TagTreeNodeGen.java","line":69}},{"id":"com.oracle.truffle.api.bytecode.Variadic","name":"Variadic","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{PARAMETER, TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Variadic"}],"members":[{"id":"com.oracle.truffle.api.bytecode.Variadic#startOffset()","anchor":"startOffset()","kind":"annotationElement","name":"startOffset","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"startOffset"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Specifies the number of values reserved in the variadic object array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the number of values reserved in the variadic object array. The array is sized accordingly, which can be useful when passing variadic arguments to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"call"}]},{"kind":"text","text":" without reallocating the array."}]},{"kind":"code","text":"@Operation\nstatic final class FunctionCall {\n    @Specialization\n    public static Object variadic(CallTarget target, Object function,\n                    @Variadic(startOffset = 1) Object[] args,\n                    @Cached IndirectCallNode callNode) {\n        args[0] = function; // use index 0 for the function instance\n        return callNode.call(target, args);\n    }\n}"}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/bytecode/Variadic.java","line":86}}],"doc":{"summary":[{"kind":"text","text":"Annotation indicating a parameter that takes zero or more values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotation indicating a parameter that takes zero or more values. If the final parameter of an operation is annotated with "},{"kind":"code","text":"@Variadic"},{"kind":"text","text":", those values will be collected into an "},{"kind":"code","text":"Object[]"},{"kind":"text","text":" as the last argument."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This annotation can also be applied to an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":" class to mark its return type as variadic. Such return values are flattened into the variadic array when used as one or more operands to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Variadic"},"code":true,"children":[{"kind":"text","text":"Variadic"}]},{"kind":"text","text":" parameter. All specializations of a variadic-return operation must always return a non-null "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object[]"}]},{"kind":"text","text":" value."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/Variadic.java","line":62}},{"id":"com.oracle.truffle.api.bytecode.Yield","name":"Yield","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"SOURCE"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Yield"}],"members":[{"id":"com.oracle.truffle.api.bytecode.Yield#forceCached()","anchor":"forceCached()","kind":"annotationElement","name":"forceCached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"forceCached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether executing this operation should force the uncached interpreter (if enabled) to transition to cached."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation#forceCached()"},"code":true,"children":[{"kind":"text","text":"Operation.forceCached()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Yield.java","line":118}},{"id":"com.oracle.truffle.api.bytecode.Yield#tags()","anchor":"tags()","kind":"annotationElement","name":"tags","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">[] "},{"kind":"name","text":"tags"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"The instrumentation tags that should be implicitly associated with this operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The instrumentation tags that should be implicitly associated with this operation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableTagInstrumentation()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Yield.java","line":126}},{"id":"com.oracle.truffle.api.bytecode.Yield#javadoc()","anchor":"javadoc()","kind":"annotationElement","name":"javadoc","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"javadoc"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Optional documentation for the instrumentation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Optional documentation for the instrumentation. This documentation is included in the javadoc for the generated interpreter."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Yield.java","line":134}},{"id":"com.oracle.truffle.api.bytecode.Yield#resultOperandIndex()","anchor":"resultOperandIndex()","kind":"annotationElement","name":"resultOperandIndex","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"resultOperandIndex"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Index of the dynamic operand that represents the logical \"result\" of the yield before the custom yield executes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Index of the dynamic operand that represents the logical \"result\" of the yield before the custom yield executes. This result is used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"tag instrumentation"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This field must be specified for custom yields with multiple dynamic operands; it should not be specified for custom yields with no dynamic operands."}]}]},"since":"25.2","source":{"path":"com/oracle/truffle/api/bytecode/Yield.java","line":146}}],"doc":{"summary":[{"kind":"text","text":"Declares a custom yield operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares a custom yield operation. A custom yield operation has the same control flow behaviour as the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableYield()"},"code":true,"children":[{"kind":"text","text":"built-in yield"}]},{"kind":"text","text":", but allows to customize the result produced. For example, a custom yield can create a guest generator object instead of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult"},"code":true,"children":[{"kind":"text","text":"ContinuationResult"}]},{"kind":"text","text":", or it can perform custom logic before "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationResult#create(com.oracle.truffle.api.bytecode.ContinuationRootNode,com.oracle.truffle.api.frame.MaterializedFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"creating"}]},{"kind":"text","text":" the continuation result."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Below is an example of a custom yield that returns a guest language generator object:"}]},{"kind":"code","text":"@Yield\npublic static final class CustomYield {\n    @Specialization\n    public static Object doYield(Object value, @Bind ContinuationRootNode root, @Bind MaterializedFrame frame) {\n        return new MyGeneratorObject(root, frame, value);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"A custom yield operation has many of the same restrictions and capabilities of a regular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Operation"},"code":true,"children":[{"kind":"text","text":"Operation"}]},{"kind":"text","text":", with a few differences:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"It can take zero or more dynamic operands."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It yields a value to the caller, so it must have a return value. The result should be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isValidValue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"valid interop type"}]},{"kind":"text","text":". Typically, the result should encapsulate the continuation state so that the callee can resume execution at a later time."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It can "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":" a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.ContinuationRootNode"},"code":true,"children":[{"kind":"text","text":"ContinuationRootNode"}]},{"kind":"text","text":" operand, which can be used to resume execution at a later time. (Custom yields will typically also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":" the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.MaterializedFrame"},"code":true,"children":[{"kind":"text","text":"MaterializedFrame"}]},{"kind":"text","text":" to capture the interpreter state, but this is possible in regular operations.)"}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If a custom yield takes multiple dynamic operands, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.Yield#resultOperandIndex()"},"code":true,"children":[{"kind":"text","text":"resultOperandIndex()"}]},{"kind":"text","text":" specifies which operand represents the logical \"result\" of the yield before the custom yield executes. This result is used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableTagInstrumentation()"},"code":true,"children":[{"kind":"text","text":"tag instrumentation"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableYield()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableYield"}]},{"kind":"text","text":" does not need to be "},{"kind":"code","text":"true"},{"kind":"text","text":" to use custom yields; it is only necessary if you need the built-in yield operation. The built-in yield operation is semantically equivalent to the following custom yield operation:"}]},{"kind":"code","text":"@Yield\npublic static final class BuiltinYield {\n    @Specialization\n    public static Object doYield(Object result, @Bind ContinuationRootNode root, @Bind MaterializedFrame frame) {\n        return ContinuationResult.create(root, frame, result);\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableYield()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableYield()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/Yield.java","line":107}}]},{"id":"com.oracle.truffle.api.bytecode.debug","name":"com.oracle.truffle.api.bytecode.debug","doc":{"summary":[{"kind":"text","text":"Debug utilities for the Bytecode DSL."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Debug utilities for the Bytecode DSL. These features are not intended to be used in production interpreters for performance reasons."}]}]},"since":"24.2","types":[{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener","name":"BytecodeDebugListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeDebugListener"}],"members":[{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#beforeRootExecute(com.oracle.truffle.api.bytecode.Instruction)","anchor":"beforeRootExecute(com.oracle.truffle.api.bytecode.Instruction)","kind":"method","name":"beforeRootExecute","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"beforeRootExecute"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"enterInstruction"},{"kind":"punct","text":")"}],"params":[{"name":"enterInstruction","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked before a root is executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked before a root is executed. This has a very significant performance cost. Only override this method temporarily for debugging. This method may be called on partial evaluated code paths."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":69}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#afterRootExecute(com.oracle.truffle.api.bytecode.Instruction,java.lang.Object,java.lang.Throwable)","anchor":"afterRootExecute(com.oracle.truffle.api.bytecode.Instruction,java.lang.Object,java.lang.Throwable)","kind":"method","name":"afterRootExecute","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"afterRootExecute"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"leaveInstruction"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"returnValue"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":")"}],"params":[{"name":"leaveInstruction","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"returnValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value returned, or null if an exception was thrown. For yields, returnValue is the continuation result or custom yield return value."}]}]},{"name":"t","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception thrown, or null if the root is exited normally."}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked before a root is left."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked before a root is left. This has a very significant performance cost. Only override this method temporarily for debugging. This method may be called on partial evaluated code paths."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":83}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#beforeInstructionExecute(com.oracle.truffle.api.bytecode.Instruction)","anchor":"beforeInstructionExecute(com.oracle.truffle.api.bytecode.Instruction)","kind":"method","name":"beforeInstructionExecute","modifiers":["default"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"beforeInstructionExecute"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"instruction"},{"kind":"punct","text":")"}],"params":[{"name":"instruction","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked before an instruction is executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked before an instruction is executed. This has a very significant performance cost. Only override this method temporarily for debugging. This method may be called on partial evaluated code paths."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"no longer supported. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" instead."}]}],"since":"25.1"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":94}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#afterInstructionExecute(com.oracle.truffle.api.bytecode.Instruction,java.lang.Throwable)","anchor":"afterInstructionExecute(com.oracle.truffle.api.bytecode.Instruction,java.lang.Throwable)","kind":"method","name":"afterInstructionExecute","modifiers":["default"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"afterInstructionExecute"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"instruction"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"exception"},{"kind":"punct","text":")"}],"params":[{"name":"instruction","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"exception","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked after an instruction was executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked after an instruction was executed. This has a very significant performance cost. Only override this method temporarily for debugging. This method may be called on partial evaluated code paths."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"no longer supported. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" instead."}]}],"since":"25.1"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":106}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onSpecialize(com.oracle.truffle.api.bytecode.Instruction,java.lang.String)","anchor":"onSpecialize(com.oracle.truffle.api.bytecode.Instruction,java.lang.String)","kind":"method","name":"onSpecialize","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onSpecialize"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"instruction"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"specialization"},{"kind":"punct","text":")"}],"params":[{"name":"instruction","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"specialization","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked when an operation or instrumentation specializes itself."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an operation or instrumentation specializes itself."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":115}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onBytecodeStackTransition(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","anchor":"onBytecodeStackTransition(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","kind":"method","name":"onBytecodeStackTransition","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onBytecodeStackTransition"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"target","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked when a bytecode node performs an on-stack transition."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when a bytecode node performs an on-stack transition. On stack transitions may happen if additional bytecode or tag instrumentations are applied during execution while the current method is on-stack."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":125}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onInvalidateInstruction(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","anchor":"onInvalidateInstruction(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","kind":"method","name":"onInvalidateInstruction","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onInvalidateInstruction"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"before"},{"kind":"punct","text":", "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"after"},{"kind":"punct","text":")"}],"params":[{"name":"before","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"after","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked when an instruction is invalidated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an instruction is invalidated. Instructions are invalidated to make bytecode nodes leave the current bytecode loop and update its own bytecodes."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":134}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onQuicken(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","anchor":"onQuicken(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","kind":"method","name":"onQuicken","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onQuicken"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"before"},{"kind":"punct","text":", "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"after"},{"kind":"punct","text":")"}],"params":[{"name":"before","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"after","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked when an instruction was quickened."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an instruction was quickened."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":142}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onQuickenOperand(com.oracle.truffle.api.bytecode.Instruction,int,com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","anchor":"onQuickenOperand(com.oracle.truffle.api.bytecode.Instruction,int,com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","kind":"method","name":"onQuickenOperand","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onQuickenOperand"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"baseInstruction"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"operandIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"operandBefore"},{"kind":"punct","text":", "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"operandAfter"},{"kind":"punct","text":")"}],"params":[{"name":"baseInstruction","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"operandIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"operandBefore","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"operandAfter","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked when an operand was quickened due to boxing elimination."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an operand was quickened due to boxing elimination."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":150}}],"doc":{"summary":[{"kind":"text","text":"Base interface for a bytecode root node to get additional debug event that are normally not available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Base interface for a bytecode root node to get additional debug event that are normally not available. Useful for testing and debugging."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Warning: Do not deploy with implementing this listener in production. It causes severe performance degradation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The debug listener can also be explicitly disabled by setting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableBytecodeDebugListener()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableBytecodeDebugListener()"}]},{"kind":"text","text":" to "},{"kind":"code","text":"false"},{"kind":"text","text":" ."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugListener.java","line":59}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugTraceListener","name":"BytecodeDebugTraceListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeDebugTraceListener"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeDebugListener","ref":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener"}],"interfaces":[[{"kind":"type","text":"BytecodeDebugListener","ref":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener"}]],"members":[{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugTraceListener#onQuicken(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","anchor":"onQuicken(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","kind":"method","name":"onQuicken","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onQuicken"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"before"},{"kind":"punct","text":", "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"after"},{"kind":"punct","text":")"}],"params":[{"name":"before","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"after","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]}],"overrides":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onQuicken(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)"},"doc":{"summary":[{"kind":"text","text":"Invoked when an instruction was quickened."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an instruction was quickened."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onQuicken(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)"}},"source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugTraceListener.java","line":54}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugTraceListener#onQuickenOperand(com.oracle.truffle.api.bytecode.Instruction,int,com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","anchor":"onQuickenOperand(com.oracle.truffle.api.bytecode.Instruction,int,com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","kind":"method","name":"onQuickenOperand","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onQuickenOperand"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"base"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"operandIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"operandBefore"},{"kind":"punct","text":", "},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"operandAfter"},{"kind":"punct","text":")"}],"params":[{"name":"base","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"operandIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"operandBefore","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"operandAfter","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]}],"overrides":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onQuickenOperand(com.oracle.truffle.api.bytecode.Instruction,int,com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)"},"doc":{"summary":[{"kind":"text","text":"Invoked when an operand was quickened due to boxing elimination."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an operand was quickened due to boxing elimination."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onQuickenOperand(com.oracle.truffle.api.bytecode.Instruction,int,com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)"}},"source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugTraceListener.java","line":59}},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugTraceListener#onSpecialize(com.oracle.truffle.api.bytecode.Instruction,java.lang.String)","anchor":"onSpecialize(com.oracle.truffle.api.bytecode.Instruction,java.lang.String)","kind":"method","name":"onSpecialize","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onSpecialize"},{"kind":"punct","text":"("},{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"},{"kind":"punct","text":" "},{"kind":"param","text":"instruction"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"specialization"},{"kind":"punct","text":")"}],"params":[{"name":"instruction","type":[{"kind":"type","text":"Instruction","ref":"com.oracle.truffle.api.bytecode.Instruction"}]},{"name":"specialization","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"overrides":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onSpecialize(com.oracle.truffle.api.bytecode.Instruction,java.lang.String)"},"doc":{"summary":[{"kind":"text","text":"Invoked when an operation or instrumentation specializes itself."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an operation or instrumentation specializes itself."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onSpecialize(com.oracle.truffle.api.bytecode.Instruction,java.lang.String)"}},"source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugTraceListener.java","line":65}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener","text":"BytecodeDebugListener"},"kind":"interface","members":[{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#afterInstructionExecute(com.oracle.truffle.api.bytecode.Instruction,java.lang.Throwable)","text":"afterInstructionExecute"},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#afterRootExecute(com.oracle.truffle.api.bytecode.Instruction,java.lang.Object,java.lang.Throwable)","text":"afterRootExecute"},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#beforeInstructionExecute(com.oracle.truffle.api.bytecode.Instruction)","text":"beforeInstructionExecute"},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#beforeRootExecute(com.oracle.truffle.api.bytecode.Instruction)","text":"beforeRootExecute"},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onBytecodeStackTransition(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","text":"onBytecodeStackTransition"},{"id":"com.oracle.truffle.api.bytecode.debug.BytecodeDebugListener#onInvalidateInstruction(com.oracle.truffle.api.bytecode.Instruction,com.oracle.truffle.api.bytecode.Instruction)","text":"onInvalidateInstruction"}]}],"doc":{"summary":[{"kind":"text","text":"Implement this class to quickly get some debug output for events in the bytecode node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Implement this class to quickly get some debug output for events in the bytecode node."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/debug/BytecodeDebugTraceListener.java","line":52}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer","name":"HistogramInstructionTracer","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"HistogramInstructionTracer"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#onInstructionEnter(com.oracle.truffle.api.bytecode.InstructionTracer.InstructionAccess,com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.frame.Frame)","anchor":"onInstructionEnter(com.oracle.truffle.api.bytecode.InstructionTracer.InstructionAccess,com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"onInstructionEnter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onInstructionEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"InstructionTracer.InstructionAccess","ref":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"access","type":[{"kind":"type","text":"InstructionTracer.InstructionAccess","ref":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"accessor to query information about the current instruction, valid only during this call"}]}]},{"name":"bytecode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" currently being interpreted"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index (BCI) of the instruction to be executed"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame for the root being interpreted"}]}]}],"overrides":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer#onInstructionEnter(com.oracle.truffle.api.bytecode.InstructionTracer.InstructionAccess,com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.frame.Frame)"},"doc":{"summary":[{"kind":"text","text":"Records the execution of an instruction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Records the execution of an instruction. This method is not intended to be called directly, but by the bytecode DSL framework as part of instruction tracing."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":158}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#getExclusiveBytecodeDescriptor()","anchor":"getExclusiveBytecodeDescriptor()","kind":"method","name":"getExclusiveBytecodeDescriptor","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BytecodeDescriptor","ref":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},{"kind":"punct","text":"<?, ?, ?> "},{"kind":"name","text":"getExclusiveBytecodeDescriptor"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BytecodeDescriptor","ref":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},{"kind":"punct","text":"<?, ?, ?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the descriptor used to resolve instruction metadata and opcodes"}]}]},"overrides":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer#getExclusiveBytecodeDescriptor()"},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":" that this tracer is attached to."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":" that this tracer is attached to."}]}]},"source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":224}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#getHistogram()","anchor":"getHistogram()","kind":"method","name":"getHistogram","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"HistogramInstructionTracer.Histogram","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram"},{"kind":"punct","text":" "},{"kind":"name","text":"getHistogram"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"HistogramInstructionTracer.Histogram","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram"},"code":true,"children":[{"kind":"text","text":"Histogram"}]},{"kind":"text","text":" view of the current counters, possibly grouped"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a hierarchical histogram snapshot of the recorded counters without resetting them."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a hierarchical histogram snapshot of the recorded counters without resetting them."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use this to inspect cumulative counts. If you need interval semantics, prefer "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#getHistogramAndReset()"},"code":true,"children":[{"kind":"text","text":"getHistogramAndReset()"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":238}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#getHistogramAndReset()","anchor":"getHistogramAndReset()","kind":"method","name":"getHistogramAndReset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"HistogramInstructionTracer.Histogram","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram"},{"kind":"punct","text":" "},{"kind":"name","text":"getHistogramAndReset"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"HistogramInstructionTracer.Histogram","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram"},"code":true,"children":[{"kind":"text","text":"Histogram"}]},{"kind":"text","text":" view of the counts since the previous reset"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a hierarchical histogram snapshot of the recorded counters and atomically resets the underlying counters to zero."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a hierarchical histogram snapshot of the recorded counters and atomically resets the underlying counters to zero."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use this to obtain interval counts in long running applications. The reset is performed atomically per-counter, increments that occur after the swap will be visible in the next interval."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":253}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#dumpHistogram()","anchor":"dumpHistogram()","kind":"method","name":"dumpHistogram","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"dumpHistogram"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a human readable histogram table as UTF-8 text"}]}]},"doc":{"summary":[{"kind":"text","text":"Renders the current histogram snapshot into a string using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#printHistogram(java.io.PrintStream)"},"code":true,"children":[{"kind":"text","text":"printHistogram(PrintStream)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Renders the current histogram snapshot into a string using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#printHistogram(java.io.PrintStream)"},"code":true,"children":[{"kind":"text","text":"printHistogram(PrintStream)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#dump()"},"code":true,"children":[{"kind":"text","text":"Histogram.dump()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":265}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#printHistogram(java.io.PrintStream)","anchor":"printHistogram(java.io.PrintStream)","kind":"method","name":"printHistogram","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printHistogram"},{"kind":"punct","text":"("},{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"out"},{"kind":"punct","text":")"}],"params":[{"name":"out","type":[{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the stream to print to"}]}]}],"doc":{"summary":[{"kind":"text","text":"Prints the current histogram snapshot to the given "},{"kind":"link","target":{"id":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},"code":true,"children":[{"kind":"text","text":"PrintStream"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints the current histogram snapshot to the given "},{"kind":"link","target":{"id":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},"code":true,"children":[{"kind":"text","text":"PrintStream"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The output is a single table with aligned numeric columns. Groups, if present, are printed as indented pseudo rows followed by their leaves."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#print(java.io.PrintStream)"},"code":true,"children":[{"kind":"text","text":"Histogram.print(PrintStream)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":285}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Resets all counters to zero and discards previously recorded data."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets all counters to zero and discards previously recorded data."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Do not mix this with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#getHistogram()"},"code":true,"children":[{"kind":"text","text":"getHistogram()"}]},{"kind":"text","text":" if you need interval correctness, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#getHistogramAndReset()"},"code":true,"children":[{"kind":"text","text":"getHistogramAndReset()"}]},{"kind":"text","text":" instead."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":298}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#newBuilder()","anchor":"newBuilder()","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"HistogramInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"HistogramInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new builder instance"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a builder for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"},"code":true,"children":[{"kind":"text","text":"HistogramInstructionTracer"}]},{"kind":"text","text":" that allows configuring a filter and one or more grouping clauses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a builder for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"},"code":true,"children":[{"kind":"text","text":"HistogramInstructionTracer"}]},{"kind":"text","text":" that allows configuring a filter and one or more grouping clauses."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":309}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Instruction tracer that records per-opcode execution counts and optionally aggregates them into hierarchical histograms by user defined group clauses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Instruction tracer that records per-opcode execution counts and optionally aggregates them into hierarchical histograms by user defined group clauses."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The tracer is optimized for the no-filter, no-group case. In that mode the hot path avoids boundary calls and can be partially evaluated. When grouping or filtering is enabled, a small LRU cache avoids repeated evaluation of the grouping and filtering functions for the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":", current thread, and compilation tier."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Thread safety: increments are performed via atomic counters and are safe under concurrent execution. Histogram creation is a snapshot that can be performed concurrently with counting. For interval semantics, prefer "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#getHistogramAndReset()"},"code":true,"children":[{"kind":"text","text":"getHistogramAndReset()"}]},{"kind":"text","text":" over mixing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#getHistogram()"},"code":true,"children":[{"kind":"text","text":"getHistogram()"}]},{"kind":"text","text":" with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer#reset()"},"code":true,"children":[{"kind":"text","text":"reset()"}]},{"kind":"text","text":"."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Basic usage"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The example below shows how to attach a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"},"code":true,"children":[{"kind":"text","text":"HistogramInstructionTracer"}]},{"kind":"text","text":" directly to a generated bytecode root, execute code, then collect and print a histogram snapshot."}]},{"kind":"code","text":"var root = MyRootNodeGen.BYTECODE.create(language, BytecodeConfig.DEFAULT, b -> {\n    b.beginRoot();\n    b.beginReturn();\n    b.emitLoadArgument(0);\n    b.endReturn();\n    b.endRoot();\n}).getNode(0);\n\n// Create and attach the histogram tracer to the root.\nvar tracer = HistogramInstructionTracer.newBuilder().build(MyRootNodeGen.BYTECODE);\nroot.getRootNodes().addInstructionTracer(tracer);\n\n// Execute your program as usual.\nObject result = root.getCallTarget().call(42);\n\n// Take a consistent snapshot and reset counters for the next interval.\nvar histogram = tracer.getHistogramAndReset();\n\n// Inspect or print the histogram.\nlong total = histogram.getInstructionsExecuted();\nhistogram.print(System.out);\n\n// Detach the tracer when done.\nroot.getRootNodes().removeInstructionTracer(tracer);"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":115}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder","name":"HistogramInstructionTracer.Builder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"HistogramInstructionTracer.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer","members":[{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder#filter(java.util.function.Predicate)","anchor":"filter(java.util.function.Predicate)","kind":"method","name":"filter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"HistogramInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"filter"},{"kind":"punct","text":"("},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":"> "},{"kind":"param","text":"filterClause"},{"kind":"punct","text":")"}],"params":[{"name":"filterClause","type":[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the predicate to apply, may be "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"type","text":"HistogramInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets an optional filter predicate."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets an optional filter predicate. If present, only bytecode nodes that satisfy the predicate contribute to counters."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":361}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder#groupBy(com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer.GroupClause)","anchor":"groupBy(com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer.GroupClause)","kind":"method","name":"groupBy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"HistogramInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"groupBy"},{"kind":"punct","text":"("},{"kind":"type","text":"HistogramInstructionTracer.GroupClause","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$GroupClause"},{"kind":"punct","text":" "},{"kind":"param","text":"clause"},{"kind":"punct","text":")"}],"params":[{"name":"clause","type":[{"kind":"type","text":"HistogramInstructionTracer.GroupClause","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$GroupClause"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the grouping clause to add, must not be "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"type","text":"HistogramInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this builder"}]}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"clause"},{"kind":"text","text":" is "},{"kind":"code","text":"null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Adds a grouping clause to the histogram."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a grouping clause to the histogram. Multiple clauses create a hierarchy, the first clause forms the top level, the last clause forms the leaves."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":375}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Builder#build(com.oracle.truffle.api.bytecode.BytecodeDescriptor)","anchor":"build(com.oracle.truffle.api.bytecode.BytecodeDescriptor)","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"HistogramInstructionTracer","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeDescriptor","ref":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},{"kind":"punct","text":"<?, ?, ?> "},{"kind":"param","text":"descriptor"},{"kind":"punct","text":")"}],"params":[{"name":"descriptor","type":[{"kind":"type","text":"BytecodeDescriptor","ref":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},{"kind":"punct","text":"<?, ?, ?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the descriptor to attach to"}]}]}],"returns":{"type":[{"kind":"type","text":"HistogramInstructionTracer","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new tracer configured with the previously set filter and groups"}]}]},"doc":{"summary":[{"kind":"text","text":"Builds a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"},"code":true,"children":[{"kind":"text","text":"HistogramInstructionTracer"}]},{"kind":"text","text":" for the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"},"code":true,"children":[{"kind":"text","text":"HistogramInstructionTracer"}]},{"kind":"text","text":" for the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor"},"code":true,"children":[{"kind":"text","text":"BytecodeDescriptor"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":388}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"},"code":true,"children":[{"kind":"text","text":"HistogramInstructionTracer"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer"},"code":true,"children":[{"kind":"text","text":"HistogramInstructionTracer"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The builder supports an optional filter predicate and an ordered list of group clauses. Group clauses are applied in the order they are added, producing a hierarchy of groups."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":344}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$GroupClause","name":"HistogramInstructionTracer.GroupClause","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"HistogramInstructionTracer.GroupClause"}],"enclosing":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer","members":[{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$GroupClause#group(com.oracle.truffle.api.bytecode.BytecodeNode,java.lang.Thread,int)","anchor":"group(com.oracle.truffle.api.bytecode.BytecodeNode,java.lang.Thread,int)","kind":"method","name":"group","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"group"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"compilationTier"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode node executing"}]}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current thread"}]}]},{"name":"compilationTier","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"0 for interpreter, 1 for compiled with a next tier, 2 for final compiled"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non null grouping key, for example a string, an enum, or a small record"}]}]},"doc":{"summary":[{"kind":"text","text":"Computes the grouping key for the given execution context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Computes the grouping key for the given execution context."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":332}}],"doc":{"summary":[{"kind":"text","text":"A grouping function that maps a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":", the current "},{"kind":"link","target":{"id":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},"code":true,"children":[{"kind":"text","text":"Thread"}]},{"kind":"text","text":", and the compilation tier to an arbitrary grouping key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A grouping function that maps a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":", the current "},{"kind":"link","target":{"id":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},"code":true,"children":[{"kind":"text","text":"Thread"}]},{"kind":"text","text":", and the compilation tier to an arbitrary grouping key. Keys are used to form hierarchical histograms."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":319}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram","name":"HistogramInstructionTracer.Histogram","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"HistogramInstructionTracer.Histogram"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer","members":[{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#getCounters()","anchor":"getCounters()","kind":"method","name":"getCounters","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},{"kind":"punct","text":", "},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getCounters"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},{"kind":"punct","text":", "},{"kind":"type","text":"Long","ref":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an unmodifiable map from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},"code":true,"children":[{"kind":"text","text":"InstructionDescriptor"}]},{"kind":"text","text":" to count"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the per-instruction counts for this histogram level when it is a leaf."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the per-instruction counts for this histogram level when it is a leaf."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this histogram has subgroups, this map may be empty, since counts then live in the children."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":436}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#getStatistics()","anchor":"getStatistics()","kind":"method","name":"getStatistics","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},{"kind":"punct","text":", "},{"kind":"type","text":"LongSummaryStatistics","ref":"java.util.LongSummaryStatistics","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/LongSummaryStatistics.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getStatistics"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"InstructionDescriptor","ref":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},{"kind":"punct","text":", "},{"kind":"type","text":"LongSummaryStatistics","ref":"java.util.LongSummaryStatistics","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/LongSummaryStatistics.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a map from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionDescriptor"},"code":true,"children":[{"kind":"text","text":"InstructionDescriptor"}]},{"kind":"text","text":" to aggregated statistics"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns aggregated statistics across this histogram level."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns aggregated statistics across this histogram level."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For leaf histograms, this wraps each count in a "},{"kind":"link","target":{"id":"java.util.LongSummaryStatistics","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/LongSummaryStatistics.html"},"code":true,"children":[{"kind":"text","text":"LongSummaryStatistics"}]},{"kind":"text","text":". For parent histograms, statistics are combined across all children."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":449}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#getGroups()","anchor":"getGroups()","kind":"method","name":"getGroups","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":", "},{"kind":"type","text":"HistogramInstructionTracer.Histogram","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram"},{"kind":"punct","text":"> "},{"kind":"name","text":"getGroups"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":", "},{"kind":"type","text":"HistogramInstructionTracer.Histogram","ref":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an unmodifiable map of subgroup keys to child histograms, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if there are no groups"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the subgroups of this histogram, keyed by the grouping values produced by the configured "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$GroupClause"},"code":true,"children":[{"kind":"text","text":"GroupClause"}]},{"kind":"text","text":"s."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the subgroups of this histogram, keyed by the grouping values produced by the configured "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$GroupClause"},"code":true,"children":[{"kind":"text","text":"GroupClause"}]},{"kind":"text","text":"s."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":478}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#dump()","anchor":"dump()","kind":"method","name":"dump","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"dump"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a human readable histogram table"}]}]},"doc":{"summary":[{"kind":"text","text":"Renders this histogram to a string using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#print(java.io.PrintStream)"},"code":true,"children":[{"kind":"text","text":"print(PrintStream)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Renders this histogram to a string using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#print(java.io.PrintStream)"},"code":true,"children":[{"kind":"text","text":"print(PrintStream)"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":488}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#print(java.io.PrintStream)","anchor":"print(java.io.PrintStream)","kind":"method","name":"print","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"print"},{"kind":"punct","text":"("},{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"out"},{"kind":"punct","text":")"}],"params":[{"name":"out","type":[{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the stream to print to"}]}]}],"doc":{"summary":[{"kind":"text","text":"Prints this histogram as a single indented table."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints this histogram as a single indented table."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Numeric columns are aligned. When groups are present, each group is shown as a row that displays the total for the group, followed by the indented rows of its children."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":507}},{"id":"com.oracle.truffle.api.bytecode.debug.HistogramInstructionTracer$Histogram#getInstructionsExecuted()","anchor":"getInstructionsExecuted()","kind":"method","name":"getInstructionsExecuted","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstructionsExecuted"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the total count represented by this histogram"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the total number of executed instructions represented by this histogram."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the total number of executed instructions represented by this histogram."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For grouped histograms, this is the sum across all children. For leaves, this is the sum of the per-instruction counts."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":546}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a hierarchical histogram that can group instruction counts by arbitrary attributes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a hierarchical histogram that can group instruction counts by arbitrary attributes. A histogram is an immutable snapshot of the counters at the time it was created."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/HistogramInstructionTracer.java","line":400}},{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer","name":"PrintInstructionTracer","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"PrintInstructionTracer"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"InstructionTracer","ref":"com.oracle.truffle.api.bytecode.InstructionTracer"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer#onInstructionEnter(com.oracle.truffle.api.bytecode.InstructionTracer.InstructionAccess,com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.frame.Frame)","anchor":"onInstructionEnter(com.oracle.truffle.api.bytecode.InstructionTracer.InstructionAccess,com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"onInstructionEnter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onInstructionEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"InstructionTracer.InstructionAccess","ref":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"access","type":[{"kind":"type","text":"InstructionTracer.InstructionAccess","ref":"com.oracle.truffle.api.bytecode.InstructionTracer$InstructionAccess"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"accessor to query information about the current instruction, valid only during this call"}]}]},{"name":"bytecode","type":[{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" currently being interpreted"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index (BCI) of the instruction to be executed"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame for the root being interpreted"}]}]}],"overrides":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer#onInstructionEnter(com.oracle.truffle.api.bytecode.InstructionTracer.InstructionAccess,com.oracle.truffle.api.bytecode.BytecodeNode,int,com.oracle.truffle.api.frame.Frame)"},"doc":{"summary":[{"kind":"text","text":"Called immediately before executing the instruction at "},{"kind":"code","text":"bytecodeIndex"},{"kind":"text","text":" of the given "},{"kind":"code","text":"bytecode"},{"kind":"text","text":" node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called immediately before executing the instruction at "},{"kind":"code","text":"bytecodeIndex"},{"kind":"text","text":" of the given "},{"kind":"code","text":"bytecode"},{"kind":"text","text":" node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This implementation formats and emits a single trace line for the current instruction, unless the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" is excluded by the active filter."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.java","line":99}},{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Resets the internal instruction counter back to zero."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets the internal instruction counter back to zero."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This only affects the counter included in the printed trace lines. It does not clear any output sink or filter configuration."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.java","line":111}},{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer#newBuilder(java.util.function.Consumer)","anchor":"newBuilder(java.util.function.Consumer)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"PrintInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"out"},{"kind":"punct","text":")"}],"params":[{"name":"out","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"sink for formatted trace lines"}]}]}],"returns":{"type":[{"kind":"type","text":"PrintInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":" that will emit trace lines to the given consumer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":" that will emit trace lines to the given consumer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Each generated line is already formatted. The consumer is typically a logger or "},{"kind":"code","text":"System.out::println"},{"kind":"text","text":", but any "},{"kind":"link","target":{"id":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},"code":true,"children":[{"kind":"text","text":"Consumer"}]},{"kind":"text","text":" is accepted."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.java","line":125}},{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer#newBuilder(java.io.PrintStream)","anchor":"newBuilder(java.io.PrintStream)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"PrintInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"out"},{"kind":"punct","text":")"}],"params":[{"name":"out","type":[{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a print stream (for example "},{"kind":"code","text":"System.out"},{"kind":"text","text":")"}]}]}],"returns":{"type":[{"kind":"type","text":"PrintInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Convenience overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer#newBuilder(java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"newBuilder(Consumer)"}]},{"kind":"text","text":" that writes to a "},{"kind":"link","target":{"id":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},"code":true,"children":[{"kind":"text","text":"PrintStream"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Convenience overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer#newBuilder(java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"newBuilder(Consumer)"}]},{"kind":"text","text":" that writes to a "},{"kind":"link","target":{"id":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},"code":true,"children":[{"kind":"text","text":"PrintStream"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The resulting tracer will call "},{"kind":"link","target":{"id":"java.io.PrintStream#println(java.lang.String)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html#println(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"PrintStream.println(String)"}]},{"kind":"text","text":" for every traced instruction."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.java","line":139}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]},{"from":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer","text":"InstructionTracer"},"kind":"interface","members":[{"id":"com.oracle.truffle.api.bytecode.InstructionTracer#getExclusiveBytecodeDescriptor()","text":"getExclusiveBytecodeDescriptor"}]}],"doc":{"summary":[{"kind":"text","text":"An "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" implementation that prints a textual trace of executed bytecode instructions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.InstructionTracer"},"code":true,"children":[{"kind":"text","text":"InstructionTracer"}]},{"kind":"text","text":" implementation that prints a textual trace of executed bytecode instructions."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Each time an instruction is about to execute, this tracer formats a single line containing:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"a monotonically increasing instruction counter,"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"the qualified root name of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" being interpreted, and"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"a human readable representation of the instruction at the current bytecode index."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Output is delivered to a user-supplied "},{"kind":"link","target":{"id":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},"code":true,"children":[{"kind":"text","text":"Consumer"}]},{"kind":"text","text":"<String> (for example, "},{"kind":"code","text":"System.out::println"},{"kind":"text","text":") or to a "},{"kind":"link","target":{"id":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},"code":true,"children":[{"kind":"text","text":"java.io.PrintStream"}]},{"kind":"text","text":" via the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer#newBuilder(java.io.PrintStream)"},"code":true,"children":[{"kind":"text","text":"newBuilder(PrintStream)"}]},{"kind":"text","text":" convenience factory."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A tracer may optionally be restricted to a subset of bytecode roots by installing a filter predicate. If a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":" does not match the filter, its instructions are skipped."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This tracer is intended for debugging and profiling during development. It runs on the language execution thread and executes on the hot path before every instruction; it should not be left enabled in production code."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.java","line":79}},{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder","name":"PrintInstructionTracer.Builder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"PrintInstructionTracer.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer","members":[{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder#filter(java.util.function.Predicate)","anchor":"filter(java.util.function.Predicate)","kind":"method","name":"filter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"PrintInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"filter"},{"kind":"punct","text":"("},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":"> "},{"kind":"param","text":"filterClause"},{"kind":"punct","text":")"}],"params":[{"name":"filterClause","type":[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"BytecodeNode","ref":"com.oracle.truffle.api.bytecode.BytecodeNode"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"predicate that returns true if tracing should be enabled for the given node"}]}]}],"returns":{"type":[{"kind":"type","text":"PrintInstructionTracer.Builder","ref":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets an optional filter that decides which "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":"s should be traced."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets an optional filter that decides which "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":"s should be traced."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the predicate returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for a given node, instructions executed in that node are not printed."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.java","line":209}},{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"PrintInstructionTracer","ref":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"PrintInstructionTracer","ref":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new tracer"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer"},"code":true,"children":[{"kind":"text","text":"PrintInstructionTracer"}]},{"kind":"text","text":" instance using the configured output sink and optional filter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer"},"code":true,"children":[{"kind":"text","text":"PrintInstructionTracer"}]},{"kind":"text","text":" instance using the configured output sink and optional filter."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.java","line":221}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer"},"code":true,"children":[{"kind":"text","text":"PrintInstructionTracer"}]},{"kind":"text","text":" instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer"},"code":true,"children":[{"kind":"text","text":"PrintInstructionTracer"}]},{"kind":"text","text":" instances."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder#filter(java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"filter(Predicate)"}]},{"kind":"text","text":" to restrict tracing to selected "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeNode"},"code":true,"children":[{"kind":"text","text":"BytecodeNode"}]},{"kind":"text","text":"s, then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer$Builder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":" to create the tracer."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/debug/PrintInstructionTracer.java","line":188}}]},{"id":"com.oracle.truffle.api.bytecode.serialization","name":"com.oracle.truffle.api.bytecode.serialization","doc":{"summary":[{"kind":"text","text":"Serialization-specific classes for the Bytecode DSL."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Serialization-specific classes for the Bytecode DSL."}]}]},"since":"24.2","types":[{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput","name":"ByteBufferDataInput","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ByteBufferDataInput"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readFully(byte[])","anchor":"readFully(byte[])","kind":"method","name":"readFully","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"readFully"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"b"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readFully(byte[])","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readFully(byte[])"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":74}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readFully(byte[],int,int)","anchor":"readFully(byte[],int,int)","kind":"method","name":"readFully","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"readFully"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"off"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"len"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"off","type":[{"kind":"keyword","text":"int"}]},{"name":"len","type":[{"kind":"keyword","text":"int"}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readFully(byte[],int,int)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readFully(byte[],int,int)"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":82}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#skipBytes(int)","anchor":"skipBytes(int)","kind":"method","name":"skipBytes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"skipBytes"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"n"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"n","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#skipBytes(int)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#skipBytes(int)"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":94}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readBoolean()","anchor":"readBoolean()","kind":"method","name":"readBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"readBoolean"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readBoolean()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readBoolean()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":104}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readByte()","anchor":"readByte()","kind":"method","name":"readByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"readByte"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readByte()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readByte()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":116}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readUnsignedByte()","anchor":"readUnsignedByte()","kind":"method","name":"readUnsignedByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"readUnsignedByte"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readUnsignedByte()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readUnsignedByte()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":128}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readShort()","anchor":"readShort()","kind":"method","name":"readShort","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"readShort"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"short"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readShort()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readShort()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":140}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readUnsignedShort()","anchor":"readUnsignedShort()","kind":"method","name":"readUnsignedShort","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"readUnsignedShort"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readUnsignedShort()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readUnsignedShort()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":152}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readChar()","anchor":"readChar()","kind":"method","name":"readChar","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"readChar"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"char"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readChar()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readChar()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":164}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readInt()","anchor":"readInt()","kind":"method","name":"readInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"readInt"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readInt()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readInt()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":176}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readLong()","anchor":"readLong()","kind":"method","name":"readLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"readLong"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readLong()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readLong()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":188}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readFloat()","anchor":"readFloat()","kind":"method","name":"readFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"readFloat"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readFloat()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readFloat()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":200}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readDouble()","anchor":"readDouble()","kind":"method","name":"readDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"readDouble"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readDouble()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readDouble()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":212}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readLine()","anchor":"readLine()","kind":"method","name":"readLine","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"readLine"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readLine()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readLine()"},"doc":{"summary":[{"kind":"text","text":"Modified from "},{"kind":"link","target":{"id":"java.io.DataInputStream#readLine()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInputStream.html#readLine()"},"code":true,"children":[{"kind":"text","text":"DataInputStream.readLine()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Modified from "},{"kind":"link","target":{"id":"java.io.DataInputStream#readLine()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInputStream.html#readLine()"},"code":true,"children":[{"kind":"text","text":"DataInputStream.readLine()"}]},{"kind":"text","text":"."}]}]},"deprecated":{},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":234}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#readUTF()","anchor":"readUTF()","kind":"method","name":"readUTF","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"readUTF"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"overrides":{"id":"java.io.DataInput#readUTF()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html#readUTF()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":280}},{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput#position()","anchor":"position()","kind":"method","name":"position","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"position"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the position in the underlying byte buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the position in the underlying byte buffer."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":290}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},"code":true,"children":[{"kind":"text","text":"DataInput"}]},{"kind":"text","text":" backed by a "},{"kind":"link","target":{"id":"java.nio.ByteBuffer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteBuffer.html"},"code":true,"children":[{"kind":"text","text":"ByteBuffer"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},"code":true,"children":[{"kind":"text","text":"DataInput"}]},{"kind":"text","text":" backed by a "},{"kind":"link","target":{"id":"java.nio.ByteBuffer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteBuffer.html"},"code":true,"children":[{"kind":"text","text":"ByteBuffer"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.SerializationUtils#createByteBufferDataInput(java.nio.ByteBuffer)"},"code":true,"children":[{"kind":"text","text":"SerializationUtils.createByteBufferDataInput(ByteBuffer)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/ByteBufferDataInput.java","line":56}},{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer","name":"BytecodeDeserializer","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeDeserializer"}],"members":[{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer#deserialize(com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer.DeserializerContext,java.io.DataInput)","anchor":"deserialize(com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer.DeserializerContext,java.io.DataInput)","kind":"method","name":"deserialize","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"deserialize"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeDeserializer.DeserializerContext","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer$DeserializerContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"context","type":[{"kind":"type","text":"BytecodeDeserializer.DeserializerContext","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer$DeserializerContext"}]},{"name":"buffer","type":[{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"The deserialization process."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The deserialization process. An "},{"kind":"code","text":"object"},{"kind":"text","text":" should be decoded from the "},{"kind":"code","text":"buffer"},{"kind":"text","text":" and returned."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"context"},{"kind":"text","text":" is supplied so that a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"},"code":true,"children":[{"kind":"text","text":"BytecodeDeserializer"}]},{"kind":"text","text":" can transitively deserialize other "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"root nodes"}]},{"kind":"text","text":" (e.g., inner functions) if necessary. Root nodes may not be fully initialized, so this method must not execute these roots or request call targets/metadata updates."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Must be idempotent. This method may be invoked multiple times for the same logical constant. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer#serialize(com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer.SerializerContext,java.io.DataOutput,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"BytecodeSerializer.serialize"}]},{"kind":"text","text":" for encoding requirements and guidance on preserving object identity across invocations and reparses."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/BytecodeDeserializer.java","line":106}}],"doc":{"summary":[{"kind":"text","text":"Represents a class that can deserialize constants from a byte stream."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a class that can deserialize constants from a byte stream."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},"code":true,"children":[{"kind":"text","text":"BytecodeSerializer"}]},{"kind":"text","text":" establishes a byte encoding for objects. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"},"code":true,"children":[{"kind":"text","text":"BytecodeDeserializer"}]},{"kind":"text","text":" used to deserialize an interpreter should follow the same encoding."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example:"}]},{"kind":"code","text":"public class MyBytecodeDeserializer implements BytecodeDeserializer {\n    @Override\n    public Object deserialize(DeserializerContext context, DataInput buffer) throws IOException {\n        byte objectCode = buffer.readByte();\n        return switch (objectCode) {\n            case 1 -> buffer.readLong();\n            case 2 -> buffer.readUTF();\n            case ...\n        }\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableSerialization()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.bytecode.GenerateBytecode.enableSerialization"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/BytecodeDeserializer.java","line":73}},{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer$DeserializerContext","name":"BytecodeDeserializer.DeserializerContext","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeDeserializer.DeserializerContext"}],"enclosing":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer","members":[{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer$DeserializerContext#readBytecodeNode(java.io.DataInput)","anchor":"readBytecodeNode(java.io.DataInput)","kind":"method","name":"readBytecodeNode","signature":[{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},{"kind":"punct","text":" "},{"kind":"name","text":"readBytecodeNode"},{"kind":"punct","text":"("},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"buffer","type":[{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"}]}],"returns":{"type":[{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Deserializes a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" from the byte input."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Deserializes a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" from the byte input."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/BytecodeDeserializer.java","line":88}}],"doc":{"summary":[{"kind":"text","text":"Interface for a generated class that can deserialize a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" from a byte input."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Interface for a generated class that can deserialize a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" from a byte input."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/BytecodeDeserializer.java","line":82}},{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer","name":"BytecodeSerializer","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeSerializer"}],"members":[{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer#serialize(com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer.SerializerContext,java.io.DataOutput,java.lang.Object)","anchor":"serialize(com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer.SerializerContext,java.io.DataOutput,java.lang.Object)","kind":"method","name":"serialize","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"serialize"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeSerializer.SerializerContext","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer$SerializerContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"context","type":[{"kind":"type","text":"BytecodeSerializer.SerializerContext","ref":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer$SerializerContext"}]},{"name":"buffer","type":[{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"}]},{"name":"object","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"The serialization process."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The serialization process. The byte encoding of "},{"kind":"code","text":"object"},{"kind":"text","text":" should be written to "},{"kind":"code","text":"buffer"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"context"},{"kind":"text","text":" is supplied so that a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},"code":true,"children":[{"kind":"text","text":"BytecodeSerializer"}]},{"kind":"text","text":" can transitively serialize other "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"root nodes"}]},{"kind":"text","text":" (e.g., inner functions) if necessary. Root nodes may not be fully initialized, so this method must not execute these roots or request call targets/metadata updates."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The serializer should not rely on side-effects of the language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The serializer should not try to deduplicate constants. The Bytecode DSL avoids serializing the same constant multiple times within a single serialization operation, using object equality to deduplicate constants (except for "},{"kind":"link","target":{"id":"java.lang.Float","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html"},"code":true,"children":[{"kind":"text","text":"Float"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Double","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html"},"code":true,"children":[{"kind":"text","text":"Double"}]},{"kind":"text","text":", which use raw bits to preserve distinct NaN payloads). However, the same serializer could be used for both "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"builder bytecode"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeExecutionBytecode(L,java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"execution bytecode"}]},{"kind":"text","text":", and both payloads must be independently decodable."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Object identity"}]},{"kind":"text","text":": When object identity matters, the above constraint means that the serializer and deserializer must cooperate to return the same object for repeated decodings. A simple way to achieve this is by caching objects by a language-assigned ID and encoding the ID with the description: on deserialization, the first occurrence of the ID can construct the object and subsequent occurrences can reuse the cached value."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Reparsing also affects identity: a reparse should not construct a new object if its identity is important. Reparses use the same deserializer object, so if a caching scheme is used, reparsing should automatically reuse existing objects. If a language serializes both "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeBuilderBytecode(java.io.DataOutput,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"builder bytecode"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeDescriptor#serializeExecutionBytecode(L,java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeConfig,com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer,com.oracle.truffle.api.bytecode.BytecodeParser)"},"code":true,"children":[{"kind":"text","text":"execution bytecode"}]},{"kind":"text","text":" it should be careful to reuse the same serializer instance to ensure cache IDs are consistent."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/BytecodeSerializer.java","line":142}}],"doc":{"summary":[{"kind":"text","text":"Represents a class that can serialize constants in a bytecode interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a class that can serialize constants in a bytecode interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer"},"code":true,"children":[{"kind":"text","text":"BytecodeSerializer"}]},{"kind":"text","text":" establishes a byte encoding for objects. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeDeserializer"},"code":true,"children":[{"kind":"text","text":"BytecodeDeserializer"}]},{"kind":"text","text":" used to deserialize an interpreter should follow the same encoding."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example:"}]},{"kind":"code","text":"public class MyBytecodeSerializer implements BytecodeSerializer {\n    @Override\n    public void serialize(SerializerContext context, DataOutput buffer, Object object) throws IOException {\n        if (object instanceof Integer i) {\n            buffer.writeByte(0);\n            buffer.writeInt(i);\n        } else if (object instanceof String s) {\n            buffer.writeByte(1);\n            buffer.writeUTF(s);\n        } else ...\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"A serializer is responsible for encoding:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"objects used as constants in the bytecode (e.g., objects passed to "},{"kind":"code","text":"emitLoadConstant"},{"kind":"text","text":" or constant operands, except primitive ones that are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#inlinePrimitiveConstants()"},"code":true,"children":[{"kind":"text","text":"inlined"}]},{"kind":"text","text":")"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"objects stored in non-"},{"kind":"code","text":"transient"},{"kind":"text","text":" fields of the root node"}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" objects passed in builder calls (i.e., sources passed to "},{"kind":"code","text":"beginSource"},{"kind":"text","text":")"}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableSerialization()"},"code":true,"children":[{"kind":"text","text":"GenerateBytecode.enableSerialization"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/BytecodeSerializer.java","line":87}},{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer$SerializerContext","name":"BytecodeSerializer.SerializerContext","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeSerializer.SerializerContext"}],"enclosing":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer","members":[{"id":"com.oracle.truffle.api.bytecode.serialization.BytecodeSerializer$SerializerContext#writeBytecodeNode(java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeRootNode)","anchor":"writeBytecodeNode(java.io.DataOutput,com.oracle.truffle.api.bytecode.BytecodeRootNode)","kind":"method","name":"writeBytecodeNode","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeBytecodeNode"},{"kind":"punct","text":"("},{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"buffer","type":[{"kind":"type","text":"DataOutput","ref":"java.io.DataOutput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataOutput.html"}]},{"name":"node","type":[{"kind":"type","text":"BytecodeRootNode","ref":"com.oracle.truffle.api.bytecode.BytecodeRootNode"}]}],"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Serializes a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" to the byte buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Serializes a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" to the byte buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The given node must be created by the current parse, otherwise the behaviour of this method is undefined."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/BytecodeSerializer.java","line":105}}],"doc":{"summary":[{"kind":"text","text":"Interface for a generated class that can serialize a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" to a byte buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Interface for a generated class that can serialize a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeRootNode"},"code":true,"children":[{"kind":"text","text":"BytecodeRootNode"}]},{"kind":"text","text":" to a byte buffer."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/BytecodeSerializer.java","line":96}},{"id":"com.oracle.truffle.api.bytecode.serialization.SerializationUtils","name":"SerializationUtils","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SerializationUtils"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.bytecode.serialization.SerializationUtils#createDataInput(java.nio.ByteBuffer)","anchor":"createDataInput(java.nio.ByteBuffer)","kind":"method","name":"createDataInput","modifiers":["public","static"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createDataInput"},{"kind":"punct","text":"("},{"kind":"type","text":"ByteBuffer","ref":"java.nio.ByteBuffer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteBuffer.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":")"}],"params":[{"name":"buffer","type":[{"kind":"type","text":"ByteBuffer","ref":"java.nio.ByteBuffer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteBuffer.html"}]}],"returns":{"type":[{"kind":"type","text":"DataInput","ref":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},"code":true,"children":[{"kind":"text","text":"DataInput"}]},{"kind":"text","text":" backed by a "},{"kind":"link","target":{"id":"java.nio.ByteBuffer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteBuffer.html"},"code":true,"children":[{"kind":"text","text":"ByteBuffer"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"java.io.DataInput","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/DataInput.html"},"code":true,"children":[{"kind":"text","text":"DataInput"}]},{"kind":"text","text":" backed by a "},{"kind":"link","target":{"id":"java.nio.ByteBuffer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteBuffer.html"},"code":true,"children":[{"kind":"text","text":"ByteBuffer"}]},{"kind":"text","text":". The result can be used as an input for "},{"kind":"code","text":"deserialize"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableSerialization()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.bytecode.GenerateBytecode.enableSerialization"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.SerializationUtils#createByteBufferDataInput(java.nio.ByteBuffer)"},"code":true,"children":[{"kind":"text","text":"createByteBufferDataInput(ByteBuffer)"}]}]}],"since":"25.1"},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/SerializationUtils.java","line":64}},{"id":"com.oracle.truffle.api.bytecode.serialization.SerializationUtils#createByteBufferDataInput(java.nio.ByteBuffer)","anchor":"createByteBufferDataInput(java.nio.ByteBuffer)","kind":"method","name":"createByteBufferDataInput","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ByteBufferDataInput","ref":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput"},{"kind":"punct","text":" "},{"kind":"name","text":"createByteBufferDataInput"},{"kind":"punct","text":"("},{"kind":"type","text":"ByteBuffer","ref":"java.nio.ByteBuffer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteBuffer.html"},{"kind":"punct","text":" "},{"kind":"param","text":"buffer"},{"kind":"punct","text":")"}],"params":[{"name":"buffer","type":[{"kind":"type","text":"ByteBuffer","ref":"java.nio.ByteBuffer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteBuffer.html"}]}],"returns":{"type":[{"kind":"type","text":"ByteBufferDataInput","ref":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput"}]},"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput"},"code":true,"children":[{"kind":"text","text":"ByteBufferDataInput"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput"},"code":true,"children":[{"kind":"text","text":"ByteBufferDataInput"}]},{"kind":"text","text":". The result can be used as an input for "},{"kind":"code","text":"deserialize"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.GenerateBytecode#enableSerialization()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.bytecode.GenerateBytecode.enableSerialization"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/bytecode/serialization/SerializationUtils.java","line":76}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Utility class with helpers for serialization code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Utility class with helpers for serialization code."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/bytecode/serialization/SerializationUtils.java","line":51}}]},{"id":"com.oracle.truffle.api.debug","name":"com.oracle.truffle.api.debug","doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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. The debug package is designed to be used with multiple languages and multiple threads executing at the same time."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Getting started using the debugger"}]},{"kind":"paragraph","children":[{"kind":"text","text":"First the debugger instance needs to be discovered using a Truffle guest language with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#find(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.debug.Debugger.find(com.oracle.truffle.api.TruffleLanguage.Env)"}]},{"kind":"text","text":". Next a debugger session needs to be started with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#startSession(com.oracle.truffle.api.debug.SuspendedCallback)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.debug.Debugger.startSession(SuspendedCallback)"}]},{"kind":"text","text":" providing a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback"},"code":true,"children":[{"kind":"text","text":"callback"}]},{"kind":"text","text":" that will be invoked whenever the execution is suspended. The debugger client can either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#install(com.oracle.truffle.api.debug.Breakpoint)"},"code":true,"children":[{"kind":"text","text":"install"}]},{"kind":"text","text":" a breakpoint or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#suspendNextExecution()"},"code":true,"children":[{"kind":"text","text":"suspend"}]},{"kind":"text","text":" the current or next execution. Whenever the execution is suspended and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback"},"code":true,"children":[{"kind":"text","text":"callback"}]},{"kind":"text","text":" is invoked the client can decide step into, step out or step over the next statements. For a usage example please refer to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.debug.DebuggerSession"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.debug.Breakpoint"}]},{"kind":"text","text":"."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Enable Debugging for your Truffle guest language"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The platform's core support for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"code":true,"children":[{"kind":"text","text":"debugging"}]},{"kind":"text","text":" is language-agnostic. A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language implementation"}]},{"kind":"text","text":" enables debugging by supplying extra information in every AST that configures debugger behavior for code written in that particular language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This extra information is expressed using so called tags. Tags can be applied to AST nodes by implementing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#hasTag(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.InstrumentableNode.hasTag(Class)"}]},{"kind":"text","text":" method. The debugger requires the guest language to implement statement and call tags from the set of standard Truffle tags. Please refer to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.StandardTags"}]},{"kind":"text","text":" on how to implement them."}]}]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.debug.Breakpoint","name":"Breakpoint","kind":"class","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Breakpoint"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.Breakpoint#getKind()","anchor":"getKind()","kind":"method","name":"getKind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"},{"kind":"punct","text":" "},{"kind":"name","text":"getKind"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"}]},"doc":{"summary":[{"kind":"text","text":"Returns the kind of this breakpoint."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the kind of this breakpoint."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":237}},{"id":"com.oracle.truffle.api.debug.Breakpoint#isDisposed()","anchor":"isDisposed()","kind":"method","name":"isDisposed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDisposed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether this breakpoint is permanently unable to affect execution"}]}]},"doc":{"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#dispose()"},"code":true,"children":[{"kind":"text","text":"dispose()"}]}]]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":253}},{"id":"com.oracle.truffle.api.debug.Breakpoint#isEnabled()","anchor":"isEnabled()","kind":"method","name":"isEnabled","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isEnabled"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether this breakpoint is currently allowed to suspend execution (true by default)"}]}]},"doc":{"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#setEnabled(boolean)"},"code":true,"children":[{"kind":"text","text":"setEnabled(boolean)"}]}]]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":263}},{"id":"com.oracle.truffle.api.debug.Breakpoint#setEnabled(boolean)","anchor":"setEnabled(boolean)","kind":"method","name":"setEnabled","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setEnabled"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether this breakpoint should be allowed to suspend execution"}]}]}],"doc":{"summary":[{"kind":"text","text":"Controls whether this breakpoint is currently allowed to suspend execution (true by default)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Controls whether this breakpoint is currently allowed to suspend execution (true by default). This can be changed arbitrarily until breakpoint is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#dispose()"},"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#isModifiable()"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":277}},{"id":"com.oracle.truffle.api.debug.Breakpoint#isResolved()","anchor":"isResolved()","kind":"method","name":"isResolved","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isResolved"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether at least one source has been loaded that contains a match for this breakpoint's location."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":310}},{"id":"com.oracle.truffle.api.debug.Breakpoint#setCondition(java.lang.String)","anchor":"setCondition(java.lang.String)","kind":"method","name":"setCondition","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setCondition"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"expression"},{"kind":"punct","text":")"}],"params":[{"name":"expression","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if non"},{"kind":"code","text":"-null"},{"kind":"text","text":", a boolean expression, expressed in the guest language of the breakpoint's location."}]}]}],"doc":{"summary":[{"kind":"text","text":"Assigns to this breakpoint a boolean expression whose evaluation will determine whether the breakpoint suspends execution (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Assigns to this breakpoint a boolean expression whose evaluation will determine whether the breakpoint suspends execution (i.e. \"hits\"), "},{"kind":"code","text":"null"},{"kind":"text","text":" to remove any condition and always suspend."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Breakpoints are by default unconditional."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Evaluation:"}]},{"kind":"text","text":" expressions are parsed and evaluated in the lexical context of the breakpoint's location. A conditional breakpoint that applies to multiple code locations will be parsed and evaluated separately for each location."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Evaluation failure:"}]},{"kind":"text","text":" when evaluation of a condition fails for any reason, including the return of a non-boolean value:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"execution suspends, as if evaluation had returned "},{"kind":"code","text":"true"},{"kind":"text","text":", and"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"a message is logged that can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getBreakpointConditionException(com.oracle.truffle.api.debug.Breakpoint)"},"children":[{"kind":"text","text":"retrieved"}]},{"kind":"text","text":" while execution is suspended."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"When not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#isModifiable()"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getBreakpointConditionException(com.oracle.truffle.api.debug.Breakpoint)"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.getBreakpointConditionException(Breakpoint)"}]}]]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":343}},{"id":"com.oracle.truffle.api.debug.Breakpoint#getCondition()","anchor":"getCondition()","kind":"method","name":"getCondition","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getCondition"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the expression used to create the current breakpoint condition, null if no condition set."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the expression used to create the current breakpoint condition, null if no condition set."}]}]},"since":"0.20","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":366}},{"id":"com.oracle.truffle.api.debug.Breakpoint#dispose()","anchor":"dispose()","kind":"method","name":"dispose","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"dispose"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Permanently prevents this breakpoint from affecting execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Permanently prevents this breakpoint from affecting execution. When not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#isModifiable()"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":377}},{"id":"com.oracle.truffle.api.debug.Breakpoint#isOneShot()","anchor":"isOneShot()","kind":"method","name":"isOneShot","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isOneShot"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether this breakpoint disables itself after suspending execution, i.e. on first hit"}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":409}},{"id":"com.oracle.truffle.api.debug.Breakpoint#getIgnoreCount()","anchor":"getIgnoreCount()","kind":"method","name":"getIgnoreCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getIgnoreCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of times breakpoint will be executed but not hit (i.e. suspend execution)."}]}]},"doc":{"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#setIgnoreCount(int)"},"code":true,"children":[{"kind":"text","text":"setIgnoreCount(int)"}]}]]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":419}},{"id":"com.oracle.truffle.api.debug.Breakpoint#setIgnoreCount(int)","anchor":"setIgnoreCount(int)","kind":"method","name":"setIgnoreCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setIgnoreCount"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"ignoreCount"},{"kind":"punct","text":")"}],"params":[{"name":"ignoreCount","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"number of breakpoint activations to ignore before it hits"}]}]}],"doc":{"summary":[{"kind":"text","text":"Changes the number of times the breakpoint must be executed before it hits (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Changes the number of times the breakpoint must be executed before it hits (i.e. suspends execution)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When a breakpoint "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#setCondition(java.lang.String)"},"children":[{"kind":"text","text":"condition"}]},{"kind":"text","text":" evaluates to "},{"kind":"code","text":"false"},{"kind":"text","text":":"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"execution is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" suspended"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"it does not count as a hit"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"the remaining "},{"kind":"code","text":"ignoreCount"},{"kind":"text","text":" does not change."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"When not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#isModifiable()"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":439}},{"id":"com.oracle.truffle.api.debug.Breakpoint#getHitCount()","anchor":"getHitCount()","kind":"method","name":"getHitCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getHitCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of times this breakpoint has suspended execution"}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":448}},{"id":"com.oracle.truffle.api.debug.Breakpoint#getLocationDescription()","anchor":"getLocationDescription()","kind":"method","name":"getLocationDescription","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocationDescription"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a description of this breakpoint's specified location"}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":457}},{"id":"com.oracle.truffle.api.debug.Breakpoint#getSuspendAnchor()","anchor":"getSuspendAnchor()","kind":"method","name":"getSuspendAnchor","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"},{"kind":"punct","text":" "},{"kind":"name","text":"getSuspendAnchor"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"}]},"doc":{"summary":[{"kind":"text","text":"Returns the suspended position within the guest language source location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the suspended position within the guest language source location."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":466}},{"id":"com.oracle.truffle.api.debug.Breakpoint#isModifiable()","anchor":"isModifiable()","kind":"method","name":"isModifiable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isModifiable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether this breakpoint can be modified."}]}]},"doc":{"summary":[{"kind":"text","text":"Test whether this breakpoint can be modified."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Test whether this breakpoint can be modified. When "},{"kind":"code","text":"false"},{"kind":"text","text":", methods that change breakpoint state throw "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unmodifiable breakpoints are created from installed breakpoints as read-only copies to be available to clients other than the one who installed the original breakpoint. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#getBreakpoints()"},"code":true,"children":[{"kind":"text","text":"Debugger.getBreakpoints()"}]},{"kind":"text","text":" returns unmodifiable breakpoints, for instance."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":481}},{"id":"com.oracle.truffle.api.debug.Breakpoint#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":490}},{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(java.net.URI)","anchor":"newBuilder(java.net.URI)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceUri"},{"kind":"punct","text":")"}],"params":[{"name":"sourceUri","type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a URI to specify breakpoint location"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new breakpoint builder based on a URI location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new breakpoint builder based on a URI location."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":922}},{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(com.oracle.truffle.api.source.Source)","anchor":"newBuilder(com.oracle.truffle.api.source.Source)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" to specify breakpoint location"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new breakpoint builder based on a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new breakpoint builder based on a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":933}},{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(com.oracle.truffle.api.source.SourceSection)","anchor":"newBuilder(com.oracle.truffle.api.source.SourceSection)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceSection"},{"kind":"punct","text":")"}],"params":[{"name":"sourceSection","type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a specification for guest language source element"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new breakpoint builder based on the textual region of a guest language source element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new breakpoint builder based on the textual region of a guest language source element."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":945}},{"id":"com.oracle.truffle.api.debug.Breakpoint#newExceptionBuilder(boolean,boolean)","anchor":"newExceptionBuilder(boolean,boolean)","kind":"method","name":"newExceptionBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.ExceptionBuilder","ref":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newExceptionBuilder"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"caught"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"uncaught"},{"kind":"punct","text":")"}],"params":[{"name":"caught","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" to intercept exceptions that are caught by guest language code."}]}]},{"name":"uncaught","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" to intercept exceptions that are not caught by guest language code."}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.ExceptionBuilder","ref":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new exception breakpoint builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new exception breakpoint builder. The exception breakpoint can be set to intercept caught or uncaught exceptions, or both. At least one argument needs to be true. The builder creates "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"breakpoint"}]},{"kind":"text","text":" of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#EXCEPTION"},"code":true,"children":[{"kind":"text","text":"EXCEPTION"}]},{"kind":"text","text":" kind."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":960}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A request that guest language program execution be suspended at specified locations on behalf of a debugging client "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A request that guest language program execution be suspended at specified locations on behalf of a debugging client "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":"."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Breakpoint lifetime"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"A client of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"DebuggerSession"}]},{"kind":"text","text":" uses a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":" to create a new breakpoint, choosing among multiple ways to specify the intended location. Examples include a specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(com.oracle.truffle.api.source.Source)"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":", a specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(java.net.URI)"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":", line ranges, or an exact "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(com.oracle.truffle.api.source.SourceSection)"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A new breakpoint cannot affect execution until after it has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#install(com.oracle.truffle.api.debug.Breakpoint)"},"children":[{"kind":"text","text":"installed"}]},{"kind":"text","text":" by a session, which may be done only once."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A breakpoint that is both installed and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#isEnabled()"},"children":[{"kind":"text","text":"enabled"}]},{"kind":"text","text":" (true by default) will suspend any guest language execution thread that arrives at a matching AST location. The breakpoint (synchronously) "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback"},"children":[{"kind":"text","text":"calls back"}]},{"kind":"text","text":" to the responsible session on the execution thread."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A breakpoint may be enabled or disabled any number of times."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A breakpoint that is no longer needed may be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#dispose()"},"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":". A disposed breakpoint:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"is disabled"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"is not installed in any session"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"can have no effect on program execution, and"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"must not be used again."}]}]]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A session being "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#close()"},"children":[{"kind":"text","text":"closed"}]},{"kind":"text","text":" disposes all installed breakpoints."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","language":"java","text":"try (DebuggerSession session = Debugger.find(instrumentEnvironment).\n                startSession(suspendedCallback)) {\n\n    // install breakpoint in someCode at line 3.\n    session.install(Breakpoint.newBuilder(someCode).\n                    lineIs(3).build());\n\n    // install breakpoint for a URI at line 3\n    session.install(Breakpoint.newBuilder(someCode.getURI()).\n                    lineIs(3).build());\n\n}"}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":139}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder","name":"Breakpoint.Builder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Breakpoint.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.debug.Breakpoint","members":[{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#lineIs(int)","anchor":"lineIs(int)","kind":"method","name":"lineIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"lineIs"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"line"},{"kind":"punct","text":")"}],"params":[{"name":"line","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based line number"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"line < 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Specifies the breakpoint's line number."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the breakpoint's line number. Can only be invoked once per builder. Cannot be used together with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(com.oracle.truffle.api.source.SourceSection)"},"code":true,"children":[{"kind":"text","text":"Breakpoint.newBuilder(SourceSection)"}]},{"kind":"text","text":"."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1015}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#suspendAnchor(com.oracle.truffle.api.debug.SuspendAnchor)","anchor":"suspendAnchor(com.oracle.truffle.api.debug.SuspendAnchor)","kind":"method","name":"suspendAnchor","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"suspendAnchor"},{"kind":"punct","text":"("},{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"},{"kind":"punct","text":" "},{"kind":"param","text":"anchor"},{"kind":"punct","text":")"}],"params":[{"name":"anchor","type":[{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the breakpoint suspension anchor"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specify the breakpoint suspension anchor within the guest language source location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specify the breakpoint suspension anchor within the guest language source location. By default, the breakpoint suspends "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#BEFORE"},"code":true,"children":[{"kind":"text","text":"before"}]},{"kind":"text","text":" the source location."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1036}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#columnIs(int)","anchor":"columnIs(int)","kind":"method","name":"columnIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"columnIs"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"column"},{"kind":"punct","text":")"}],"params":[{"name":"column","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based column number"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"column < 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Specifies the breakpoint's column number."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the breakpoint's column number. Can only be invoked once per builder. Cannot be used together with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(com.oracle.truffle.api.source.SourceSection)"},"code":true,"children":[{"kind":"text","text":"Breakpoint.newBuilder(SourceSection)"}]},{"kind":"text","text":". A line needs to be specified before a column can be set."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1053}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#resolveListener(com.oracle.truffle.api.debug.Breakpoint.ResolveListener)","anchor":"resolveListener(com.oracle.truffle.api.debug.Breakpoint.ResolveListener)","kind":"method","name":"resolveListener","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"resolveListener"},{"kind":"punct","text":"("},{"kind":"type","text":"Breakpoint.ResolveListener","ref":"com.oracle.truffle.api.debug.Breakpoint$ResolveListener"},{"kind":"punct","text":" "},{"kind":"param","text":"resolveListener"},{"kind":"punct","text":")"}],"params":[{"name":"resolveListener","type":[{"kind":"type","text":"Breakpoint.ResolveListener","ref":"com.oracle.truffle.api.debug.Breakpoint$ResolveListener"}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Set a resolve listener."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set a resolve listener. The listener is called when the breakpoint is resolved at the target location. A breakpoint is not resolved till the target source section is loaded. The target resolved location may differ from the specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#lineIs(int)"},"code":true,"children":[{"kind":"text","text":"line"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#columnIs(int)"},"code":true,"children":[{"kind":"text","text":"column"}]},{"kind":"text","text":"."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1072}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#ignoreCount(int)","anchor":"ignoreCount(int)","kind":"method","name":"ignoreCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"ignoreCount"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"ignoreCount"},{"kind":"punct","text":")"}],"params":[{"name":"ignoreCount","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies the number of times a breakpoint is ignored until it hits (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the number of times a breakpoint is ignored until it hits (i.e. suspends execution}."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#setIgnoreCount(int)"},"code":true,"children":[{"kind":"text","text":"Breakpoint.setIgnoreCount(int)"}]}]]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1089}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#oneShot()","anchor":"oneShot()","kind":"method","name":"oneShot","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"oneShot"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies that the breakpoint will "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#setEnabled(boolean)"},"children":[{"kind":"text","text":"disable"}]},{"kind":"text","text":" itself after suspending execution, i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies that the breakpoint will "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#setEnabled(boolean)"},"children":[{"kind":"text","text":"disable"}]},{"kind":"text","text":" itself after suspending execution, i.e. on first hit."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Disabled one-shot breakpoints can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#setEnabled(boolean)"},"children":[{"kind":"text","text":"re-enabled"}]},{"kind":"text","text":"."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1106}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#sourceElements(com.oracle.truffle.api.debug.SourceElement...)","anchor":"sourceElements(com.oracle.truffle.api.debug.SourceElement...)","kind":"method","name":"sourceElements","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceElements"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"... "},{"kind":"param","text":"sourceElements"},{"kind":"punct","text":")"}],"params":[{"name":"sourceElements","type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non-empty list of source elements"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies which source elements will this breakpoint adhere to."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies which source elements will this breakpoint adhere to. When not specified, breakpoint adhere to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement#STATEMENT"},"code":true,"children":[{"kind":"text","text":"SourceElement.STATEMENT"}]},{"kind":"text","text":" elements. Can only be invoked once per builder."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1119}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#rootInstance(com.oracle.truffle.api.debug.DebugValue)","anchor":"rootInstance(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"rootInstance","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"rootInstance"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"rootInstance"},{"kind":"punct","text":")"}],"params":[{"name":"rootInstance","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value of the root instance in which the breakpoint is to be hit."}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Builder","ref":"com.oracle.truffle.api.debug.Breakpoint$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies the breakpoint's root instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the breakpoint's root instance. The breakpoint will be hit only when the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugScope#getRootInstance()"},"code":true,"children":[{"kind":"text","text":"DebugScope.getRootInstance()"}]},{"kind":"text","text":" matches to the provided one."}]}]},"since":"19.3.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1137}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new breakpoint instance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#SOURCE_LOCATION"},"code":true,"children":[{"kind":"text","text":"SOURCE_LOCATION"}]},{"kind":"text","text":" kind."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1147}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder implementation for a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"breakpoint"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder implementation for a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"breakpoint"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(com.oracle.truffle.api.source.Source)"},"code":true,"children":[{"kind":"text","text":"Breakpoint.newBuilder(Source)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(java.net.URI)"},"code":true,"children":[{"kind":"text","text":"Breakpoint.newBuilder(URI)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newBuilder(com.oracle.truffle.api.source.SourceSection)"},"code":true,"children":[{"kind":"text","text":"Breakpoint.newBuilder(SourceSection)"}]}]]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":976}},{"id":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder","name":"Breakpoint.ExceptionBuilder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Breakpoint.ExceptionBuilder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.debug.Breakpoint","members":[{"id":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder#suspensionFilter(com.oracle.truffle.api.debug.SuspensionFilter)","anchor":"suspensionFilter(com.oracle.truffle.api.debug.SuspensionFilter)","kind":"method","name":"suspensionFilter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.ExceptionBuilder","ref":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"suspensionFilter"},{"kind":"punct","text":"("},{"kind":"type","text":"SuspensionFilter","ref":"com.oracle.truffle.api.debug.SuspensionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SuspensionFilter","ref":"com.oracle.truffle.api.debug.SuspensionFilter"}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.ExceptionBuilder","ref":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder"}]},"doc":{"summary":[{"kind":"text","text":"A filter to limit source locations which intercept exceptions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A filter to limit source locations which intercept exceptions. Only the source locations matching the filter will report thrown exceptions."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1192}},{"id":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder#sourceElements(com.oracle.truffle.api.debug.SourceElement...)","anchor":"sourceElements(com.oracle.truffle.api.debug.SourceElement...)","kind":"method","name":"sourceElements","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.ExceptionBuilder","ref":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceElements"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"... "},{"kind":"param","text":"sourceElements"},{"kind":"punct","text":")"}],"params":[{"name":"sourceElements","type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non-empty list of source elements"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.ExceptionBuilder","ref":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Specifies which source elements will this breakpoint adhere to."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies which source elements will this breakpoint adhere to. When not specified, breakpoint adhere to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement#STATEMENT"},"code":true,"children":[{"kind":"text","text":"SourceElement.STATEMENT"}]},{"kind":"text","text":" elements. Can only be invoked once per builder."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1205}},{"id":"com.oracle.truffle.api.debug.Breakpoint$ExceptionBuilder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new breakpoint instance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#EXCEPTION"},"code":true,"children":[{"kind":"text","text":"EXCEPTION"}]},{"kind":"text","text":" kind."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1221}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder implementation for a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"breakpoint"}]},{"kind":"text","text":" of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#EXCEPTION"},"code":true,"children":[{"kind":"text","text":"EXCEPTION"}]},{"kind":"text","text":" kind."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder implementation for a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"breakpoint"}]},{"kind":"text","text":" of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#EXCEPTION"},"code":true,"children":[{"kind":"text","text":"EXCEPTION"}]},{"kind":"text","text":" kind."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newExceptionBuilder(boolean,boolean)"},"code":true,"children":[{"kind":"text","text":"Breakpoint.newExceptionBuilder(boolean, boolean)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1174}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind","name":"Breakpoint.Kind","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"Breakpoint.Kind"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.debug.Breakpoint","members":[{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#HALT_INSTRUCTION","anchor":"HALT_INSTRUCTION","kind":"enumConstant","name":"HALT_INSTRUCTION","signature":[{"kind":"name","text":"HALT_INSTRUCTION"}],"type":[{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"}],"doc":{"summary":[{"kind":"text","text":"Represents breakpoints submitted for a halt instruction in a guest language program."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents breakpoints submitted for a halt instruction in a guest language program. For instance, in JavaScript this is "},{"kind":"code","text":"debugger"},{"kind":"text","text":" statement. Guest languages mark such nodes with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerTags$AlwaysHalt"},"code":true,"children":[{"kind":"text","text":"DebuggerTags.AlwaysHalt"}]},{"kind":"text","text":". A breakpoint of this kind is created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"DebuggerSession"}]},{"kind":"text","text":" automatically."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":157}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#SOURCE_LOCATION","anchor":"SOURCE_LOCATION","kind":"enumConstant","name":"SOURCE_LOCATION","signature":[{"kind":"name","text":"SOURCE_LOCATION"}],"type":[{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"}],"doc":{"summary":[{"kind":"text","text":"Represents breakpoints submitted for a particular source code location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents breakpoints submitted for a particular source code location. Use one of the "},{"kind":"code","text":"newBuilder"},{"kind":"text","text":" methods to create a breakpoint of this kind."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":165}},{"id":"com.oracle.truffle.api.debug.Breakpoint$Kind#EXCEPTION","anchor":"EXCEPTION","kind":"enumConstant","name":"EXCEPTION","signature":[{"kind":"name","text":"EXCEPTION"}],"type":[{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"}],"doc":{"summary":[{"kind":"text","text":"Represents exception breakpoints that are hit when an exception is thrown from a guest language program."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents exception breakpoints that are hit when an exception is thrown from a guest language program. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#newExceptionBuilder(boolean,boolean)"},"code":true,"children":[{"kind":"text","text":"newExceptionBuilder(boolean, boolean)"}]},{"kind":"text","text":" to create a breakpoint of this kind."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":174}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specifies a breakpoint kind."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a breakpoint kind. Breakpoints with different kinds have different creation methods and address different debugging needs."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":147}},{"id":"com.oracle.truffle.api.debug.Breakpoint$ResolveListener","name":"Breakpoint.ResolveListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Breakpoint.ResolveListener"}],"enclosing":"com.oracle.truffle.api.debug.Breakpoint","members":[{"id":"com.oracle.truffle.api.debug.Breakpoint$ResolveListener#breakpointResolved(com.oracle.truffle.api.debug.Breakpoint,com.oracle.truffle.api.source.SourceSection)","anchor":"breakpointResolved(com.oracle.truffle.api.debug.Breakpoint,com.oracle.truffle.api.source.SourceSection)","kind":"method","name":"breakpointResolved","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"breakpointResolved"},{"kind":"punct","text":"("},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":" "},{"kind":"param","text":"breakpoint"},{"kind":"punct","text":", "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"param","text":"section"},{"kind":"punct","text":")"}],"params":[{"name":"breakpoint","type":[{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The resolved breakpoint"}]}]},{"name":"section","type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The resolved location"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notify about a breakpoint resolved at the specified location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notify about a breakpoint resolved at the specified location."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1247}}],"doc":{"summary":[{"kind":"text","text":"This listener is called when a breakpoint is resolved at the target location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This listener is called when a breakpoint is resolved at the target location. The breakpoint is not resolved till the target source section is loaded. The target resolved location may differ from the specified breakpoint location."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/Breakpoint.java","line":1238}},{"id":"com.oracle.truffle.api.debug.DebugContext","name":"DebugContext","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebugContext"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.DebugContext#evaluate(java.lang.String,java.lang.String)","anchor":"evaluate(java.lang.String,java.lang.String)","kind":"method","name":"evaluate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"evaluate"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"code"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"languageId"},{"kind":"punct","text":")"}],"params":[{"name":"code","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the code to evaluate"}]}]},{"name":"languageId","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language to evaluate the code in"}]}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"result of the evaluation"}]}]},"doc":{"summary":[{"kind":"text","text":"Evaluate the given code in this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Evaluate the given code in this context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContext.java","line":75}},{"id":"com.oracle.truffle.api.debug.DebugContext#runInContext(java.util.function.Supplier)","anchor":"runInContext(java.util.function.Supplier)","kind":"method","name":"runInContext","modifiers":["public"],"typeParams":[{"name":"T","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a type of the return value of the supplier"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"runInContext"},{"kind":"punct","text":"("},{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"run"},{"kind":"punct","text":")"}],"params":[{"name":"run","type":[{"kind":"type","text":"Supplier","ref":"java.util.function.Supplier","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Supplier.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a supplier representing operations to be run in this context"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the supplier's return value"}]}]},"doc":{"summary":[{"kind":"text","text":"Run supplied operations in this context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Run supplied operations in this context. Use it to call methods on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":" that was obtained from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugContext#evaluate(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"evaluate(java.lang.String, java.lang.String)"}]},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContext.java","line":100}},{"id":"com.oracle.truffle.api.debug.DebugContext#getParent()","anchor":"getParent()","kind":"method","name":"getParent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"},{"kind":"punct","text":" "},{"kind":"name","text":"getParent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a parent context, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if there is no parent"}]}]},"doc":{"summary":[{"kind":"text","text":"Get a parent context of this context, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a parent context of this context, if any. This provides the hierarchy of inner contexts."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContext.java","line":117}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Representation of a polyglot context in a guest language execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Representation of a polyglot context in a guest language execution."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContext.java","line":57}},{"id":"com.oracle.truffle.api.debug.DebugContextsListener","name":"DebugContextsListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"DebugContextsListener"}],"members":[{"id":"com.oracle.truffle.api.debug.DebugContextsListener#contextCreated(com.oracle.truffle.api.debug.DebugContext)","anchor":"contextCreated(com.oracle.truffle.api.debug.DebugContext)","kind":"method","name":"contextCreated","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"contextCreated"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about creation of a new polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about creation of a new polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContextsListener.java","line":66}},{"id":"com.oracle.truffle.api.debug.DebugContextsListener#languageContextCreated(com.oracle.truffle.api.debug.DebugContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"languageContextCreated(com.oracle.truffle.api.debug.DebugContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"languageContextCreated","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"languageContextCreated"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context was created"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about creation of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about creation of a language-specific context in an existing polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContextsListener.java","line":75}},{"id":"com.oracle.truffle.api.debug.DebugContextsListener#languageContextInitialized(com.oracle.truffle.api.debug.DebugContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"languageContextInitialized(com.oracle.truffle.api.debug.DebugContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"languageContextInitialized","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"languageContextInitialized"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context was initialized"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about initialization of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about initialization of a language-specific context in an existing polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContextsListener.java","line":84}},{"id":"com.oracle.truffle.api.debug.DebugContextsListener#languageContextFinalized(com.oracle.truffle.api.debug.DebugContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"languageContextFinalized(com.oracle.truffle.api.debug.DebugContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"languageContextFinalized","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"languageContextFinalized"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context was finalized"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about finalization of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about finalization of a language-specific context in an existing polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContextsListener.java","line":93}},{"id":"com.oracle.truffle.api.debug.DebugContextsListener#languageContextDisposed(com.oracle.truffle.api.debug.DebugContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"languageContextDisposed(com.oracle.truffle.api.debug.DebugContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"languageContextDisposed","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"languageContextDisposed"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context was disposed"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about disposal of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about disposal of a language-specific context in an existing polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContextsListener.java","line":102}},{"id":"com.oracle.truffle.api.debug.DebugContextsListener#contextClosed(com.oracle.truffle.api.debug.DebugContext)","anchor":"contextClosed(com.oracle.truffle.api.debug.DebugContext)","kind":"method","name":"contextClosed","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"contextClosed"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about close of a polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about close of a polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContextsListener.java","line":109}}],"doc":{"summary":[{"kind":"text","text":"Listener to be notified about changes of contexts in guest language application."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Listener to be notified about changes of contexts in guest language application."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setContextsListener(com.oracle.truffle.api.debug.DebugContextsListener,boolean)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setContextsListener(com.oracle.truffle.api.debug.DebugContextsListener, boolean)"}]},{"kind":"text","text":" to register an implementation of this listener."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The listener gets called when a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" is created or disposed and when individual languages are initialized or disposed in that context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setContextsListener(com.oracle.truffle.api.debug.DebugContextsListener,boolean)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setContextsListener(com.oracle.truffle.api.debug.DebugContextsListener,\n     boolean)"}]}]]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugContextsListener.java","line":59}},{"id":"com.oracle.truffle.api.debug.DebugException","name":"DebugException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebugException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"superclass":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"ancestors":[{"id":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.DebugException#fillInStackTrace()","anchor":"fillInStackTrace()","kind":"method","name":"fillInStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"fillInStackTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},"overrides":{"id":"java.lang.Throwable#fillInStackTrace()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},"doc":{"summary":[{"kind":"text","text":"Unsupported, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugException"},"code":true,"children":[{"kind":"text","text":"DebugException"}]},{"kind":"text","text":" instances are not writable therefore filling the stack trace has no effect for them."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unsupported, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugException"},"code":true,"children":[{"kind":"text","text":"DebugException"}]},{"kind":"text","text":" instances are not writable therefore filling the stack trace has no effect for them."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":159}},{"id":"com.oracle.truffle.api.debug.DebugException#setStackTrace(java.lang.StackTraceElement[])","anchor":"setStackTrace(java.lang.StackTraceElement[])","kind":"method","name":"setStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setStackTrace"},{"kind":"punct","text":"("},{"kind":"type","text":"StackTraceElement","ref":"java.lang.StackTraceElement","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StackTraceElement.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"stackTrace"},{"kind":"punct","text":")"}],"params":[{"name":"stackTrace","type":[{"kind":"type","text":"StackTraceElement","ref":"java.lang.StackTraceElement","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StackTraceElement.html"},{"kind":"punct","text":"[]"}]}],"overrides":{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},"doc":{"summary":[{"kind":"text","text":"Unsupported, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugException"},"code":true,"children":[{"kind":"text","text":"DebugException"}]},{"kind":"text","text":" instances are not writable therefore setting the stack trace has no effect for them."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Unsupported, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugException"},"code":true,"children":[{"kind":"text","text":"DebugException"}]},{"kind":"text","text":" instances are not writable therefore setting the stack trace has no effect for them."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":171}},{"id":"com.oracle.truffle.api.debug.DebugException#getStackTrace()","anchor":"getStackTrace()","kind":"method","name":"getStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StackTraceElement","ref":"java.lang.StackTraceElement","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StackTraceElement.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getStackTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"StackTraceElement","ref":"java.lang.StackTraceElement","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StackTraceElement.html"},{"kind":"punct","text":"[]"}]},"overrides":{"id":"java.lang.Throwable#getStackTrace()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},"doc":{"summary":[{"kind":"text","text":"Gets stack trace elements of guest languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets stack trace elements of guest languages. It is recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugException#getDebugStackTrace()"},"code":true,"children":[{"kind":"text","text":"getDebugStackTrace()"}]},{"kind":"text","text":" as the guest language stack elements do not always fit the Java format for stack trace elements."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":196}},{"id":"com.oracle.truffle.api.debug.DebugException#getDebugStackTrace()","anchor":"getDebugStackTrace()","kind":"method","name":"getDebugStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugStackTraceElement","ref":"com.oracle.truffle.api.debug.DebugStackTraceElement"},{"kind":"punct","text":"> "},{"kind":"name","text":"getDebugStackTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugStackTraceElement","ref":"com.oracle.truffle.api.debug.DebugStackTraceElement"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Gets stack trace elements of guest languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets stack trace elements of guest languages."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":218}},{"id":"com.oracle.truffle.api.debug.DebugException#getDebugAsynchronousStacks()","anchor":"getDebugAsynchronousStacks()","kind":"method","name":"getDebugAsynchronousStacks","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugStackTraceElement","ref":"com.oracle.truffle.api.debug.DebugStackTraceElement"},{"kind":"punct","text":">> "},{"kind":"name","text":"getDebugAsynchronousStacks"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugStackTraceElement","ref":"com.oracle.truffle.api.debug.DebugStackTraceElement"},{"kind":"punct","text":">>"}]},"doc":{"summary":[{"kind":"text","text":"Get a list of asynchronous stack traces that led to scheduling of the exception's execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a list of asynchronous stack traces that led to scheduling of the exception's execution. Returns an empty list if no asynchronous stack is known. The first asynchronous stack is at the first index in the list. A possible next asynchronous stack (that scheduled execution of the previous one) is at the next index in the list."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Languages might not provide asynchronous stack traces by default for performance reasons. Call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setAsynchronousStackDepth(int)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setAsynchronousStackDepth(int)"}]},{"kind":"text","text":" to request asynchronous stacks. Languages may provide asynchronous stacks if it's of no performance penalty, or if requested by other options."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setAsynchronousStackDepth(int)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setAsynchronousStackDepth(int)"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":274}},{"id":"com.oracle.truffle.api.debug.DebugException#printStackTrace()","anchor":"printStackTrace()","kind":"method","name":"printStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printStackTrace"},{"kind":"punct","text":"()"}],"overrides":{"id":"java.lang.Throwable#printStackTrace()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":290}},{"id":"com.oracle.truffle.api.debug.DebugException#printStackTrace(java.io.PrintStream)","anchor":"printStackTrace(java.io.PrintStream)","kind":"method","name":"printStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printStackTrace"},{"kind":"punct","text":"("},{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"s"},{"kind":"punct","text":")"}],"params":[{"name":"s","type":[{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"}]}],"overrides":{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":300}},{"id":"com.oracle.truffle.api.debug.DebugException#printStackTrace(java.io.PrintWriter)","anchor":"printStackTrace(java.io.PrintWriter)","kind":"method","name":"printStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printStackTrace"},{"kind":"punct","text":"("},{"kind":"type","text":"PrintWriter","ref":"java.io.PrintWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintWriter.html"},{"kind":"punct","text":" "},{"kind":"param","text":"s"},{"kind":"punct","text":")"}],"params":[{"name":"s","type":[{"kind":"type","text":"PrintWriter","ref":"java.io.PrintWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintWriter.html"}]}],"overrides":{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":314}},{"id":"com.oracle.truffle.api.debug.DebugException#isInternalError()","anchor":"isInternalError()","kind":"method","name":"isInternalError","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInternalError"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this exception indicates an internal error."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this exception indicates an internal error."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":328}},{"id":"com.oracle.truffle.api.debug.DebugException#getExceptionObject()","anchor":"getExceptionObject()","kind":"method","name":"getExceptionObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getExceptionObject"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an exception object, or "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Get a guest language object representing the exception, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a guest language object representing the exception, if any."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":344}},{"id":"com.oracle.truffle.api.debug.DebugException#getThrowLocation()","anchor":"getThrowLocation()","kind":"method","name":"getThrowLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getThrowLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thrown location, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when the thrown location is not known."}]}]},"doc":{"summary":[{"kind":"text","text":"Get source code location where this exception was thrown from."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get source code location where this exception was thrown from."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":364}},{"id":"com.oracle.truffle.api.debug.DebugException#getCatchLocation()","anchor":"getCatchLocation()","kind":"method","name":"getCatchLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException.CatchLocation","ref":"com.oracle.truffle.api.debug.DebugException$CatchLocation"},{"kind":"punct","text":" "},{"kind":"name","text":"getCatchLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugException.CatchLocation","ref":"com.oracle.truffle.api.debug.DebugException$CatchLocation"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the catch location, or "},{"kind":"code","text":"null"},{"kind":"text","text":" in case of uncaught exceptions."}]}]},"doc":{"summary":[{"kind":"text","text":"Get source code location where this exception is to be caught."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get source code location where this exception is to be caught. In case this exception is going to be caught by guest language code, the catch location is provided. "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned for uncaught exceptions."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":387}},{"id":"com.oracle.truffle.api.debug.DebugException#getRawException(java.lang.Class)","anchor":"getRawException(java.lang.Class)","kind":"method","name":"getRawException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getRawException"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Truffle language class for a given guest language"}]}]}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the throwable guest language exception object"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the guest language representation of the exception, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requesting language class does not match the root node language at the throw location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the guest language representation of the exception, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requesting language class does not match the root node language at the throw location. This method is permitted only if the guest language class is available. This is the case if you want to utilize the Debugger API directly from within a guest language, or if you are an instrument bound/dependent on a specific language."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":418}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Information about an exception thrown from a guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Information about an exception thrown from a guest language. This exception does not contain a Java stack trace, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugException#getDebugStackTrace()"},"code":true,"children":[{"kind":"text","text":"getDebugStackTrace()"}]},{"kind":"text","text":" to find out the guest language stack trace."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Debugger methods that run guest language code may throw this exception."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":73}},{"id":"com.oracle.truffle.api.debug.DebugException$CatchLocation","name":"DebugException.CatchLocation","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebugException.CatchLocation"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.debug.DebugException","members":[{"id":"com.oracle.truffle.api.debug.DebugException$CatchLocation#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a source section, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the catch source section is not known."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":462}},{"id":"com.oracle.truffle.api.debug.DebugException$CatchLocation#getFrame()","anchor":"getFrame()","kind":"method","name":"getFrame","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrame"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a frame in which the exception is going to be caught."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":470}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents an exception catch location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an exception catch location. It provides a stack frame and a source section where the exception is going to be caught."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugException.java","line":439}},{"id":"com.oracle.truffle.api.debug.DebugScope","name":"DebugScope","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebugScope"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.DebugScope#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Get a human readable name of this scope."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a human readable name of this scope."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":118}},{"id":"com.oracle.truffle.api.debug.DebugScope#getParent()","anchor":"getParent()","kind":"method","name":"getParent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"},{"kind":"punct","text":" "},{"kind":"name","text":"getParent"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parent scope, or "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Get a parent scope."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a parent scope."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":135}},{"id":"com.oracle.truffle.api.debug.DebugScope#isFunctionScope()","anchor":"isFunctionScope()","kind":"method","name":"isFunctionScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isFunctionScope"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Test if this scope represents the function scope at the frame it was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getScope()"},"code":true,"children":[{"kind":"text","text":"obtained from"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Test if this scope represents the function scope at the frame it was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getScope()"},"code":true,"children":[{"kind":"text","text":"obtained from"}]},{"kind":"text","text":"."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":155}},{"id":"com.oracle.truffle.api.debug.DebugScope#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source section, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when not available."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Get a source section representing this scope."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a source section representing this scope. Please note that while this scope does not provide variables that are valid only after the suspension point, the source section can actually span after the suspension point."}]}]},"since":"0.29","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":198}},{"id":"com.oracle.truffle.api.debug.DebugScope#getReceiver()","anchor":"getReceiver()","kind":"method","name":"getReceiver","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getReceiver"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value that represents the receiver, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when there is no receiver object"}]}]},"doc":{"summary":[{"kind":"text","text":"Get value that represents the receiver object of this scope."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get value that represents the receiver object of this scope. The receiver object is represented as "},{"kind":"code","text":"this"},{"kind":"text","text":" in Java or JavaScript and "},{"kind":"code","text":"self"},{"kind":"text","text":" in Ruby, for instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned value has a name that represents the receiver in the guest language. The scope that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugScope#isFunctionScope()"},"code":true,"children":[{"kind":"text","text":"represents the function"}]},{"kind":"text","text":" provide receiver object, if there is one, other scopes do not provide it, unless they override it."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":229}},{"id":"com.oracle.truffle.api.debug.DebugScope#getRootInstance()","anchor":"getRootInstance()","kind":"method","name":"getRootInstance","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getRootInstance"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the root instance value, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no such value exists."}]}]},"doc":{"summary":[{"kind":"text","text":"Get value that represents root instance of this scope."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get value that represents root instance of this scope. The value is an instance of guest language representation of the root node of this scope, e.g. a guest language function."}]}]},"since":"19.3.0","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":256}},{"id":"com.oracle.truffle.api.debug.DebugScope#getDeclaredValues()","anchor":"getDeclaredValues()","kind":"method","name":"getDeclaredValues","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":"> "},{"kind":"name","text":"getDeclaredValues"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":">"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Get local variables declared in this scope, valid at the current suspension point."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get local variables declared in this scope, valid at the current suspension point. Call this method on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugScope#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":", to get values of variables declared in parent scope, if any. The declared values do not contain a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugScope#getReceiver()"},"code":true,"children":[{"kind":"text","text":"receiver"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is not thread-safe and will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if called on another thread than it was created with."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":292}},{"id":"com.oracle.truffle.api.debug.DebugScope#getDeclaredValue(java.lang.String)","anchor":"getDeclaredValue(java.lang.String)","kind":"method","name":"getDeclaredValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getDeclaredValue"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a value of requested name, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no such value was found."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Get a local variable declared in this scope by name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a local variable declared in this scope by name. Call this method on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugScope#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":", to get value of a variable declared in parent scope, if any."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is not thread-safe and will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if called on another thread than it was created with."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":307}},{"id":"com.oracle.truffle.api.debug.DebugScope#convertRawValue(java.lang.Class,java.lang.Object)","anchor":"convertRawValue(java.lang.Class,java.lang.Object)","kind":"method","name":"convertRawValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"convertRawValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"rawValue"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Truffle language class for a given guest language"}]}]},{"name":"rawValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the raw value"}]}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the wrapped DebugValue"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"code","text":"rawValue"},{"kind":"text","text":" is not an Interop value"}]}]}],"doc":{"summary":[{"kind":"text","text":"Converts the value to a DebugValue, or returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requesting language class does not match the root node guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the value to a DebugValue, or returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requesting language class does not match the root node guest language. This method is permitted only if the guest language class is available. This is the case if you want to utilize the Debugger API directly from within a guest language, or if you are an instrument bound/dependent on a specific language. This method is opposite to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getRawValue(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"DebugValue.getRawValue(Class)"}]},{"kind":"text","text":" where the raw guest language value is obtained from the DebugValue. Note that the "},{"kind":"code","text":"rawValue"},{"kind":"text","text":" must be a valid Interop value. If not, the method throws IllegalArgumentException."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":382}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Representation of guest language scope at the current suspension point, or a top scope."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Representation of guest language scope at the current suspension point, or a top scope. It contains a set of declared and valid variables, if any. The scope associated with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame"},"code":true,"children":[{"kind":"text","text":"frame"}]},{"kind":"text","text":" is only valid as long as the associated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame"},"code":true,"children":[{"kind":"text","text":"frame"}]},{"kind":"text","text":" is valid and methods on such scope need to be called on the frame's thread."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getScope()"},"code":true,"children":[{"kind":"text","text":"DebugStackFrame.getScope()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#getTopScope(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.getTopScope(String)"}]}]]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugScope.java","line":76}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame","name":"DebugStackFrame","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebugStackFrame"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.DebugStackFrame#isInternal()","anchor":"isInternal()","kind":"method","name":"isInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInternal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns whether this stack frame is a language implementation artifact that should be hidden during normal guest language debugging, for example in stack traces."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether this stack frame is a language implementation artifact that should be hidden during normal guest language debugging, for example in stack traces."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Language implementations sometimes create method calls internally that do not correspond to anything explicitly written by a programmer, for example when the body of a looping construct is implemented as callable block. Language implementors mark these methods as "},{"kind":"emphasis","children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Clients of the debugging API should assume that displaying "},{"kind":"emphasis","children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":" frames is unlikely to help programmers debug guest language programs and might possibly create confusion. However, clients may choose to display all frames, for example in a special mode to support development of programming language implementations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The decision to mark a method as "},{"kind":"emphasis","children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":" is language-specific, reflects judgments about tool usability, and is subject to change."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":174}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#isHost()","anchor":"isHost()","kind":"method","name":"isHost","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHost"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this frame is a host frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this frame is a host frame. Host frames provide "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getHostTraceElement()"},"code":true,"children":[{"kind":"text","text":"stack trace element"}]},{"kind":"text","text":", have no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getScope()"},"code":true,"children":[{"kind":"text","text":"scope"}]},{"kind":"text","text":", no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":" and can not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#eval(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"evaluate"}]},{"kind":"text","text":" code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Host frames are provided only when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setShowHostStackFrames(boolean)"},"code":true,"children":[{"kind":"text","text":"host info"}]},{"kind":"text","text":" is set to "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setShowHostStackFrames(boolean)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setShowHostStackFrames(boolean)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":197}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getHostTraceElement()","anchor":"getHostTraceElement()","kind":"method","name":"getHostTraceElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StackTraceElement","ref":"java.lang.StackTraceElement","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StackTraceElement.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getHostTraceElement"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"StackTraceElement","ref":"java.lang.StackTraceElement","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StackTraceElement.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the host stack trace element, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when not a host frame."}]}]},"doc":{"summary":[{"kind":"text","text":"Provides a host frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides a host frame. Returns the host stack trace element if and only if this is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#isHost()"},"code":true,"children":[{"kind":"text","text":"host"}]},{"kind":"text","text":" frame."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#isHost()"},"code":true,"children":[{"kind":"text","text":"isHost()"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":209}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"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 context of a stack dump or trace and is not expected to be called often."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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 context of a stack dump or trace and is not expected to be called often. If the language does not provide such a description then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":225}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns the source section of the location where the debugging session was suspended."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the source section of the location where the debugging session was suspended. The source section is "},{"kind":"code","text":"null"},{"kind":"text","text":" if the source location is not available."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":242}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getLanguage()","anchor":"getLanguage()","kind":"method","name":"getLanguage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language info, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no language is associated with this frame."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns public information about the language of this frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns public information about the language of this frame."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":266}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getScope()","anchor":"getScope()","kind":"method","name":"getScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"},{"kind":"punct","text":" "},{"kind":"name","text":"getScope"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the scope, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no language is associated with this frame location, or when no local scope exists."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Get the current inner-most scope."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the current inner-most scope. The scope remain valid as long as the current stack frame remains valid."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#getTopScope(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.getTopScope(java.lang.String)"}]},{"kind":"text","text":" to get scopes with global validity."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is not thread-safe and will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if called on another thread than it was created with."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":292}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getRawNode(java.lang.Class)","anchor":"getRawNode(java.lang.Class)","kind":"method","name":"getRawNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getRawNode"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Truffle language class for a given guest language"}]}]}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node associated with the frame"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the current node for this stack frame, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requesting language class does not match the root node guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current node for this stack frame, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requesting language class does not match the root node guest language. This method is permitted only if the guest language class is available. This is the case if you want to utilize the Debugger API directly from within a guest language, or if you are an instrument bound/dependent on a specific language."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":354}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getRawFrame(java.lang.Class,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)","anchor":"getRawFrame(java.lang.Class,com.oracle.truffle.api.frame.FrameInstance.FrameAccess)","kind":"method","name":"getRawFrame","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"name","text":"getRawFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Truffle language class for a given guest language"}]}]},{"name":"access","type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame access mode"}]}]}],"returns":{"type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the underlying frame for this debug stack frame or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requesting language class does not match the root node guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the underlying frame for this debug stack frame or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the requesting language class does not match the root node guest language. This method is permitted only if the guest language class is available. This is the case if you want to utilize the Debugger API directly from within a guest language, or if you are an instrument bound/dependent on a specific language."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":379}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#eval(java.lang.String)","anchor":"eval(java.lang.String)","kind":"method","name":"eval","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"eval"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"code"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"code","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the code to evaluate"}]}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return value of the expression"}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if called on another thread than this frame was created with, or if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getLanguage()"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" of this frame is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#isInteractive()"},"code":true,"children":[{"kind":"text","text":"interactive"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Evaluates the given code in the state of the current execution and in the same guest language as the current language is defined in."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Evaluates the given code in the state of the current execution and in the same guest language as the current language is defined in. Returns a heap value that remains valid even if this stack frame becomes invalid."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is not thread-safe and will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if called on another thread than it was created with."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":419}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":431}},{"id":"com.oracle.truffle.api.debug.DebugStackFrame#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":446}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a frame in the guest language stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a frame in the guest language stack. A guest language stack frame consists of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getName()"},"code":true,"children":[{"kind":"text","text":"name"}]},{"kind":"text","text":", the current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getScope()"},"code":true,"children":[{"kind":"text","text":"scopes"}]},{"kind":"text","text":" containing local variables and arguments. Furthermore it allows to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#eval(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"evaluate"}]},{"kind":"text","text":" guest language expressions in the lexical context of a particular frame."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Debug stack frames are only valid as long as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"suspended events"}]},{"kind":"text","text":" are valid. Suspended events are valid as long while the originating "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback"},"code":true,"children":[{"kind":"text","text":"SuspendedCallback"}]},{"kind":"text","text":" is still executing. All methods of the frame throw "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if they become invalid."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Depending on the method, clients may access the stack frame only on the execution thread where the suspended event of the stack frame was created and the notification was received. For some methods, access from other threads may throw "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":". Please see the javadoc of the individual method for details."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getStackFrames()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.getStackFrames()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getTopStackFrame()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.getTopStackFrame()"}]}]]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugStackFrame.java","line":81}},{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement","name":"DebugStackTraceElement","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebugStackTraceElement"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#isInternal()","anchor":"isInternal()","kind":"method","name":"isInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInternal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns whether this trace element is a language implementation artifact."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether this trace element is a language implementation artifact."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The decision to mark a method as "},{"kind":"emphasis","children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":" is language-specific, reflects judgments about tool usability, and is subject to change."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugStackTraceElement.java","line":94}},{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#isHost()","anchor":"isHost()","kind":"method","name":"isHost","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHost"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this element is a host element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this element is a host element. Host elements provide "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getHostTraceElement()"},"code":true,"children":[{"kind":"text","text":"stack trace element"}]},{"kind":"text","text":", have no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getScope()"},"code":true,"children":[{"kind":"text","text":"scope"}]},{"kind":"text","text":", and no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Host elements are provided only when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setShowHostStackFrames(boolean)"},"code":true,"children":[{"kind":"text","text":"host info"}]},{"kind":"text","text":" is set to "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setShowHostStackFrames(boolean)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setShowHostStackFrames(boolean)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/debug/DebugStackTraceElement.java","line":116}},{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getHostTraceElement()","anchor":"getHostTraceElement()","kind":"method","name":"getHostTraceElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StackTraceElement","ref":"java.lang.StackTraceElement","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StackTraceElement.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getHostTraceElement"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"StackTraceElement","ref":"java.lang.StackTraceElement","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StackTraceElement.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the host stack trace element, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when not a host element."}]}]},"doc":{"summary":[{"kind":"text","text":"Provides a host element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides a host element. Returns the host stack trace element if and only if this is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#isHost()"},"code":true,"children":[{"kind":"text","text":"host"}]},{"kind":"text","text":" element."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#isHost()"},"code":true,"children":[{"kind":"text","text":"isHost()"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/debug/DebugStackTraceElement.java","line":128}},{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"A description of the trace element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A description of the trace element. If the language does not provide such a description then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugStackTraceElement.java","line":138}},{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns the source section location of this trace element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the source section location of this trace element. The source section is "},{"kind":"code","text":"null"},{"kind":"text","text":" if the source location is not available."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugStackTraceElement.java","line":160}},{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getScope()","anchor":"getScope()","kind":"method","name":"getScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"},{"kind":"punct","text":" "},{"kind":"name","text":"getScope"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the scope, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no language is associated with this frame location, or when no local scope exists."}]}]},"doc":{"summary":[{"kind":"text","text":"Get the current inner-most scope."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the current inner-most scope. The scope might not provide valid information if the execution path diverges from this trace element."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugStackTraceElement.java","line":199}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a trace element in the guest language stack trace."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a trace element in the guest language stack trace. A guest language trace element consists of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getName()"},"code":true,"children":[{"kind":"text","text":"name"}]},{"kind":"text","text":", the current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#getScope()"},"code":true,"children":[{"kind":"text","text":"scopes"}]},{"kind":"text","text":" containing local variables and arguments."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The difference between this class and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame"},"code":true,"children":[{"kind":"text","text":"DebugStackFrame"}]},{"kind":"text","text":" is the limited life-time of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame"},"code":true,"children":[{"kind":"text","text":"DebugStackFrame"}]},{"kind":"text","text":", that is associated with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugException#getDebugStackTrace()"},"code":true,"children":[{"kind":"text","text":"DebugException.getDebugStackTrace()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugStackTraceElement.java","line":67}},{"id":"com.oracle.truffle.api.debug.DebugThreadsListener","name":"DebugThreadsListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"DebugThreadsListener"}],"members":[{"id":"com.oracle.truffle.api.debug.DebugThreadsListener#threadInitialized(com.oracle.truffle.api.debug.DebugContext,java.lang.Thread)","anchor":"threadInitialized(com.oracle.truffle.api.debug.DebugContext,java.lang.Thread)","kind":"method","name":"threadInitialized","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"threadInitialized"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context the thread is initialized in"}]}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the initialized thread"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about initialization of a thread to be used for a guest language execution in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugContext"},"code":true,"children":[{"kind":"text","text":"DebugContext"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about initialization of a thread to be used for a guest language execution in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugContext"},"code":true,"children":[{"kind":"text","text":"DebugContext"}]},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugThreadsListener.java","line":69}},{"id":"com.oracle.truffle.api.debug.DebugThreadsListener#threadDisposed(com.oracle.truffle.api.debug.DebugContext,java.lang.Thread)","anchor":"threadDisposed(com.oracle.truffle.api.debug.DebugContext,java.lang.Thread)","kind":"method","name":"threadDisposed","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"threadDisposed"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"DebugContext","ref":"com.oracle.truffle.api.debug.DebugContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context the thread is disposed from"}]}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about disposal of thread-related resources that were used for a guest language execution in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugContext"},"code":true,"children":[{"kind":"text","text":"DebugContext"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about disposal of thread-related resources that were used for a guest language execution in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugContext"},"code":true,"children":[{"kind":"text","text":"DebugContext"}]},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugThreadsListener.java","line":79}}],"doc":{"summary":[{"kind":"text","text":"Listener to be notified about changes of threads in guest language application."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Listener to be notified about changes of threads in guest language application."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setThreadsListener(com.oracle.truffle.api.debug.DebugThreadsListener,boolean)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setThreadsListener(com.oracle.truffle.api.debug.DebugThreadsListener, boolean)"}]},{"kind":"text","text":" to register an implementation of this listener."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The listener gets called when a thread is initialized for use in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" or thread-related resources are disposed in a context. The notification calls do not say anything about the actual life-time of the thread as such, which may live before the initialization and may continue to live after the disposal."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setThreadsListener(com.oracle.truffle.api.debug.DebugThreadsListener,boolean)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setThreadsListener(com.oracle.truffle.api.debug.DebugThreadsListener,\n     boolean)"}]}]]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebugThreadsListener.java","line":59}},{"id":"com.oracle.truffle.api.debug.DebugValue","name":"DebugValue","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebugValue"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.DebugValue#set(com.oracle.truffle.api.debug.DebugValue)","anchor":"set(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"set","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"value","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to set"}]}]}],"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the value using another "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the value using another "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":". Throws an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if the value is not writable, the passed value is not readable, this value or the passed value is invalid, or the guest language of the values do not match. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#eval(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"DebugStackFrame.eval(String)"}]},{"kind":"text","text":" to evaluate values to be set."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":105}},{"id":"com.oracle.truffle.api.debug.DebugValue#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the name of this value as it is referred to from its origin."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name of this value as it is referred to from its origin. If this value is originated from the stack it returns the name of the local variable. If the value was returned from another objects then it returns the name of the property or field it is contained in. If no name is available "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":115}},{"id":"com.oracle.truffle.api.debug.DebugValue#isReadable()","anchor":"isReadable()","kind":"method","name":"isReadable","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isReadable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value can be read else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value can be read else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":122}},{"id":"com.oracle.truffle.api.debug.DebugValue#hasReadSideEffects()","anchor":"hasReadSideEffects()","kind":"method","name":"hasReadSideEffects","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasReadSideEffects"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if reading of this value can have side-effects, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if reading of this value can have side-effects, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Read has side-effects if it changes runtime state."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":130}},{"id":"com.oracle.truffle.api.debug.DebugValue#hasWriteSideEffects()","anchor":"hasWriteSideEffects()","kind":"method","name":"hasWriteSideEffects","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasWriteSideEffects"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if setting a new value can have side-effects, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if setting a new value can have side-effects, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Write has side-effects if it changes runtime state besides this value."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":138}},{"id":"com.oracle.truffle.api.debug.DebugValue#isWritable()","anchor":"isWritable()","kind":"method","name":"isWritable","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isWritable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value can be written to, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value can be written to, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":145}},{"id":"com.oracle.truffle.api.debug.DebugValue#isInternal()","anchor":"isInternal()","kind":"method","name":"isInternal","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInternal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents an internal variable or property, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents an internal variable or property, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Languages might have extra object properties or extra scope variables that are a part of the runtime, but do not correspond to anything what is an explicit part of the guest language representation. They may represent additional language artifacts, providing more in-depth information that can be valuable during debugging. Language implementors mark these variables as "},{"kind":"emphasis","children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":". An example of such internal values are internal slots in ECMAScript."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":160}},{"id":"com.oracle.truffle.api.debug.DebugValue#getScope()","anchor":"getScope()","kind":"method","name":"getScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"},{"kind":"punct","text":" "},{"kind":"name","text":"getScope"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the scope, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when this value does not belong into any scope."}]}]},"doc":{"summary":[{"kind":"text","text":"Get the scope where this value is declared in."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the scope where this value is declared in. It returns a non-null value for local variables declared on a stack. It's "},{"kind":"code","text":"null"},{"kind":"text","text":" for object properties and other heap values."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":171}},{"id":"com.oracle.truffle.api.debug.DebugValue#isNull()","anchor":"isNull()","kind":"method","name":"isNull","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isNull"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Test if the value represents 'null'."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Test if the value represents 'null'."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":181}},{"id":"com.oracle.truffle.api.debug.DebugValue#isString()","anchor":"isString()","kind":"method","name":"isString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if this value represents a string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if this value represents a string."}]}]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":201}},{"id":"com.oracle.truffle.api.debug.DebugValue#asString()","anchor":"asString()","kind":"method","name":"asString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asString"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" value if this value represents a string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" value if this value represents a string. This method returns "},{"kind":"code","text":"null"},{"kind":"text","text":" otherwise."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":222}},{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInInt()","anchor":"fitsInInt()","kind":"method","name":"fitsInInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInInt"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"int"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"int"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asInt()"},"code":true,"children":[{"kind":"text","text":"asInt()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":248}},{"id":"com.oracle.truffle.api.debug.DebugValue#asInt()","anchor":"asInt()","kind":"method","name":"asInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"asInt"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns an "},{"kind":"code","text":"int"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInInt()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an "},{"kind":"code","text":"int"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInInt()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInInt()"},"code":true,"children":[{"kind":"text","text":"fitsInInt()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":271}},{"id":"com.oracle.truffle.api.debug.DebugValue#isBoolean()","anchor":"isBoolean()","kind":"method","name":"isBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isBoolean"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if this value represents a boolean value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if this value represents a boolean value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asBoolean()"},"code":true,"children":[{"kind":"text","text":"asBoolean()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":294}},{"id":"com.oracle.truffle.api.debug.DebugValue#asBoolean()","anchor":"asBoolean()","kind":"method","name":"asBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"asBoolean"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"boolean"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isBoolean()"},"code":true,"children":[{"kind":"text","text":"boolean"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"boolean"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isBoolean()"},"code":true,"children":[{"kind":"text","text":"boolean"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isBoolean()"},"code":true,"children":[{"kind":"text","text":"isBoolean()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":317}},{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()","anchor":"isNumber()","kind":"method","name":"isNumber","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isNumber"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if this value represents a number."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if this value represents a number. The number value may be accessed as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asByte()"},"code":true,"children":[{"kind":"text","text":"byte"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asShort()"},"code":true,"children":[{"kind":"text","text":"short"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asInt()"},"code":true,"children":[{"kind":"text","text":"int"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asLong()"},"code":true,"children":[{"kind":"text","text":"long"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asFloat()"},"code":true,"children":[{"kind":"text","text":"float"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asDouble()"},"code":true,"children":[{"kind":"text","text":"double"}]},{"kind":"text","text":" value."}]}]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":341}},{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInLong()","anchor":"fitsInLong()","kind":"method","name":"fitsInLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInLong"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"long"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"long"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asLong()"},"code":true,"children":[{"kind":"text","text":"asLong()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":363}},{"id":"com.oracle.truffle.api.debug.DebugValue#asLong()","anchor":"asLong()","kind":"method","name":"asLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"asLong"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"long"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInLong()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"long"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInLong()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInLong()"},"code":true,"children":[{"kind":"text","text":"fitsInLong()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":386}},{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInBigInteger()","anchor":"fitsInBigInteger()","kind":"method","name":"fitsInBigInteger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInBigInteger"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"BigInteger"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"BigInteger"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asBigInteger()"},"code":true,"children":[{"kind":"text","text":"asBigInteger()"}]}]]},"since":"23.0.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":410}},{"id":"com.oracle.truffle.api.debug.DebugValue#asBigInteger()","anchor":"asBigInteger()","kind":"method","name":"asBigInteger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BigInteger","ref":"java.math.BigInteger","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/math/BigInteger.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asBigInteger"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BigInteger","ref":"java.math.BigInteger","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/math/BigInteger.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"BigInteger"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInBigInteger()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"BigInteger"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInBigInteger()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInBigInteger()"},"code":true,"children":[{"kind":"text","text":"fitsInBigInteger()"}]}]]},"since":"23.0.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":433}},{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInDouble()","anchor":"fitsInDouble()","kind":"method","name":"fitsInDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInDouble"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"double"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"double"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asDouble()"},"code":true,"children":[{"kind":"text","text":"asDouble()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":457}},{"id":"com.oracle.truffle.api.debug.DebugValue#asDouble()","anchor":"asDouble()","kind":"method","name":"asDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"asDouble"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"double"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInDouble()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"double"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInDouble()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInDouble()"},"code":true,"children":[{"kind":"text","text":"fitsInDouble()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":480}},{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInFloat()","anchor":"fitsInFloat()","kind":"method","name":"fitsInFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInFloat"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"float"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"float"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asFloat()"},"code":true,"children":[{"kind":"text","text":"asFloat()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":504}},{"id":"com.oracle.truffle.api.debug.DebugValue#asFloat()","anchor":"asFloat()","kind":"method","name":"asFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"asFloat"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"float"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInFloat()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"float"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInFloat()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInFloat()"},"code":true,"children":[{"kind":"text","text":"fitsInFloat()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":527}},{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInByte()","anchor":"fitsInByte()","kind":"method","name":"fitsInByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInByte"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"byte"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"byte"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asByte()"},"code":true,"children":[{"kind":"text","text":"asByte()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":551}},{"id":"com.oracle.truffle.api.debug.DebugValue#asByte()","anchor":"asByte()","kind":"method","name":"asByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"asByte"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"byte"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInByte()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"byte"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInByte()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInByte()"},"code":true,"children":[{"kind":"text","text":"fitsInByte()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":574}},{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInShort()","anchor":"fitsInShort()","kind":"method","name":"fitsInShort","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInShort"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"short"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value fits in "},{"kind":"code","text":"short"},{"kind":"text","text":", else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asShort()"},"code":true,"children":[{"kind":"text","text":"asShort()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":598}},{"id":"com.oracle.truffle.api.debug.DebugValue#asShort()","anchor":"asShort()","kind":"method","name":"asShort","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"asShort"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"short"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"short"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInShort()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"code","text":"short"},{"kind":"text","text":" representation of this value if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isNumber()"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" and the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInShort()"},"code":true,"children":[{"kind":"text","text":"fits"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#fitsInShort()"},"code":true,"children":[{"kind":"text","text":"fitsInShort()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":621}},{"id":"com.oracle.truffle.api.debug.DebugValue#isDate()","anchor":"isDate()","kind":"method","name":"isDate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDate"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a date, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a date, else "},{"kind":"code","text":"false"},{"kind":"text","text":". If this value is also a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTimeZone()"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":" then the date is aware, otherwise it is naive."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asDate()"},"code":true,"children":[{"kind":"text","text":"asDate()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":645}},{"id":"com.oracle.truffle.api.debug.DebugValue#asDate()","anchor":"asDate()","kind":"method","name":"asDate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LocalDate","ref":"java.time.LocalDate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/LocalDate.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asDate"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LocalDate","ref":"java.time.LocalDate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/LocalDate.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns this value as date if it is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isDate()"},"code":true,"children":[{"kind":"text","text":"date"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns this value as date if it is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isDate()"},"code":true,"children":[{"kind":"text","text":"date"}]},{"kind":"text","text":". The returned date is either aware if the value has a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTimeZone()"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":" otherwise it is naive."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isDate()"},"code":true,"children":[{"kind":"text","text":"isDate()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":668}},{"id":"com.oracle.truffle.api.debug.DebugValue#isTime()","anchor":"isTime()","kind":"method","name":"isTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isTime"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a time, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents a time, else "},{"kind":"code","text":"false"},{"kind":"text","text":". If the value is also a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTimeZone()"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":" then the time is aware, otherwise it is naive."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asTime()"},"code":true,"children":[{"kind":"text","text":"asTime()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":692}},{"id":"com.oracle.truffle.api.debug.DebugValue#asTime()","anchor":"asTime()","kind":"method","name":"asTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LocalTime","ref":"java.time.LocalTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/LocalTime.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asTime"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LocalTime","ref":"java.time.LocalTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/LocalTime.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns this value as time if it is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTime()"},"code":true,"children":[{"kind":"text","text":"time"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns this value as time if it is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTime()"},"code":true,"children":[{"kind":"text","text":"time"}]},{"kind":"text","text":". The returned time is either aware if the value has a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTimeZone()"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":" otherwise it is naive."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTime()"},"code":true,"children":[{"kind":"text","text":"isTime()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":715}},{"id":"com.oracle.truffle.api.debug.DebugValue#isInstant()","anchor":"isInstant()","kind":"method","name":"isInstant","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInstant"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents an instant."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents an instant. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isInstant(Object)"}]},{"kind":"text","text":" for detailed description."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isDate()"},"code":true,"children":[{"kind":"text","text":"isDate()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTime()"},"code":true,"children":[{"kind":"text","text":"isTime()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isInstant()"},"code":true,"children":[{"kind":"text","text":"isInstant()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asInstant()"},"code":true,"children":[{"kind":"text","text":"asInstant()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":742}},{"id":"com.oracle.truffle.api.debug.DebugValue#asInstant()","anchor":"asInstant()","kind":"method","name":"asInstant","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Instant","ref":"java.time.Instant","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Instant.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asInstant"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Instant","ref":"java.time.Instant","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Instant.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns this value as instant if it is an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isInstant()"},"code":true,"children":[{"kind":"text","text":"instant"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns this value as instant if it is an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isInstant()"},"code":true,"children":[{"kind":"text","text":"instant"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asInstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.asInstant(Object)"}]},{"kind":"text","text":" for detailed description."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isDate()"},"code":true,"children":[{"kind":"text","text":"isDate()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTime()"},"code":true,"children":[{"kind":"text","text":"isTime()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTimeZone()"},"code":true,"children":[{"kind":"text","text":"isTimeZone()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":757}},{"id":"com.oracle.truffle.api.debug.DebugValue#isTimeZone()","anchor":"isTimeZone()","kind":"method","name":"isTimeZone","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isTimeZone"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a timezone, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a timezone, else "},{"kind":"code","text":"false"},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isTimeZone(Object)"}]},{"kind":"text","text":" for detailed description."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asTimeZone()"},"code":true,"children":[{"kind":"text","text":"asTimeZone()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asInstant()"},"code":true,"children":[{"kind":"text","text":"asInstant()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":783}},{"id":"com.oracle.truffle.api.debug.DebugValue#asTimeZone()","anchor":"asTimeZone()","kind":"method","name":"asTimeZone","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ZoneId","ref":"java.time.ZoneId","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asTimeZone"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ZoneId","ref":"java.time.ZoneId","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns this value as timestamp if it represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTimeZone()"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns this value as timestamp if it represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTimeZone()"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isTimeZone()"},"code":true,"children":[{"kind":"text","text":"isTimeZone()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":805}},{"id":"com.oracle.truffle.api.debug.DebugValue#isDuration()","anchor":"isDuration()","kind":"method","name":"isDuration","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDuration"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a duration, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a duration, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"java.time.Duration","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Duration.html"},"code":true,"children":[{"kind":"text","text":"Duration"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#asDuration()"},"code":true,"children":[{"kind":"text","text":"asDuration()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":830}},{"id":"com.oracle.truffle.api.debug.DebugValue#asDuration()","anchor":"asDuration()","kind":"method","name":"asDuration","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Duration","ref":"java.time.Duration","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Duration.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asDuration"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Duration","ref":"java.time.Duration","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Duration.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this value could not be converted."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns this value as duration if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isDuration()"},"code":true,"children":[{"kind":"text","text":"duration"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns this value as duration if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isDuration()"},"code":true,"children":[{"kind":"text","text":"duration"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isDuration()"},"code":true,"children":[{"kind":"text","text":"isDuration()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":852}},{"id":"com.oracle.truffle.api.debug.DebugValue#isMetaObject()","anchor":"isMetaObject()","kind":"method","name":"isMetaObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMetaObject"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value represents a metaobject."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value represents a metaobject. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isMetaObject(Object)"}]},{"kind":"text","text":" for detailed description."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getMetaQualifiedName()"},"code":true,"children":[{"kind":"text","text":"getMetaQualifiedName()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getMetaSimpleName()"},"code":true,"children":[{"kind":"text","text":"getMetaSimpleName()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isMetaInstance(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"isMetaInstance(DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getMetaObject()"},"code":true,"children":[{"kind":"text","text":"getMetaObject()"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":879}},{"id":"com.oracle.truffle.api.debug.DebugValue#getMetaQualifiedName()","anchor":"getMetaQualifiedName()","kind":"method","name":"getMetaQualifiedName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMetaQualifiedName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isMetaObject()"},"code":true,"children":[{"kind":"text","text":"isMetaObject()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same value."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the qualified name of a metaobject as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isString()"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the qualified name of a metaobject as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isString()"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaQualifiedName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getMetaQualifiedName(Object)"}]},{"kind":"text","text":" for detailed description."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isMetaObject()"},"code":true,"children":[{"kind":"text","text":"isMetaObject()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":903}},{"id":"com.oracle.truffle.api.debug.DebugValue#getMetaSimpleName()","anchor":"getMetaSimpleName()","kind":"method","name":"getMetaSimpleName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMetaSimpleName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isMetaObject()"},"code":true,"children":[{"kind":"text","text":"isMetaObject()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same value."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the simple name of a metaobject as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isString()"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the simple name of a metaobject as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isString()"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaSimpleName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getMetaSimpleName(Object)"}]},{"kind":"text","text":" for detailed description."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isMetaObject()"},"code":true,"children":[{"kind":"text","text":"isMetaObject()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":929}},{"id":"com.oracle.truffle.api.debug.DebugValue#isMetaInstance(com.oracle.truffle.api.debug.DebugValue)","anchor":"isMetaInstance(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"isMetaInstance","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMetaInstance"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"instance"},{"kind":"punct","text":")"}],"params":[{"name":"instance","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance value to check."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isMetaObject()"},"code":true,"children":[{"kind":"text","text":"isMetaObject()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same value."}]}]},{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given instance is an instance of this value, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given instance is an instance of this value, else "},{"kind":"code","text":"false"},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaInstance(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isMetaInstance(Object, Object)"}]},{"kind":"text","text":" for detailed description."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isMetaObject()"},"code":true,"children":[{"kind":"text","text":"isMetaObject()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":957}},{"id":"com.oracle.truffle.api.debug.DebugValue#getRootInstanceBreakpoints()","anchor":"getRootInstanceBreakpoints()","kind":"method","name":"getRootInstanceBreakpoints","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":"> "},{"kind":"name","text":"getRootInstanceBreakpoints"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a list of breakpoints with this value as root instance"}]}]},"doc":{"summary":[{"kind":"text","text":"Get a list of breakpoints installed to the value's session and whose "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#rootInstance(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"root instance"}]},{"kind":"text","text":" is this value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a list of breakpoints installed to the value's session and whose "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint$Builder#rootInstance(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"root instance"}]},{"kind":"text","text":" is this value."}]}]},"since":"19.3.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":980}},{"id":"com.oracle.truffle.api.debug.DebugValue#getStaticScope()","anchor":"getStaticScope()","kind":"method","name":"getStaticScope","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getStaticScope"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a value that provides static members whose value is independent on a specific instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value that provides static members whose value is independent on a specific instance. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" when no static scope is available."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1005}},{"id":"com.oracle.truffle.api.debug.DebugValue#getProperties()","anchor":"getProperties()","kind":"method","name":"getProperties","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":"> "},{"kind":"name","text":"getProperties"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a collection of property values, or null when the value does not have any concept of properties."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Provides properties representing an internal structure of this value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides properties representing an internal structure of this value. The returned collection is not thread-safe. If the value is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isReadable()"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":" then "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned."}]}]},"since":"0.19","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1032}},{"id":"com.oracle.truffle.api.debug.DebugValue#getProperty(java.lang.String)","anchor":"getProperty(java.lang.String)","kind":"method","name":"getProperty","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"name of a property"}]}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property value, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the property does not exist."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Get a property value by its name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a property value by its name."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1067}},{"id":"com.oracle.truffle.api.debug.DebugValue#isArray()","anchor":"isArray()","kind":"method","name":"isArray","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isArray"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents an array, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents an array, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}]}]},"since":"0.19","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1095}},{"id":"com.oracle.truffle.api.debug.DebugValue#getArray()","anchor":"getArray()","kind":"method","name":"getArray","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":"> "},{"kind":"name","text":"getArray"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a list of array elements, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when the value does not represent an array."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Provides array elements when this value represents an array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides array elements when this value represents an array. To test if this value represents an array, check "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isArray()"},"code":true,"children":[{"kind":"text","text":"isArray()"}]},{"kind":"text","text":"."}]}]},"since":"0.19","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1111}},{"id":"com.oracle.truffle.api.debug.DebugValue#getRawValue(java.lang.Class)","anchor":"getRawValue(java.lang.Class)","kind":"method","name":"getRawValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getRawValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Truffle language class for a given guest language"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest language object or null if the language differs from the language that created the underlying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the underlying guest value object held by this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the underlying guest value object held by this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":". This method is permitted only if the guest language class is available. This is the case if you want to utilize the Debugger API directly from within a guest language, or if you are an instrument bound/dependent on a specific language. This method is opposite to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugScope#convertRawValue(java.lang.Class,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DebugScope.convertRawValue(Class, Object)"}]},{"kind":"text","text":" where a raw guest language value is wrapped in a DebugValue."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1137}},{"id":"com.oracle.truffle.api.debug.DebugValue#toDisplayString()","anchor":"toDisplayString()","kind":"method","name":"toDisplayString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toDisplayString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Converts the value to a language-specific string representation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the value to a language-specific string representation. Is the same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#toDisplayString(boolean)"},"code":true,"children":[{"kind":"text","text":"toDisplayString(true)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#toDisplayString(boolean)"},"code":true,"children":[{"kind":"text","text":"toDisplayString(boolean)"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1155}},{"id":"com.oracle.truffle.api.debug.DebugValue#toDisplayString(boolean)","anchor":"toDisplayString(boolean)","kind":"method","name":"toDisplayString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toDisplayString"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowSideEffects"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"allowSideEffects","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether side-effects are allowed in the production of the string."}]}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Converts the value to a language-specific string representation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the value to a language-specific string representation."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1165}},{"id":"com.oracle.truffle.api.debug.DebugValue#getMetaObject()","anchor":"getMetaObject()","kind":"method","name":"getMetaObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getMetaObject"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a value representing the meta-object, or "},{"kind":"code","text":"null"}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Get a meta-object of this value, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a meta-object of this value, if any. The meta-object represents a description of the value, reveals it's kind and it's features. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getMetaObject(Object)"}]},{"kind":"text","text":" for detailed description."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1210}},{"id":"com.oracle.truffle.api.debug.DebugValue#getSourceLocation()","anchor":"getSourceLocation()","kind":"method","name":"getSourceLocation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceLocation"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a source location of the object, or "},{"kind":"code","text":"null"}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Get a source location where this value is declared, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a source location where this value is declared, if any."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1234}},{"id":"com.oracle.truffle.api.debug.DebugValue#canExecute()","anchor":"canExecute()","kind":"method","name":"canExecute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"canExecute"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value can be executed (represents a guest language function), else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value can be executed (represents a guest language function), else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1258}},{"id":"com.oracle.truffle.api.debug.DebugValue#execute(com.oracle.truffle.api.debug.DebugValue...)","anchor":"execute(com.oracle.truffle.api.debug.DebugValue...)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":"... "},{"kind":"param","text":"arguments"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"arguments","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Arguments passed to the executable"}]}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of the execution"}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Executes the executable represented by this value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the executable represented by this value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#canExecute()"},"code":true,"children":[{"kind":"text","text":"canExecute()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1281}},{"id":"com.oracle.truffle.api.debug.DebugValue#hasIterator()","anchor":"hasIterator()","kind":"method","name":"hasIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasIterator"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value provides an iterator."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value provides an iterator. For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.hasIterator(Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getIterator()"},"code":true,"children":[{"kind":"text","text":"getIterator()"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1307}},{"id":"com.oracle.truffle.api.debug.DebugValue#getIterator()","anchor":"getIterator()","kind":"method","name":"getIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getIterator"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasIterator()"},"code":true,"children":[{"kind":"text","text":"hasIterator()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" or guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the iterator value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the iterator value. The return value is always an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"iterator"}]},{"kind":"text","text":". For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getIterator(Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasIterator()"},"code":true,"children":[{"kind":"text","text":"hasIterator()"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1330}},{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()","anchor":"isIterator()","kind":"method","name":"isIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isIterator"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents an iterator."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this value represents an iterator. For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isIterator(Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasIterator()"},"code":true,"children":[{"kind":"text","text":"hasIterator()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getIterator()"},"code":true,"children":[{"kind":"text","text":"getIterator()"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1352}},{"id":"com.oracle.truffle.api.debug.DebugValue#hasIteratorNextElement()","anchor":"hasIteratorNextElement()","kind":"method","name":"hasIteratorNextElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasIteratorNextElement"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"isIterator()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" or guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"is an iterator"}]},{"kind":"text","text":" which has more elements, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"is an iterator"}]},{"kind":"text","text":" which has more elements, else "},{"kind":"code","text":"false"},{"kind":"text","text":". For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.hasIteratorNextElement(Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"isIterator()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getIteratorNextElement()"},"code":true,"children":[{"kind":"text","text":"getIteratorNextElement()"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1377}},{"id":"com.oracle.truffle.api.debug.DebugValue#getIteratorNextElement()","anchor":"getIteratorNextElement()","kind":"method","name":"getIteratorNextElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getIteratorNextElement"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"NoSuchElementException","ref":"java.util.NoSuchElementException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/NoSuchElementException.html"},{"kind":"punct","text":", "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"isIterator()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" or when the underlying iterator element exists but is not readable, or guest language code throws an exception."}]}]},{"type":[{"kind":"type","text":"NoSuchElementException","ref":"java.util.NoSuchElementException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/NoSuchElementException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the iteration has no more elements."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the next element in the iteration."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the next element in the iteration. When the underlying data structure is modified the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getIteratorNextElement()"},"code":true,"children":[{"kind":"text","text":"getIteratorNextElement()"}]},{"kind":"text","text":" may throw the "},{"kind":"link","target":{"id":"java.util.NoSuchElementException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/NoSuchElementException.html"},"code":true,"children":[{"kind":"text","text":"NoSuchElementException"}]},{"kind":"text","text":" despite the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasIteratorNextElement()"},"code":true,"children":[{"kind":"text","text":"hasIteratorNextElement()"}]},{"kind":"text","text":" returned "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"isIterator()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasIteratorNextElement()"},"code":true,"children":[{"kind":"text","text":"hasIteratorNextElement()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getIteratorNextElement(Object)"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1406}},{"id":"com.oracle.truffle.api.debug.DebugValue#hasHashEntries()","anchor":"hasHashEntries()","kind":"method","name":"hasHashEntries","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasHashEntries"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value may have hash map entries."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value may have hash map entries. For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.hasHashEntries(Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashEntriesIterator()"},"code":true,"children":[{"kind":"text","text":"getHashEntriesIterator()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashSize()"},"code":true,"children":[{"kind":"text","text":"getHashSize()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryReadable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"isHashEntryReadable(DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryWritable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"isHashEntryWritable(DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryInsertable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"isHashEntryInsertable(DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryRemovable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"isHashEntryRemovable(DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashValue(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"getHashValue(DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashValueOrDefault(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"getHashValueOrDefault(DebugValue, DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#putHashEntry(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"putHashEntry(DebugValue, DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#removeHashEntry(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"removeHashEntry(DebugValue)"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1440}},{"id":"com.oracle.truffle.api.debug.DebugValue#getHashSize()","anchor":"getHashSize()","kind":"method","name":"getHashSize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashSize"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasHashEntries()"},"code":true,"children":[{"kind":"text","text":"hasHashEntries()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" or guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the number of hash map entries."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of hash map entries."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasHashEntries()"},"code":true,"children":[{"kind":"text","text":"hasHashEntries()"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1462}},{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryReadable(com.oracle.truffle.api.debug.DebugValue)","anchor":"isHashEntryReadable(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"isHashEntryReadable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryReadable"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is readable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is readable. If the "},{"kind":"code","text":"key"},{"kind":"text","text":" is obtained from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashEntriesIterator()"},"code":true,"children":[{"kind":"text","text":"getHashEntriesIterator()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashKeysIterator()"},"code":true,"children":[{"kind":"text","text":"getHashKeysIterator()"}]},{"kind":"text","text":", it returns the same value as "},{"kind":"code","text":"key."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isReadable()"},"code":true,"children":[{"kind":"text","text":"isReadable()"}]},{"kind":"text","text":". For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryReadable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isHashEntryReadable(Object, Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashValue(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"getHashValue(DebugValue)"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1484}},{"id":"com.oracle.truffle.api.debug.DebugValue#getHashValue(com.oracle.truffle.api.debug.DebugValue)","anchor":"getHashValue(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"getHashValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashValue"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the value has no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasHashEntries()"},"code":true,"children":[{"kind":"text","text":"hash entries"}]},{"kind":"text","text":", or guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Get value of a hash map for the specified key or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the mapping for the specified key does not exist."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get value of a hash map for the specified key or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the mapping for the specified key does not exist. The returned value, if any, is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isWritable()"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":" if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryWritable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"isHashEntryWritable(DebugValue)"}]},{"kind":"text","text":" returns true for the entry key."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryReadable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"isHashEntryReadable(DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashValueOrDefault(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"getHashValueOrDefault(DebugValue, DebugValue)"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1507}},{"id":"com.oracle.truffle.api.debug.DebugValue#getHashValueOrDefault(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)","anchor":"getHashValueOrDefault(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"getHashValueOrDefault","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashValueOrDefault"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},{"name":"defaultValue","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the hash map does not support reading at all, or guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Get value of a hash map for the specified key or return the "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":" when the mapping for the specified key does not exist or is not readable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get value of a hash map for the specified key or return the "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":" when the mapping for the specified key does not exist or is not readable."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryReadable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"isHashEntryReadable(DebugValue)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashValue(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"getHashValue(DebugValue)"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1524}},{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryModifiable(com.oracle.truffle.api.debug.DebugValue)","anchor":"isHashEntryModifiable(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"isHashEntryModifiable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryModifiable"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#putHashEntry(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#putHashEntry(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":". If the corresponding value is obtained from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashValue(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"getHashValue(DebugValue)"}]},{"kind":"text","text":" or from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getHashEntriesIterator()"},"code":true,"children":[{"kind":"text","text":"getHashEntriesIterator()"}]},{"kind":"text","text":", then it returns the same value as "},{"kind":"code","text":"value."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isWritable()"},"code":true,"children":[{"kind":"text","text":"isWritable()"}]},{"kind":"text","text":". For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryModifiable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isHashEntryModifiable(Object, Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#putHashEntry(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"putHashEntry(DebugValue, DebugValue)"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1555}},{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryInsertable(com.oracle.truffle.api.debug.DebugValue)","anchor":"isHashEntryInsertable(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"isHashEntryInsertable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryInsertable"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key does not exist and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#putHashEntry(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key does not exist and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#putHashEntry(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":". For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isHashEntryInsertable(Object, Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#putHashEntry(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"putHashEntry(DebugValue, DebugValue)"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1576}},{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryWritable(com.oracle.truffle.api.debug.DebugValue)","anchor":"isHashEntryWritable(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"isHashEntryWritable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryWritable"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryModifiable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryInsertable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryModifiable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryInsertable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1596}},{"id":"com.oracle.truffle.api.debug.DebugValue#putHashEntry(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)","anchor":"putHashEntry(com.oracle.truffle.api.debug.DebugValue,com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"putHashEntry","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putHashEntry"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},{"name":"value","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the hash map does not support writing at all, or mapping for the specified key is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryModifiable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" nor "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryInsertable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":", or the provided key type or value type is not allowed to be written, or guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Associates the specified value with the specified key in the hash map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Associates the specified value with the specified key in the hash map. Putting the entry is allowed if is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryModifiable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", or not existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryInsertable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1620}},{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryRemovable(com.oracle.truffle.api.debug.DebugValue)","anchor":"isHashEntryRemovable(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"isHashEntryRemovable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryRemovable"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is removable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is removable. For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryRemovable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isHashEntryRemovable(Object, Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#removeHashEntry(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"removeHashEntry(DebugValue)"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1641}},{"id":"com.oracle.truffle.api.debug.DebugValue#removeHashEntry(com.oracle.truffle.api.debug.DebugValue)","anchor":"removeHashEntry(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"removeHashEntry","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"removeHashEntry"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the mapping was successfully removed, "},{"kind":"code","text":"false"},{"kind":"text","text":" if mapping for a given key does not exist."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the value does not have any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasHashEntries()"},"code":true,"children":[{"kind":"text","text":"hash entries"}]},{"kind":"text","text":" or if mapping for specified key "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryExisting(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"exists"}]},{"kind":"text","text":" but cannot be removed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Removes the mapping for a given key from the hash map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes the mapping for a given key from the hash map. Mapping removing is allowed if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryRemovable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryRemovable(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"isHashEntryRemovable(DebugValue)"}]}]]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1665}},{"id":"com.oracle.truffle.api.debug.DebugValue#isHashEntryExisting(com.oracle.truffle.api.debug.DebugValue)","anchor":"isHashEntryExisting(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"isHashEntryExisting","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryExisting"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"key","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for a given key is existing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for a given key is existing. For details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryExisting(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isHashEntryExisting(Object, Object)"}]},{"kind":"text","text":"."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1687}},{"id":"com.oracle.truffle.api.debug.DebugValue#getHashEntriesIterator()","anchor":"getHashEntriesIterator()","kind":"method","name":"getHashEntriesIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashEntriesIterator"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasHashEntries()"},"code":true,"children":[{"kind":"text","text":"hasHashEntries()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":", or if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the entries iterator of the hash map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the entries iterator of the hash map. The return value is always an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"iterator"}]},{"kind":"text","text":" of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isArray()"},"code":true,"children":[{"kind":"text","text":"array"}]},{"kind":"text","text":" elements. The first array element is a key, the second array element is the associated value. Array elements returned by the iterator may be modifiable. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#set(com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"Set"}]},{"kind":"text","text":" of the elements updates the hash map."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1710}},{"id":"com.oracle.truffle.api.debug.DebugValue#getHashKeysIterator()","anchor":"getHashKeysIterator()","kind":"method","name":"getHashKeysIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashKeysIterator"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasHashEntries()"},"code":true,"children":[{"kind":"text","text":"hasHashEntries()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":", or if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the keys iterator of the hash map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the keys iterator of the hash map. The return value is always an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"iterator"}]},{"kind":"text","text":"."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1731}},{"id":"com.oracle.truffle.api.debug.DebugValue#getHashValuesIterator()","anchor":"getHashValuesIterator()","kind":"method","name":"getHashValuesIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashValuesIterator"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#hasHashEntries()"},"code":true,"children":[{"kind":"text","text":"hasHashEntries()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":", or if guest language code throws an exception."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the values iterator of the hash map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the values iterator of the hash map. The return value is always an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#isIterator()"},"code":true,"children":[{"kind":"text","text":"iterator"}]},{"kind":"text","text":"."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1752}},{"id":"com.oracle.truffle.api.debug.DebugValue#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#identityHashCode(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"identity hash code"}]},{"kind":"text","text":" of the guest object, if the object "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIdentity(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"has identity"}]},{"kind":"text","text":"."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"doc":{"summary":[{"kind":"text","text":"Provides hash code of the value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides hash code of the value."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1773}},{"id":"com.oracle.truffle.api.debug.DebugValue#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Indicates whether another "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":" is equal to this."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates whether another "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":" is equal to this. Two "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":" objects are equal if and only if their guest objects are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdentical(java.lang.Object,java.lang.Object,com.oracle.truffle.api.interop.InteropLibrary)"},"code":true,"children":[{"kind":"text","text":"identical"}]},{"kind":"text","text":"."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1791}},{"id":"com.oracle.truffle.api.debug.DebugValue#getOriginalLanguage()","anchor":"getOriginalLanguage()","kind":"method","name":"getOriginalLanguage","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getOriginalLanguage"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"returns":{"type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no language can be identified as the creator of the value."}]}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Get the original language that created the value, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the original language that created the value, if any. This method will return "},{"kind":"code","text":"null"},{"kind":"text","text":" for values representing a primitive value, or objects that are not associated with any language."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1854}},{"id":"com.oracle.truffle.api.debug.DebugValue#asInLanguage(com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"asInLanguage(com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"asInLanguage","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"asInLanguage"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a language to get the value representation of"}]}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value as represented in the language"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a debug value that presents itself as seen by the provided language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a debug value that presents itself as seen by the provided language. The language affects the output of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#toDisplayString()"},"code":true,"children":[{"kind":"text","text":"toDisplayString()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getMetaObject()"},"code":true,"children":[{"kind":"text","text":"getMetaObject()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getSourceLocation()"},"code":true,"children":[{"kind":"text","text":"getSourceLocation()"}]},{"kind":"text","text":" and other methods that provide various representations of the value. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getOriginalLanguage()"},"code":true,"children":[{"kind":"text","text":"original language"}]},{"kind":"text","text":" of the returned value remains the same as of this value."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1887}},{"id":"com.oracle.truffle.api.debug.DebugValue#getSession()","anchor":"getSession()","kind":"method","name":"getSession","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"DebuggerSession","ref":"com.oracle.truffle.api.debug.DebuggerSession"},{"kind":"punct","text":" "},{"kind":"name","text":"getSession"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebuggerSession","ref":"com.oracle.truffle.api.debug.DebuggerSession"}]},"doc":{"summary":[{"kind":"text","text":"Get the debugger session associated with this value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the debugger session associated with this value."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1901}},{"id":"com.oracle.truffle.api.debug.DebugValue#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a string representation of the debug value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string representation of the debug value."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":1912}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a value accessed using the debugger API."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a value accessed using the debugger API. Please note that values can become invalid depending on the context in which they are used. For example stack values will only remain valid as long as the current stack element is active. Heap values on the other hand remain valid. If a value becomes invalid then setting or getting a value will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" . "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":" instances neither support equality or preserve identity."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Clients may access the debug value only on the execution thread where the suspended event of the stack frame was created and notification received; access from other threads will throw "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":"."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebugValue.java","line":83}},{"id":"com.oracle.truffle.api.debug.Debugger","name":"Debugger","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Debugger"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.Debugger#startSession(com.oracle.truffle.api.debug.SuspendedCallback)","anchor":"startSession(com.oracle.truffle.api.debug.SuspendedCallback)","kind":"method","name":"startSession","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebuggerSession","ref":"com.oracle.truffle.api.debug.DebuggerSession"},{"kind":"punct","text":" "},{"kind":"name","text":"startSession"},{"kind":"punct","text":"("},{"kind":"type","text":"SuspendedCallback","ref":"com.oracle.truffle.api.debug.SuspendedCallback"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":")"}],"params":[{"name":"callback","type":[{"kind":"type","text":"SuspendedCallback","ref":"com.oracle.truffle.api.debug.SuspendedCallback"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the callback to notify"}]}]}],"returns":{"type":[{"kind":"type","text":"DebuggerSession","ref":"com.oracle.truffle.api.debug.DebuggerSession"}]},"doc":{"summary":[{"kind":"text","text":"Starts a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":" provided with a callback that gets notified whenever the execution is suspended."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":" provided with a callback that gets notified whenever the execution is suspended. Uses "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement#STATEMENT"},"code":true,"children":[{"kind":"text","text":"SourceElement.STATEMENT"}]},{"kind":"text","text":" as the source element available for stepping. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#startSession(com.oracle.truffle.api.debug.SuspendedCallback,com.oracle.truffle.api.debug.SourceElement...)"},"code":true,"children":[{"kind":"text","text":"startSession(SuspendedCallback, SourceElement...)"}]},{"kind":"text","text":" to specify a different set of source elements."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"DebuggerSession"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#startSession(com.oracle.truffle.api.debug.SuspendedCallback,com.oracle.truffle.api.debug.SourceElement...)"},"code":true,"children":[{"kind":"text","text":"startSession(SuspendedCallback, SourceElement...)"}]}]]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":124}},{"id":"com.oracle.truffle.api.debug.Debugger#startSession(com.oracle.truffle.api.debug.SuspendedCallback,com.oracle.truffle.api.debug.SourceElement...)","anchor":"startSession(com.oracle.truffle.api.debug.SuspendedCallback,com.oracle.truffle.api.debug.SourceElement...)","kind":"method","name":"startSession","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebuggerSession","ref":"com.oracle.truffle.api.debug.DebuggerSession"},{"kind":"punct","text":" "},{"kind":"name","text":"startSession"},{"kind":"punct","text":"("},{"kind":"type","text":"SuspendedCallback","ref":"com.oracle.truffle.api.debug.SuspendedCallback"},{"kind":"punct","text":" "},{"kind":"param","text":"callback"},{"kind":"punct","text":", "},{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"... "},{"kind":"param","text":"defaultSourceElements"},{"kind":"punct","text":")"}],"params":[{"name":"callback","type":[{"kind":"type","text":"SuspendedCallback","ref":"com.oracle.truffle.api.debug.SuspendedCallback"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the callback to notify"}]}]},{"name":"defaultSourceElements","type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a list of source elements, an explicit empty list disables stepping"}]}]}],"returns":{"type":[{"kind":"type","text":"DebuggerSession","ref":"com.oracle.truffle.api.debug.DebuggerSession"}]},"doc":{"summary":[{"kind":"text","text":"Starts a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":" 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 step."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":" 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 step. Only steps created with one of these element kinds are accepted in this session. All specified elements are used by steps by default, if not specified otherwise by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#sourceElements(com.oracle.truffle.api.debug.SourceElement...)"},"code":true,"children":[{"kind":"text","text":"StepConfig.Builder.sourceElements(SourceElement...)"}]},{"kind":"text","text":". When no elements are provided, stepping is not possible and the session itself has no instrumentation overhead."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"DebuggerSession"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":143}},{"id":"com.oracle.truffle.api.debug.Debugger#getSessionCount()","anchor":"getSessionCount()","kind":"method","name":"getSessionCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getSessionCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of active debugger sessions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of active debugger sessions. This is useful, for instance, in deciding whether to open a new debugger session, depending on whether there is an existing one or not."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":163}},{"id":"com.oracle.truffle.api.debug.Debugger#install(com.oracle.truffle.api.debug.Breakpoint)","anchor":"install(com.oracle.truffle.api.debug.Breakpoint)","kind":"method","name":"install","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":" "},{"kind":"name","text":"install"},{"kind":"punct","text":"("},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":" "},{"kind":"param","text":"breakpoint"},{"kind":"punct","text":")"}],"params":[{"name":"breakpoint","type":[{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new breakpoint"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the installed breakpoint"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the session has been closed"}]}]}],"doc":{"summary":[{"kind":"text","text":"Adds a new breakpoint to this Debugger instance and makes it available in all its sessions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a new breakpoint to this Debugger instance and makes it available in all its sessions."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The breakpoint suspends execution in all active "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"sessions"}]},{"kind":"text","text":" by making a callback to the appropriate session "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback"},"code":true,"children":[{"kind":"text","text":"callback handler"}]},{"kind":"text","text":", together with an event description that includes "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getBreakpoints()"},"children":[{"kind":"text","text":"which breakpoint(s)"}]},{"kind":"text","text":" were hit."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":191}},{"id":"com.oracle.truffle.api.debug.Debugger#getBreakpoints()","anchor":"getBreakpoints()","kind":"method","name":"getBreakpoints","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":"> "},{"kind":"name","text":"getBreakpoints"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all breakpoints "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#install(com.oracle.truffle.api.debug.Breakpoint)"},"code":true,"children":[{"kind":"text","text":"installed"}]},{"kind":"text","text":" in this debugger instance, in the install order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all breakpoints "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#install(com.oracle.truffle.api.debug.Breakpoint)"},"code":true,"children":[{"kind":"text","text":"installed"}]},{"kind":"text","text":" in this debugger instance, in the install order. The returned list contains a current snapshot of breakpoints, those that were "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#dispose()"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":" are not included."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It's not possible to modify state of breakpoints returned from this list, or from methods on listeners, they are not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#isModifiable()"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":". An attempt to modify breakpoints state using any of their set method, or an attempt to dispose such breakpoints, fails with an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":". Use the original installed breakpoint instance to change breakpoint state or dispose the breakpoint."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#getBreakpoints()"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.getBreakpoints()"}]}]]},"since":"0.27","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":228}},{"id":"com.oracle.truffle.api.debug.Debugger#addBreakpointAddedListener(java.util.function.Consumer)","anchor":"addBreakpointAddedListener(java.util.function.Consumer)","kind":"method","name":"addBreakpointAddedListener","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"addBreakpointAddedListener"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":"> "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Add a listener that is notified when a new breakpoint is added into "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#getBreakpoints()"},"code":true,"children":[{"kind":"text","text":"list of breakpoints"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a listener that is notified when a new breakpoint is added into "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#getBreakpoints()"},"code":true,"children":[{"kind":"text","text":"list of breakpoints"}]},{"kind":"text","text":". The reported breakpoint is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#isModifiable()"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":268}},{"id":"com.oracle.truffle.api.debug.Debugger#removeBreakpointAddedListener(java.util.function.Consumer)","anchor":"removeBreakpointAddedListener(java.util.function.Consumer)","kind":"method","name":"removeBreakpointAddedListener","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"removeBreakpointAddedListener"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":"> "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Remove a listener that was added by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#addBreakpointAddedListener(java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"addBreakpointAddedListener(Consumer)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Remove a listener that was added by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#addBreakpointAddedListener(java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"addBreakpointAddedListener(Consumer)"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":277}},{"id":"com.oracle.truffle.api.debug.Debugger#addBreakpointRemovedListener(java.util.function.Consumer)","anchor":"addBreakpointRemovedListener(java.util.function.Consumer)","kind":"method","name":"addBreakpointRemovedListener","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"addBreakpointRemovedListener"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":"> "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Add a listener that is notified when a breakpoint is removed from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#getBreakpoints()"},"code":true,"children":[{"kind":"text","text":"list of breakpoints"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a listener that is notified when a breakpoint is removed from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#getBreakpoints()"},"code":true,"children":[{"kind":"text","text":"list of breakpoints"}]},{"kind":"text","text":". The reported breakpoint is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#isModifiable()"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":288}},{"id":"com.oracle.truffle.api.debug.Debugger#removeBreakpointRemovedListener(java.util.function.Consumer)","anchor":"removeBreakpointRemovedListener(java.util.function.Consumer)","kind":"method","name":"removeBreakpointRemovedListener","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"removeBreakpointRemovedListener"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":"> "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Remove a listener that was added by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#addBreakpointRemovedListener(java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"addBreakpointRemovedListener(Consumer)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Remove a listener that was added by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#addBreakpointRemovedListener(java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"addBreakpointRemovedListener(Consumer)"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":297}},{"id":"com.oracle.truffle.api.debug.Debugger#disableStepping()","anchor":"disableStepping()","kind":"method","name":"disableStepping","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disableStepping"},{"kind":"punct","text":"()"}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when not in an entered context"}]}]}],"doc":{"summary":[{"kind":"text","text":"Disable stepping on the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disable stepping on the current thread. The current thread must be in an entered context. Assure that the stepping is restored again by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#restoreStepping()"},"code":true,"children":[{"kind":"text","text":"restoreStepping()"}]},{"kind":"text","text":" like:"}]},{"kind":"code","language":"java","text":"Debugger debugger = Debugger.find(engine);\ndebugger.disableStepping();\ntry {\n    // run code which debugger should not step into\n} finally {\n    debugger.restoreStepping();\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The typical usage is to disable stepping on a specific code path. E.g. when a guest code is executed as a safepoint action, which executes out of an apparent code flow. The calls to disable/restoreStepping can be nested. Every call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#disableStepping()"},"code":true,"children":[{"kind":"text","text":"disableStepping()"}]},{"kind":"text","text":" increments a disabled count by one and every call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#restoreStepping()"},"code":true,"children":[{"kind":"text","text":"restoreStepping()"}]},{"kind":"text","text":" decrements the disabled count by one."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Disabling of stepping does not prevent breakpoints from being hit. After a breakpoint is hit, stepping is allowed automatically for the breakpoint's session, so that the user can continue stepping from the breakpoint location. The stepping is allowed only on the level of the disabled count where the breakpoint is hit. The stepping is still disabled on other disabled count levels."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#restoreStepping()"},"code":true,"children":[{"kind":"text","text":"restoreStepping()"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":324}},{"id":"com.oracle.truffle.api.debug.Debugger#restoreStepping()","anchor":"restoreStepping()","kind":"method","name":"restoreStepping","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"restoreStepping"},{"kind":"punct","text":"()"}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when not in an entered context, or when called without the preceding call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#disableStepping()"},"code":true,"children":[{"kind":"text","text":"disableStepping()"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Restore the stepping on the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Restore the stepping on the current thread. The current thread must be in an entered context and after a call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#disableStepping()"},"code":true,"children":[{"kind":"text","text":"disableStepping()"}]},{"kind":"text","text":". The restore decrements the disabled count by one and allows stepping when zero is reached."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#disableStepping()"},"code":true,"children":[{"kind":"text","text":"disableStepping()"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":343}},{"id":"com.oracle.truffle.api.debug.Debugger#find(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","anchor":"find(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","kind":"method","name":"find","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Debugger","ref":"com.oracle.truffle.api.debug.Debugger"},{"kind":"punct","text":" "},{"kind":"name","text":"find"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"env"},{"kind":"punct","text":")"}],"params":[{"name":"env","type":[{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instrument environment to find debugger for"}]}]}],"returns":{"type":[{"kind":"type","text":"Debugger","ref":"com.oracle.truffle.api.debug.Debugger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an instance of associated debugger, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Finds the debugger associated with a given instrument environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds the debugger associated with a given instrument environment."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":389}},{"id":"com.oracle.truffle.api.debug.Debugger#find(org.graalvm.polyglot.Engine)","anchor":"find(org.graalvm.polyglot.Engine)","kind":"method","name":"find","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Debugger","ref":"com.oracle.truffle.api.debug.Debugger"},{"kind":"punct","text":" "},{"kind":"name","text":"find"},{"kind":"punct","text":"("},{"kind":"type","text":"Engine","ref":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},{"kind":"punct","text":" "},{"kind":"param","text":"engine"},{"kind":"punct","text":")"}],"params":[{"name":"engine","type":[{"kind":"type","text":"Engine","ref":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the engine to find debugger for"}]}]}],"returns":{"type":[{"kind":"type","text":"Debugger","ref":"com.oracle.truffle.api.debug.Debugger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an instance of associated debugger, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Finds the debugger associated with a given an engine."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds the debugger associated with a given an engine."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":400}},{"id":"com.oracle.truffle.api.debug.Debugger#find(com.oracle.truffle.api.TruffleLanguage.Env)","anchor":"find(com.oracle.truffle.api.TruffleLanguage.Env)","kind":"method","name":"find","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Debugger","ref":"com.oracle.truffle.api.debug.Debugger"},{"kind":"punct","text":" "},{"kind":"name","text":"find"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage.Env","ref":"com.oracle.truffle.api.TruffleLanguage$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"env"},{"kind":"punct","text":")"}],"params":[{"name":"env","type":[{"kind":"type","text":"TruffleLanguage.Env","ref":"com.oracle.truffle.api.TruffleLanguage$Env"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language environment to find debugger for"}]}]}],"returns":{"type":[{"kind":"type","text":"Debugger","ref":"com.oracle.truffle.api.debug.Debugger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an instance of associated debugger, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Finds the debugger associated with a given language environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds the debugger associated with a given language environment. There is at most one debugger associated with any "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine"}]},{"kind":"text","text":". Please note that a debugger instance looked up with a language also has access to all other languages and sources that were loaded by them."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":414}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Class that simplifies implementing a debugger on top of Truffle."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Class that simplifies implementing a debugger on top of Truffle. Primarily used to implement debugging protocol support."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Access to the (singleton) instance in an engine, is available via:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#find(org.graalvm.polyglot.Engine)"},"code":true,"children":[{"kind":"text","text":"Debugger.find(Engine)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#find(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"Debugger.find(TruffleLanguage.Env)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#getDebugger()"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.getDebugger()"}]}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"To start new debugger session use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#startSession(com.oracle.truffle.api.debug.SuspendedCallback)"},"code":true,"children":[{"kind":"text","text":"startSession(SuspendedCallback)"}]},{"kind":"text","text":". Please see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"DebuggerSession"}]},{"kind":"text","text":" for a usage example."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The debugger supports diagnostic tracing that can be enabled using the "},{"kind":"code","text":"-Dtruffle.debug.trace=true"},{"kind":"text","text":" Java property. The output of this tracing is not guaranteed and will change without notice."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#startSession(com.oracle.truffle.api.debug.SuspendedCallback)"},"code":true,"children":[{"kind":"text","text":"Debugger.startSession(SuspendedCallback)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"DebuggerSession"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"Breakpoint"}]}]]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/Debugger.java","line":87}},{"id":"com.oracle.truffle.api.debug.DebuggerSession","name":"DebuggerSession","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebuggerSession"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"Closeable","ref":"java.io.Closeable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Closeable.html"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"Closeable","ref":"java.io.Closeable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Closeable.html"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.DebuggerSession#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":265}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#getDebugger()","anchor":"getDebugger()","kind":"method","name":"getDebugger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Debugger","ref":"com.oracle.truffle.api.debug.Debugger"},{"kind":"punct","text":" "},{"kind":"name","text":"getDebugger"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Debugger","ref":"com.oracle.truffle.api.debug.Debugger"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"code":true,"children":[{"kind":"text","text":"debugger"}]},{"kind":"text","text":" instance that this session is associated with."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"code":true,"children":[{"kind":"text","text":"debugger"}]},{"kind":"text","text":" instance that this session is associated with. Can be used also after the session has already been closed."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":276}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#getTopScope(java.lang.String)","anchor":"getTopScope(java.lang.String)","kind":"method","name":"getTopScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"},{"kind":"punct","text":" "},{"kind":"name","text":"getTopScope"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"languageId"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"params":[{"name":"languageId","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"DebugScope","ref":"com.oracle.truffle.api.debug.DebugScope"}]},"throws":[{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when guest language code throws an exception"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a language top scope."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a language top scope. The top scopes have global validity and unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#getScope()"},"code":true,"children":[{"kind":"text","text":"DebugStackFrame.getScope()"}]},{"kind":"text","text":" have no relation to the suspended location."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":287}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#getExportedSymbols()","anchor":"getExportedSymbols()","kind":"method","name":"getExportedSymbols","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", ? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":"> "},{"kind":"name","text":"getExportedSymbols"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", ? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns a polyglot scope - symbols explicitly exported by languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a polyglot scope - symbols explicitly exported by languages."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":310}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#setShowHostStackFrames(boolean)","anchor":"setShowHostStackFrames(boolean)","kind":"method","name":"setShowHostStackFrames","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setShowHostStackFrames"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"showHostStackFrames"},{"kind":"punct","text":")"}],"params":[{"name":"showHostStackFrames","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Set to provide host information in stack traces."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set to provide host information in stack traces. When "},{"kind":"code","text":"true"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#isHost()"},"code":true,"children":[{"kind":"text","text":"host frames"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#isHost()"},"code":true,"children":[{"kind":"text","text":"host trace elements"}]},{"kind":"text","text":" are provided, when available."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackFrame#isHost()"},"code":true,"children":[{"kind":"text","text":"DebugStackFrame.isHost()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugStackTraceElement#isHost()"},"code":true,"children":[{"kind":"text","text":"DebugStackTraceElement.isHost()"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":342}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#setSteppingFilter(com.oracle.truffle.api.debug.SuspensionFilter)","anchor":"setSteppingFilter(com.oracle.truffle.api.debug.SuspensionFilter)","kind":"method","name":"setSteppingFilter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setSteppingFilter"},{"kind":"punct","text":"("},{"kind":"type","text":"SuspensionFilter","ref":"com.oracle.truffle.api.debug.SuspensionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"steppingFilter"},{"kind":"punct","text":")"}],"params":[{"name":"steppingFilter","type":[{"kind":"type","text":"SuspensionFilter","ref":"com.oracle.truffle.api.debug.SuspensionFilter"}]}],"doc":{"summary":[{"kind":"text","text":"Set a stepping suspension filter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set a stepping suspension filter. Prepared steps skip code that does not match this filter."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":355}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#suspendNextExecution()","anchor":"suspendNextExecution()","kind":"method","name":"suspendNextExecution","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"suspendNextExecution"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Suspends the next execution on the first thread that is encountered."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Suspends the next execution on the first thread that is encountered. After the first thread was suspended no further executions are suspended unless "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#suspendNextExecution()"},"code":true,"children":[{"kind":"text","text":"suspendNextExecution()"}]},{"kind":"text","text":" is called again. If multiple threads are executing at the same time then there are no guarantees on which thread is going to be suspended. Will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if the session is already closed."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":399}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#suspendHere(com.oracle.truffle.api.nodes.Node)","anchor":"suspendHere(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"suspendHere","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"suspendHere"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the top Node of the execution, or "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" when there is a guest code execution on the current thread and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback"},"code":true,"children":[{"kind":"text","text":"SuspendedCallback"}]},{"kind":"text","text":" was called, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the current thread is suspended already"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when a node with no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" is provided, or it's root node does not match the current execution root, or the node does not match the current call node, if known."}]}]}],"doc":{"summary":[{"kind":"text","text":"Suspend immediately at the current location of the current execution thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Suspend immediately at the current location of the current execution thread. A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" argument can be provided as an exact current location, if known. This method can be called on the guest execution thread only."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback#onSuspend(com.oracle.truffle.api.debug.SuspendedEvent)"},"code":true,"children":[{"kind":"text","text":"SuspendedCallback.onSuspend(SuspendedEvent)"}]},{"kind":"text","text":" synchronously, with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]},{"kind":"text","text":" created at the actual location of the current thread. This method can not be called from an existing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback#onSuspend(com.oracle.truffle.api.debug.SuspendedEvent)"},"code":true,"children":[{"kind":"text","text":"callback"}]},{"kind":"text","text":"."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":429}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#suspend(java.lang.Thread)","anchor":"suspend(java.lang.Thread)","kind":"method","name":"suspend","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"suspend"},{"kind":"punct","text":"("},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":")"}],"params":[{"name":"t","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]}],"doc":{"summary":[{"kind":"text","text":"Suspends the current or the next execution of a given thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Suspends the current or the next execution of a given thread. Will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if the session is already closed. Note that if a stepping strategy is currently active, we preserve the stepping state."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":543}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#suspendAll()","anchor":"suspendAll()","kind":"method","name":"suspendAll","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"suspendAll"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Suspends the current or the next execution on all threads."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Suspends the current or the next execution on all threads. All new executing threads will start suspended until "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#resumeAll()"},"code":true,"children":[{"kind":"text","text":"resumeAll()"}]},{"kind":"text","text":" is called or the session is closed. Will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if the session is already closed."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":576}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#resumeAll()","anchor":"resumeAll()","kind":"method","name":"resumeAll","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"resumeAll"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Resumes all suspended executions that have not yet been notified."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resumes all suspended executions that have not yet been notified."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":597}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#resume(java.lang.Thread)","anchor":"resume(java.lang.Thread)","kind":"method","name":"resume","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"resume"},{"kind":"punct","text":"("},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":")"}],"params":[{"name":"t","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread to resume"}]}]}],"doc":{"summary":[{"kind":"text","text":"Resumes the execution on a given thread if it has not been suspended yet."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resumes the execution on a given thread if it has not been suspended yet."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":620}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#disposeStepping(java.lang.Thread)","anchor":"disposeStepping(java.lang.Thread)","kind":"method","name":"disposeStepping","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disposeStepping"},{"kind":"punct","text":"("},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":")"}],"params":[{"name":"t","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]}],"doc":{"summary":[{"kind":"text","text":"Dispose stepping on the given thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Dispose stepping on the given thread. All pending steps prepared on a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]},{"kind":"text","text":" on the provided thread are disposed. If no stepping were prepared, this method has no effect. If this is called in combination with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#resume(java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"resume(Thread)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#resumeAll()"},"code":true,"children":[{"kind":"text","text":"resumeAll()"}]},{"kind":"text","text":", be sure to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#disposeStepping(java.lang.Thread)"},"code":true,"children":[{"kind":"text","text":"dispose stepping"}]},{"kind":"text","text":" first and then resume."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":694}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#createPrimitiveValue(java.lang.Object,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"createPrimitiveValue(java.lang.Object,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"createPrimitiveValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"createPrimitiveValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"primitiveValue"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"primitiveValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a primitive value"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"guest language this value is value is associated with. Some value attributes depend on the language, like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue#getMetaObject()"},"code":true,"children":[{"kind":"text","text":"DebugValue.getMetaObject()"}]},{"kind":"text","text":". Can be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":" that wraps the primitive value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the value is not a boxed Java primitive or a String."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":" object that wraps a primitive value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugValue"},"code":true,"children":[{"kind":"text","text":"DebugValue"}]},{"kind":"text","text":" object that wraps a primitive value. Strings and boxed Java primitive types are considered primitive. Throws "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" if the value is not primitive."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":817}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#close()","anchor":"close()","kind":"method","name":"close","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"close"},{"kind":"punct","text":"()"}],"overrides":{"id":"java.io.Closeable#close()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Closeable.html#close()"},"doc":{"summary":[{"kind":"text","text":"Closes the current debugging session and disposes all installed breakpoints."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Closes the current debugging session and disposes all installed breakpoints."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":827}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#getBreakpoints()","anchor":"getBreakpoints()","kind":"method","name":"getBreakpoints","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":"> "},{"kind":"name","text":"getBreakpoints"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all breakpoints "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#install(com.oracle.truffle.api.debug.Breakpoint)"},"code":true,"children":[{"kind":"text","text":"installed"}]},{"kind":"text","text":" in this session, in the install order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all breakpoints "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#install(com.oracle.truffle.api.debug.Breakpoint)"},"code":true,"children":[{"kind":"text","text":"installed"}]},{"kind":"text","text":" in this session, in the install order. The returned list contains a current snapshot of breakpoints, those that were "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#dispose()"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":", or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#install(com.oracle.truffle.api.debug.Breakpoint)"},"code":true,"children":[{"kind":"text","text":"installed on Debugger"}]},{"kind":"text","text":" are not included."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#getBreakpoints()"},"code":true,"children":[{"kind":"text","text":"Debugger.getBreakpoints()"}]}]]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":856}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#setBreakpointsActive(com.oracle.truffle.api.debug.Breakpoint.Kind,boolean)","anchor":"setBreakpointsActive(com.oracle.truffle.api.debug.Breakpoint.Kind,boolean)","kind":"method","name":"setBreakpointsActive","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBreakpointsActive"},{"kind":"punct","text":"("},{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"},{"kind":"punct","text":" "},{"kind":"param","text":"breakpointKind"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"active"},{"kind":"punct","text":")"}],"params":[{"name":"breakpointKind","type":[{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the kind of breakpoints to activate/deactivate"}]}]},{"name":"active","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" to make breakpoints active, "},{"kind":"code","text":"false"},{"kind":"text","text":" to make breakpoints inactive."}]}]}],"doc":{"summary":[{"kind":"text","text":"Set whether breakpoints of the given kind are active in this session."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set whether breakpoints of the given kind are active in this session. This has no effect on breakpoints enabled/disabled state. Breakpoints need to be active to actually break the execution. The breakpoints are active by default."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":888}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#isBreakpointsActive(com.oracle.truffle.api.debug.Breakpoint.Kind)","anchor":"isBreakpointsActive(com.oracle.truffle.api.debug.Breakpoint.Kind)","kind":"method","name":"isBreakpointsActive","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isBreakpointsActive"},{"kind":"punct","text":"("},{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"},{"kind":"punct","text":" "},{"kind":"param","text":"breakpointKind"},{"kind":"punct","text":")"}],"params":[{"name":"breakpointKind","type":[{"kind":"type","text":"Breakpoint.Kind","ref":"com.oracle.truffle.api.debug.Breakpoint$Kind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the kind of breakpoints to test"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Test whether breakpoints of the given kind are active in this session."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Test whether breakpoints of the given kind are active in this session. Breakpoints do not break execution when not active."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":912}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#install(com.oracle.truffle.api.debug.Breakpoint)","anchor":"install(com.oracle.truffle.api.debug.Breakpoint)","kind":"method","name":"install","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":" "},{"kind":"name","text":"install"},{"kind":"punct","text":"("},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":" "},{"kind":"param","text":"breakpoint"},{"kind":"punct","text":")"}],"params":[{"name":"breakpoint","type":[{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new breakpoint"}]}]}],"returns":{"type":[{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the installed breakpoint"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the session has been closed"}]}]}],"doc":{"summary":[{"kind":"text","text":"Adds a new breakpoint to this session and makes it capable of suspending execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a new breakpoint to this session and makes it capable of suspending execution."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The breakpoint suspends execution by making a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback"},"code":true,"children":[{"kind":"text","text":"callback"}]},{"kind":"text","text":" to this session, together with an event description that includes "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getBreakpoints()"},"children":[{"kind":"text","text":"which breakpoint(s)"}]},{"kind":"text","text":" were hit."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":939}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#setAsynchronousStackDepth(int)","anchor":"setAsynchronousStackDepth(int)","kind":"method","name":"setAsynchronousStackDepth","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setAsynchronousStackDepth"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"depth"},{"kind":"punct","text":")"}],"params":[{"name":"depth","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the requested stack depth, 0 means no asynchronous stack frames are required."}]}]}],"doc":{"summary":[{"kind":"text","text":"Request for languages to provide stack frames of scheduled asynchronous execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Request for languages to provide stack frames of scheduled asynchronous execution. Languages might not provide asynchronous stack frames by default for performance reasons. At most "},{"kind":"code","text":"depth"},{"kind":"text","text":" asynchronous stack frames are asked for. When multiple debugger sessions or other instruments call this method, the languages get a maximum depth of these calls and may therefore provide longer asynchronous stacks than requested. Also, languages may provide asynchronous stacks if it's of no performance penalty, or if requested by other options."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Asynchronous stacks can then be accessed via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getAsynchronousStacks()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.getAsynchronousStacks()"}]},{"kind":"text","text":", or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugException#getDebugAsynchronousStacks()"},"code":true,"children":[{"kind":"text","text":"DebugException.getDebugAsynchronousStacks()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getAsynchronousStacks()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.getAsynchronousStacks()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugException#getDebugAsynchronousStacks()"},"code":true,"children":[{"kind":"text","text":"DebugException.getDebugAsynchronousStacks()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":986}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#setContextsListener(com.oracle.truffle.api.debug.DebugContextsListener,boolean)","anchor":"setContextsListener(com.oracle.truffle.api.debug.DebugContextsListener,boolean)","kind":"method","name":"setContextsListener","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setContextsListener"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugContextsListener","ref":"com.oracle.truffle.api.debug.DebugContextsListener"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeActiveContexts"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"type","text":"DebugContextsListener","ref":"com.oracle.truffle.api.debug.DebugContextsListener"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener to receive the context events, or "},{"kind":"code","text":"null"},{"kind":"text","text":" to reset it"}]}]},{"name":"includeActiveContexts","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for present active contexts"}]}]}],"doc":{"summary":[{"kind":"text","text":"Set a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugContextsListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about changes in contexts in guest language application."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugContextsListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about changes in contexts in guest language application. One listener can be set at a time, call with "},{"kind":"code","text":"null"},{"kind":"text","text":" to remove the current listener."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":1000}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#setThreadsListener(com.oracle.truffle.api.debug.DebugThreadsListener,boolean)","anchor":"setThreadsListener(com.oracle.truffle.api.debug.DebugThreadsListener,boolean)","kind":"method","name":"setThreadsListener","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setThreadsListener"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugThreadsListener","ref":"com.oracle.truffle.api.debug.DebugThreadsListener"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeInitializedThreads"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"type","text":"DebugThreadsListener","ref":"com.oracle.truffle.api.debug.DebugThreadsListener"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener to receive the context events"}]}]},{"name":"includeInitializedThreads","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for present initialized threads"}]}]}],"doc":{"summary":[{"kind":"text","text":"Set a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugThreadsListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about changes in threads in guest language application."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebugThreadsListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about changes in threads in guest language application. One listener can be set at a time, call with "},{"kind":"code","text":"null"},{"kind":"text","text":" to remove the current listener."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":1014}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#setSourcePath(java.lang.Iterable)","anchor":"setSourcePath(java.lang.Iterable)","kind":"method","name":"setSourcePath","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setSourcePath"},{"kind":"punct","text":"("},{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"uris"},{"kind":"punct","text":")"}],"params":[{"name":"uris","type":[{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a list of absolute URIs"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when an URI is not absolute"}]}]}],"doc":{"summary":[{"kind":"text","text":"Set a list of source path roots that are used to resolve relative "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getURI()"},"code":true,"children":[{"kind":"text","text":"source URIs"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set a list of source path roots that are used to resolve relative "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getURI()"},"code":true,"children":[{"kind":"text","text":"source URIs"}]},{"kind":"text","text":". All debugger methods that provide "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" object, resolve relative sources with respect to this source-path. When the resolution does not succeed (the relative path does not exist under any of the supplied source-path elements), the original relative "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" is provided."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#resolveSource(com.oracle.truffle.api.source.Source)"},"code":true,"children":[{"kind":"text","text":"resolveSource(Source)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":1030}},{"id":"com.oracle.truffle.api.debug.DebuggerSession#resolveSource(com.oracle.truffle.api.source.Source)","anchor":"resolveSource(com.oracle.truffle.api.source.Source)","kind":"method","name":"resolveSource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"resolveSource"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source to resolve"}]}]}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the provided source if no resolution is necessary, or the resolved source, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when it's not possible to resolve the provided source"}]}]},"doc":{"summary":[{"kind":"text","text":"Resolve the source with respect to the actual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setSourcePath(java.lang.Iterable)"},"code":true,"children":[{"kind":"text","text":"source path"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resolve the source with respect to the actual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setSourcePath(java.lang.Iterable)"},"code":true,"children":[{"kind":"text","text":"source path"}]},{"kind":"text","text":". Sources with relative "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getURI()"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" are subject to resolution to an existing absolute location. The first source-path URI that resolves to an existing location is used."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":1044}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a single debugging session of a Debugger."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a single debugging session of a Debugger."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Session lifetime"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"A debugging client "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#startSession(com.oracle.truffle.api.debug.SuspendedCallback)"},"children":[{"kind":"text","text":"requests"}]},{"kind":"text","text":" a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":" from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"children":[{"kind":"text","text":"Debugger"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A client uses a session to request suspension of guest language execution threads, for example by setting breakpoints or stepping."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"When a session suspends a guest language execution thread, it passes its client a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]},{"kind":"text","text":" via synchronous "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback"},"children":[{"kind":"text","text":"callback"}]},{"kind":"text","text":" on the execution thread."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A suspended guest language execution thread resumes language execution only after the client callback returns."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Sessions that are no longer needed should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#close()"},"children":[{"kind":"text","text":"closed"}]},{"kind":"text","text":"; a closed session has no further affect on engine execution."}]}]]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Debugging requests"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Session clients can manage guest language execution in several ways:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#install(com.oracle.truffle.api.debug.Breakpoint)"},"children":[{"kind":"text","text":"Install"}]},{"kind":"text","text":" a newly created "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"Breakpoint"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#suspendNextExecution()"},"children":[{"kind":"text","text":"Request"}]},{"kind":"text","text":" suspension of the next execution on the first thread that is encountered."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Request a stepping action (e.g. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepInto(int)"},"children":[{"kind":"text","text":"step into"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOver(int)"},"children":[{"kind":"text","text":"step over"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":") on a suspended execution thread, to take effect after the client callback returns."}]}]]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Event merging"}]},{"kind":"paragraph","children":[{"kind":"text","text":"A session may suspend a guest language execution thread in response to more than one request from its client. For example:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"A stepping action may land where a breakpoint is installed."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Multiple installed breakpoints may apply to a particular location."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"In such cases the client receives a single "},{"kind":"emphasis","children":[{"kind":"text","text":"merged"}]},{"kind":"text","text":" event. A call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getBreakpoints()"},"children":[{"kind":"text","text":"SuspendedEvent.getBreakpoints()"}]},{"kind":"text","text":" lists all breakpoints (possibly none) that apply to the suspended event's location."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Multiple sessions"}]},{"kind":"paragraph","children":[{"kind":"text","text":"There can be multiple sessions associated with a single engine, which are independent of one another in the following ways:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Breakpoints created by a session are not visible to clients of other sessions."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A client receives no notification when guest language execution threads are suspended by sessions other than its own."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Events are "},{"kind":"emphasis","children":[{"kind":"text","text":"not merged"}]},{"kind":"text","text":" across sessions. For example, when a guest language execution thread hits a location where two sessions have installed breakpoints, each session notifies its client with a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]},{"kind":"text","text":" instance."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Because all sessions can control engine execution, some interactions are inherently possible. For example:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"A session's client can "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":" an execution at just about any time."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A session's client can "},{"kind":"emphasis","children":[{"kind":"text","text":"starve"}]},{"kind":"text","text":" execution by not returning from the synchronous "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback"},"children":[{"kind":"text","text":"callback"}]},{"kind":"text","text":" on the guest language execution thread."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","language":"java","text":"try (DebuggerSession session = Debugger.find(instrumentEnv).\n                startSession(new SuspendedCallback() {\n    public void onSuspend(SuspendedEvent event) {\n        // step into the next event\n        event.prepareStepInto(1);\n    }\n})) {\n    Source someCode = Source.newBuilder(\"...\",\n                    \"...\", \"example\").build();\n\n    // install line breakpoint\n    session.install(Breakpoint.newBuilder(someCode).lineIs(3).build());\n}"}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/DebuggerSession.java","line":188}},{"id":"com.oracle.truffle.api.debug.DebuggerTags","name":"DebuggerTags","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebuggerTags"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Set of debugger-specific tags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set of debugger-specific tags. Language should "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags"},"code":true,"children":[{"kind":"text","text":"provide"}]},{"kind":"text","text":" an implementation of these tags in order to support specific debugging features."}]}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/debug/DebuggerTags.java","line":55}},{"id":"com.oracle.truffle.api.debug.DebuggerTags$AlwaysHalt","name":"DebuggerTags.AlwaysHalt","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DebuggerTags.AlwaysHalt"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"superclass":[{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"ancestors":[{"id":"com.oracle.truffle.api.instrumentation.Tag"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.debug.DebuggerTags","inherited":[{"from":{"id":"com.oracle.truffle.api.instrumentation.Tag","text":"Tag"},"kind":"class","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","text":"findProvidedTag"},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","text":"getIdentifier"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks program locations where debugger should always halt like if on a breakpoint."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks program locations where debugger should always halt like if on a breakpoint."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"s that support concept similar to JavaScript's "},{"kind":"code","text":"debugger"},{"kind":"text","text":" statement (program locations where execution should always halt) should make sure that appropriate "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"s are tagged with the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerTags$AlwaysHalt"},"code":true,"children":[{"kind":"text","text":"AlwaysHalt"}]},{"kind":"text","text":" tag."}]},{"kind":"code","language":"java","text":"class DebuggerNode extends Node implements InstrumentableNode {\n\n    public boolean hasTag(Class<? extends Tag> tag) {\n        return tag == DebuggerTags.AlwaysHalt.class;\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"All created "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"debugger sessions"}]},{"kind":"text","text":" will suspend on these locations unconditionally."}]}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/debug/DebuggerTags.java","line":76}},{"id":"com.oracle.truffle.api.debug.SourceElement","name":"SourceElement","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceElement"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.SourceElement#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.debug.SourceElement#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.debug.SourceElement#STATEMENT","anchor":"STATEMENT","kind":"enumConstant","name":"STATEMENT","signature":[{"kind":"name","text":"STATEMENT"}],"type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"}],"doc":{"summary":[{"kind":"text","text":"Denotes program locations that represent a statement of a guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Denotes program locations that represent a statement of a guest language. The appropriate nodes are tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$StatementTag"},"code":true,"children":[{"kind":"text","text":"StatementTag"}]},{"kind":"text","text":"."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/SourceElement.java","line":63}},{"id":"com.oracle.truffle.api.debug.SourceElement#EXPRESSION","anchor":"EXPRESSION","kind":"enumConstant","name":"EXPRESSION","signature":[{"kind":"name","text":"EXPRESSION"}],"type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"}],"doc":{"summary":[{"kind":"text","text":"Denotes program locations that represent an expression of a guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Denotes program locations that represent an expression of a guest language. The appropriate nodes are tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ExpressionTag"},"code":true,"children":[{"kind":"text","text":"ExpressionTag"}]},{"kind":"text","text":"."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/SourceElement.java","line":71}},{"id":"com.oracle.truffle.api.debug.SourceElement#ROOT","anchor":"ROOT","kind":"enumConstant","name":"ROOT","signature":[{"kind":"name","text":"ROOT"}],"type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"}],"doc":{"summary":[{"kind":"text","text":"Denotes program locations that represent a function of a guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Denotes program locations that represent a function of a guest language. The appropriate nodes are tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootTag"},"code":true,"children":[{"kind":"text","text":"RootTag"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/SourceElement.java","line":79}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Representation of a guest language source syntax element, that is used for debugging purposes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Representation of a guest language source syntax element, that is used for debugging purposes. It is based on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag"},"code":true,"children":[{"kind":"text","text":"Tag"}]},{"kind":"text","text":" types and this enum defines the set of syntax element kinds known to the debugger."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/SourceElement.java","line":55}},{"id":"com.oracle.truffle.api.debug.StepConfig","name":"StepConfig","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StepConfig"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.StepConfig#newBuilder()","anchor":"newBuilder()","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"StepConfig.Builder","ref":"com.oracle.truffle.api.debug.StepConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"StepConfig.Builder","ref":"com.oracle.truffle.api.debug.StepConfig$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Create a new step configuration builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new step configuration builder."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/StepConfig.java","line":104}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a debugger step configuration."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a debugger step configuration. A debugger step is defined by it's depth and a set of additional properties. The step depth is specified by a usage of one of the appropriate prepare methods on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]},{"kind":"text","text":". The set of additional step properties is defined by this class. These are a step count and a list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement"},"code":true,"children":[{"kind":"text","text":"source elements"}]},{"kind":"text","text":" the step can suspend at."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The rules of stepping through the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement"},"code":true,"children":[{"kind":"text","text":"source elements"}]},{"kind":"text","text":" are following:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement#STATEMENT"},"code":true,"children":[{"kind":"text","text":"SourceElement.STATEMENT"}]},{"kind":"text","text":": steps suspend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#BEFORE"},"code":true,"children":[{"kind":"text","text":"before"}]},{"kind":"text","text":" guest language statements, unless the step returns to a calling location, in which case they suspend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#AFTER"},"code":true,"children":[{"kind":"text","text":"after"}]},{"kind":"text","text":". Step depth is interpreted based on pushed stack frames."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement#EXPRESSION"},"code":true,"children":[{"kind":"text","text":"SourceElement.EXPRESSION"}]},{"kind":"text","text":": steps suspend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#BEFORE"},"code":true,"children":[{"kind":"text","text":"before"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#AFTER"},"code":true,"children":[{"kind":"text","text":"after"}]},{"kind":"text","text":" guest language expressions. Step depth is interpreted based on both pushed stack frames and expression nesting hierarchy."}]}]]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/StepConfig.java","line":73}},{"id":"com.oracle.truffle.api.debug.StepConfig$Builder","name":"StepConfig.Builder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StepConfig.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.debug.StepConfig","members":[{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#sourceElements(com.oracle.truffle.api.debug.SourceElement...)","anchor":"sourceElements(com.oracle.truffle.api.debug.SourceElement...)","kind":"method","name":"sourceElements","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StepConfig.Builder","ref":"com.oracle.truffle.api.debug.StepConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceElements"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"... "},{"kind":"param","text":"elements"},{"kind":"punct","text":")"}],"params":[{"name":"elements","type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non-empty list of source elements"}]}]}],"returns":{"type":[{"kind":"type","text":"StepConfig.Builder","ref":"com.oracle.truffle.api.debug.StepConfig$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Provide a list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement"},"code":true,"children":[{"kind":"text","text":"SourceElement"}]},{"kind":"text","text":"s that are enabled for the step."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provide a list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement"},"code":true,"children":[{"kind":"text","text":"SourceElement"}]},{"kind":"text","text":"s that are enabled for the step. It must be a subset of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement"},"code":true,"children":[{"kind":"text","text":"SourceElement"}]},{"kind":"text","text":"s enabled in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"DebuggerSession"}]},{"kind":"text","text":" which the step is prepared for. At least one source element needs to be provided and can only be invoked once per builder. When not called, by default all source elements enabled in the debugger session are also enabled for the step."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/StepConfig.java","line":174}},{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#suspendAnchors(com.oracle.truffle.api.debug.SourceElement,com.oracle.truffle.api.debug.SuspendAnchor...)","anchor":"suspendAnchors(com.oracle.truffle.api.debug.SourceElement,com.oracle.truffle.api.debug.SuspendAnchor...)","kind":"method","name":"suspendAnchors","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StepConfig.Builder","ref":"com.oracle.truffle.api.debug.StepConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"suspendAnchors"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"element"},{"kind":"punct","text":", "},{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"},{"kind":"punct","text":"... "},{"kind":"param","text":"anchors"},{"kind":"punct","text":")"}],"params":[{"name":"element","type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the element to set the suspend anchor for"}]}]},{"name":"anchors","type":[{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a list of suspend anchors"}]}]}],"returns":{"type":[{"kind":"type","text":"StepConfig.Builder","ref":"com.oracle.truffle.api.debug.StepConfig$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Provide a list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor"},"code":true,"children":[{"kind":"text","text":"SuspendAnchor"}]},{"kind":"text","text":"s for individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement"},"code":true,"children":[{"kind":"text","text":"SourceElement"}]},{"kind":"text","text":"s."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provide a list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor"},"code":true,"children":[{"kind":"text","text":"SuspendAnchor"}]},{"kind":"text","text":"s for individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement"},"code":true,"children":[{"kind":"text","text":"SourceElement"}]},{"kind":"text","text":"s. By default, following suspend anchors are applied:"}]},{"kind":"table","head":[[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement"},"code":true,"children":[{"kind":"text","text":"SourceElement"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor"},"code":true,"children":[{"kind":"text","text":"SuspendAnchor"}]},{"kind":"text","text":"s"}]}]]],"rows":[[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement#ROOT"},"code":true,"children":[{"kind":"text","text":"ROOT"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#BEFORE"},"code":true,"children":[{"kind":"text","text":"BEFORE"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#AFTER"},"code":true,"children":[{"kind":"text","text":"AFTER"}]}]}]],[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement#STATEMENT"},"code":true,"children":[{"kind":"text","text":"STATEMENT"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#BEFORE"},"code":true,"children":[{"kind":"text","text":"BEFORE"}]}]}]],[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SourceElement#EXPRESSION"},"code":true,"children":[{"kind":"text","text":"EXPRESSION"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#BEFORE"},"code":true,"children":[{"kind":"text","text":"BEFORE"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#AFTER"},"code":true,"children":[{"kind":"text","text":"AFTER"}]}]}]]]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be called repeatedly to override the defaults."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/StepConfig.java","line":216}},{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#count(int)","anchor":"count(int)","kind":"method","name":"count","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StepConfig.Builder","ref":"com.oracle.truffle.api.debug.StepConfig$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"count"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"count"},{"kind":"punct","text":")"}],"params":[{"name":"count","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"StepConfig.Builder","ref":"com.oracle.truffle.api.debug.StepConfig$Builder"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"count <= 0"}]}]}],"doc":{"summary":[{"kind":"text","text":"Provide the step count."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provide the step count. It specifies the number of times the step repeats itself before it suspends the execution. Can only be invoked once per builder."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/StepConfig.java","line":243}},{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StepConfig","ref":"com.oracle.truffle.api.debug.StepConfig"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"StepConfig","ref":"com.oracle.truffle.api.debug.StepConfig"}]},"doc":{"summary":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"step configuration"}]},{"kind":"text","text":" from this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"step configuration"}]},{"kind":"text","text":" from this builder."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/StepConfig.java","line":259}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig#newBuilder()"},"code":true,"children":[{"kind":"text","text":"StepConfig.newBuilder()"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/StepConfig.java","line":155}},{"id":"com.oracle.truffle.api.debug.SuspendAnchor","name":"SuspendAnchor","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"SuspendAnchor"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.SuspendAnchor#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.debug.SuspendAnchor#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.debug.SuspendAnchor#BEFORE","anchor":"BEFORE","kind":"enumConstant","name":"BEFORE","signature":[{"kind":"name","text":"BEFORE"}],"type":[{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"}],"doc":{"summary":[{"kind":"text","text":"Denotes suspension just before execution of a guest language source location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Denotes suspension just before execution of a guest language source location."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/debug/SuspendAnchor.java","line":56}},{"id":"com.oracle.truffle.api.debug.SuspendAnchor#AFTER","anchor":"AFTER","kind":"enumConstant","name":"AFTER","signature":[{"kind":"name","text":"AFTER"}],"type":[{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"}],"doc":{"summary":[{"kind":"text","text":"Denotes suspension just after execution of a guest language source location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Denotes suspension just after execution of a guest language source location."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/debug/SuspendAnchor.java","line":63}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Describes where, within a guest language source section, the suspend position is."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Describes where, within a guest language source section, the suspend position is."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getSuspendAnchor()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.getSuspendAnchor()"}]}]]},"since":"0.32","source":{"path":"com/oracle/truffle/api/debug/SuspendAnchor.java","line":49}},{"id":"com.oracle.truffle.api.debug.SuspendedCallback","name":"SuspendedCallback","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"SuspendedCallback"}],"members":[{"id":"com.oracle.truffle.api.debug.SuspendedCallback#onSuspend(com.oracle.truffle.api.debug.SuspendedEvent)","anchor":"onSuspend(com.oracle.truffle.api.debug.SuspendedEvent)","kind":"method","name":"onSuspend","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onSuspend"},{"kind":"punct","text":"("},{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"},{"kind":"punct","text":" "},{"kind":"param","text":"event"},{"kind":"punct","text":")"}],"params":[{"name":"event","type":[{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the suspended event"}]}]}],"doc":{"summary":[{"kind":"text","text":"Called whenever the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"code":true,"children":[{"kind":"text","text":"debugger"}]},{"kind":"text","text":" suspends for a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called whenever the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"code":true,"children":[{"kind":"text","text":"debugger"}]},{"kind":"text","text":" suspends for a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":". If multiple threads would trigger a suspended event then each thread is going to get notified separately."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedCallback.java","line":63}}],"doc":{"summary":[{"kind":"text","text":"Callback invoked whenever the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"code":true,"children":[{"kind":"text","text":"debugger"}]},{"kind":"text","text":" suspends for a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Callback invoked whenever the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"code":true,"children":[{"kind":"text","text":"debugger"}]},{"kind":"text","text":" suspends for a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"session"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"DebuggerSession"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]}]]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedCallback.java","line":53}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent","name":"SuspendedEvent","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SuspendedEvent"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getSession()","anchor":"getSession()","kind":"method","name":"getSession","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebuggerSession","ref":"com.oracle.truffle.api.debug.DebuggerSession"},{"kind":"punct","text":" "},{"kind":"name","text":"getSession"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebuggerSession","ref":"com.oracle.truffle.api.debug.DebuggerSession"}]},"doc":{"summary":[{"kind":"text","text":"Returns the debugger session this suspended event was created for."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the debugger session this suspended event was created for."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":244}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns the guest language source section of the AST node before/after the execution is suspended."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the guest language source section of the AST node before/after the execution is suspended. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if no source section information is available."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":269}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getSuspendAnchor()","anchor":"getSuspendAnchor()","kind":"method","name":"getSuspendAnchor","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"},{"kind":"punct","text":" "},{"kind":"name","text":"getSuspendAnchor"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SuspendAnchor","ref":"com.oracle.truffle.api.debug.SuspendAnchor"}]},"doc":{"summary":[{"kind":"text","text":"Returns where, within the guest language "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":", the suspended position is."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns where, within the guest language "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":", the suspended position is."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":280}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#hasSourceElement(com.oracle.truffle.api.debug.SourceElement)","anchor":"hasSourceElement(com.oracle.truffle.api.debug.SourceElement)","kind":"method","name":"hasSourceElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasSourceElement"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceElement"},{"kind":"punct","text":")"}],"params":[{"name":"sourceElement","type":[{"kind":"type","text":"SourceElement","ref":"com.oracle.truffle.api.debug.SourceElement"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source element to check, must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the underlying guest language source location is denoted as the source element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the underlying guest language source location is denoted as the source element."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":292}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isLanguageContextInitialized()","anchor":"isLanguageContextInitialized()","kind":"method","name":"isLanguageContextInitialized","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isLanguageContextInitialized"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Test if the language context of the source of the event is initialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Test if the language context of the source of the event is initialized."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":301}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getInputValues()","anchor":"getInputValues()","kind":"method","name":"getInputValues","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getInputValues"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the array of input values, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no input is available."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the input values of the current source element gathered from return values of it's executed children."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the input values of the current source element gathered from return values of it's executed children. The input values are available only during stepping through the source elements hierarchy and only on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#AFTER"},"code":true,"children":[{"kind":"text","text":"AFTER"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getSuspendAnchor()"},"code":true,"children":[{"kind":"text","text":"suspend anchor"}]},{"kind":"text","text":". There can be "},{"kind":"code","text":"null"},{"kind":"text","text":" values in the returned array for children we did not intercept return values from."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":316}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getReturnValue()","anchor":"getReturnValue()","kind":"method","name":"getReturnValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"name","text":"getReturnValue"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}]},"doc":{"summary":[{"kind":"text","text":"Returns the return value of the currently executed source location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the return value of the currently executed source location. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the execution is suspended "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#BEFORE"},"code":true,"children":[{"kind":"text","text":"before"}]},{"kind":"text","text":" a guest language location. The returned value is "},{"kind":"code","text":"null"},{"kind":"text","text":" if an exception occurred during execution of the instrumented source element, the exception is provided by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getException()"},"code":true,"children":[{"kind":"text","text":"getException()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is not thread-safe and will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if called on another thread than it was created with."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":344}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#setReturnValue(com.oracle.truffle.api.debug.DebugValue)","anchor":"setReturnValue(com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"setReturnValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setReturnValue"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"newValue"},{"kind":"punct","text":")"}],"params":[{"name":"newValue","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new return value, can not be "},{"kind":"code","text":"null"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getReturnValue()"},"code":true,"children":[{"kind":"text","text":"getReturnValue()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Change the return value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Change the return value. When there is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getReturnValue()"},"code":true,"children":[{"kind":"text","text":"return value"}]},{"kind":"text","text":" at the current location, this method modifies the return value to a new one."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":365}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getException()","anchor":"getException()","kind":"method","name":"getException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"},{"kind":"punct","text":" "},{"kind":"name","text":"getException"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugException","ref":"com.oracle.truffle.api.debug.DebugException"}]},"doc":{"summary":[{"kind":"text","text":"Returns the debugger representation of a guest language exception that caused this suspended event (via an exception breakpoint, for instance)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the debugger representation of a guest language exception that caused this suspended event (via an exception breakpoint, for instance). Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" when no exception occurred."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":380}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isBreakpointHit()","anchor":"isBreakpointHit()","kind":"method","name":"isBreakpointHit","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isBreakpointHit"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if a breakpoint hit was the reason for the suspension."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if a breakpoint hit was the reason for the suspension. A breakpoint hit can happen at the same time as a step completed and/or an unwind. Hence, a caller of this method is responsible for also taking the results of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isUnwind()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.isUnwind()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isStep()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.isStep()"}]},{"kind":"text","text":" into account."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":392}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isStep()","anchor":"isStep()","kind":"method","name":"isStep","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isStep"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if a step was the reason for the suspension."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if a step was the reason for the suspension. A step can be either a step over, step into or a step out. A step that is completed can happen at the same time as an unwind and/or a breakpoint hit. Hence, a caller of this method is responsible for also taking the results of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isUnwind()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.isUnwind()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isBreakpointHit()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.isBreakpointHit()"}]},{"kind":"text","text":" into account."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":405}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isUnwind()","anchor":"isUnwind()","kind":"method","name":"isUnwind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isUnwind"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if an unwind was the reason for the suspension."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if an unwind was the reason for the suspension. An unwind can complete at the same time as a step and/or a breakpoint hit. Hence, a caller of this method is responsible for also taking the results of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isStep()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.isStep()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#isBreakpointHit()"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent.isBreakpointHit()"}]},{"kind":"text","text":" into account."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":417}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getBreakpointConditionException(com.oracle.truffle.api.debug.Breakpoint)","anchor":"getBreakpointConditionException(com.oracle.truffle.api.debug.Breakpoint)","kind":"method","name":"getBreakpointConditionException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getBreakpointConditionException"},{"kind":"punct","text":"("},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":" "},{"kind":"param","text":"breakpoint"},{"kind":"punct","text":")"}],"params":[{"name":"breakpoint","type":[{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a breakpoint associated with this event"}]}]}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the cause of condition failure"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the cause of failure, if any, during evaluation of a breakpoint's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#setCondition(java.lang.String)"},"children":[{"kind":"text","text":"condition"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the cause of failure, if any, during evaluation of a breakpoint's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint#setCondition(java.lang.String)"},"children":[{"kind":"text","text":"condition"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":437}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getBreakpoints()","anchor":"getBreakpoints()","kind":"method","name":"getBreakpoints","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":"> "},{"kind":"name","text":"getBreakpoints"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Breakpoint","ref":"com.oracle.truffle.api.debug.Breakpoint"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an unmodifiable list of breakpoints"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"breakpoints"}]},{"kind":"text","text":" that individually would cause the \"hit\" where execution is suspended."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"breakpoints"}]},{"kind":"text","text":" that individually would cause the \"hit\" where execution is suspended. If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger#install(com.oracle.truffle.api.debug.Breakpoint)"},"code":true,"children":[{"kind":"text","text":"Debugger-associated"}]},{"kind":"text","text":" breakpoint was hit, it is not possible to change the state of returned breakpoint."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":454}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getTopStackFrame()","anchor":"getTopStackFrame()","kind":"method","name":"getTopStackFrame","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"getTopStackFrame"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"}]},"doc":{"summary":[{"kind":"text","text":"Returns the topmost stack frame returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getStackFrames()"},"code":true,"children":[{"kind":"text","text":"getStackFrames()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the topmost stack frame returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getStackFrames()"},"code":true,"children":[{"kind":"text","text":"getStackFrames()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is not thread-safe and will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if called on another thread than it was created with."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getStackFrames()"},"code":true,"children":[{"kind":"text","text":"getStackFrames()"}]}]]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":468}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getStackFrames()","anchor":"getStackFrames()","kind":"method","name":"getStackFrames","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"},{"kind":"punct","text":"> "},{"kind":"name","text":"getStackFrames"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns a list of guest language stack frame objects that indicate the current guest language location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a list of guest language stack frame objects that indicate the current guest language location. There is always at least one, the topmost, stack frame available. The returned stack frames are usable only during "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback#onSuspend(com.oracle.truffle.api.debug.SuspendedEvent)"},"code":true,"children":[{"kind":"text","text":"suspend"}]},{"kind":"text","text":" and should not be stored permanently."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is not thread-safe and will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" if called on another thread than it was created with."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":485}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getAsynchronousStacks()","anchor":"getAsynchronousStacks()","kind":"method","name":"getAsynchronousStacks","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugStackTraceElement","ref":"com.oracle.truffle.api.debug.DebugStackTraceElement"},{"kind":"punct","text":">> "},{"kind":"name","text":"getAsynchronousStacks"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"DebugStackTraceElement","ref":"com.oracle.truffle.api.debug.DebugStackTraceElement"},{"kind":"punct","text":">>"}]},"doc":{"summary":[{"kind":"text","text":"Get a list of asynchronous stack traces that led to scheduling of the current execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a list of asynchronous stack traces that led to scheduling of the current execution. Returns an empty list if no asynchronous stack is known. The first asynchronous stack is at the first index in the list. A possible next asynchronous stack (that scheduled execution of the previous one) is at the next index in the list."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Languages might not provide asynchronous stack traces by default for performance reasons. Call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setAsynchronousStackDepth(int)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setAsynchronousStackDepth(int)"}]},{"kind":"text","text":" to request asynchronous stacks. Languages may provide asynchronous stacks if it's of no performance penalty, or if requested by other options."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setAsynchronousStackDepth(int)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setAsynchronousStackDepth(int)"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":507}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()","anchor":"prepareContinue()","kind":"method","name":"prepareContinue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareContinue"},{"kind":"punct","text":"()"}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"continue"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"code":true,"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":" is prepared already."}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to execute in Continue mode when guest language program execution resumes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to execute in Continue mode when guest language program execution resumes. In this mode execution will continue until either:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"execution arrives at a node to which an enabled breakpoint is attached, "},{"kind":"strong","children":[{"kind":"text","text":"or:"}]}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"execution completes."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe and the prepared Continue mode is appended to any other previously prepared modes. No further modes can be prepared after continue."}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":540}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepInto(int)","anchor":"prepareStepInto(int)","kind":"method","name":"prepareStepInto","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareStepInto"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"stepCount"},{"kind":"punct","text":")"}],"params":[{"name":"stepCount","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of times to perform StepInto before halting"}]}]}],"returns":{"type":[{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this event instance for an easy concatenation of method calls"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"stepCount <= 0"}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"continue"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"code":true,"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":" is prepared already."}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step into"}]},{"kind":"text","text":" mode when guest language program execution resumes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step into"}]},{"kind":"text","text":" mode when guest language program execution resumes. See the description of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepInto(com.oracle.truffle.api.debug.StepConfig)"},"code":true,"children":[{"kind":"text","text":"prepareStepInto(StepConfig)"}]},{"kind":"text","text":" for details, calling this is identical to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepInto(com.oracle.truffle.api.debug.StepConfig)"},"code":true,"children":[{"kind":"text","text":"prepareStepInto"}]},{"kind":"code","text":".("},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"code","text":"."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig#newBuilder()"},"code":true,"children":[{"kind":"text","text":"newBuilder"}]},{"kind":"code","text":"()."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#count(int)"},"code":true,"children":[{"kind":"text","text":"count"}]},{"kind":"code","text":"(stepCount)."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#build()"},"code":true,"children":[{"kind":"text","text":"build"}]},{"kind":"code","text":"())"},{"kind":"text","text":" ."}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":558}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOut(int)","anchor":"prepareStepOut(int)","kind":"method","name":"prepareStepOut","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareStepOut"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"stepCount"},{"kind":"punct","text":")"}],"params":[{"name":"stepCount","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of times to perform StepOver before halting"}]}]}],"returns":{"type":[{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this event instance for an easy concatenation of method calls"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"stepCount <= 0"}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"continue"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"code":true,"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":" is prepared already."}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step out"}]},{"kind":"text","text":" mode when guest language program execution resumes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step out"}]},{"kind":"text","text":" mode when guest language program execution resumes. See the description of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOut(com.oracle.truffle.api.debug.StepConfig)"},"code":true,"children":[{"kind":"text","text":"prepareStepOut(StepConfig)"}]},{"kind":"text","text":" for details, calling this is identical to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOut(com.oracle.truffle.api.debug.StepConfig)"},"code":true,"children":[{"kind":"text","text":"prepareStepOut"}]},{"kind":"code","text":".("},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"code","text":"."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig#newBuilder()"},"code":true,"children":[{"kind":"text","text":"newBuilder"}]},{"kind":"code","text":"()."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#count(int)"},"code":true,"children":[{"kind":"text","text":"count"}]},{"kind":"code","text":"(stepCount)."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#build()"},"code":true,"children":[{"kind":"text","text":"build"}]},{"kind":"code","text":"())"},{"kind":"text","text":" ."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":576}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOver(int)","anchor":"prepareStepOver(int)","kind":"method","name":"prepareStepOver","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareStepOver"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"stepCount"},{"kind":"punct","text":")"}],"params":[{"name":"stepCount","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of times to perform step over before halting"}]}]}],"returns":{"type":[{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this event instance for an easy concatenation of method calls"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"stepCount <= 0"}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"continue"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"code":true,"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":" is prepared already."}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step over"}]},{"kind":"text","text":" mode when guest language program execution resumes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step over"}]},{"kind":"text","text":" mode when guest language program execution resumes. See the description of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOver(com.oracle.truffle.api.debug.StepConfig)"},"code":true,"children":[{"kind":"text","text":"prepareStepOver(StepConfig)"}]},{"kind":"text","text":" for details, calling this is identical to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOver(com.oracle.truffle.api.debug.StepConfig)"},"code":true,"children":[{"kind":"text","text":"prepareStepOver"}]},{"kind":"code","text":".("},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"code","text":"."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig#newBuilder()"},"code":true,"children":[{"kind":"text","text":"newBuilder"}]},{"kind":"code","text":"()."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#count(int)"},"code":true,"children":[{"kind":"text","text":"count"}]},{"kind":"code","text":"(stepCount)."},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#build()"},"code":true,"children":[{"kind":"text","text":"build"}]},{"kind":"code","text":"())"},{"kind":"text","text":" ."}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":594}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepInto(com.oracle.truffle.api.debug.StepConfig)","anchor":"prepareStepInto(com.oracle.truffle.api.debug.StepConfig)","kind":"method","name":"prepareStepInto","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareStepInto"},{"kind":"punct","text":"("},{"kind":"type","text":"StepConfig","ref":"com.oracle.truffle.api.debug.StepConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"stepConfig"},{"kind":"punct","text":")"}],"params":[{"name":"stepConfig","type":[{"kind":"type","text":"StepConfig","ref":"com.oracle.truffle.api.debug.StepConfig"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the step configuration"}]}]}],"returns":{"type":[{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this event instance for an easy concatenation of method calls"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"continue"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"code":true,"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":" is prepared already, or when the current debugger session has no source elements enabled for stepping."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"text","text":" contains source elements not enabled for stepping in the current debugger session."}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step into"}]},{"kind":"text","text":" mode when guest language program execution resumes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step into"}]},{"kind":"text","text":" mode when guest language program execution resumes. In this mode, the current thread continues until it arrives to a code location with one of the enabled "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#sourceElements(com.oracle.truffle.api.debug.SourceElement...)"},"code":true,"children":[{"kind":"text","text":"source elements"}]},{"kind":"text","text":" and repeats that process "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#count(int)"},"code":true,"children":[{"kind":"text","text":"step count"}]},{"kind":"text","text":" times. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"text","text":" for the details about the stepping behavior."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This mode persists until the thread resumes and then suspends, at which time the mode reverts to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"children":[{"kind":"text","text":"Continue"}]},{"kind":"text","text":", or the thread dies."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A breakpoint set at a location where execution would suspend is treated specially as a single event, to avoid multiple suspensions at a single location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe and the prepared StepInto mode is appended to any other previously prepared modes."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":623}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOut(com.oracle.truffle.api.debug.StepConfig)","anchor":"prepareStepOut(com.oracle.truffle.api.debug.StepConfig)","kind":"method","name":"prepareStepOut","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareStepOut"},{"kind":"punct","text":"("},{"kind":"type","text":"StepConfig","ref":"com.oracle.truffle.api.debug.StepConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"stepConfig"},{"kind":"punct","text":")"}],"params":[{"name":"stepConfig","type":[{"kind":"type","text":"StepConfig","ref":"com.oracle.truffle.api.debug.StepConfig"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the step configuration"}]}]}],"returns":{"type":[{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this event instance for an easy concatenation of method calls"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"continue"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"code":true,"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":" is prepared already, or when the current debugger session has no source elements enabled for stepping."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"text","text":" contains source elements not enabled for stepping in the current debugger session."}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step out"}]},{"kind":"text","text":" mode when guest language program execution resumes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step out"}]},{"kind":"text","text":" mode when guest language program execution resumes. In this mode, the current thread continues until it arrives to an enclosing code location with one of the enabled "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#sourceElements(com.oracle.truffle.api.debug.SourceElement...)"},"code":true,"children":[{"kind":"text","text":"source elements"}]},{"kind":"text","text":" and repeats that process "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#count(int)"},"code":true,"children":[{"kind":"text","text":"step count"}]},{"kind":"text","text":" times. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"text","text":" for the details about the stepping behavior."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This mode persists until the thread resumes and then suspends, at which time the mode reverts to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"children":[{"kind":"text","text":"Continue"}]},{"kind":"text","text":", or the thread dies."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A breakpoint set at a location where execution would suspend is treated specially as a single event, to avoid multiple suspensions at a single location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe and the prepared StepInto mode is appended to any other previously prepared modes."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":654}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOver(com.oracle.truffle.api.debug.StepConfig)","anchor":"prepareStepOver(com.oracle.truffle.api.debug.StepConfig)","kind":"method","name":"prepareStepOver","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareStepOver"},{"kind":"punct","text":"("},{"kind":"type","text":"StepConfig","ref":"com.oracle.truffle.api.debug.StepConfig"},{"kind":"punct","text":" "},{"kind":"param","text":"stepConfig"},{"kind":"punct","text":")"}],"params":[{"name":"stepConfig","type":[{"kind":"type","text":"StepConfig","ref":"com.oracle.truffle.api.debug.StepConfig"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the step configuration"}]}]}],"returns":{"type":[{"kind":"type","text":"SuspendedEvent","ref":"com.oracle.truffle.api.debug.SuspendedEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this event instance for an easy concatenation of method calls"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"continue"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"code":true,"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":" is prepared already, or when the current debugger session has no source elements enabled for stepping."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"text","text":" contains source elements not enabled for stepping in the current debugger session."}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step over"}]},{"kind":"text","text":" mode when guest language program execution resumes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to execute in "},{"kind":"strong","children":[{"kind":"text","text":"step over"}]},{"kind":"text","text":" mode when guest language program execution resumes. In this mode, the current thread continues until it arrives to a code location with one of the enabled "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#sourceElements(com.oracle.truffle.api.debug.SourceElement...)"},"code":true,"children":[{"kind":"text","text":"source elements"}]},{"kind":"text","text":", ignoring any nested ones, and repeats that process "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig$Builder#count(int)"},"code":true,"children":[{"kind":"text","text":"step count"}]},{"kind":"text","text":" times. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.StepConfig"},"code":true,"children":[{"kind":"text","text":"StepConfig"}]},{"kind":"text","text":" for the details about the stepping behavior."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This mode persists until the thread resumes and then suspends, at which time the mode reverts to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"children":[{"kind":"text","text":"Continue"}]},{"kind":"text","text":", or the thread dies."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A breakpoint set at a location where execution would suspend is treated specially as a single event, to avoid multiple suspensions at a single location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe and the prepared StepInto mode is appended to any other previously prepared modes."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":686}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareUnwindFrame(com.oracle.truffle.api.debug.DebugStackFrame)","anchor":"prepareUnwindFrame(com.oracle.truffle.api.debug.DebugStackFrame)","kind":"method","name":"prepareUnwindFrame","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareUnwindFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"frame","type":[{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to unwind"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the frame is not on the execution stack of this event"}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to unwind a frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to unwind a frame. This frame and all frames above it are unwound off the execution stack. The frame needs to be on the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getStackFrames()"},"code":true,"children":[{"kind":"text","text":"execution stack of this event"}]},{"kind":"text","text":"."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":713}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareUnwindFrame(com.oracle.truffle.api.debug.DebugStackFrame,com.oracle.truffle.api.debug.DebugValue)","anchor":"prepareUnwindFrame(com.oracle.truffle.api.debug.DebugStackFrame,com.oracle.truffle.api.debug.DebugValue)","kind":"method","name":"prepareUnwindFrame","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareUnwindFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"},{"kind":"punct","text":" "},{"kind":"param","text":"immediateReturnValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"frame","type":[{"kind":"type","text":"DebugStackFrame","ref":"com.oracle.truffle.api.debug.DebugStackFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to unwind"}]}]},{"name":"immediateReturnValue","type":[{"kind":"type","text":"DebugValue","ref":"com.oracle.truffle.api.debug.DebugValue"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to return"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the frame is not on the execution stack of this event"}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to unwind a frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to unwind a frame. This frame and all frames above it are unwound off the execution stack and the frame will return immediately with "},{"kind":"code","text":"immediateReturnValue"},{"kind":"text","text":". If the return value is "},{"kind":"code","text":"null"},{"kind":"text","text":", the unwound frame will instead be reentered upon thread resumption. The frame needs to be on the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getStackFrames()"},"code":true,"children":[{"kind":"text","text":"execution stack of this event"}]},{"kind":"text","text":"."}]}]},"since":"21.1.0","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":729}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()","anchor":"prepareKill()","kind":"method","name":"prepareKill","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareKill"},{"kind":"punct","text":"()"}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"continue"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"code":true,"children":[{"kind":"text","text":"kill"}]},{"kind":"text","text":" is prepared already."}]}]}],"doc":{"summary":[{"kind":"text","text":"Prepare to terminate the suspended execution represented by this event."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepare to terminate the suspended execution represented by this event. One use-case for this method is to shield an execution of an unknown code with a timeout:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is thread-safe and the prepared termination is appended to any other previously prepared modes. No further modes can be prepared after kill."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":748}},{"id":"com.oracle.truffle.api.debug.SuspendedEvent#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.17","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":755}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Access for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"code":true,"children":[{"kind":"text","text":"Debugger"}]},{"kind":"text","text":" clients to the state of a guest language execution thread that has been suspended, for example by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"Breakpoint"}]},{"kind":"text","text":" or stepping action."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Access for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"code":true,"children":[{"kind":"text","text":"Debugger"}]},{"kind":"text","text":" clients to the state of a guest language execution thread that has been suspended, for example by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"code":true,"children":[{"kind":"text","text":"Breakpoint"}]},{"kind":"text","text":" or stepping action."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Event lifetime"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession"},"code":true,"children":[{"kind":"text","text":"DebuggerSession"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"instruments"}]},{"kind":"text","text":" guest language code in order to implement "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Breakpoint"},"children":[{"kind":"text","text":"breakpoints"}]},{"kind":"text","text":", stepping actions, or other debugging actions on behalf of the session's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.Debugger"},"children":[{"kind":"text","text":"debugger"}]},{"kind":"text","text":" client."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A session may choose to suspend a guest language execution thread when it receives (synchronous) notification on the execution thread that it has reached an AST location instrumented by the session."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The session passes a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent"},"code":true,"children":[{"kind":"text","text":"SuspendedEvent"}]},{"kind":"text","text":" to the debugger client (synchronously) in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedCallback#onSuspend(com.oracle.truffle.api.debug.SuspendedEvent)"},"children":[{"kind":"text","text":"callback"}]},{"kind":"text","text":" on the guest language execution thread."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Clients may access certain event state only on the execution thread where the event was created and notification received; access from other threads can throws "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":". Please see the javadoc of the individual method for details."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A suspended thread resumes guest language execution after the client callback returns and the thread unwinds back to instrumentation code in the AST."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"All event methods throw "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" after the suspended thread resumes guest language execution."}]}]]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Access to execution state"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Method "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getStackFrames()"},"code":true,"children":[{"kind":"text","text":"getStackFrames()"}]},{"kind":"text","text":" describes the suspended thread's location in guest language code. This information becomes unusable beyond the lifetime of the event and must not be stored."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Method "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getReturnValue()"},"code":true,"children":[{"kind":"text","text":"getReturnValue()"}]},{"kind":"text","text":" describes a local result when the thread is suspended just "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendAnchor#AFTER"},"code":true,"children":[{"kind":"text","text":"after"}]},{"kind":"text","text":" the code source section."}]}]]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Next debugging action"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Clients use the following methods to request the debugging action(s) that will take effect when the event's thread resumes guest language execution. All prepare requests accumulate until resumed."}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepInto(int)"},"code":true,"children":[{"kind":"text","text":"prepareStepInto(int)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepInto(com.oracle.truffle.api.debug.StepConfig)"},"code":true,"children":[{"kind":"text","text":"prepareStepInto(StepConfig)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOut(int)"},"code":true,"children":[{"kind":"text","text":"prepareStepOut(int)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOut(com.oracle.truffle.api.debug.StepConfig)"},"code":true,"children":[{"kind":"text","text":"prepareStepOut(StepConfig)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOver(int)"},"code":true,"children":[{"kind":"text","text":"prepareStepOver(int)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOver(com.oracle.truffle.api.debug.StepConfig)"},"code":true,"children":[{"kind":"text","text":"prepareStepOver(StepConfig)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareUnwindFrame(com.oracle.truffle.api.debug.DebugStackFrame)"},"code":true,"children":[{"kind":"text","text":"prepareUnwindFrame(DebugStackFrame)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareUnwindFrame(com.oracle.truffle.api.debug.DebugStackFrame,com.oracle.truffle.api.debug.DebugValue)"},"code":true,"children":[{"kind":"text","text":"prepareUnwindFrame(DebugStackFrame, DebugValue)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareKill()"},"code":true,"children":[{"kind":"text","text":"prepareKill()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"prepareContinue()"}]}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If no debugging action is requested, the thread resumes, and any pending steps prepared by previous events remain active. An excplicit "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue()"},"code":true,"children":[{"kind":"text","text":"continue"}]},{"kind":"text","text":" cancels those pending steps."}]}]},"since":"0.9","source":{"path":"com/oracle/truffle/api/debug/SuspendedEvent.java","line":139}},{"id":"com.oracle.truffle.api.debug.SuspensionFilter","name":"SuspensionFilter","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SuspensionFilter"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.debug.SuspensionFilter#newBuilder()","anchor":"newBuilder()","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Returns a builder for creating a new suspension filter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a builder for creating a new suspension filter."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/SuspensionFilter.java","line":83}},{"id":"com.oracle.truffle.api.debug.SuspensionFilter#isIgnoreLanguageContextInitialization()","anchor":"isIgnoreLanguageContextInitialization()","kind":"method","name":"isIgnoreLanguageContextInitialization","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isIgnoreLanguageContextInitialization"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Test if execution of language initialization code is to be ignored."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Test if execution of language initialization code is to be ignored."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/SuspensionFilter.java","line":92}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A filter to limit the suspension locations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A filter to limit the suspension locations. An instance of this filter can be provided to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setSteppingFilter(com.oracle.truffle.api.debug.SuspensionFilter)"},"code":true,"children":[{"kind":"text","text":"debugger session"}]},{"kind":"text","text":" to step on locations matching this filter only."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#setSteppingFilter(com.oracle.truffle.api.debug.SuspensionFilter)"},"code":true,"children":[{"kind":"text","text":"DebuggerSession.setSteppingFilter(com.oracle.truffle.api.debug.SuspensionFilter)"}]}]]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/SuspensionFilter.java","line":57}},{"id":"com.oracle.truffle.api.debug.SuspensionFilter$Builder","name":"SuspensionFilter.Builder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SuspensionFilter.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.debug.SuspensionFilter","members":[{"id":"com.oracle.truffle.api.debug.SuspensionFilter$Builder#ignoreLanguageContextInitialization(boolean)","anchor":"ignoreLanguageContextInitialization(boolean)","kind":"method","name":"ignoreLanguageContextInitialization","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"ignoreLanguageContextInitialization"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"ignore"},{"kind":"punct","text":")"}],"params":[{"name":"ignore","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" to ignore execution of language context initialization code, "},{"kind":"code","text":"false"},{"kind":"text","text":" not to ignore it."}]}]}],"returns":{"type":[{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Set to ignore language initialization code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set to ignore language initialization code. The language initialization code is not ignored by default."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/SuspensionFilter.java","line":140}},{"id":"com.oracle.truffle.api.debug.SuspensionFilter$Builder#includeInternal(boolean)","anchor":"includeInternal(boolean)","kind":"method","name":"includeInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"includeInternal"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"internal"},{"kind":"punct","text":")"}],"params":[{"name":"internal","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" to include execution of internal code, "},{"kind":"code","text":"false"},{"kind":"text","text":" to exclude it."}]}]}],"returns":{"type":[{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Set to include or exclude "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isInternal()"},"code":true,"children":[{"kind":"text","text":"internal code"}]},{"kind":"text","text":" in the filter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set to include or exclude "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isInternal()"},"code":true,"children":[{"kind":"text","text":"internal code"}]},{"kind":"text","text":" in the filter. Internal code is excluded by default."}]}]},"since":"0.29","source":{"path":"com/oracle/truffle/api/debug/SuspensionFilter.java","line":153}},{"id":"com.oracle.truffle.api.debug.SuspensionFilter$Builder#sourceSectionAvailableOnly(boolean)","anchor":"sourceSectionAvailableOnly(boolean)","kind":"method","name":"sourceSectionAvailableOnly","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceSectionAvailableOnly"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"availableOnly"},{"kind":"punct","text":")"}],"params":[{"name":"availableOnly","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" to include only non-null and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"available"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.SuspendedEvent#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":", "},{"kind":"code","text":"false"},{"kind":"text","text":" to include all."}]}]}],"returns":{"type":[{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Set to suspend on available source sections only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set to suspend on available source sections only. By default all locations with or without available source sections are suspended. If this flag is set to "},{"kind":"code","text":"true"},{"kind":"text","text":" then "},{"kind":"code","text":"null"},{"kind":"text","text":" and not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"available"}]},{"kind":"text","text":" source sections are not suspended."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/debug/SuspensionFilter.java","line":170}},{"id":"com.oracle.truffle.api.debug.SuspensionFilter$Builder#sourceIs(java.util.function.Predicate)","anchor":"sourceIs(java.util.function.Predicate)","kind":"method","name":"sourceIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceIs"},{"kind":"punct","text":"("},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":"> "},{"kind":"param","text":"filter"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a source section filter"}]}]}],"returns":{"type":[{"kind":"type","text":"SuspensionFilter.Builder","ref":"com.oracle.truffle.api.debug.SuspensionFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Set a "},{"kind":"link","target":{"id":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},"code":true,"children":[{"kind":"text","text":"Predicate"}]},{"kind":"text","text":" that filters based on a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set a "},{"kind":"link","target":{"id":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},"code":true,"children":[{"kind":"text","text":"Predicate"}]},{"kind":"text","text":" that filters based on a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". The predicate must always return the same result for a source instance otherwise the behavior is undefined. The predicate should be able run on multiple threads at the same time."}]}]},"since":"0.29","source":{"path":"com/oracle/truffle/api/debug/SuspensionFilter.java","line":183}},{"id":"com.oracle.truffle.api.debug.SuspensionFilter$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SuspensionFilter","ref":"com.oracle.truffle.api.debug.SuspensionFilter"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SuspensionFilter","ref":"com.oracle.truffle.api.debug.SuspensionFilter"}]},"doc":{"summary":[{"kind":"text","text":"Create a new suspension filter configured by the builder methods."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new suspension filter configured by the builder methods."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/SuspensionFilter.java","line":193}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A builder for creating a suspension filter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A builder for creating a suspension filter."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/debug/SuspensionFilter.java","line":122}}]},{"id":"com.oracle.truffle.api.dsl","name":"com.oracle.truffle.api.dsl","doc":{"summary":[{"kind":"text","text":"Domain specific language that allows to specify specializing AST nodes in a declarative way."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Domain specific language that allows to specify specializing AST nodes in a declarative way. Uses annotation processor to generate the necessary subclass."}]}]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.dsl.AOTSupport","name":"AOTSupport","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"AOTSupport"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.dsl.AOTSupport#prepareForAOT(com.oracle.truffle.api.nodes.RootNode)","anchor":"prepareForAOT(com.oracle.truffle.api.nodes.RootNode)","kind":"method","name":"prepareForAOT","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareForAOT"},{"kind":"punct","text":"("},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":")"}],"params":[{"name":"root","type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}]}],"doc":{"summary":[{"kind":"text","text":"Recursively prepares an AST for AOT compilation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Recursively prepares an AST for AOT compilation. If an AST is already prepared for AOT then this method has no effect. The AST lock will be held during this operation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateAOT"},"code":true,"children":[{"kind":"text","text":"GenerateAOT"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForAOT()"},"code":true,"children":[{"kind":"text","text":"RootNode.prepareForAOT"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/AOTSupport.java","line":74}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Helper class to prepare AOT enabled nodes for AOT in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForAOT()"},"code":true,"children":[{"kind":"text","text":"RootNode.prepareForAOT"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Helper class to prepare AOT enabled nodes for AOT in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForAOT()"},"code":true,"children":[{"kind":"text","text":"RootNode.prepareForAOT"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See also the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/AOT.md","children":[{"kind":"text","text":"usage tutorial"}]},{"kind":"text","text":" on the website."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateAOT"},"code":true,"children":[{"kind":"text","text":"GenerateAOT"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/AOTSupport.java","line":58}},{"id":"com.oracle.truffle.api.dsl.Bind","name":"Bind","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{PARAMETER}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Bind"}],"members":[{"id":"com.oracle.truffle.api.dsl.Bind#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"The extract expression."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The extract expression."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]}]]},"since":"20.2","source":{"path":"com/oracle/truffle/api/dsl/Bind.java","line":111}}],"doc":{"summary":[{"kind":"text","text":"Binds and executes an expression at most once for every execution of the node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Binds and executes an expression at most once for every execution of the node. This is useful if an expression cannot be repeated safely for a guard and its associated specialization method. For example, if a read of a field is volatile two consecutive reads might not lead to the same result. The name the extract parameter can be referred to in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#guards()"},"code":true,"children":[{"kind":"text","text":"guard"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#limit()"},"code":true,"children":[{"kind":"text","text":"limit"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#assumptions()"},"code":true,"children":[{"kind":"text","text":"assumption"}]},{"kind":"text","text":" expressions or the specialization body. The bind expression may refer to dynamic parameters, previously declared bind or cached parameters and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"node field"}]},{"kind":"text","text":" declarations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a bind parameter only uses cached values, then it is considered also a cached value. If the parameter uses any dynamic parameter then the extract parameter is considered also a dynamic parameter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage examples:"}]},{"kind":"code","text":"static class DynamicObject {\n\n    volatile Object storage;\n\n    DynamicObject(Object storage) {\n        this.storage = storage;\n    }\n}\n\nabstract static class ExtractStorageNode extends Node {\n\n    abstract Object execute(Object arg0);\n\n    @Specialization(guards = \"storage == cachedStorage\", limit = \"3\")\n    Object s0(DynamicObject a0,\n                    @Bind(\"a0.storage\") Object storage,\n                    @Cached(\"storage\") Object cachedStorage) {\n        // use storage in specialization and in guard.\n        return a0;\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The special variable "},{"kind":"code","text":"$node"},{"kind":"text","text":" can be used to bind the current node, and "},{"kind":"code","text":"$frame"},{"kind":"text","text":" binds the execution frame. Bytecode DSL interpreters can also bind the special variables "},{"kind":"code","text":"$rootNode"},{"kind":"text","text":", "},{"kind":"code","text":"$bytecodeNode"},{"kind":"text","text":", and "},{"kind":"code","text":"$bytecodeIndex"},{"kind":"text","text":". Proxyable nodes can enable explicit bytecode node and index execute parameters through "},{"kind":"code","text":"OperationProxy.Proxyable.bindBytecodeNode"},{"kind":"text","text":" and "},{"kind":"code","text":"OperationProxy.Proxyable.bindBytecodeIndex"},{"kind":"text","text":". During ordinary AST execution, these bindings then use the supplied values rather than operation interpreter state."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]}]]},"since":"20.2","source":{"path":"com/oracle/truffle/api/dsl/Bind.java","line":101}},{"id":"com.oracle.truffle.api.dsl.Bind$DefaultExpression","name":"Bind.DefaultExpression","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Inherited","ref":"java.lang.annotation.Inherited","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Inherited.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Bind.DefaultExpression"}],"enclosing":"com.oracle.truffle.api.dsl.Bind","members":[{"id":"com.oracle.truffle.api.dsl.Bind$DefaultExpression#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"The default expression to be used for a particular type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The default expression to be used for a particular type."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/dsl/Bind.java","line":154}}],"doc":{"summary":[{"kind":"text","text":"Defines a default bind expression for a given type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines a default bind expression for a given type. When a type defines a default bind expression, specialization methods can declare bind parameters of the type without specifying a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind#value()"},"code":true,"children":[{"kind":"text","text":"bind expression"}]},{"kind":"text","text":"; the DSL will automatically use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind$DefaultExpression#value()"},"code":true,"children":[{"kind":"text","text":"default expression"}]},{"kind":"text","text":" for the type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@Bind.DefaultExpression(\"get($node)\")\npublic final class MyLanguageContext {\n    // ...\n    public static MyLanguageContext get(Node node) {\n        // ...\n    }\n}\n\nabstract static class NodeWithBinding extends Node {\n    abstract Object execute();\n\n    @Specialization\n    Object perform(@Bind(\"MyLanguageContext.get($node)\") MyLanguageContext boundWithExplicitExpression,\n                    @Bind MyLanguageContext boundWithDefaultExpression) {\n        // ...\n    }\n}"}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/dsl/Bind.java","line":143}},{"id":"com.oracle.truffle.api.dsl.Cached","name":"Cached","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{PARAMETER}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Cached"}],"members":[{"id":"com.oracle.truffle.api.dsl.Cached#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"create($parameters)\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"create($parameters)\"","doc":{"summary":[{"kind":"text","text":"Defines the initializer expression of the cached parameter value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines the initializer expression of the cached parameter value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":256}},{"id":"com.oracle.truffle.api.dsl.Cached#uncached()","anchor":"uncached()","kind":"annotationElement","name":"uncached","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"uncached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"getUncached($parameters)\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"getUncached($parameters)\"","doc":{"summary":[{"kind":"text","text":"Defines the initializer that is used for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" nodes or uncached versions of exported library messages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines the initializer that is used for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" nodes or uncached versions of exported library messages."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":265}},{"id":"com.oracle.truffle.api.dsl.Cached#dimensions()","anchor":"dimensions()","kind":"annotationElement","name":"dimensions","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"dimensions"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"-1"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"-1","doc":{"summary":[{"kind":"text","text":"Specifies the number of array dimensions to be marked as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"compilation final"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the number of array dimensions to be marked as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"compilation final"}]},{"kind":"text","text":". This value must be specified for all array-typed cached values except "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" arrays and must be left unspecified in other cases where it has no meaning. The allowed range is from 0 to the number of declared array dimensions (inclusive). Specifically, a "},{"kind":"code","text":"dimensions"},{"kind":"text","text":" value of 0 marks only the reference to the (outermost) array as final but not its elements, a value of 1 marks the outermost array and all its elements as final but not the elements of any nested arrays. If not specified and the cached value type is an array type then this will cause a warning and in later releases an error."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal#dimensions()"},"code":true,"children":[{"kind":"text","text":"CompilationFinal.dimensions()"}]}]]},"since":"0.26","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":283}},{"id":"com.oracle.truffle.api.dsl.Cached#allowUncached()","anchor":"allowUncached()","kind":"annotationElement","name":"allowUncached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"allowUncached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Allows the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#value()"},"code":true,"children":[{"kind":"text","text":"value()"}]},{"kind":"text","text":" to be used for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#uncached()"},"code":true,"children":[{"kind":"text","text":"uncached()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#value()"},"code":true,"children":[{"kind":"text","text":"value()"}]},{"kind":"text","text":" to be used for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#uncached()"},"code":true,"children":[{"kind":"text","text":"uncached()"}]},{"kind":"text","text":". This is useful if the expression is the same for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#value()"},"code":true,"children":[{"kind":"text","text":"value()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#uncached()"},"code":true,"children":[{"kind":"text","text":"uncached()"}]},{"kind":"text","text":". By setting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#allowUncached()"},"code":true,"children":[{"kind":"text","text":"allowUncached()"}]},{"kind":"text","text":" to "},{"kind":"code","text":"true"},{"kind":"text","text":" it is not necessary to repeat the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#value()"},"code":true,"children":[{"kind":"text","text":"value()"}]},{"kind":"text","text":" expression in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#uncached()"},"code":true,"children":[{"kind":"text","text":"uncached()"}]},{"kind":"text","text":" expression. This flag cannot be set in combination with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#uncached()"},"code":true,"children":[{"kind":"text","text":"uncached()"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":294}},{"id":"com.oracle.truffle.api.dsl.Cached#inline()","anchor":"inline()","kind":"annotationElement","name":"inline","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Enables inlining of the cached parameter if supported."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables inlining of the cached parameter if supported. The type of a cached parameter is considered inlinable if it declares a static method called "},{"kind":"code","text":"inline"},{"kind":"text","text":" with a single parameter of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},"code":true,"children":[{"kind":"text","text":"InlineTarget"}]},{"kind":"text","text":". For specializing DSL nodes the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"GenerateInline"}]},{"kind":"text","text":" is sufficient to be enabled for the cached target type, the static inline method will be resolved automatically from the generated code of the target type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Inlining is enabled by default if:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"GenerateInline"}]},{"kind":"text","text":" is set to "},{"kind":"code","text":"true"},{"kind":"text","text":" for the declaring specializing node type."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateCached#alwaysInlineCached()"},"code":true,"children":[{"kind":"text","text":"GenerateCached.alwaysInlineCached()"}]},{"kind":"text","text":" property is set to "},{"kind":"code","text":"true"},{"kind":"text","text":" for the declaring specializing node type."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If a target parameter type is a specializing node and has "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"GenerateInline"}]},{"kind":"text","text":" enabled but "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateCached"},"code":true,"children":[{"kind":"text","text":"GenerateCached"}]},{"kind":"text","text":" disabled."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Else, inlining is disabled by default. If a node is inlinable but is not inlined by default, the DSL will emit a warning to indicate this possibility."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport"},"code":true,"children":[{"kind":"text","text":"InlineSupport"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":318}},{"id":"com.oracle.truffle.api.dsl.Cached#inlineMethod()","anchor":"inlineMethod()","kind":"annotationElement","name":"inlineMethod","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"inlineMethod"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Specifies an alternative method name for node object inlining."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies an alternative method name for node object inlining. Instead of looking up the inline method from the receiver type use an accessible enclosing method of the given name instead. The method must have a single parameter "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},"code":true,"children":[{"kind":"text","text":"InlineTarget"}]},{"kind":"text","text":" and return a type compatible to the cached type. This can be useful if you want to route calls to the inline method through an abstraction that does not allow direct type access to the node classes. It is expected that this property is only needed rarely."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":330}},{"id":"com.oracle.truffle.api.dsl.Cached#parameters()","anchor":"parameters()","kind":"annotationElement","name":"parameters","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"parameters"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Specifies the bindings used for the $parameters variable in cached or uncached initializers."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the bindings used for the $parameters variable in cached or uncached initializers."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":337}},{"id":"com.oracle.truffle.api.dsl.Cached#weak()","anchor":"weak()","kind":"annotationElement","name":"weak","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"weak"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"If set to "},{"kind":"code","text":"true"},{"kind":"text","text":" then weak references will be used to refer to this cached value in the generated node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If set to "},{"kind":"code","text":"true"},{"kind":"text","text":" then weak references will be used to refer to this cached value in the generated node. The default value is "},{"kind":"code","text":"false"},{"kind":"text","text":". The weak cached parameter is guaranteed to not become "},{"kind":"code","text":"null"},{"kind":"text","text":" in guards or specialization method invocations. If a weak cached parameter gets collected by the GC, then any compiled code remain unaffected and the specialization instance will not be removed. Specializations with collected cached references continue to count to the specialization limit. This is necessary to provide an upper bound for the number of invalidations that may happen for this specialization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A weak cached parameter implicitly adds a "},{"kind":"code","text":"weakRef.get() != null"},{"kind":"text","text":" guard that is invoked before the cached value is referenced for the first time. This means that specializations which previously did not result in fall-through behavior may now fall-through. This is important if used in combination with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":". Weak cached parameters that are used as part of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" nodes, execute the cached initializer for each execution and therefore implicitly do not use a weak reference."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"@GenerateUncached\nabstract class WeakInlineCacheNode extends Node {\n\n    abstract Object execute(Object arg0);\n\n    @Specialization(guards = \"cachedArg.equals(arg)\", limit = \"3\")\n    Object s0(String arg,\n                    @Cached(value = \"arg\", weak = true) String cachedArg) {\n        assertNotNull(cachedStorage);\n        return arg;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TruffleWeakReference"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.utilities.TruffleWeakReference"}]}]]},"since":"20.2","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":375}},{"id":"com.oracle.truffle.api.dsl.Cached#adopt()","anchor":"adopt()","kind":"annotationElement","name":"adopt","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"adopt"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Specifies whether the cached parameter values of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInterface"},"code":true,"children":[{"kind":"text","text":"NodeInterface"}]},{"kind":"text","text":" should be adopted as its child by the current node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies whether the cached parameter values of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInterface"},"code":true,"children":[{"kind":"text","text":"NodeInterface"}]},{"kind":"text","text":" should be adopted as its child by the current node. The default value is "},{"kind":"code","text":"true"},{"kind":"text","text":", therefore all cached values of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInterface"},"code":true,"children":[{"kind":"text","text":"NodeInterface"}]},{"kind":"text","text":" and arrays of the same type are adopted. If the value is set to "},{"kind":"code","text":"false"},{"kind":"text","text":", then no adoption is performed. It is useful to set adopt to "},{"kind":"code","text":"false"},{"kind":"text","text":" when nodes need to be referenced more than once in the AST."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the type of the field is an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInterface"},"code":true,"children":[{"kind":"text","text":"NodeInterface"}]},{"kind":"text","text":" array and adopt is set to "},{"kind":"code","text":"false"},{"kind":"text","text":", then the compilation final "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#dimensions()"},"code":true,"children":[{"kind":"text","text":"dimensions"}]},{"kind":"text","text":" attribute needs to be specified explicitly."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":390}},{"id":"com.oracle.truffle.api.dsl.Cached#neverDefault()","anchor":"neverDefault()","kind":"annotationElement","name":"neverDefault","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"neverDefault"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the cache initializer never returns the default value of its parameter type at runtime."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the cache initializer never returns the default value of its parameter type at runtime. For reference types the default value is "},{"kind":"code","text":"null"},{"kind":"text","text":", for primitive values 0. By default, default values in cache initializers are allowed. The DSL may use the default state of a cache for optimizations in the generated code layout. The DSL informs with a warning when the use of this property has an effect and is recommended to be set. Alternatively to specifying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#neverDefault()"},"code":true,"children":[{"kind":"text","text":"neverDefault()"}]},{"kind":"text","text":", the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NeverDefault"},"code":true,"children":[{"kind":"text","text":"NeverDefault"}]},{"kind":"text","text":" annotation may be used on the method or field bound by the cache initializer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a cache initializer returns the illegal default value when this property is set to "},{"kind":"code","text":"true"},{"kind":"text","text":" then the node will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" at runtime."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NeverDefault"},"code":true,"children":[{"kind":"text","text":"NeverDefault"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":408}}],"doc":{"summary":[{"kind":"text","text":"A parameter annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" refers to a "},{"kind":"strong","children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" value of a specialization instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A parameter annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" refers to a "},{"kind":"strong","children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" value of a specialization instance. A cached parameter value is initialized once using the initializer expression at specialization instantiation. For each call of the specialization method the cached value is provided by using the annotated parameter from the method body. Cache initializers are potentially executed before guard expressions declared in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#guards()"},"code":true,"children":[{"kind":"text","text":"Specialization.guards()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A typical specialization may define multiple dynamic and multiple cached parameters. Dynamic parameter values are typically provided by executing child nodes of the operation. Cached parameters are initialized and stored once per specialization instantiation. Cached parameters are always constant at compile time. You may verify this by invoking "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#compilationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"CompilerAsserts.compilationConstant(Object)"}]},{"kind":"text","text":" on any cached parameter. For consistency between specialization declarations cached parameters must be declared last in a specialization method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The initializer expression of a cached parameter is defined using a subset of Java. This subset includes field/parameter accesses, function calls, type exact infix comparisons (==, !=, <, <=, >, >=), logical negation (!), logical disjunction (||), null, true, false, and integer literals. The return type of the initializer expression must be assignable to the parameter type. If the annotated parameter type is derived from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" then the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" instance is allowed to use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T)"},"code":true,"children":[{"kind":"text","text":"Node.replace(Node)"}]},{"kind":"text","text":" method to replace itself. Bound elements without receivers are resolved using the following order:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Dynamic and cached parameters of the enclosing specialization."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Fields defined using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"NodeField"}]},{"kind":"text","text":" for the enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Public constructors of the type of the annotated parameter using the "},{"kind":"code","text":"new"},{"kind":"text","text":" keyword as method name."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Public and static methods or fields of the type of the annotated parameter."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Non-private, static or virtual methods or fields of enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Non-private, static or virtual methods or fields of super types of the enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Public and static methods or fields imported using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImportStatic"},"code":true,"children":[{"kind":"text","text":"ImportStatic"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The following examples explain the intended use of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" annotation. All of the examples have to be enclosed in the following node declaration:"}]},{"kind":"code","text":"@NodeChild(\"operand\")\nabstract TestNode extends Node {\n  abstract void execute(Object operandValue);\n  // ... example here ...\n}"},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"This example defines one dynamic and one cached parameter. The operand parameter is representing the dynamic value of the operand while the cachedOperand is initialized once at first execution of the specialization (specialization instantiation time)."}]},{"kind":"code","text":"@Specialization\nvoid doCached(int operand, @Cached(\"operand\") int cachedOperand) {\n    CompilerAsserts.compilationConstant(cachedOperand);\n    ...\n}\n\nExample executions:\nexecute(1) => doCached(1, 1) // new instantiation, localOperand is bound to 1\nexecute(0) => doCached(0, 1)\nexecute(2) => doCached(2, 1)"}],[{"kind":"paragraph","children":[{"kind":"text","text":"We extend the previous example by a guard for the cachedOperand value to be equal to the dynamic operand value. This specifies that the specialization is instantiated for each individual operand value that is provided. There are a lot of individual "},{"kind":"code","text":"int"},{"kind":"text","text":" values and for each individual "},{"kind":"code","text":"int"},{"kind":"text","text":" value a new specialization would get instantiated. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#limit()"},"code":true,"children":[{"kind":"text","text":"Specialization.limit()"}]},{"kind":"text","text":" property defines a limit for the number of specializations that can get instantiated. If the specialization instantiation limit is reached then no further specializations are instantiated. Like for other specializations if there are no more specializations defined an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException"},"code":true,"children":[{"kind":"text","text":"UnsupportedSpecializationException"}]},{"kind":"text","text":" is thrown. The default specialization instantiation limit is "},{"kind":"code","text":"3"},{"kind":"text","text":"."}]},{"kind":"code","text":"@Specialization(guards = \"operand == cachedOperand\")\nvoid doCached(int operand, @Cached(\"operand\") int cachedOperand) {\n   CompilerAsserts.compilationConstant(cachedOperand);\n   ...\n}\n\nExample executions:\nexecute(0) => doCached(0, 0) // new instantiation, cachedOperand is bound to 0\nexecute(1) => doCached(1, 1) // new instantiation, cachedOperand is bound to 1\nexecute(1) => doCached(1, 1)\nexecute(2) => doCached(2, 2) // new instantiation, cachedOperand is bound to 2\nexecute(3) => throws UnsupportedSpecializationException // instantiation limit overflows"}],[{"kind":"paragraph","children":[{"kind":"text","text":"To handle the limit overflow we extend our example by an additional specialization named "},{"kind":"code","text":"doNormal"},{"kind":"text","text":". This specialization has the same type restrictions but does not have local state nor the operand identity guard. It is also declared after "},{"kind":"code","text":"doCached"},{"kind":"text","text":" therefore it is only instantiated if the limit of the "},{"kind":"code","text":"doCached"},{"kind":"text","text":" specialization has been reached. In other words "},{"kind":"code","text":"doNormal"},{"kind":"text","text":" is more generic than "},{"kind":"code","text":"doCached"},{"kind":"text","text":" . The "},{"kind":"code","text":"doNormal"},{"kind":"text","text":" specialization uses "},{"kind":"code","text":"replaces=\"doCached\""},{"kind":"text","text":" to specify that all instantiations of "},{"kind":"code","text":"doCached"},{"kind":"text","text":" get removed if "},{"kind":"code","text":"doNormal"},{"kind":"text","text":" is instantiated. Alternatively if the "},{"kind":"code","text":"replaces"},{"kind":"text","text":" relation is omitted then all "},{"kind":"code","text":"doCached"},{"kind":"text","text":" instances remain but no new instances are created."}]},{"kind":"code","text":"@Specialization(guards = \"operand == cachedOperand\")\nvoid doCached(int operand, @Cached(\"operand\") int cachedOperand) {\n   CompilerAsserts.compilationConstant(cachedOperand);\n   ...\n}\n\n@Specialization(replaces = \"doCached\")\nvoid doNormal(int operand) {...}\n\nExample executions with replaces = \"doCached\":\nexecute(0) => doCached(0, 0) // new instantiation, cachedOperand is bound to 0\nexecute(1) => doCached(1, 1) // new instantiation, cachedOperand is bound to 1\nexecute(1) => doCached(1, 1)\nexecute(2) => doCached(2, 2) // new instantiation, cachedOperand is bound to 2\nexecute(3) => doNormal(3)    // new instantiation of doNormal due to limit overflow; doCached gets removed.\nexecute(1) => doNormal(1)\n\nExample executions without replaces = \"doCached\":\nexecute(0) => doCached(0, 0) // new instantiation, cachedOperand is bound to 0\nexecute(1) => doCached(1, 1) // new instantiation, cachedOperand is bound to 1\nexecute(1) => doCached(1, 1)\nexecute(2) => doCached(2, 2) // new instantiation, cachedOperand is bound to 2\nexecute(3) => doNormal(3)    // new instantiation of doNormal due to limit overflow\nexecute(1) => doCached(1, 1)"}],[{"kind":"paragraph","children":[{"kind":"text","text":"This next example shows how methods from the enclosing node can be used to initialize cached parameters. Please note that the visibility of transformLocal must not be "},{"kind":"code","text":"private"},{"kind":"text","text":"."}]},{"kind":"code","text":"@Specialization\nvoid s(int operand, @Cached(\"transformLocal(operand)\") int cachedOperand) {\n}\n\nint transformLocal(int operand) {\n    return operand & 0x42;\n}"}],[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"new"},{"kind":"text","text":" keyword can be used to initialize a cached parameter using a constructor of the parameter type."}]},{"kind":"code","text":"@Specialization\nvoid s(Object operand, @Cached(\"new()\") OtherNode someNode) {\n    someNode.execute(operand);\n}\n\nstatic class OtherNode extends Node {\n\n    public String execute(Object value) {\n        throw new UnsupportedOperationException();\n    }\n}"}],[{"kind":"paragraph","children":[{"kind":"text","text":"Java types without public constructor but with a static factory methods can be initialized by just referencing its static factory method and its parameters. In this case "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.BranchProfile#create()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.profiles.BranchProfile.create()"}]},{"kind":"text","text":" is used to instantiate the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.BranchProfile"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.profiles.BranchProfile"}]},{"kind":"text","text":" instance."}]},{"kind":"code","text":"@Specialization\nvoid s(int operand, @Cached(\"create()\") BranchProfile profile) {\n}"}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#guards()"},"code":true,"children":[{"kind":"text","text":"Specialization.guards()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()"},"code":true,"children":[{"kind":"text","text":"Specialization.replaces()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#limit()"},"code":true,"children":[{"kind":"text","text":"Specialization.limit()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImportStatic"},"code":true,"children":[{"kind":"text","text":"ImportStatic"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":246}},{"id":"com.oracle.truffle.api.dsl.Cached$Exclusive","name":"Cached.Exclusive","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{PARAMETER, METHOD, TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Cached.Exclusive"}],"enclosing":"com.oracle.truffle.api.dsl.Cached","doc":{"summary":[{"kind":"text","text":"Disallows any sharing with other cached parameters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disallows any sharing with other cached parameters. The DSL will indicate sharing opportunities to the user by showing a warning."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":439}},{"id":"com.oracle.truffle.api.dsl.Cached$Shared","name":"Cached.Shared","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{PARAMETER}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Cached.Shared"}],"enclosing":"com.oracle.truffle.api.dsl.Cached","members":[{"id":"com.oracle.truffle.api.dsl.Cached$Shared#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Specifies the sharing group of the shared cached element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the sharing group of the shared cached element. If not specified then the parameter name will be used as a group."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":429}}],"doc":{"summary":[{"kind":"text","text":"Allows sharing between multiple Cached parameters between multiple specializations or exported library messages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows sharing between multiple Cached parameters between multiple specializations or exported library messages. If no sharing is desired then the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" parameter can be annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached$Exclusive"},"code":true,"children":[{"kind":"text","text":"exclusive"}]},{"kind":"text","text":". The DSL will indicate sharing opportunities to the user by showing a warning."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached$Exclusive"},"code":true,"children":[{"kind":"text","text":"Exclusive"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/dsl/Cached.java","line":419}},{"id":"com.oracle.truffle.api.dsl.CreateCast","name":"CreateCast","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"CreateCast"}],"members":[{"id":"com.oracle.truffle.api.dsl.CreateCast#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/CreateCast.java","line":60}}],"doc":{"summary":[{"kind":"text","text":"Specifies a factory method that creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" which is used to cast this child."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a factory method that creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" which is used to cast this child."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/CreateCast.java","line":54}},{"id":"com.oracle.truffle.api.dsl.DSLSupport","name":"DSLSupport","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DSLSupport"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.dsl.DSLSupport#lookupEnumConstants(java.lang.Class)","anchor":"lookupEnumConstants(java.lang.Class)","kind":"method","name":"lookupEnumConstants","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<?>"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<?>> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"name","text":"lookupEnumConstants"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"c"},{"kind":"punct","text":")"}],"params":[{"name":"c","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Looks up shared enum constants for DSL generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Looks up shared enum constants for DSL generated code. This avoids unnecessary enum arrays in the heap when the DSL creates constants with enum values to avoid the memory overhead of calling the values() method of enum classes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/DSLSupport.java","line":74}},{"id":"com.oracle.truffle.api.dsl.DSLSupport#maybeInsert(com.oracle.truffle.api.nodes.Node,T)","anchor":"maybeInsert(com.oracle.truffle.api.nodes.Node,T)","kind":"method","name":"maybeInsert","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"maybeInsert"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"o"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"o","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Inserts a node if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInterface"},"code":true,"children":[{"kind":"text","text":"NodeInterface"}]},{"kind":"text","text":" dynamically implements "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Inserts a node if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInterface"},"code":true,"children":[{"kind":"text","text":"NodeInterface"}]},{"kind":"text","text":" dynamically implements "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". Intended for generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/DSLSupport.java","line":85}},{"id":"com.oracle.truffle.api.dsl.DSLSupport#maybeInsert(com.oracle.truffle.api.nodes.Node,T[])","anchor":"maybeInsert(com.oracle.truffle.api.nodes.Node,T[])","kind":"method","name":"maybeInsert","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"name","text":"maybeInsert"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"param","text":"o"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"o","type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Inserts a node array if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInterface"},"code":true,"children":[{"kind":"text","text":"NodeInterface"}]},{"kind":"text","text":"[] dynamically implements "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"[]."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Inserts a node array if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInterface"},"code":true,"children":[{"kind":"text","text":"NodeInterface"}]},{"kind":"text","text":"[] dynamically implements "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"[]. Intended for generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/DSLSupport.java","line":98}},{"id":"com.oracle.truffle.api.dsl.DSLSupport#assertIdempotence(boolean)","anchor":"assertIdempotence(boolean)","kind":"method","name":"assertIdempotence","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"assertIdempotence"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"guardValue"},{"kind":"punct","text":")"}],"params":[{"name":"guardValue","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Helper method for DSL generated code to assert idempotence."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Helper method for DSL generated code to assert idempotence."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Idempotent"},"code":true,"children":[{"kind":"text","text":"Idempotent"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NonIdempotent"},"code":true,"children":[{"kind":"text","text":"NonIdempotent"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/DSLSupport.java","line":112}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"APIs to support share code in generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"APIs to support share code in generated code. APIs in this class are aggressively deprecated and removed in this class."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/DSLSupport.java","line":52}},{"id":"com.oracle.truffle.api.dsl.DSLSupport$SpecializationDataNode","name":"DSLSupport.SpecializationDataNode","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"DSLSupport.SpecializationDataNode"}],"enclosing":"com.oracle.truffle.api.dsl.DSLSupport","doc":{"summary":[{"kind":"text","text":"Interface implemented by specialization data classes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Interface implemented by specialization data classes. This marker interface is needed for better validation and error handling during node object inlining. Intended to be used by the DSL implementation, please do not use otherwise."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/dsl/DSLSupport.java","line":126}},{"id":"com.oracle.truffle.api.dsl.ExecuteTracingSupport","name":"ExecuteTracingSupport","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecuteTracingSupport"}],"members":[{"id":"com.oracle.truffle.api.dsl.ExecuteTracingSupport#isTracingEnabled()","anchor":"isTracingEnabled()","kind":"method","name":"isTracingEnabled","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isTracingEnabled"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if tracing is enabled"}]}]},"doc":{"summary":[{"kind":"text","text":"Invoked by the generated code to determine whether tracing is enabled."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked by the generated code to determine whether tracing is enabled. If tracing is disabled, no other methods in this interface will be invoked."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/dsl/ExecuteTracingSupport.java","line":71}},{"id":"com.oracle.truffle.api.dsl.ExecuteTracingSupport#traceOnEnter(java.lang.Object[])","anchor":"traceOnEnter(java.lang.Object[])","kind":"method","name":"traceOnEnter","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"traceOnEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments of the specialization except the frame, if any"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked by the generated "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods before any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" is called, but after all "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChildren"},"code":true,"children":[{"kind":"text","text":"NodeChildren"}]},{"kind":"text","text":" are evaluated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked by the generated "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods before any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" is called, but after all "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChildren"},"code":true,"children":[{"kind":"text","text":"NodeChildren"}]},{"kind":"text","text":" are evaluated. Called only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ExecuteTracingSupport#isTracingEnabled()"},"code":true,"children":[{"kind":"text","text":"isTracingEnabled()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/dsl/ExecuteTracingSupport.java","line":81}},{"id":"com.oracle.truffle.api.dsl.ExecuteTracingSupport#traceOnReturn(java.lang.Object)","anchor":"traceOnReturn(java.lang.Object)","kind":"method","name":"traceOnReturn","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"traceOnReturn"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"returnValue"},{"kind":"punct","text":")"}],"params":[{"name":"returnValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value returned by the specialization or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the "},{"kind":"code","text":"execute"},{"kind":"text","text":" method is declared to return "},{"kind":"code","text":"void"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked by the generated "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods when a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" returns normally."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked by the generated "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods when a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" returns normally. Called only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ExecuteTracingSupport#isTracingEnabled()"},"code":true,"children":[{"kind":"text","text":"isTracingEnabled()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/dsl/ExecuteTracingSupport.java","line":92}},{"id":"com.oracle.truffle.api.dsl.ExecuteTracingSupport#traceOnException(java.lang.Throwable)","anchor":"traceOnException(java.lang.Throwable)","kind":"method","name":"traceOnException","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"traceOnException"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":")"}],"params":[{"name":"t","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception thrown by the specialization"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked by the generated "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods when a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" throws an exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked by the generated "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods when a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" throws an exception. Called only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ExecuteTracingSupport#isTracingEnabled()"},"code":true,"children":[{"kind":"text","text":"isTracingEnabled()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":". Exceptions thrown by child node invocations are not traced by the parent."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/dsl/ExecuteTracingSupport.java","line":103}}],"doc":{"summary":[{"kind":"text","text":"Allows tracing of calls to "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows tracing of calls to "},{"kind":"code","text":"execute"},{"kind":"text","text":" methods of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The methods declared in this interface are invoked by the code generated by Truffle DSL for nodes which directly or indirectly implement this interface. All tracing methods are called only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ExecuteTracingSupport#isTracingEnabled()"},"code":true,"children":[{"kind":"text","text":"isTracingEnabled()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example:"}]},{"kind":"code","language":"java","text":"abstract static class BaseNode extends Node implements ExecuteTracingSupport {\n\n    static final TruffleLogger LOGGER = TruffleLogger.getLogger(\"id\", \"trace\");\n\n    @Override\n    public boolean isTracingEnabled() {\n        return LOGGER.isLoggable(Level.INFO);\n    }\n\n    @Override\n    public void traceOnEnter(Object[] arguments) {\n        // called before any execute method\n    }\n\n    @Override\n    public void traceOnReturn(Object returnValue) {\n        // called after any execute method if it returns normally\n    }\n\n    @Override\n    public void traceOnException(Throwable t) {\n        // called after any execute method which throws an exception\n    }\n}\n\nabstract static class Operation1Node extends BaseNode {\n\n    // any execute call would automatically be traced\n    public abstract Object execute(int arg0, Object arg1);\n\n    @Specialization\n    int doInt(int a, int b) {\n        return a + b;\n    }\n}"}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/dsl/ExecuteTracingSupport.java","line":62}},{"id":"com.oracle.truffle.api.dsl.Executed","name":"Executed","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{FIELD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Executed"}],"members":[{"id":"com.oracle.truffle.api.dsl.Executed#with()","anchor":"with()","kind":"annotationElement","name":"with","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"with"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Executed#with()"},"code":true,"children":[{"kind":"text","text":"with()"}]},{"kind":"text","text":" property allows a node to pass the result of one child's executable as an input to another child's executable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Executed#with()"},"code":true,"children":[{"kind":"text","text":"with()"}]},{"kind":"text","text":" property allows a node to pass the result of one child's executable as an input to another child's executable. These referenced children must be defined before the current node in the execution order. The static field type must declare execute methods with as many arguments as there values specified for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Executed#with()"},"code":true,"children":[{"kind":"text","text":"with()"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.VirtualFrame"},"code":true,"children":[{"kind":"text","text":"VirtualFrame"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.MaterializedFrame"},"code":true,"children":[{"kind":"text","text":"MaterializedFrame"}]},{"kind":"text","text":" instances are passed along implicitly and do not count as argument. "},{"kind":"strong","children":[{"kind":"text","text":"Example usage:"}]}]},{"kind":"code","text":"abstract class ExpressionNode extends Node {\n    abstract Object execute();\n}\n\nabstract class ExecuteWithTargetNode extends Node {\n    abstract Object execute(Object target);\n}\n\nabstract class CallNode extends ExpressionNode {\n\n    @Child @Executed ExpressionNode targetNode;\n    @Child @Executed(with = \"targetNode\") ExecuteWithTargetNode readProperty;\n\n    CallNode(ExpressionNode targetNode, ExecuteWithTargetNode readProperty) {\n        this.targetNode = targetNode;\n        this.readProperty = readProperty;\n    }\n\n    @Specialization\n    protected Object doCall(Object target, Object property) {\n        // targetNode is executed once and its value is usable in readProperty\n    }\n}"}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/dsl/Executed.java","line":133}}],"doc":{"summary":[{"kind":"text","text":"This annotation declares a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Child"},"code":true,"children":[{"kind":"text","text":"child"}]},{"kind":"text","text":" field to be executed and used as dynamic input values for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializations"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This annotation declares a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Child"},"code":true,"children":[{"kind":"text","text":"child"}]},{"kind":"text","text":" field to be executed and used as dynamic input values for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializations"}]},{"kind":"text","text":". The field must have package protected, protected or public visibility for the generated subclass to access the field. The field must be manually initialized. If the value was not initialized the execution of the node will fail with a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":". A field must also be annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Child"},"code":true,"children":[{"kind":"text","text":"Child"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Children"},"code":true,"children":[{"kind":"text","text":"Children"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example usage:"}]}]},{"kind":"code","text":"abstract class ExpressionNode extends Node {\n    abstract Object execute();\n}\n\nabstract class AddNode extends ExpressionNode {\n\n    @Child @Executed ExpressionNode leftNode;\n    @Child @Executed ExpressionNode rightNode;\n\n    AddNode(ExpressionNode leftNode, ExpressionNode rightNode) {\n        this.leftNode = leftNode;\n        this.rightNode = rightNode;\n    }\n\n    @Specialization\n    protected int doAdd(int left, int right) {\n        return left + right;\n    }\n\n}"}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/dsl/Executed.java","line":90}},{"id":"com.oracle.truffle.api.dsl.Fallback","name":"Fallback","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Fallback"}],"doc":{"summary":[{"kind":"text","text":"A method annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" is treated as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" that implicitly links all the guards of all other declared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" annotated methods of the operation in a negated form."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A method annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" is treated as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" that implicitly links all the guards of all other declared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" annotated methods of the operation in a negated form. As a consequence it cannot declare any other guards. The expected signature of the method must match to the signature of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" with the additional limitation that only generically executable argument types are allowed. A generically executable argument is an argument that can be executed from the child "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" using an execute method without "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":". In many cases the generically executable type is "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":". An operation is limited to just one "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" specialization which is always ordered at the end of the specialization chain."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A simple example showing the use of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" annotation in a DSL operation:"}]},{"kind":"code","text":"@Specialization int doInt(int a) {..}\n@Specialization int doDouble(double a) {..}\n@Fallback int orElse(Object a) {..}"},{"kind":"paragraph","children":[{"kind":"text","text":"The previous example could be redeclared just using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" annotated methods as follows:"}]},{"kind":"code","text":"@Specialization int doInt(int a) {..}\n@Specialization int doDouble(double a) {..}\n@Specialization(guard={\"!isInt(a)\", \"!isDouble(a)\"})\nint orElse(Object a) {..}"},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Performance note:"}]},{"kind":"text","text":" For operations with a lot of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" annotated methods the use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" might generate a guard that is very big. Try to avoid the use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]},{"kind":"text","text":" for specializations that are significantly important for peak performance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Fallback annotated methods support "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Bind"},"code":true,"children":[{"kind":"text","text":"Bind"}]},{"kind":"text","text":" and dispatched "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.library.CachedLibrary"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild"},"code":true,"children":[{"kind":"text","text":"NodeChild"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/Fallback.java","line":97}},{"id":"com.oracle.truffle.api.dsl.GenerateAOT","name":"GenerateAOT","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateAOT"}],"doc":{"summary":[{"kind":"text","text":"Allows nodes with specializations to be prepared for AOT."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows nodes with specializations to be prepared for AOT. The annotation is automatically inherited by all subclasses. Specializations of annotated nodes will be validated for their suitability for AOT preparation. By default all specializations that are not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()"},"code":true,"children":[{"kind":"text","text":"replaced"}]},{"kind":"text","text":" by an AOT capable specializations are included for AOT validation and preparation. If a specialization is not suitable a compilation error will be shown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following properties make a specialization incapable of being used for AOT preparation:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Dynamic parameters bound in cached initializers. At AOT preparation time no dynamic parameters are available, therefore the caches not be initialized. Values read from the node instance are supported."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If a Truffle library is used that is automatically dispatched or where the expression initializer is bound to a dynamic parameter value."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If a cached node is created that does not itself support "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateAOT"},"code":true,"children":[{"kind":"text","text":"GenerateAOT"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Additionally, to resolve compilation errors related to AOT the following resolutions may be applied:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Exclude this specialization from AOT with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateAOT$Exclude"},"code":true,"children":[{"kind":"text","text":"Exclude"}]},{"kind":"text","text":", if it is acceptable to deoptimize for this specialization in AOT compiled code."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Configure the specialization to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()"},"code":true,"children":[{"kind":"text","text":"Specialization.replaces()"}]},{"kind":"text","text":" with a more generic specialization."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"After a node generates code for AOT preparation "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.AOTSupport#prepareForAOT(com.oracle.truffle.api.nodes.RootNode)"},"code":true,"children":[{"kind":"text","text":"AOTSupport.prepareForAOT(RootNode)"}]},{"kind":"text","text":" may be used to prepare a root node in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForAOT()"},"code":true,"children":[{"kind":"text","text":"RootNode.prepareForAOT"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This annotation can also be used for classes annotated with Truffle library declarations and exports. The same rules, as described here, for specializations declared in exported libraries apply. Multiple AOT exports may be specified for each library, but there must be at least one, otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown at runtime when AOT is prepared."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See also the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/AOT.md","children":[{"kind":"text","text":"usage tutorial"}]},{"kind":"text","text":" on the website."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForAOT()"},"code":true,"children":[{"kind":"text","text":"RootNode.prepareForAOT"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/GenerateAOT.java","line":94}},{"id":"com.oracle.truffle.api.dsl.GenerateAOT$Exclude","name":"GenerateAOT.Exclude","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateAOT.Exclude"}],"enclosing":"com.oracle.truffle.api.dsl.GenerateAOT","doc":{"summary":[{"kind":"text","text":"Excludes the annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" from AOT preparation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Excludes the annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"Specialization"}]},{"kind":"text","text":" from AOT preparation."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/GenerateAOT.java","line":103}},{"id":"com.oracle.truffle.api.dsl.GenerateAOT$Provider","name":"GenerateAOT.Provider","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateAOT.Provider"}],"enclosing":"com.oracle.truffle.api.dsl.GenerateAOT","members":[{"id":"com.oracle.truffle.api.dsl.GenerateAOT$Provider#prepareForAOT(com.oracle.truffle.api.TruffleLanguage,com.oracle.truffle.api.nodes.RootNode)","anchor":"prepareForAOT(com.oracle.truffle.api.TruffleLanguage,com.oracle.truffle.api.nodes.RootNode)","kind":"method","name":"prepareForAOT","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareForAOT"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}]},{"name":"root","type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}]}],"doc":{"summary":[{"kind":"text","text":"Called and implemented by framework code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called and implemented by framework code. Do not use directly."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/GenerateAOT.java","line":120}},{"id":"com.oracle.truffle.api.dsl.GenerateAOT$Provider#prepareForAOT(com.oracle.truffle.api.TruffleLanguage,com.oracle.truffle.api.nodes.RootNode,com.oracle.truffle.api.nodes.Node)","anchor":"prepareForAOT(com.oracle.truffle.api.TruffleLanguage,com.oracle.truffle.api.nodes.RootNode,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"prepareForAOT","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareForAOT"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"inlinedNode"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}]},{"name":"root","type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}]},{"name":"inlinedNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"doc":{"summary":[{"kind":"text","text":"Called and implemented by framework code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called and implemented by framework code. Do not use directly."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateAOT.java","line":130}}],"doc":{"summary":[{"kind":"text","text":"Implemented by generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Implemented by generated code. Do not reference directly"}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/GenerateAOT.java","line":113}},{"id":"com.oracle.truffle.api.dsl.GenerateCached","name":"GenerateCached","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateCached"}],"members":[{"id":"com.oracle.truffle.api.dsl.GenerateCached#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables the generation of a cached version of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializing"}]},{"kind":"text","text":" node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables the generation of a cached version of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializing"}]},{"kind":"text","text":" node. It is enabled by default."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateCached.java","line":75}},{"id":"com.oracle.truffle.api.dsl.GenerateCached#inherit()","anchor":"inherit()","kind":"annotationElement","name":"inherit","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inherit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables inheritance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateCached#value()"},"code":true,"children":[{"kind":"text","text":"value()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateCached#alwaysInlineCached()"},"code":true,"children":[{"kind":"text","text":"alwaysInlineCached()"}]},{"kind":"text","text":" to subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables inheritance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateCached#value()"},"code":true,"children":[{"kind":"text","text":"value()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateCached#alwaysInlineCached()"},"code":true,"children":[{"kind":"text","text":"alwaysInlineCached()"}]},{"kind":"text","text":" to subclasses. It is "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateCached.java","line":83}},{"id":"com.oracle.truffle.api.dsl.GenerateCached#alwaysInlineCached()","anchor":"alwaysInlineCached()","kind":"annotationElement","name":"alwaysInlineCached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"alwaysInlineCached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Configures whether a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlinable"}]},{"kind":"text","text":" node is inlined by default."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configures whether a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlinable"}]},{"kind":"text","text":" node is inlined by default. By default a warning is emitted if the inline flag is not enabled explicitly. This is not necessary for nodes annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"GenerateInline"}]},{"kind":"text","text":" they must always inline their cached values, as they are otherwise themselves not inlinable."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateCached.java","line":93}}],"doc":{"summary":[{"kind":"text","text":"Allows to enable or disable the generation of the cached version of a Truffle DSL node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows to enable or disable the generation of the cached version of a Truffle DSL node. By default any node generates a cached version of a node if it contains "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specialization methods"}]},{"kind":"text","text":". The cached version of a node is accessed through a generated class that is named with the suffix Gen of the source node. For example if the node containing specializations is named "},{"kind":"code","text":"TestNode"},{"kind":"text","text":" the generated node will be called "},{"kind":"code","text":"TestNodeGen"},{"kind":"text","text":". Any node where generated cached is enabled will contain a "},{"kind":"code","text":"create"},{"kind":"text","text":" method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This annotation is useful if only an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlinable"}]},{"kind":"text","text":" version of the node should be generated. It also allows to disable code generation for abstract "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"nodes"}]},{"kind":"text","text":" with specializations that should not generate code."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateCached.java","line":65}},{"id":"com.oracle.truffle.api.dsl.GenerateInline","name":"GenerateInline","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateInline"}],"members":[{"id":"com.oracle.truffle.api.dsl.GenerateInline#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables the generation of a inlined version of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializing"}]},{"kind":"text","text":" node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables the generation of a inlined version of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializing"}]},{"kind":"text","text":" node. It is enabled by default."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateInline.java","line":86}},{"id":"com.oracle.truffle.api.dsl.GenerateInline#inherit()","anchor":"inherit()","kind":"annotationElement","name":"inherit","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inherit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables inheritance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline#value()"},"code":true,"children":[{"kind":"text","text":"value()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline#inlineByDefault()"},"code":true,"children":[{"kind":"text","text":"inlineByDefault()"}]},{"kind":"text","text":" to subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables inheritance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline#value()"},"code":true,"children":[{"kind":"text","text":"value()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline#inlineByDefault()"},"code":true,"children":[{"kind":"text","text":"inlineByDefault()"}]},{"kind":"text","text":" to subclasses. It is "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateInline.java","line":94}},{"id":"com.oracle.truffle.api.dsl.GenerateInline#inlineByDefault()","anchor":"inlineByDefault()","kind":"annotationElement","name":"inlineByDefault","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inlineByDefault"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" the inlined version is used by default when the node is used as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" argument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" the inlined version is used by default when the node is used as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" argument. Changing this value on an existing node class with existing and already compiled usages will not force the recompilation of the usages. One has to manually force recompilation of all the affected code. If the node class is part of supported public API, changing this value is a "},{"kind":"strong","children":[{"kind":"text","text":"source incompatible change"}]},{"kind":"text","text":"!"}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateInline.java","line":107}}],"doc":{"summary":[{"kind":"text","text":"Generates code for a node that makes this node inlinable when used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" parameters of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializations"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Generates code for a node that makes this node inlinable when used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" parameters of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializations"}]},{"kind":"text","text":". Inlining nodes significantly reduces the footprint of cached nodes as node allocations are avoided. A node subclass must fullfill the following requirements in order to be inlinable:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"All execute methods of a the node must have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" as first parameter type."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The node has no instance fields and must not use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild"},"code":true,"children":[{"kind":"text","text":"NodeChild"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"NodeField"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The cached node types must not be recursive."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Truffle DSL emits warnings if the use of this annotation is recommended. In addition to inlining nodes automatically using this annotation, manually written nodes can also be written to become inlinable. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport"},"code":true,"children":[{"kind":"text","text":"InlineSupport"}]},{"kind":"text","text":" for details. Please see the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/DSLNodeObjectInlining.md","children":[{"kind":"text","text":"node object inlining tutorial"}]},{"kind":"text","text":" for details on how to use this annotation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateCached"},"code":true,"children":[{"kind":"text","text":"GenerateCached"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateAOT"},"code":true,"children":[{"kind":"text","text":"GenerateAOT"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport"},"code":true,"children":[{"kind":"text","text":"InlineSupport"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateInline.java","line":76}},{"id":"com.oracle.truffle.api.dsl.GenerateNodeFactory","name":"GenerateNodeFactory","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateNodeFactory"}],"members":[{"id":"com.oracle.truffle.api.dsl.GenerateNodeFactory#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables the generation of node factories of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializing"}]},{"kind":"text","text":" node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables the generation of node factories of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializing"}]},{"kind":"text","text":" node. It is disabled by default."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateNodeFactory.java","line":65}},{"id":"com.oracle.truffle.api.dsl.GenerateNodeFactory#inherit()","anchor":"inherit()","kind":"annotationElement","name":"inherit","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inherit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Inherits the semantics of the annotation to subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Inherits the semantics of the annotation to subclasses."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateNodeFactory.java","line":72}}],"doc":{"summary":[{"kind":"text","text":"Annotate nodes or base classes of nodes to generate factory handlers implementing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFactory"},"code":true,"children":[{"kind":"text","text":"NodeFactory"}]},{"kind":"text","text":" interface."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotate nodes or base classes of nodes to generate factory handlers implementing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFactory"},"code":true,"children":[{"kind":"text","text":"NodeFactory"}]},{"kind":"text","text":" interface. The generated factory handlers class name starts with the source original class and ends with 'Factory'."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateNodeFactory.java","line":55}},{"id":"com.oracle.truffle.api.dsl.GeneratePackagePrivate","name":"GeneratePackagePrivate","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GeneratePackagePrivate"}],"doc":{"summary":[{"kind":"text","text":"Make the code generated for an annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" package-private."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Make the code generated for an annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" package-private."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/dsl/GeneratePackagePrivate.java","line":54}},{"id":"com.oracle.truffle.api.dsl.GenerateUncached","name":"GenerateUncached","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateUncached"}],"members":[{"id":"com.oracle.truffle.api.dsl.GenerateUncached#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables the generation of an uncached version of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializing"}]},{"kind":"text","text":" node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" enables the generation of an uncached version of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializing"}]},{"kind":"text","text":" node. It is disabled by default."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateUncached.java","line":126}},{"id":"com.oracle.truffle.api.dsl.GenerateUncached#inherit()","anchor":"inherit()","kind":"annotationElement","name":"inherit","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inherit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Inherits the semantics of the annotation to subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Inherits the semantics of the annotation to subclasses."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateUncached.java","line":133}}],"doc":{"summary":[{"kind":"text","text":"Generates an uncached version of a node with specializations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Generates an uncached version of a node with specializations. Uncached versions of nodes don't specialize and don't use any profiling state. This allows to store them statically and to use them whenever no specialization/profiling is desired. The uncached version of the node is accessible using a static method called "},{"kind":"code","text":"getUncached()"},{"kind":"text","text":" on the generated node. GenerateUncached is inherited to subclasses if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached#inherit()"},"code":true,"children":[{"kind":"text","text":"inherit()"}]},{"kind":"text","text":" is set to "},{"kind":"code","text":"true"},{"kind":"text","text":" (default "},{"kind":"code","text":"false"},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A node subclass must fullfill the following requirements in order to be uncachable:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"At least one specialization and one execute method must be specified."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The node has no instance fields."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"All "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" parameters provide valid "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#uncached()"},"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" initializers."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"All guards/cache/limit expressions must not bind the node receiver."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If any of these requirements are violated then an error will be shown. If node uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild"},"code":true,"children":[{"kind":"text","text":"NodeChild"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"NodeField"}]},{"kind":"text","text":" annotations then they will return constant "},{"kind":"code","text":"null"},{"kind":"text","text":" or the primitive equivalent for the uncached node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"* By default every specialization is included for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]},{"kind":"text","text":", except specializations that require a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#limit()"},"code":true,"children":[{"kind":"text","text":"limit"}]},{"kind":"text","text":" and are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()"},"code":true,"children":[{"kind":"text","text":"replaced"}]},{"kind":"text","text":", those are excluded by default. By setting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#excludeForUncached()"},"code":true,"children":[{"kind":"text","text":"Specialization.excludeForUncached()"}]},{"kind":"text","text":" explicitly the default behavior can be overridden, e.g. to include or exclude a specialization for uncached."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example:"}]}]},{"kind":"code","text":"@GenerateUncached\nabstract static class UncachableNode extends Node {\n\n    abstract Object execute(Object arg);\n\n    @Specialization(guards = \"v == cachedV\", limit = \"3\")\n    static Object doCached(int v, @Cached(\"v\") int cachedV) {\n        // do cached\n    }\n\n    @Specialization(replaces = \"doCached\")\n    static String doGeneric(int v) {\n        // do uncached\n    }\n\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"This node produces the following uncached version of the execute method:"}]},{"kind":"code","text":"@Override\nObject execute(Object arg0Value) {\n    if (arg0Value instanceof Integer) {\n        int arg0Value_ = (int) arg0Value;\n        return UncachableNode.doGeneric(arg0Value_);\n    }\n    throw new UnsupportedSpecializationException(this, new Node[]{null}, arg0Value);\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Note that the "},{"kind":"code","text":"doCached"},{"kind":"text","text":" specialization is removed from the uncached version by default. This behavior can be customized by setting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#excludeForUncached()"},"code":true,"children":[{"kind":"text","text":"Specialization.excludeForUncached()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#excludeForUncached()"},"code":true,"children":[{"kind":"text","text":"Specialization.excludeForUncached()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/dsl/GenerateUncached.java","line":116}},{"id":"com.oracle.truffle.api.dsl.GeneratedBy","name":"GeneratedBy","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GeneratedBy"}],"members":[{"id":"com.oracle.truffle.api.dsl.GeneratedBy#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/GeneratedBy.java","line":57}},{"id":"com.oracle.truffle.api.dsl.GeneratedBy#methodName()","anchor":"methodName()","kind":"annotationElement","name":"methodName","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"methodName"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/GeneratedBy.java","line":60}}],"doc":{"summary":[{"kind":"text","text":"Marks a type as being generated based on another class or method of a class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a type as being generated based on another class or method of a class."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/GeneratedBy.java","line":53}},{"id":"com.oracle.truffle.api.dsl.Idempotent","name":"Idempotent","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Idempotent"}],"doc":{"summary":[{"kind":"text","text":"Methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Idempotent"},"code":true,"children":[{"kind":"text","text":"Idempotent"}]},{"kind":"text","text":" must be methods that may cause side effects but will always cause the same side effects for repeated invocations with the same parameters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Idempotent"},"code":true,"children":[{"kind":"text","text":"Idempotent"}]},{"kind":"text","text":" must be methods that may cause side effects but will always cause the same side effects for repeated invocations with the same parameters. From this follows that an idempotent method must return the same result after it was executed once for each consecutive execution given the same parameters."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Truffle DSL uses this property to execute "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#guards()"},"code":true,"children":[{"kind":"text","text":"guards"}]},{"kind":"text","text":" where all bound methods are idempotent once on the slow-path, during specialization, and never on the fast-path. By default, all methods that do not bind dynamic parameters are interpreted as idempotent for compatibility reasons. The DSL emits warnings whenever a method should be annotated either with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Idempotent"},"code":true,"children":[{"kind":"text","text":"Idempotent"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NonIdempotent"},"code":true,"children":[{"kind":"text","text":"NonIdempotent"}]},{"kind":"text","text":". Note that guards that bind dynamic parameters will never be idempotent in the fast-path, so the DSL will not require annotations for such guards."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Examples for non-idempotent methods are:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextThreadLocal#get()"},"code":true,"children":[{"kind":"text","text":"ContextThreadLocal.get()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption#isValid()"},"code":true,"children":[{"kind":"text","text":"Assumption.isValid()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption#isValidAssumption(com.oracle.truffle.api.Assumption)"},"code":true,"children":[{"kind":"text","text":"Assumption.isValidAssumption(Assumption)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption#isValidAssumption(com.oracle.truffle.api.Assumption[])"},"code":true,"children":[{"kind":"text","text":"Assumption.isValidAssumption(Assumption[])"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextLocal#get()"},"code":true,"children":[{"kind":"text","text":"ContextLocal.get()"}]},{"kind":"text","text":" if the language uses a context policy "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#REUSE"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.REUSE"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.SHARED"}]}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Examples for idempotent methods are:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference#get(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"LanguageReference.get(Node)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"DirectCallNode.getCallTarget()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextLocal#get()"},"code":true,"children":[{"kind":"text","text":"ContextLocal.get()"}]},{"kind":"text","text":" if the language uses context policy "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.EXCLUSIVE"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that usages may assume that the current language instance never changes for a given Node. Therefore it is safe to assume language reference accesses idempotent."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NonIdempotent"},"code":true,"children":[{"kind":"text","text":"NonIdempotent"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/Idempotent.java","line":94}},{"id":"com.oracle.truffle.api.dsl.ImplicitCast","name":"ImplicitCast","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ImplicitCast"}],"doc":{"summary":[{"kind":"text","text":"Marks an implicit cast method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks an implicit cast method. Implicit cast methods are expected to have a return type, the target type and a source type the first parameter type. Any other method signature is not allowed. The source and target type must not be the same type. The order of implicit casts determines the order in which they are checked. This is important to optimize performance but also to provide a precedence for ambiguous type checks."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"@TypeSystem\npublic static class ExampleTypeSystem {\n\n    @ImplicitCast\n    public static double castInt(int value) {\n        return value;\n    }\n\n    @ImplicitCast\n    public static double castShort(short value) {\n        return value;\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"For details on how to use implicit casts see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/ImplicitCast.java","line":79}},{"id":"com.oracle.truffle.api.dsl.ImportStatic","name":"ImportStatic","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ImportStatic"}],"members":[{"id":"com.oracle.truffle.api.dsl.ImportStatic#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[]"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/ImportStatic.java","line":62}}],"doc":{"summary":[{"kind":"text","text":"Imports all "},{"kind":"code","text":"public"},{"kind":"text","text":" and "},{"kind":"code","text":"static"},{"kind":"text","text":" methods and fields of the provided classes for the use in DSL expressions of the annotated class or its subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Imports all "},{"kind":"code","text":"public"},{"kind":"text","text":" and "},{"kind":"code","text":"static"},{"kind":"text","text":" methods and fields of the provided classes for the use in DSL expressions of the annotated class or its subclasses."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#guards()"},"code":true,"children":[{"kind":"text","text":"Specialization.guards()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#assumptions()"},"code":true,"children":[{"kind":"text","text":"Specialization.assumptions()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#limit()"},"code":true,"children":[{"kind":"text","text":"Specialization.limit()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/ImportStatic.java","line":58}},{"id":"com.oracle.truffle.api.dsl.InlineSupport","name":"InlineSupport","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport#validate(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.dsl.InlineSupport.InlinableField,com.oracle.truffle.api.dsl.InlineSupport.InlinableField,com.oracle.truffle.api.dsl.InlineSupport.InlinableField...)","anchor":"validate(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.dsl.InlineSupport.InlinableField,com.oracle.truffle.api.dsl.InlineSupport.InlinableField,com.oracle.truffle.api.dsl.InlineSupport.InlinableField...)","kind":"method","name":"validate","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"validate"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":" "},{"kind":"param","text":"field0"},{"kind":"punct","text":", "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":" "},{"kind":"param","text":"field1"},{"kind":"punct","text":", "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":"... "},{"kind":"param","text":"fields"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"field0","type":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}]},{"name":"field1","type":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}]},{"name":"fields","type":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Shortcut to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"validate"}]},{"kind":"text","text":" multiple inlinable fields."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shortcut to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"validate"}]},{"kind":"text","text":" multiple inlinable fields."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":81}},{"id":"com.oracle.truffle.api.dsl.InlineSupport#validate(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.dsl.InlineSupport.InlinableField,com.oracle.truffle.api.dsl.InlineSupport.InlinableField)","anchor":"validate(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.dsl.InlineSupport.InlinableField,com.oracle.truffle.api.dsl.InlineSupport.InlinableField)","kind":"method","name":"validate","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"validate"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":" "},{"kind":"param","text":"field0"},{"kind":"punct","text":", "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":" "},{"kind":"param","text":"field1"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"field0","type":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}]},{"name":"field1","type":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Shortcut to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"validate"}]},{"kind":"text","text":" multiple inlinable fields."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shortcut to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"validate"}]},{"kind":"text","text":" multiple inlinable fields."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":95}},{"id":"com.oracle.truffle.api.dsl.InlineSupport#validate(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.dsl.InlineSupport.InlinableField)","anchor":"validate(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.dsl.InlineSupport.InlinableField)","kind":"method","name":"validate","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"validate"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":" "},{"kind":"param","text":"field0"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"field0","type":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Shortcut to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"validate"}]},{"kind":"text","text":" multiple inlinable fields."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shortcut to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"validate"}]},{"kind":"text","text":" multiple inlinable fields."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":106}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Contains classes to support node object inlining in Truffle."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Contains classes to support node object inlining in Truffle. These classes are only needed if manual node inlining is implemented. Typically Truffle DSL's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"GenerateInline"}]},{"kind":"text","text":" takes care of applying these APIs correctly. For manual usage see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.profiles.InlinedBranchProfile"}]},{"kind":"text","text":" as an example."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"GenerateInline"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":70}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$BooleanField","name":"InlineSupport.BooleanField","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.BooleanField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$BooleanField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":590}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$BooleanField#set(com.oracle.truffle.api.nodes.Node,boolean)","anchor":"set(com.oracle.truffle.api.nodes.Node,boolean)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":602}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$BooleanField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.BooleanField","ref":"com.oracle.truffle.api.dsl.InlineSupport$BooleanField"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.BooleanField","ref":"com.oracle.truffle.api.dsl.InlineSupport$BooleanField"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":615}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for boolean primitives in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for boolean primitives in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":576}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ByteField","name":"InlineSupport.ByteField","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.ByteField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$ByteField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":639}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ByteField#set(com.oracle.truffle.api.nodes.Node,byte)","anchor":"set(com.oracle.truffle.api.nodes.Node,byte)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":651}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ByteField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.ByteField","ref":"com.oracle.truffle.api.dsl.InlineSupport$ByteField"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.ByteField","ref":"com.oracle.truffle.api.dsl.InlineSupport$ByteField"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":664}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for byte primitives in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for byte primitives in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":625}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$CharField","name":"InlineSupport.CharField","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.CharField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$CharField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"char"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":737}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$CharField#set(com.oracle.truffle.api.nodes.Node,char)","anchor":"set(com.oracle.truffle.api.nodes.Node,char)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"char"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":749}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$CharField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.CharField","ref":"com.oracle.truffle.api.dsl.InlineSupport$CharField"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.CharField","ref":"com.oracle.truffle.api.dsl.InlineSupport$CharField"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":762}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for char primitives in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for char primitives in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":723}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$DoubleField","name":"InlineSupport.DoubleField","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.DoubleField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$DoubleField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":933}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$DoubleField#set(com.oracle.truffle.api.nodes.Node,double)","anchor":"set(com.oracle.truffle.api.nodes.Node,double)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":945}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$DoubleField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.DoubleField","ref":"com.oracle.truffle.api.dsl.InlineSupport$DoubleField"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.DoubleField","ref":"com.oracle.truffle.api.dsl.InlineSupport$DoubleField"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":958}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for double primitives in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for double primitives in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":919}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$FloatField","name":"InlineSupport.FloatField","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.FloatField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$FloatField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":786}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$FloatField#set(com.oracle.truffle.api.nodes.Node,float)","anchor":"set(com.oracle.truffle.api.nodes.Node,float)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":798}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$FloatField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.FloatField","ref":"com.oracle.truffle.api.dsl.InlineSupport$FloatField"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.FloatField","ref":"com.oracle.truffle.api.dsl.InlineSupport$FloatField"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":811}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for float primitives in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for float primitives in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":772}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","name":"InlineSupport.InlinableField","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.InlinableField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.UnsafeField","ref":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"}],"superclass":[{"kind":"type","text":"InlineSupport.UnsafeField","ref":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","anchor":"validate(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"validate","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"validate"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Validates a receiver of an inlined field."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Validates a receiver of an inlined field. This is used for generated DSL code to fail early for usage mistakes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":367}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Base class for inlined field references."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Base class for inlined field references."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":350}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget","name":"InlineSupport.InlineTarget","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.InlineTarget"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget#getTargetClass()","anchor":"getTargetClass()","kind":"method","name":"getTargetClass","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getTargetClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns static target class this inlining specification was applied."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns static target class this inlining specification was applied."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":232}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget#getPrimitive(int,java.lang.Class)","anchor":"getPrimitive(int,java.lang.Class)","kind":"method","name":"getPrimitive","modifiers":["public"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getPrimitive"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"fieldClass"},{"kind":"punct","text":")"}],"params":[{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"fieldClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Requests a primitive field for a given field index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Requests a primitive field for a given field index. Fields that are requested from a target must match the required fields specified using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},"code":true,"children":[{"kind":"text","text":"RequiredField"}]},{"kind":"text","text":" on the target parameter of an inline method otherwise an "},{"kind":"link","target":{"id":"java.lang.IncompatibleClassChangeError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IncompatibleClassChangeError.html"},"code":true,"children":[{"kind":"text","text":"IncompatibleClassChangeError"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":244}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget#getState(int,int)","anchor":"getState(int,int)","kind":"method","name":"getState","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.StateField","ref":"com.oracle.truffle.api.dsl.InlineSupport$StateField"},{"kind":"punct","text":" "},{"kind":"name","text":"getState"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"minimumBits"},{"kind":"punct","text":")"}],"params":[{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"minimumBits","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.StateField","ref":"com.oracle.truffle.api.dsl.InlineSupport$StateField"}]},"doc":{"summary":[{"kind":"text","text":"Requests a state field for a given field index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Requests a state field for a given field index. Fields that are requested from a target must match the required fields specified using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},"code":true,"children":[{"kind":"text","text":"RequiredField"}]},{"kind":"text","text":" on the target parameter of an inline method otherwise an "},{"kind":"link","target":{"id":"java.lang.IncompatibleClassChangeError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IncompatibleClassChangeError.html"},"code":true,"children":[{"kind":"text","text":"IncompatibleClassChangeError"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":260}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget#getReference(int,java.lang.Class)","anchor":"getReference(int,java.lang.Class)","kind":"method","name":"getReference","modifiers":["public"],"typeParams":[{"name":"V"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"V"},{"kind":"punct","text":"> "},{"kind":"type","text":"InlineSupport.ReferenceField","ref":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"V"},{"kind":"punct","text":"> "},{"kind":"name","text":"getReference"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"valueClass"},{"kind":"punct","text":")"}],"params":[{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"valueClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.ReferenceField","ref":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"V"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Requests a reference field for a given field index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Requests a reference field for a given field index. Fields that are requested from a target must match the required fields specified using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},"code":true,"children":[{"kind":"text","text":"RequiredField"}]},{"kind":"text","text":" on the target parameter of an inline method otherwise an "},{"kind":"link","target":{"id":"java.lang.IncompatibleClassChangeError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IncompatibleClassChangeError.html"},"code":true,"children":[{"kind":"text","text":"IncompatibleClassChangeError"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":281}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget#create(java.lang.Class,com.oracle.truffle.api.dsl.InlineSupport.InlinableField...)","anchor":"create(java.lang.Class,com.oracle.truffle.api.dsl.InlineSupport.InlinableField...)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"targetClass"},{"kind":"punct","text":", "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":"... "},{"kind":"param","text":"updaters"},{"kind":"punct","text":")"}],"params":[{"name":"targetClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},{"name":"updaters","type":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]},"doc":{"summary":[{"kind":"text","text":"Creates an inline target for an inlined node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an inline target for an inlined node. Intended for use by generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":329}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An inline targert for an inlinable node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An inline targert for an inlinable node. This is used as first parameter of an inline method. The inline method is used by generated Truffle DSL code as well as manually written inlinable nodes. Usage example:"}]},{"kind":"code","text":"public static InlinedCountingConditionProfile inline(\n                @RequiredField(value = StateField.class, bits = 7) //\n                @RequiredField(value = PrimitiveIntField.class) //\n                @RequiredField(value = ReferenceField.class, type = String.class) InlineTarget target) {\n    StateField state = target.getState(0, 7);\n    PrimitiveIntField primitive = target.getPrimitive(1, PrimitiveIntField.class);\n    ReferenceField reference = target.getReference(2, String.class);\n\n    // pass fields on to inline node\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":217}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$IntField","name":"InlineSupport.IntField","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.IntField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$IntField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":835}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$IntField#set(com.oracle.truffle.api.nodes.Node,int)","anchor":"set(com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":847}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$IntField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.IntField","ref":"com.oracle.truffle.api.dsl.InlineSupport$IntField"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.IntField","ref":"com.oracle.truffle.api.dsl.InlineSupport$IntField"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":860}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for int primitives in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for int primitives in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":821}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$LongField","name":"InlineSupport.LongField","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.LongField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$LongField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":884}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$LongField#set(com.oracle.truffle.api.nodes.Node,long)","anchor":"set(com.oracle.truffle.api.nodes.Node,long)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":896}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$LongField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.LongField","ref":"com.oracle.truffle.api.dsl.InlineSupport$LongField"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.LongField","ref":"com.oracle.truffle.api.dsl.InlineSupport$LongField"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":909}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for long primitives in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for long primitives in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":870}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField","name":"InlineSupport.ReferenceField","kind":"class","language":"java","modifiers":["public","static","final"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.ReferenceField"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":513}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField#set(com.oracle.truffle.api.nodes.Node,T)","anchor":"set(com.oracle.truffle.api.nodes.Node,T)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"typeParam","text":"T"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":526}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField#getVolatile(com.oracle.truffle.api.nodes.Node)","anchor":"getVolatile(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getVolatile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node using volatile semantics."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node using volatile semantics. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":538}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField#compareAndSet(com.oracle.truffle.api.nodes.Node,T,T)","anchor":"compareAndSet(com.oracle.truffle.api.nodes.Node,T,T)","kind":"method","name":"compareAndSet","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSet"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"expect","type":[{"kind":"typeParam","text":"T"}]},{"name":"update","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node and expected value using compare and set semantics."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node and expected value using compare and set semantics. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":551}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String,java.lang.Class)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String,java.lang.Class)","kind":"method","name":"create","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"InlineSupport.ReferenceField","ref":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"super"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"valueClass"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"valueClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"super"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.ReferenceField","ref":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class, field name and value class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class, field name and value class. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":564}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for references in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for references in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":496}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField","name":"InlineSupport.RequiredField","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{PARAMETER}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.dsl.InlineSupport.RequiredFields.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.RequiredField"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":"> "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Species which field type is expected."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Species which field type is expected. See subclasses of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},"code":true,"children":[{"kind":"text","text":"InlinableField"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":136}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField#bits()","anchor":"bits()","kind":"annotationElement","name":"bits","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"bits"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Specifies the number of bits needed for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$StateField"},"code":true,"children":[{"kind":"text","text":"state fields"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the number of bits needed for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$StateField"},"code":true,"children":[{"kind":"text","text":"state fields"}]},{"kind":"text","text":". This property only has an effect for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$StateField"},"code":true,"children":[{"kind":"text","text":"StateField"}]},{"kind":"text","text":". The number of bits must be between "},{"kind":"code","text":"1"},{"kind":"text","text":" and"},{"kind":"code","text":"32"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":145}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField#type()","anchor":"type()","kind":"annotationElement","name":"type","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"type"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"com.oracle.truffle.api.dsl.InlineSupport.InlinableField.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"defaultValue":"com.oracle.truffle.api.dsl.InlineSupport.InlinableField.class","doc":{"summary":[{"kind":"text","text":"90 Specifies the value type for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField"},"code":true,"children":[{"kind":"text","text":"reference"}]},{"kind":"text","text":" required fields."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"90 Specifies the value type for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField"},"code":true,"children":[{"kind":"text","text":"reference"}]},{"kind":"text","text":" required fields. This property only has an effect for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField"},"code":true,"children":[{"kind":"text","text":"ReferenceField"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":153}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField#dimensions()","anchor":"dimensions()","kind":"annotationElement","name":"dimensions","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"dimensions"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Specifies the compilation final "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal#dimensions()"},"code":true,"children":[{"kind":"text","text":"dimensions"}]},{"kind":"text","text":" of the required inlined field."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the compilation final "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal#dimensions()"},"code":true,"children":[{"kind":"text","text":"dimensions"}]},{"kind":"text","text":" of the required inlined field. This property has only an effect with array types and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$ReferenceField"},"code":true,"children":[{"kind":"text","text":"reference fields"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":162}}],"doc":{"summary":[{"kind":"text","text":"Used to specify fields for node object inlining in inline methods for the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},"code":true,"children":[{"kind":"text","text":"inline target"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Used to specify fields for node object inlining in inline methods for the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},"code":true,"children":[{"kind":"text","text":"inline target"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},"code":true,"children":[{"kind":"text","text":"InlineTarget"}]},{"kind":"text","text":" for a full usage example."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":126}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredFields","name":"InlineSupport.RequiredFields","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{PARAMETER}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.RequiredFields"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredFields#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"InlineSupport.RequiredField","ref":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlineSupport.RequiredField","ref":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Used to specify multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},"code":true,"children":[{"kind":"text","text":"RequiredField"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Used to specify multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},"code":true,"children":[{"kind":"text","text":"RequiredField"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":191}}],"doc":{"summary":[{"kind":"text","text":"Used to specify multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},"code":true,"children":[{"kind":"text","text":"RequiredField"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Used to specify multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},"code":true,"children":[{"kind":"text","text":"RequiredField"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.InlineSupport$RequiredField"},"code":true,"children":[{"kind":"text","text":"RequiredField"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":182}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ShortField","name":"InlineSupport.ShortField","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.ShortField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$ShortField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"short"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":688}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ShortField#set(com.oracle.truffle.api.nodes.Node,short)","anchor":"set(com.oracle.truffle.api.nodes.Node,short)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"short"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":700}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$ShortField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.ShortField","ref":"com.oracle.truffle.api.dsl.InlineSupport$ShortField"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.ShortField","ref":"com.oracle.truffle.api.dsl.InlineSupport$ShortField"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":713}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for short primitives in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for short primitives in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":674}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$StateField","name":"InlineSupport.StateField","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.StateField"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"superclass":[{"kind":"type","text":"InlineSupport.InlinableField","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"}],"ancestors":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField"},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeField"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$StateField#subUpdater(int,int)","anchor":"subUpdater(int,int)","kind":"method","name":"subUpdater","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.StateField","ref":"com.oracle.truffle.api.dsl.InlineSupport$StateField"},{"kind":"punct","text":" "},{"kind":"name","text":"subUpdater"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"newOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"newLength"},{"kind":"punct","text":")"}],"params":[{"name":"newOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"newLength","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.StateField","ref":"com.oracle.truffle.api.dsl.InlineSupport$StateField"}]},"doc":{"summary":[{"kind":"text","text":"Creates a sub updater for a subset of bits in a state field."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a sub updater for a subset of bits in a state field. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":423}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$StateField#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"This method returns the value of the target field given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":445}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$StateField#set(com.oracle.truffle.api.nodes.Node,int)","anchor":"set(com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"This method sets the value of the target field giving the a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, an "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" is thrown. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is provided, then a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":457}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$StateField#create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","anchor":"create(java.lang.invoke.MethodHandles.Lookup,java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSupport.StateField","ref":"com.oracle.truffle.api.dsl.InlineSupport$StateField"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"declaringLookup"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"declaringLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},{"name":"field","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"InlineSupport.StateField","ref":"com.oracle.truffle.api.dsl.InlineSupport$StateField"}]},"doc":{"summary":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":485}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField","text":"InlineSupport.InlinableField"},"kind":"class","members":[{"id":"com.oracle.truffle.api.dsl.InlineSupport$InlinableField#validate(com.oracle.truffle.api.nodes.Node)","text":"validate"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a field for updating state fields in inlined nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a field for updating state fields in inlined nodes."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":389}},{"id":"com.oracle.truffle.api.dsl.InlineSupport$UnsafeAccessedField","name":"InlineSupport.UnsafeAccessedField","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{FIELD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"InlineSupport.UnsafeAccessedField"}],"enclosing":"com.oracle.truffle.api.dsl.InlineSupport","doc":{"summary":[{"kind":"text","text":"Marks a field to be accessed with unsafe."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a field to be accessed with unsafe. This annotation is useful to communicate fields that must not be rewritten by code obfuscation tools like Proguard."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/InlineSupport.java","line":171}},{"id":"com.oracle.truffle.api.dsl.Introspectable","name":"Introspectable","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Introspectable"}],"doc":{"summary":[{"kind":"text","text":"Annotate a DSL operation using this annotation to be introspectable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotate a DSL operation using this annotation to be introspectable. The methods in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection"},"code":true,"children":[{"kind":"text","text":"Introspection"}]},{"kind":"text","text":" can only be used if the operation is annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspectable"},"code":true,"children":[{"kind":"text","text":"Introspectable"}]},{"kind":"text","text":"."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspectable.java","line":54}},{"id":"com.oracle.truffle.api.dsl.Introspection","name":"Introspection","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Introspection"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.dsl.Introspection#isIntrospectable(com.oracle.truffle.api.nodes.Node)","anchor":"isIntrospectable(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"isIntrospectable","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isIntrospectable"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a DSL generated node"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if the given node is introspectable"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given node is introspectable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given node is introspectable. If something is introspectable is determined by if the node is generated by Truffle DSL, if is annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspectable"},"code":true,"children":[{"kind":"text","text":"Introspectable"}]},{"kind":"text","text":" and if the DSL implementation supports introspection."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":87}},{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecialization(com.oracle.truffle.api.nodes.Node,java.lang.String)","anchor":"getSpecialization(com.oracle.truffle.api.nodes.Node,java.lang.String)","kind":"method","name":"getSpecialization","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getSpecialization"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"methodName"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a introspectable DSL operation with at least one specialization"}]}]},{"name":"methodName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Java method name of the specialization to introspect"}]}]}],"returns":{"type":[{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"introspection info for the method"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns introspection information for the first specialization that matches a given method name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns introspection information for the first specialization that matches a given method name. A node must declare at least one specialization and must be annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspectable"},"code":true,"children":[{"kind":"text","text":"Introspectable"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. If multiple specializations with the same method name are declared then an undefined specialization is going to be returned. In such cases disambiguate them by renaming the specialzation method name. The returned introspection information is not updated when the state of the given operation node is updated. The implementation of this method might be slow, do not use it in performance critical code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For a node was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlined"}]},{"kind":"text","text":" use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecialization(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getSpecialization(Node, Node, String)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection"},"code":true,"children":[{"kind":"text","text":"example usage"}]}]]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":110}},{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecialization(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.String)","anchor":"getSpecialization(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.String)","kind":"method","name":"getSpecialization","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getSpecialization"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"inlineParent"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"methodName"},{"kind":"punct","text":")"}],"params":[{"name":"inlineParent","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the inlined parent node."}]}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a introspectable DSL operation with at least one specialization"}]}]},{"name":"methodName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Java method name of the specialization to introspect"}]}]}],"returns":{"type":[{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"introspection info for the method"}]}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecialization(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getSpecialization(Node, String)"}]},{"kind":"text","text":" but must be used for nodes that were "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlined"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecialization(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getSpecialization(Node, String)"}]},{"kind":"text","text":" but must be used for nodes that were "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlined"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection"},"code":true,"children":[{"kind":"text","text":"example usage"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":129}},{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecialization(com.oracle.truffle.api.nodes.Node,int,com.oracle.truffle.api.nodes.Node,java.lang.String)","anchor":"getSpecialization(com.oracle.truffle.api.nodes.Node,int,com.oracle.truffle.api.nodes.Node,java.lang.String)","kind":"method","name":"getSpecialization","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getSpecialization"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"methodName"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode node"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index"}]}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a introspectable DSL node with at least one specialization"}]}]},{"name":"methodName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Java method name of the specialization to introspect"}]}]}],"returns":{"type":[{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecialization(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getSpecialization(Node, String)"}]},{"kind":"text","text":" but must be used for nodes that were used as part of a bytecode interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecialization(com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getSpecialization(Node, String)"}]},{"kind":"text","text":" but must be used for nodes that were used as part of a bytecode interpreter."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":149}},{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecializations(com.oracle.truffle.api.nodes.Node)","anchor":"getSpecializations(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getSpecializations","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getSpecializations"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a introspectable DSL operation with at least one specialization"}]}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns introspection information for all declared specializations as unmodifiable list."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns introspection information for all declared specializations as unmodifiable list. A given node must declare at least one specialization and must be annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspectable"},"code":true,"children":[{"kind":"text","text":"Introspectable"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The returned introspection information is not updated when the state of the given operation node is updated. The implementation of this method might be slow, do not use it in performance critical code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For a node was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlined"}]},{"kind":"text","text":" use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecialization(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"getSpecialization(Node, Node, String)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection"},"code":true,"children":[{"kind":"text","text":"example usage"}]}]]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":175}},{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecializations(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","anchor":"getSpecializations(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getSpecializations","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getSpecializations"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"inlineParent"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"inlineParent","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the inlined parent node."}]}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a introspectable DSL operation with at least one specialization"}]}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecializations(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"getSpecializations(Node)"}]},{"kind":"text","text":" but must be used for nodes that were "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlined"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecializations(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"getSpecializations(Node)"}]},{"kind":"text","text":" but must be used for nodes that were "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlined"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection"},"code":true,"children":[{"kind":"text","text":"example usage"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":192}},{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecializations(com.oracle.truffle.api.nodes.Node,int,com.oracle.truffle.api.nodes.Node)","anchor":"getSpecializations(com.oracle.truffle.api.nodes.Node,int,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getSpecializations","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getSpecializations"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode node"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index"}]}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a introspectable DSL node with at least one specialization"}]}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Introspection.SpecializationInfo","ref":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecializations(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"getSpecializations(Node)"}]},{"kind":"text","text":" but must be used for nodes that were used as part of a bytecode interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecializations(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"getSpecializations(Node)"}]},{"kind":"text","text":" but must be used for nodes that were used as part of a bytecode interpreter."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":210}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Contains introspection utilities for Truffle DSL."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Contains introspection utilities for Truffle DSL. The contained utilities are only usable if the operation node is annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspectable"},"code":true,"children":[{"kind":"text","text":"Introspectable"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Introspection is useful for using testing the node declaration and verifying that particular specializations become active."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example for using introspection in unit testing:"}]},{"kind":"code","language":"java","text":"@Introspectable\nabstract static class NegateNode extends Node {\n\n    abstract Object execute(Object o);\n\n    @Specialization(guards = \"cachedvalue == value\", limit = \"1\")\n    protected static int doInt(int value,\n                    @Cached(\"value\") int cachedvalue) {\n        return -cachedvalue;\n    }\n\n    @Specialization(replaces = \"doInt\")\n    protected static int doGeneric(int value) {\n        return -value;\n    }\n}\n\npublic void testUsingIntrospection() {\n    NegateNode node = null; // NegateNodeGen.create();\n    SpecializationInfo info;\n\n    node.execute(1);\n    info = Introspection.getSpecialization(node, \"doInt\");\n    assert info.getInstances() == 1;\n\n    node.execute(1);\n    info = Introspection.getSpecialization(node, \"doInt\");\n    assert info.getInstances() == 1;\n\n    node.execute(2);\n    info = Introspection.getSpecialization(node, \"doInt\");\n    assert info.getInstances() == 0;\n\n    info = Introspection.getSpecialization(node, \"doGeneric\");\n    assert info.getInstances() == 1;\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspectable"},"code":true,"children":[{"kind":"text","text":"Introspectable"}]}]]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":67}},{"id":"com.oracle.truffle.api.dsl.Introspection$Provider","name":"Introspection.Provider","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Introspection.Provider"}],"enclosing":"com.oracle.truffle.api.dsl.Introspection","members":[{"id":"com.oracle.truffle.api.dsl.Introspection$Provider#getIntrospectionData()","anchor":"getIntrospectionData()","kind":"method","name":"getIntrospectionData","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Introspection","ref":"com.oracle.truffle.api.dsl.Introspection"},{"kind":"punct","text":" "},{"kind":"name","text":"getIntrospectionData"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Introspection","ref":"com.oracle.truffle.api.dsl.Introspection"}]},"doc":{"summary":[{"kind":"text","text":"Returns internal reflection data in undefined format."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns internal reflection data in undefined format. A DSL user must not call this method."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":363}},{"id":"com.oracle.truffle.api.dsl.Introspection$Provider#getIntrospectionData(com.oracle.truffle.api.nodes.Node)","anchor":"getIntrospectionData(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getIntrospectionData","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Introspection","ref":"com.oracle.truffle.api.dsl.Introspection"},{"kind":"punct","text":" "},{"kind":"name","text":"getIntrospectionData"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"inlinedParent"},{"kind":"punct","text":")"}],"params":[{"name":"inlinedParent","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"Introspection","ref":"com.oracle.truffle.api.dsl.Introspection"}]},"doc":{"summary":[{"kind":"text","text":"Returns internal reflection data in undefined format."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns internal reflection data in undefined format. A DSL user must not call this method."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":374}},{"id":"com.oracle.truffle.api.dsl.Introspection$Provider#getIntrospectionData(com.oracle.truffle.api.nodes.Node,int)","anchor":"getIntrospectionData(com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"getIntrospectionData","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Introspection","ref":"com.oracle.truffle.api.dsl.Introspection"},{"kind":"punct","text":" "},{"kind":"name","text":"getIntrospectionData"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Introspection","ref":"com.oracle.truffle.api.dsl.Introspection"}]},"doc":{"summary":[{"kind":"text","text":"Returns internal reflection data in undefined format."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns internal reflection data in undefined format. A DSL user must not call this method."}]}]},"since":"26.0","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":384}},{"id":"com.oracle.truffle.api.dsl.Introspection$Provider#create(java.lang.Object...)","anchor":"create(java.lang.Object...)","kind":"method","name":"create","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Introspection","ref":"com.oracle.truffle.api.dsl.Introspection"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"data"},{"kind":"punct","text":")"}],"params":[{"name":"data","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"introspection data in an internal format"}]}]}],"returns":{"type":[{"kind":"type","text":"Introspection","ref":"com.oracle.truffle.api.dsl.Introspection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"wrapped data to be used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection#getSpecializations(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"Introspection.getSpecializations(com.oracle.truffle.api.nodes.Node)"}]},{"kind":"text","text":" and similar methods"}]}]},"doc":{"summary":[{"kind":"text","text":"Factory method to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" introspection data."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Factory method to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" introspection data. The factory is used to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection"},"code":true,"children":[{"kind":"text","text":"Introspection"}]},{"kind":"text","text":" data to be returned from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection$Provider#getIntrospectionData()"},"code":true,"children":[{"kind":"text","text":"getIntrospectionData()"}]},{"kind":"text","text":" method. The format of the "},{"kind":"code","text":"data"},{"kind":"text","text":" parameters is internal, thus this method shall only be used by the nodes generated by the DSL processor. A DSL user must not call this method."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":403}}],"doc":{"summary":[{"kind":"text","text":"Internal marker interface for DSL generated code to access reflection information."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal marker interface for DSL generated code to access reflection information. A DSL user must not refer to this type manually."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":355}},{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo","name":"Introspection.SpecializationInfo","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Introspection.SpecializationInfo"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.Introspection","members":[{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo#getMethodName()","anchor":"getMethodName()","kind":"method","name":"getMethodName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMethodName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the method name of the introspected specialization."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the method name of the introspected specialization. Please note that the returned method name might not be unique for a given node."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":271}},{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo#isActive()","anchor":"isActive()","kind":"method","name":"isActive","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isActive"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the specialization was active at the time when the introspection was performed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the specialization was active at the time when the introspection was performed."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":281}},{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo#isExcluded()","anchor":"isExcluded()","kind":"method","name":"isExcluded","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isExcluded"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the specialization was excluded at the time when the introspection was performed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the specialization was excluded at the time when the introspection was performed."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":291}},{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo#getInstances()","anchor":"getInstances()","kind":"method","name":"getInstances","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstances"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of dynamic specialization instances that are active for this specialization."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of dynamic specialization instances that are active for this specialization."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":301}},{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo#getCachedData(int)","anchor":"getCachedData(int)","kind":"method","name":"getCachedData","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getCachedData"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"instanceIndex"},{"kind":"punct","text":")"}],"params":[{"name":"instanceIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the cached state for a given specialization instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the cached state for a given specialization instance. The provided instance index must be greater or equal "},{"kind":"code","text":"0"},{"kind":"text","text":" and smaller "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo#getInstances()"},"code":true,"children":[{"kind":"text","text":"getInstances()"}]},{"kind":"text","text":". The returned list is unmodifiable and never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":312}},{"id":"com.oracle.truffle.api.dsl.Introspection$SpecializationInfo#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":324}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents dynamic introspection information of a specialization of a DSL operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents dynamic introspection information of a specialization of a DSL operation."}]}]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Introspection.java","line":253}},{"id":"com.oracle.truffle.api.dsl.NeverDefault","name":"NeverDefault","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, FIELD, PARAMETER}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NeverDefault"}],"doc":{"summary":[{"kind":"text","text":"Useful to annotate methods, fields or parameters bound by any DSL expression to indicate that it never returns a "},{"kind":"code","text":"null"},{"kind":"text","text":" or default primitive value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Useful to annotate methods, fields or parameters bound by any DSL expression to indicate that it never returns a "},{"kind":"code","text":"null"},{"kind":"text","text":" or default primitive value. This may in some case be preferential to specifying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#neverDefault()"},"code":true,"children":[{"kind":"text","text":"Cached.neverDefault()"}]},{"kind":"text","text":" for each cache expression. The DSL emits a warnings when the usage of this method is recommended."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached#neverDefault()"},"code":true,"children":[{"kind":"text","text":"Cached.neverDefault()"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/NeverDefault.java","line":57}},{"id":"com.oracle.truffle.api.dsl.NodeChild","name":"NodeChild","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.dsl.NodeChildren.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeChild"}],"members":[{"id":"com.oracle.truffle.api.dsl.NodeChild#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeChild.java","line":62}},{"id":"com.oracle.truffle.api.dsl.NodeChild#type()","anchor":"type()","kind":"annotationElement","name":"type","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"type"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"com.oracle.truffle.api.nodes.Node.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"defaultValue":"com.oracle.truffle.api.nodes.Node.class","since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeChild.java","line":65}},{"id":"com.oracle.truffle.api.dsl.NodeChild#executeWith()","anchor":"executeWith()","kind":"annotationElement","name":"executeWith","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"executeWith"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#executeWith()"},"code":true,"children":[{"kind":"text","text":"executeWith()"}]},{"kind":"text","text":" property allows a node to pass the result of one child's executable as an input to another child's executable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#executeWith()"},"code":true,"children":[{"kind":"text","text":"executeWith()"}]},{"kind":"text","text":" property allows a node to pass the result of one child's executable as an input to another child's executable. These referenced children must be defined before the current node in the execution order. The current node "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#type()"},"code":true,"children":[{"kind":"text","text":"type()"}]},{"kind":"text","text":" attribute must be set to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" which supports the evaluated execution with the number of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#executeWith()"},"code":true,"children":[{"kind":"text","text":"executeWith()"}]},{"kind":"text","text":" arguments that are defined. For example if this child is executed with one argument, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#type()"},"code":true,"children":[{"kind":"text","text":"type()"}]},{"kind":"text","text":" attribute must define a node which publicly declares a method with the signature "},{"kind":"code","text":"Object execute*(VirtualFrame, Object)"},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeChild.java","line":78}},{"id":"com.oracle.truffle.api.dsl.NodeChild#implicit()","anchor":"implicit()","kind":"annotationElement","name":"implicit","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"implicit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Allows implicit creation of this child node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows implicit creation of this child node. If this property is "},{"kind":"code","text":"false"},{"kind":"text","text":" (the default), the factory method of the parent node needs to be called with an instance of the child node as argument. If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#implicit()"},"code":true,"children":[{"kind":"text","text":"implicit"}]},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", the child node will be implicitly created when calling the factory method of the parent node."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/NodeChild.java","line":88}},{"id":"com.oracle.truffle.api.dsl.NodeChild#implicitCreate()","anchor":"implicitCreate()","kind":"annotationElement","name":"implicitCreate","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"implicitCreate"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"create()\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"create()\"","doc":{"summary":[{"kind":"text","text":"Defines the initializer expression for implicit child node creation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines the initializer expression for implicit child node creation. Specifying this property will enable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#implicit()"},"code":true,"children":[{"kind":"text","text":"implicit()"}]},{"kind":"text","text":" mode on this child node automatically, this should not be specified together with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#implicit()"},"code":true,"children":[{"kind":"text","text":"implicit()"}]},{"kind":"text","text":". If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#implicit()"},"code":true,"children":[{"kind":"text","text":"implicit()"}]},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", the initializer expression defaults to "},{"kind":"code","text":"\"create()\""},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#implicit()"},"code":true,"children":[{"kind":"text","text":"implicit()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/NodeChild.java","line":100}},{"id":"com.oracle.truffle.api.dsl.NodeChild#allowUncached()","anchor":"allowUncached()","kind":"annotationElement","name":"allowUncached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"allowUncached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Allow this child node to be used in uncached mode."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allow this child node to be used in uncached mode. If set to "},{"kind":"code","text":"false"},{"kind":"text","text":" (the default), only execute methods that have an explicit argument for the child value can be used on the uncached version of the parent node. If set to "},{"kind":"code","text":"true"},{"kind":"text","text":", execute methods that do not have an explicit argument for the child value use an uncached version of the child node to compute the missing value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/NodeChild.java","line":112}},{"id":"com.oracle.truffle.api.dsl.NodeChild#uncached()","anchor":"uncached()","kind":"annotationElement","name":"uncached","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"uncached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"getUncached()\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"getUncached()\"","doc":{"summary":[{"kind":"text","text":"Defines the expression to get an uncached instance of the child node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines the expression to get an uncached instance of the child node. Specifying this property will implicitly enable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#allowUncached()"},"code":true,"children":[{"kind":"text","text":"allowUncached()"}]},{"kind":"text","text":" on this child node, this should not be specified together with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#allowUncached()"},"code":true,"children":[{"kind":"text","text":"allowUncached()"}]},{"kind":"text","text":". If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#allowUncached()"},"code":true,"children":[{"kind":"text","text":"allowUncached()"}]},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", the uncached expression defaults to "},{"kind":"code","text":"\"getUncached()\""},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild#allowUncached()"},"code":true,"children":[{"kind":"text","text":"allowUncached()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/dsl/NodeChild.java","line":124}}],"doc":{"summary":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild"},"code":true,"children":[{"kind":"text","text":"NodeChild"}]},{"kind":"text","text":" element defines an executable child for the enclosing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild"},"code":true,"children":[{"kind":"text","text":"NodeChild"}]},{"kind":"text","text":" element defines an executable child for the enclosing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" contains multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChildren"},"code":true,"children":[{"kind":"text","text":"NodeChildren"}]},{"kind":"text","text":" specified in linear execution order."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeChild.java","line":57}},{"id":"com.oracle.truffle.api.dsl.NodeChildren","name":"NodeChildren","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeChildren"}],"members":[{"id":"com.oracle.truffle.api.dsl.NodeChildren#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"NodeChild","ref":"com.oracle.truffle.api.dsl.NodeChild"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"NodeChild","ref":"com.oracle.truffle.api.dsl.NodeChild"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeChildren.java","line":53}}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeChildren.java","line":49}},{"id":"com.oracle.truffle.api.dsl.NodeFactory","name":"NodeFactory","kind":"interface","language":"java","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"members":[{"id":"com.oracle.truffle.api.dsl.NodeFactory#createNode(java.lang.Object...)","anchor":"createNode(java.lang.Object...)","kind":"method","name":"createNode","signature":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createNode"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the argument values"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instantiated node"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}]}],"doc":{"summary":[{"kind":"text","text":"Instantiates the node using the arguments array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Instantiates the node using the arguments array. The arguments length and types must suffice one of the returned signatures in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFactory#getNodeSignatures()"},"code":true,"children":[{"kind":"text","text":"getNodeSignatures()"}]},{"kind":"text","text":". If the arguments array does not suffice one of the node signatures an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeFactory.java","line":64}},{"id":"com.oracle.truffle.api.dsl.NodeFactory#getNodeClass()","anchor":"getNodeClass()","kind":"method","name":"getNodeClass","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"getNodeClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the node class that will get created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFactory#createNode(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"createNode(Object...)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the node class that will get created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFactory#createNode(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"createNode(Object...)"}]},{"kind":"text","text":". The node class does not match exactly to the instantiated object but they are guaranteed to be assignable."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeFactory.java","line":73}},{"id":"com.oracle.truffle.api.dsl.NodeFactory#getNodeSignatures()","anchor":"getNodeSignatures()","kind":"method","name":"getNodeSignatures","signature":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>>> "},{"kind":"name","text":"getNodeSignatures"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>>>"}]},"doc":{"summary":[{"kind":"text","text":"Returns a list of signatures that can be used to invoke "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFactory#createNode(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"createNode(Object...)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a list of signatures that can be used to invoke "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFactory#createNode(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"createNode(Object...)"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeFactory.java","line":80}},{"id":"com.oracle.truffle.api.dsl.NodeFactory#getExecutionSignature()","anchor":"getExecutionSignature()","kind":"method","name":"getExecutionSignature","signature":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">> "},{"kind":"name","text":"getExecutionSignature"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">>"}]},"doc":{"summary":[{"kind":"text","text":"Returns a list of children that will be executed by the created node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a list of children that will be executed by the created node. This is useful for base nodes that can execute a variable amount of nodes."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeFactory.java","line":88}},{"id":"com.oracle.truffle.api.dsl.NodeFactory#getUncachedInstance()","anchor":"getUncachedInstance()","kind":"method","name":"getUncachedInstance","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncachedInstance"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of this node or "},{"kind":"code","text":"null"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]},{"kind":"text","text":" was not applied to the node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of this node or "},{"kind":"code","text":"null"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]},{"kind":"text","text":" was not applied to the node."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/dsl/NodeFactory.java","line":96}}],"doc":{"summary":[{"kind":"text","text":"Enables the dynamic creation of generated nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables the dynamic creation of generated nodes. It provides an convenient way to instantiate generated node classes without using reflection."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeFactory.java","line":52}},{"id":"com.oracle.truffle.api.dsl.NodeField","name":"NodeField","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.dsl.NodeFields.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeField"}],"members":[{"id":"com.oracle.truffle.api.dsl.NodeField#name()","anchor":"name()","kind":"annotationElement","name":"name","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeField.java","line":75}},{"id":"com.oracle.truffle.api.dsl.NodeField#type()","anchor":"type()","kind":"annotationElement","name":"type","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"type"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeField.java","line":78}}],"doc":{"summary":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"NodeField"}]},{"kind":"text","text":" element defines a field for the generated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"NodeField"}]},{"kind":"text","text":" element defines a field for the generated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" contains multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFields"},"code":true,"children":[{"kind":"text","text":"NodeFields"}]},{"kind":"text","text":" specified in linear declaration order. The field can be accessed by declaring an abstract getter or setter named "},{"kind":"code","text":"\"get\" + firstLetterUpperCase("},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField#name()"},"code":true,"children":[{"kind":"text","text":"name()"}]},{"kind":"code","text":")()"},{"kind":"text","text":" (or "},{"kind":"code","text":"\"is\" + firstLetterUpperCase("},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField#name()"},"code":true,"children":[{"kind":"text","text":"name()"}]},{"kind":"code","text":")()"},{"kind":"text","text":" in case of a boolean node field) and "},{"kind":"code","text":"\"set\" + firstLetterUpperCase("},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField#name()"},"code":true,"children":[{"kind":"text","text":"name()"}]},{"kind":"code","text":")()"},{"kind":"text","text":". If no setter is specified then the resulting field will be final and passed in as constructor argument to the create factory method. If an abstract setter was specified then the field will be mutable and not passed in as constructor argument. Note that the generated mutable field will not be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"NodeField"}]},{"kind":"text","text":" is used in combination with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]},{"kind":"text","text":" then the generated getters or setters throw an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" for the uncached variant of the node."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeField.java","line":70}},{"id":"com.oracle.truffle.api.dsl.NodeFields","name":"NodeFields","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeFields"}],"members":[{"id":"com.oracle.truffle.api.dsl.NodeFields#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"NodeField","ref":"com.oracle.truffle.api.dsl.NodeField"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"NodeField","ref":"com.oracle.truffle.api.dsl.NodeField"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeFields.java","line":61}}],"doc":{"summary":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFields"},"code":true,"children":[{"kind":"text","text":"NodeFields"}]},{"kind":"text","text":" element defines a field for the generated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFields"},"code":true,"children":[{"kind":"text","text":"NodeFields"}]},{"kind":"text","text":" element defines a field for the generated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" contains multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFields"},"code":true,"children":[{"kind":"text","text":"NodeFields"}]},{"kind":"text","text":" specified in linear declaration order. The field can be accessed by declaring an abstract getter named "},{"kind":"code","text":"\"get\" + firstLetterUpperCase("},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeFields#value()"},"code":true,"children":[{"kind":"text","text":"value()"}]},{"kind":"code","text":")()"},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/NodeFields.java","line":57}},{"id":"com.oracle.truffle.api.dsl.NonIdempotent","name":"NonIdempotent","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NonIdempotent"}],"doc":{"summary":[{"kind":"text","text":"Methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NonIdempotent"},"code":true,"children":[{"kind":"text","text":"NonIdempotent"}]},{"kind":"text","text":" must be methods that may cause side effects but may not always cause the same side effects for repeated invocations with the same parameters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NonIdempotent"},"code":true,"children":[{"kind":"text","text":"NonIdempotent"}]},{"kind":"text","text":" must be methods that may cause side effects but may not always cause the same side effects for repeated invocations with the same parameters. From this follows that an non-idempotent method may return different results for consecutive invocations given the same parameters."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Truffle DSL uses this property to execute "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#guards()"},"code":true,"children":[{"kind":"text","text":"guards"}]},{"kind":"text","text":" where all bound methods are idempotent once on the slow-path, during specialization, and never on the fast-path. By default, all methods that do not bind dynamic parameters are interpreted as idempotent for compatibility reasons. The DSL emits warnings whenever a method should be annotated either with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Idempotent"},"code":true,"children":[{"kind":"text","text":"Idempotent"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NonIdempotent"},"code":true,"children":[{"kind":"text","text":"NonIdempotent"}]},{"kind":"text","text":". Note that guards that bind dynamic parameters will never be idempotent in the fast-path, so the DSL will not require annotations for such guards."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Examples for non-idempotent methods are:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextThreadLocal#get()"},"code":true,"children":[{"kind":"text","text":"ContextThreadLocal.get()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption#isValid()"},"code":true,"children":[{"kind":"text","text":"Assumption.isValid()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption#isValidAssumption(com.oracle.truffle.api.Assumption)"},"code":true,"children":[{"kind":"text","text":"Assumption.isValidAssumption(Assumption)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption#isValidAssumption(com.oracle.truffle.api.Assumption[])"},"code":true,"children":[{"kind":"text","text":"Assumption.isValidAssumption(Assumption[])"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextLocal#get()"},"code":true,"children":[{"kind":"text","text":"ContextLocal.get()"}]},{"kind":"text","text":" if the language uses a context policy "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#REUSE"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.REUSE"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#SHARED"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.SHARED"}]}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Examples for idempotent methods are:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference#get(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"LanguageReference.get(Node)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"DirectCallNode.getCallTarget()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextLocal#get()"},"code":true,"children":[{"kind":"text","text":"ContextLocal.get()"}]},{"kind":"text","text":" if the language uses context policy "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextPolicy#EXCLUSIVE"},"code":true,"children":[{"kind":"text","text":"ContextPolicy.EXCLUSIVE"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that usages may assume that the current language instance never changes for a given Node. Therefore it is safe to assume language reference accesses idempotent."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Idempotent"},"code":true,"children":[{"kind":"text","text":"Idempotent"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/NonIdempotent.java","line":94}},{"id":"com.oracle.truffle.api.dsl.ReportPolymorphism","name":"ReportPolymorphism","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Inherited","ref":"java.lang.annotation.Inherited","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Inherited.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ReportPolymorphism"}],"doc":{"summary":[{"kind":"text","text":"Enables reporting of polymorphic specializations from this node or exported message to the runtime."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables reporting of polymorphic specializations from this node or exported message to the runtime. Polymorphic specializations include, but are not limited to, activating another specialization, increasing the number of instances of an active specialization, excluding a specialization, etc. Additional information on the effect of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ReportPolymorphism"},"code":true,"children":[{"kind":"text","text":"ReportPolymorphism"}]},{"kind":"text","text":" can be found in "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/splitting/ReportingPolymorphism.md","children":[{"kind":"text","text":" ReportingPolymorphism.md"}]},{"kind":"text","text":"."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/dsl/ReportPolymorphism.java","line":64}},{"id":"com.oracle.truffle.api.dsl.ReportPolymorphism$Exclude","name":"ReportPolymorphism.Exclude","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Inherited","ref":"java.lang.annotation.Inherited","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Inherited.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ReportPolymorphism.Exclude"}],"enclosing":"com.oracle.truffle.api.dsl.ReportPolymorphism","doc":{"summary":[{"kind":"text","text":"Nodes (and their subclasses) or specializations annotated with this annotation will be excluded from consideration when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()"},"code":true,"children":[{"kind":"text","text":"reporting polymorphic specializations"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Nodes (and their subclasses) or specializations annotated with this annotation will be excluded from consideration when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()"},"code":true,"children":[{"kind":"text","text":"reporting polymorphic specializations"}]},{"kind":"text","text":". Individual specializations can be excluded from this consideration by using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ReportPolymorphism$Exclude"},"code":true,"children":[{"kind":"text","text":"ReportPolymorphism.Exclude"}]},{"kind":"text","text":" Polymorphic specializations are never reported on the first specialization."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/dsl/ReportPolymorphism.java","line":80}},{"id":"com.oracle.truffle.api.dsl.ReportPolymorphism$Megamorphic","name":"ReportPolymorphism.Megamorphic","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ReportPolymorphism.Megamorphic"}],"enclosing":"com.oracle.truffle.api.dsl.ReportPolymorphism","doc":{"summary":[{"kind":"text","text":"Specializations annotated with this annotation are considered megamorphic."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specializations annotated with this annotation are considered megamorphic. This means that on the first activation of such a specialization the node will "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()"},"code":true,"children":[{"kind":"text","text":"report a polymorphic specialization"}]},{"kind":"text","text":". This annotation can be used independently of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ReportPolymorphism"},"code":true,"children":[{"kind":"text","text":"ReportPolymorphism"}]},{"kind":"text","text":". This means that a node need not report every polymorphic specialization as with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ReportPolymorphism"},"code":true,"children":[{"kind":"text","text":"ReportPolymorphism"}]},{"kind":"text","text":" but only ones that produce generic and expensive cases. For example, if a node has several fast specializations and a very slow generic specialization it does not make sense to report activations of these fast specializations as polymorphic specializations as they perform well even without runtime intervention (e.g. Splitting). On the other hand, the activation of the generic case is slow and something that the runtime might be able to remove."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/ReportPolymorphism.java","line":102}},{"id":"com.oracle.truffle.api.dsl.Specialization","name":"Specialization","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Specialization"}],"members":[{"id":"com.oracle.truffle.api.dsl.Specialization#insertBefore()","anchor":"insertBefore()","kind":"annotationElement","name":"insertBefore","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"insertBefore"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"References a specialization of a super class by its method name where this specialization is inserted before."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"References a specialization of a super class by its method name where this specialization is inserted before. The declaration order of a specialization is not usable for nodes where specializations are partly declared in the super class and partly declared in a derived class. By default all specializations declared in the derived class are appended to those in the super class. This attribute can be used to override the default behavior."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/Specialization.java","line":148}},{"id":"com.oracle.truffle.api.dsl.Specialization#rewriteOn()","anchor":"rewriteOn()","kind":"annotationElement","name":"rewriteOn","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":">[] "},{"kind":"name","text":"rewriteOn"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":">[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Declares an event guards that trigger re-specialization in case an exception is thrown in the specialization body."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares an event guards that trigger re-specialization in case an exception is thrown in the specialization body. This attribute can be used to declare a list of such exceptions. Guards of this kind are useful to avoid calculating a value twice when it is used in the guard and its specialization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If an event guard exception is triggered then all instantiations of this specialization are removed. If one of theses exceptions is thrown once then no further instantiations of this specialization are going to be created for this node."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example usage:"}]}]},{"kind":"code","text":"@Specialization(rewriteOn = ArithmeticException.class)\nint doAddNoOverflow(int a, int b) {\n    return Math.addExact(a, b);\n}\n@Specialization\nlong doAddWithOverflow(int a, int b) {\n    return a + b;\n}\n...\nExample executions:\n  execute(Integer.MAX_VALUE - 1, 1) => doAddNoOverflow(Integer.MAX_VALUE - 1, 1)\n  execute(Integer.MAX_VALUE, 1)     => doAddNoOverflow(Integer.MAX_VALUE, 1)\n                                    => throws ArithmeticException\n                                    => doAddWithOverflow(Integer.MAX_VALUE, 1)\n  execute(Integer.MAX_VALUE - 1, 1) => doAddWithOverflow(Integer.MAX_VALUE - 1, 1)"},{"kind":"paragraph","children":[{"kind":"text","text":"In case of explicitly declared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":"s, the result from the exception will be used. For all other exception types, the next available specialization will be executed, so that the original specialization must ensure that no non-repeatable side-effect is caused until the rewrite is triggered."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a specialization declares an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" which is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()"},"code":true,"children":[{"kind":"text","text":"replaced"}]},{"kind":"text","text":" by another specialization with the same signature and state, but without declared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" then the specialization is used as so-called boxing overload of the replacing specialization. Boxing overloads share the same state and must be implemented in a way such that they perform exactly the same operation, with the exception of the unexpected result. Boxing overloads are used as direct replacements when code for boxing elimination is generated. They are only used if an execute method with the return type of the boxing overload and an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" is declared in the node, or alternatively in the Bytecode DSL if the return type is configured to be boxing eliminated. Boxing overloads share the state with its replacing specialization, which makes them particularly useful to implement read nodes with boxing elimination."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Usage for boxing elimination:"}]}]},{"kind":"code","text":"@Specialization(guards = \"arg == cachedArg\", limit = \"2\",\n                    rewriteOn = UnexpectedResultException.class)\nint doInt(Object arg, @Cached(\"arg\") Object cachedArg)\n                                                 throws UnexpectedResultException {\n    if (cachedArg instanceof Integer i) {\n        return 42;\n    }\n    throw new UnexpectedResultException(cachedArg);\n}\n\n@Specialization(guards = \"arg == cachedArg\", limit = \"2\", replaces = \"doInt\")\nObject doGeneric(Object arg, @Cached(\"arg\") Object cachedArg) {\n    return cachedArg;\n}\n\n...\nExample executions:\n  execute(42) => doGeneric(42, 42)\n  executeInt(43) => doInt(43, 43)\n  executeInt(42) => doInt(42, 42)\n  // shared inline cache limit of 2 reached\n  execute(44) => UnsupportedSpecializationException"}],"see":[[{"kind":"link","target":{"id":"java.lang.Math#addExact(int,int)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Math.html#addExact(int,int)"},"code":true,"children":[{"kind":"text","text":"Math.addExact(int, int)"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/Specialization.java","line":230}},{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()","anchor":"replaces()","kind":"annotationElement","name":"replaces","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"replaces"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Declares other specializations of the same operation to be replaced by this specialization."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares other specializations of the same operation to be replaced by this specialization. Other specializations are referenced using their unique method name. If this specialization is instantiated then all replaced specialization instances are removed and never instantiated again for this node instance. Therefore this specialization should handle strictly more inputs than which were handled by the replaced specialization, otherwise the removal of the replaced specialization will lead to unspecialized types of input values. The replaces declaration is transitive for multiple involved specializations."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example usage:"}]}]},{"kind":"code","text":"@Specialization(guards = \"b == 2\")\nvoid doDivPowerTwo(int a, int b) {\n    return a >> 1;\n}\n@Specialization(replaces =\"doDivPowerTwo\", guards = \"b > 0\")\nvoid doDivPositive(int a, int b) {\n    return a / b;\n}\n...\nExample executions with replaces=\"doDivPowerTwo\":\n  execute(4, 2) => doDivPowerTwo(4, 2)\n  execute(9, 3) => doDivPositive(9, 3) // doDivPowerTwo instances get removed\n  execute(4, 2) => doDivPositive(4, 2)\nSame executions without replaces=\"doDivPowerTwo\"\n  execute(4, 2) => doDivPowerTwo(4, 2)\n  execute(9, 3) => doDivPositive(9, 3)\n  execute(4, 2) => doDivPowerTwo(4, 2)"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#guards()"},"code":true,"children":[{"kind":"text","text":"guards()"}]}]]},"since":"0.22","source":{"path":"com/oracle/truffle/api/dsl/Specialization.java","line":269}},{"id":"com.oracle.truffle.api.dsl.Specialization#guards()","anchor":"guards()","kind":"annotationElement","name":"guards","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"guards"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Declares "},{"kind":"code","text":"boolean"},{"kind":"text","text":" expressions that define whether or not input values are applicable to this specialization instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares "},{"kind":"code","text":"boolean"},{"kind":"text","text":" expressions that define whether or not input values are applicable to this specialization instance. Guard expressions must always return the same result for each combination of the enclosing node instance and the bound input values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a guard expression does not bind any dynamic input parameters then the DSL, by default, assumes that the result will not change for this node after specialization instantiation. In other words the DSL assumes idempotence for this guard on the fast-path, by default. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Idempotent"},"code":true,"children":[{"kind":"text","text":"Idempotent"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NonIdempotent"},"code":true,"children":[{"kind":"text","text":"NonIdempotent"}]},{"kind":"text","text":" annotations may be used to configure this explicitly. The DSL will also emit warnings in case the use of such annotations is recommended. If assertions are enabled (-ea), then the DSL will assert that the idempotence property does hold at runtime."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Guard expressions are defined using a subset of Java. This subset includes field/parameter accesses, function calls, type exact infix comparisons (==, !=, <, <=, >, >=), logical negation (!), logical disjunction (||), null, true, false, and integer literals. The return type of guard expressions must be "},{"kind":"code","text":"boolean"},{"kind":"text","text":". Bound elements without receivers are resolved using the following order:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Dynamic and cached parameters of the enclosing specialization."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Fields defined using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"NodeField"}]},{"kind":"text","text":" for the enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Non-private, static or virtual methods or fields of enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Non-private, static or virtual methods or fields of super types of the enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Public and static methods or fields imported using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImportStatic"},"code":true,"children":[{"kind":"text","text":"ImportStatic"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example usage:"}]}]},{"kind":"code","text":"static boolean acceptOperand(int operand) {\n    assert operand <= 42;\n    return (operand & 1) == 1;\n}\n\n@Specialization(guards = {\"operand <= 42\", \"acceptOperand(operand)\"})\nvoid doSpecialization(int operand) {...}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImportStatic"},"code":true,"children":[{"kind":"text","text":"ImportStatic"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/Specialization.java","line":320}},{"id":"com.oracle.truffle.api.dsl.Specialization#assumptions()","anchor":"assumptions()","kind":"annotationElement","name":"assumptions","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"assumptions"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Declares assumption guards that optimistically assume that the state of an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]},{"kind":"text","text":" remains valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares assumption guards that optimistically assume that the state of an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]},{"kind":"text","text":" remains valid. Assumption expressions are cached once per specialization instantiation. If one of the returned assumptions gets invalidated then the specialization instance is removed. If the assumption expression returns an array of assumptions then all assumptions of the array are checked. This is limited to one-dimensional arrays."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Assumption expressions are defined using a subset of Java. This subset includes field/parameter accesses, function calls, type exact infix comparisons (==, !=, <, <=, >, >=), logical negation (!), logical disjunction (||), null, true, false, and integer literals. The return type of the expression must be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]},{"kind":"text","text":" or an array of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]},{"kind":"text","text":" instances. Assumption expressions are not allowed to bind to dynamic parameter values of the specialization. Bound elements without receivers are resolved using the following order:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Cached parameters of the enclosing specialization."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Fields defined using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"NodeField"}]},{"kind":"text","text":" for the enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Non-private, static or virtual methods or fields of enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Non-private, static or virtual methods or fields of super types of the enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Public and static methods or fields imported using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImportStatic"},"code":true,"children":[{"kind":"text","text":"ImportStatic"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example usage:"}]}]},{"kind":"code","text":"abstract static class DynamicObject() { abstract Shape getShape(); ... }\nabstract static class Shape() { abstract Assumption getUnmodifiedAssuption(); ... }\n\n@Specialization(guards = \"operand.getShape() == cachedShape\", assumptions = \"cachedShape.getUnmodifiedAssumption()\")\nvoid doAssumeUnmodifiedShape(DynamicObject operand, @Cached(\"operand.getShape()\") Shape cachedShape) {...}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImportStatic"},"code":true,"children":[{"kind":"text","text":"ImportStatic"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/Specialization.java","line":365}},{"id":"com.oracle.truffle.api.dsl.Specialization#limit()","anchor":"limit()","kind":"annotationElement","name":"limit","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"limit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Declares the expression that limits the number of specialization instantiations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declares the expression that limits the number of specialization instantiations. The default limit for specialization instantiations is defined as "},{"kind":"code","text":"\"3\""},{"kind":"text","text":". If the limit is exceeded no more instantiations of the enclosing specialization method are created. Please note that the existing specialization instantiations are "},{"kind":"strong","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" removed from the specialization chain. You can use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()"},"code":true,"children":[{"kind":"text","text":"replaces()"}]},{"kind":"text","text":" to remove unnecessary specializations instances."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The limit expression is defined using a subset of Java. This subset includes field/parameter accesses, function calls, type exact infix comparisons (==, !=, <, <=, >, >=), logical negation (!), logical disjunction (||), null, true, false, and integer literals. The return type of the limit expression must be "},{"kind":"code","text":"int"},{"kind":"text","text":". Limit expressions are not allowed to bind to dynamic parameter values of the specialization. Bound elements without receivers are resolved using the following order:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Cached parameters of the enclosing specialization."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Fields defined using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeField"},"code":true,"children":[{"kind":"text","text":"NodeField"}]},{"kind":"text","text":" for the enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Non-private, static or virtual methods or fields of enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Non-private, static or virtual methods or fields of super types of the enclosing node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Public and static methods or fields imported using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImportStatic"},"code":true,"children":[{"kind":"text","text":"ImportStatic"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example usage:"}]}]},{"kind":"code","text":"static int getCacheLimit() {\n    return Integer.parseInt(System.getProperty(\"language.cacheLimit\"));\n}\n\n@Specialization(guards = \"operand == cachedOperand\", limit = \"getCacheLimit()\")\nvoid doCached(Object operand, @Cached(\"operand\") Object cachedOperand) {...}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#guards()"},"code":true,"children":[{"kind":"text","text":"guards()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()"},"code":true,"children":[{"kind":"text","text":"replaces()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImportStatic"},"code":true,"children":[{"kind":"text","text":"ImportStatic"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/Specialization.java","line":413}},{"id":"com.oracle.truffle.api.dsl.Specialization#unroll()","anchor":"unroll()","kind":"annotationElement","name":"unroll","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"unroll"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Instructs the specialization to unroll a specialization with multiple instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Instructs the specialization to unroll a specialization with multiple instances. Unrolling causes fields of the inline cache to be directly stored in the node instead of a chained inline cache. At most 8 instances of a specialization can be unrolled to avoid code explosion in the interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A common use-case for this feature is to unroll the first instance of an inline cache. It is often the case that specializations with multiple instances are instantiated only once. By unrolling the first instance we can optimize for this common situation which may lead to footprint and interpreter performance improvements."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This feature is prone to cause inefficiencies if used too aggressively. Extra care should be taken, e.g. the generated code should be inspected and profiled to verify that the new code is better than the previous version."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Consider the following example:"}]},{"kind":"code","text":"class MyNode extends Node {\n\n    static int limit = 2;\n\n    abstract int execute(int value);\n\n    @Specialization(guards = \"value == cachedValue\", limit = \"limit\", unroll = 1)\n    int doDefault(int value,\n                    @Cached(\"value\") int cachedValue) {\n        return value;\n    }\n\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In this example we unroll the first instance of an inline cache on "},{"kind":"code","text":"int"},{"kind":"text","text":" values. This is equivalent to manually specifying the following specializations:"}]},{"kind":"code","text":"class MyUnrollNode extends Node {\n\n    static int limit = 2;\n\n    abstract int execute(int value);\n\n    @Specialization(guards = \"value == cachedValue\", limit = \"1\")\n    int doUnrolled0(int value,\n                    @Cached(\"value\") int cachedValue) {\n        return value;\n    }\n\n    @Specialization(guards = \"value == cachedValue\", limit = \"limit - 1\")\n    int doDefault(int value,\n                    @Cached(\"value\") int cachedValue) {\n        return value;\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/Specialization.java","line":476}},{"id":"com.oracle.truffle.api.dsl.Specialization#excludeForUncached()","anchor":"excludeForUncached()","kind":"annotationElement","name":"excludeForUncached","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"excludeForUncached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Excludes this specialization from use with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Excludes this specialization from use with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default every specialization is included for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]},{"kind":"text","text":", except specializations that require a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#limit()"},"code":true,"children":[{"kind":"text","text":"limit"}]},{"kind":"text","text":" and are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()"},"code":true,"children":[{"kind":"text","text":"replaced"}]},{"kind":"text","text":", those are excluded by default. By setting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#excludeForUncached()"},"code":true,"children":[{"kind":"text","text":"Specialization.excludeForUncached()"}]},{"kind":"text","text":" explicitly the default behavior can be overridden, e.g. to include or exclude a specialization for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"GenerateUncached"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Mark a specialization as excluded only when it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#replaces()"},"code":true,"children":[{"kind":"text","text":"replaced"}]},{"kind":"text","text":" by a more generic one; otherwise cached and uncached nodes may diverge semantically. Any specialization may be excluded from uncached. It is considered an error if all specializations are excluded from uncached."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/dsl/Specialization.java","line":494}}],"doc":{"summary":[{"kind":"text","text":"Defines a method of a node subclass to represent one specialization of an operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Defines a method of a node subclass to represent one specialization of an operation. Multiple specializations can be defined in a node representing an operation. A specialization defines which kind of input is expected using the method signature and the annotation attributes. The specialized semantics of the operation are defined using the body of the annotated Java method. A specialization method must be declared in a class that is derived from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" that references a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":". At least one specialization must be defined per operation. If no specialization is valid for the given set of input values then an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException"},"code":true,"children":[{"kind":"text","text":"UnsupportedSpecializationException"}]},{"kind":"text","text":" is thrown instead of invoking any specialization method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A specialization must have at least as many parameters as there are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild"},"code":true,"children":[{"kind":"text","text":"NodeChild"}]},{"kind":"text","text":" annotations declared for the enclosing operation node. These parameters are declared in the same order as the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild"},"code":true,"children":[{"kind":"text","text":"NodeChild"}]},{"kind":"text","text":" annotations (linear execution order). We call such parameters dynamic input parameters. Every specialization that is declared within an operation must have an equal number of dynamic input parameters."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The supported kind of input values for a specialization are declared using guards. A specialization may provide declarative specifications for four kinds of guards:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Type guards"}]},{"kind":"text","text":" optimistically assume the type of an input value. A value that matches the type is cast to its expected type automatically. Type guards are modeled using the parameter type of the specialization method. Types used for type guards must be defined in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":". If the type of the parameter is "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" then no type guard is used for the dynamic input parameter."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Expression guards"}]},{"kind":"text","text":" optimistically assume the return value of a user-defined expression to be "},{"kind":"code","text":"true"},{"kind":"text","text":". Expression guards are modeled using Java expressions that return a "},{"kind":"code","text":"boolean"},{"kind":"text","text":" value. If the guard expression returns "},{"kind":"code","text":"false"},{"kind":"text","text":", the specialization is no longer applicable and the operation is re-specialized. Guard expressions are declared using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#guards()"},"code":true,"children":[{"kind":"text","text":"guards()"}]},{"kind":"text","text":" attribute."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Event guards"}]},{"kind":"text","text":" trigger re-specialization in case an exception is thrown in the specialization body. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#rewriteOn()"},"code":true,"children":[{"kind":"text","text":"rewriteOn()"}]},{"kind":"text","text":" attribute can be used to declare a list of such exceptions. Guards of this kind are useful to avoid calculating a value twice when it is used in the guard and its specialization."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Assumption guards"}]},{"kind":"text","text":" optimistically assume that the state of an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]},{"kind":"text","text":" remains "},{"kind":"code","text":"true"},{"kind":"text","text":". Assumptions can be assigned to specializations using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#assumptions()"},"code":true,"children":[{"kind":"text","text":"assumptions()"}]},{"kind":"text","text":" attribute."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The enclosing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" of a specialization method must have at least one "},{"kind":"code","text":"public"},{"kind":"text","text":" and non-"},{"kind":"code","text":"final"},{"kind":"text","text":" execute method. An execute method is a method that starts with 'execute'. If all execute methods declare the first parameter type as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.VirtualFrame"},"code":true,"children":[{"kind":"text","text":"VirtualFrame"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.MaterializedFrame"},"code":true,"children":[{"kind":"text","text":"MaterializedFrame"}]},{"kind":"text","text":" then the same frame type can be used as optional first parameter of the specialization. This parameter does not count to the number of dynamic parameters."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A specialization method may declare multiple parameters annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":". Cached parameters are initialized and stored once per specialization instantiation. For consistency between specialization declarations cached parameters must be declared last in a specialization method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the operation is re-specialized or if it is executed for the first time then all declared specializations of the operation are tried in declaration order until the guards of the first specialization accepts the current input values. The new specialization is then added to the chain of current specialization instances which might consist of one (monomorph) or multiple instances (polymorph). If an assumption of an instantiated specialization is violated then re-specialization is triggered again."}]},{"kind":"paragraph","children":[{"kind":"text","text":"With guards in combination with cached parameters it is possible that multiple instances of the same specialization are created. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#limit()"},"code":true,"children":[{"kind":"text","text":"limit()"}]},{"kind":"text","text":" attribute can be used to limit the number of instantiations per specialization."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.NodeChild"},"code":true,"children":[{"kind":"text","text":"NodeChild"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Fallback"},"code":true,"children":[{"kind":"text","text":"Fallback"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystemReference"},"code":true,"children":[{"kind":"text","text":"TypeSystemReference"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException"},"code":true,"children":[{"kind":"text","text":"UnsupportedSpecializationException"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/Specialization.java","line":136}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics","name":"SpecializationStatistics","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SpecializationStatistics"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#hasData()","anchor":"hasData()","kind":"method","name":"hasData","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasData"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the statistics did collect any data, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the statistics did collect any data, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":105}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#printHistogram(java.io.PrintWriter)","anchor":"printHistogram(java.io.PrintWriter)","kind":"method","name":"printHistogram","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printHistogram"},{"kind":"punct","text":"("},{"kind":"type","text":"PrintWriter","ref":"java.io.PrintWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintWriter.html"},{"kind":"punct","text":" "},{"kind":"param","text":"writer"},{"kind":"punct","text":")"}],"params":[{"name":"writer","type":[{"kind":"type","text":"PrintWriter","ref":"java.io.PrintWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintWriter.html"}]}],"doc":{"summary":[{"kind":"text","text":"Prints the specialization histogram to the provided writer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints the specialization histogram to the provided writer. Does not print anything if no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#hasData()"},"code":true,"children":[{"kind":"text","text":"data"}]},{"kind":"text","text":" was collected."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#printHistogram(java.io.PrintWriter)"},"code":true,"children":[{"kind":"text","text":"printHistogram(PrintWriter)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":121}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#printHistogram(java.io.PrintStream)","anchor":"printHistogram(java.io.PrintStream)","kind":"method","name":"printHistogram","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printHistogram"},{"kind":"punct","text":"("},{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"stream"},{"kind":"punct","text":")"}],"params":[{"name":"stream","type":[{"kind":"type","text":"PrintStream","ref":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"}]}],"doc":{"summary":[{"kind":"text","text":"Prints the specialization histogram to the provided stream."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints the specialization histogram to the provided stream. Does not print anything if no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#hasData()"},"code":true,"children":[{"kind":"text","text":"data"}]},{"kind":"text","text":" was collected."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#printHistogram(java.io.PrintWriter)"},"code":true,"children":[{"kind":"text","text":"printHistogram(PrintWriter)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":163}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SpecializationStatistics","ref":"com.oracle.truffle.api.dsl.SpecializationStatistics"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SpecializationStatistics","ref":"com.oracle.truffle.api.dsl.SpecializationStatistics"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new specialization statistics instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new specialization statistics instance. Note specialization statistics need to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#enter()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" to collect data on a thread."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":173}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#enter()","anchor":"enter()","kind":"method","name":"enter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SpecializationStatistics","ref":"com.oracle.truffle.api.dsl.SpecializationStatistics"},{"kind":"punct","text":" "},{"kind":"name","text":"enter"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SpecializationStatistics","ref":"com.oracle.truffle.api.dsl.SpecializationStatistics"}]},"doc":{"summary":[{"kind":"text","text":"Enters this specialization instance object on the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enters this specialization instance object on the current thread. After entering a specialization statistics instance will gather statistics for all nodes with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializations"}]},{"kind":"text","text":" that were created on this entered thread. Multiple threads may be entered at the same time. The caller must make sure to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#leave(com.oracle.truffle.api.dsl.SpecializationStatistics)"},"code":true,"children":[{"kind":"text","text":"leave(SpecializationStatistics)"}]},{"kind":"text","text":" the current statistics after entering in all cases."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":209}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#leave(com.oracle.truffle.api.dsl.SpecializationStatistics)","anchor":"leave(com.oracle.truffle.api.dsl.SpecializationStatistics)","kind":"method","name":"leave","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"leave"},{"kind":"punct","text":"("},{"kind":"type","text":"SpecializationStatistics","ref":"com.oracle.truffle.api.dsl.SpecializationStatistics"},{"kind":"punct","text":" "},{"kind":"param","text":"prev"},{"kind":"punct","text":")"}],"params":[{"name":"prev","type":[{"kind":"type","text":"SpecializationStatistics","ref":"com.oracle.truffle.api.dsl.SpecializationStatistics"}]}],"doc":{"summary":[{"kind":"text","text":"Leaves the currently "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#enter()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" entered statistics."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Leaves the currently "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#enter()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" entered statistics. It is required to leave a statistics block after it was entered. It is recommended to use a finally block for this purpose."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":223}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a specialization statistics utiltiy that can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#enter()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" to collect additional statistics about Truffle DSL nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a specialization statistics utiltiy that can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics#enter()"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" to collect additional statistics about Truffle DSL nodes. In order for the statistics to be useful the nodes need to be regenerated using the "},{"kind":"code","text":"-Atruffle.dsl.GenerateSpecializationStatistics=true"},{"kind":"text","text":" flag or using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$AlwaysEnabled"},"code":true,"children":[{"kind":"text","text":"AlwaysEnabled"}]},{"kind":"text","text":" annotation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The easiest way to use this utility is to enable the "},{"kind":"code","text":"--engine.SpecializationStatistics"},{"kind":"text","text":" polyglot option. This should print the histogram when the engine is closed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See also the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/SpecializationHistogram.md","children":[{"kind":"text","text":"usage tutorial"}]},{"kind":"text","text":" on the website."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":91}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$AlwaysEnabled","name":"SpecializationStatistics.AlwaysEnabled","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"SpecializationStatistics.AlwaysEnabled"}],"enclosing":"com.oracle.truffle.api.dsl.SpecializationStatistics","doc":{"summary":[{"kind":"text","text":"Used on nodes to always enable specialization statistics."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Used on nodes to always enable specialization statistics. The Truffle DSL processor will not generate statistics code unless the "},{"kind":"code","text":"-J-Dtruffle.dsl.GenerateSpecializationStatistics=true"},{"kind":"text","text":" javac system property is set. This annotation can be used to annotate node types that want to force enable the statistics independent of the system property. This annotation is inherited by sub classes."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":238}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics","name":"SpecializationStatistics.NodeStatistics","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SpecializationStatistics.NodeStatistics"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.dsl.SpecializationStatistics","members":[{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics#acceptExecute(int,java.lang.Class)","anchor":"acceptExecute(int,java.lang.Class)","kind":"method","name":"acceptExecute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"acceptExecute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"specializationIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"arg0"},{"kind":"punct","text":")"}],"params":[{"name":"specializationIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"arg0","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]}],"doc":{"summary":[{"kind":"text","text":"Called when a node specialization was executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called when a node specialization was executed. This method is intended to be used by Truffle DSL generated code only. Do not use directly."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":848}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics#acceptExecute(int,java.lang.Class,java.lang.Class)","anchor":"acceptExecute(int,java.lang.Class,java.lang.Class)","kind":"method","name":"acceptExecute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"acceptExecute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"specializationIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"arg0"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"arg1"},{"kind":"punct","text":")"}],"params":[{"name":"specializationIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"arg0","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},{"name":"arg1","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]}],"doc":{"summary":[{"kind":"text","text":"Called when a node specialization was executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called when a node specialization was executed. This method is intended to be used by Truffle DSL generated code only. Do not use directly."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":856}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics#acceptExecute(int,java.lang.Class...)","anchor":"acceptExecute(int,java.lang.Class...)","kind":"method","name":"acceptExecute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"acceptExecute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"specializationIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"args"},{"kind":"punct","text":")"}],"params":[{"name":"specializationIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"args","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>..."}],"varargs":true}],"doc":{"summary":[{"kind":"text","text":"Called when a node specialization was executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called when a node specialization was executed. This method is intended to be used by Truffle DSL generated code only. Do not use directly."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":864}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics#resolveValueClass(java.lang.Object)","anchor":"resolveValueClass(java.lang.Object)","kind":"method","name":"resolveValueClass","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"resolveValueClass"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Called to resolve the class of a value provided in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics#acceptExecute(int,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"acceptExecute(int, Class)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called to resolve the class of a value provided in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics#acceptExecute(int,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"acceptExecute(int, Class)"}]},{"kind":"text","text":". This method is intended to be used by Truffle DSL generated code only. Do not use directly."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":873}},{"id":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics#create(com.oracle.truffle.api.nodes.Node,java.lang.String[])","anchor":"create(com.oracle.truffle.api.nodes.Node,java.lang.String[])","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SpecializationStatistics.NodeStatistics","ref":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"specializations"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"specializations","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"SpecializationStatistics.NodeStatistics","ref":"com.oracle.truffle.api.dsl.SpecializationStatistics$NodeStatistics"}]},"doc":{"summary":[{"kind":"text","text":"Called when a new node statistics object is created."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called when a new node statistics object is created. This method is intended to be used by Truffle DSL generated code only. Do not use directly."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":881}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Class to collect statistics information per node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Class to collect statistics information per node. This class is intended to be used by Truffle DSL generated code only. Do not use directly."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/dsl/SpecializationStatistics.java","line":837}},{"id":"com.oracle.truffle.api.dsl.SuppressPackageWarnings","name":"SuppressPackageWarnings","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{PACKAGE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"SuppressPackageWarnings"}],"members":[{"id":"com.oracle.truffle.api.dsl.SuppressPackageWarnings#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/SuppressPackageWarnings.java","line":63}}],"doc":{"summary":[{"kind":"text","text":"Use to suppress Truffle DSL warnings in whole packages using a package-info.java class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Use to suppress Truffle DSL warnings in whole packages using a package-info.java class. For regular Java elements use "},{"kind":"link","target":{"id":"java.lang.SuppressWarnings","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SuppressWarnings.html"},"code":true,"children":[{"kind":"text","text":"SuppressWarnings"}]},{"kind":"text","text":". https://github.com/oracle/graal/blob/master/truffle/docs/DSLWarnings.md"}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/dsl/SuppressPackageWarnings.java","line":56}},{"id":"com.oracle.truffle.api.dsl.TypeCast","name":"TypeCast","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TypeCast"}],"members":[{"id":"com.oracle.truffle.api.dsl.TypeCast#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/TypeCast.java","line":73}}],"doc":{"summary":[{"kind":"text","text":"Overrides the standard way of casting a certain type in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overrides the standard way of casting a certain type in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":". This is useful for types where the guest language specific type cast can be implemented more efficiently than a direct cast. The annotated method must be contained in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":" annotated class. Type checks must conform to the following signature: "},{"kind":"code","text":"public static Type as{TypeName}(Object\nvalue)"},{"kind":"text","text":". The casted type must be a type declared in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeCast"},"code":true,"children":[{"kind":"text","text":"TypeCast"}]},{"kind":"text","text":" is declared then the type system implicitly uses a type cast that can be declared as follows:"}]},{"kind":"code","text":"@TypeCast(Type.class)\npublic static Type asType(Object value) {\n        return (Type) value;\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeCheck"},"code":true,"children":[{"kind":"text","text":"TypeCheck"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/TypeCast.java","line":69}},{"id":"com.oracle.truffle.api.dsl.TypeCheck","name":"TypeCheck","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TypeCheck"}],"members":[{"id":"com.oracle.truffle.api.dsl.TypeCheck#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/TypeCheck.java","line":74}}],"doc":{"summary":[{"kind":"text","text":"Overrides the standard way of checking for a certain type in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overrides the standard way of checking for a certain type in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":". This is useful for types where the guest language specific type check can be implemented more efficiently than an instanceof check. The annotated method must be contained in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":" annotated class. Type checks must conform to the following signature: "},{"kind":"code","text":"public static boolean is{TypeName}(Object\nvalue)"},{"kind":"text","text":". The checked type must be a type declared in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeCheck"},"code":true,"children":[{"kind":"text","text":"TypeCheck"}]},{"kind":"text","text":" is declared then the type system implicitly uses a type check that can be declared as follows:"}]},{"kind":"code","text":"@TypeCheck(Type.class)\npublic static boolean isType(Object value) {\n        return value instanceof Type;\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeCast"},"code":true,"children":[{"kind":"text","text":"TypeCast"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/TypeCheck.java","line":70}},{"id":"com.oracle.truffle.api.dsl.TypeSystem","name":"TypeSystem","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TypeSystem"}],"members":[{"id":"com.oracle.truffle.api.dsl.TypeSystem#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"The list of types as child elements of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The list of types as child elements of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":". Each precedes its super type."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/TypeSystem.java","line":135}}],"doc":{"summary":[{"kind":"text","text":"Type guards are the most common form of guards used in Truffle languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Type guards are the most common form of guards used in Truffle languages. By default all type checks and casts use the default method of checking and casting a type in Java. A default type check is performed using the "},{"kind":"code","text":"instanceof"},{"kind":"text","text":" operator, and a default cast is done using a standard Java cast conversion. However, for some types, this behavior needs to be customized or extended. Therefore, operations can decide to use type systems. If used, type systems are applied to operation classes using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystemReference"},"code":true,"children":[{"kind":"text","text":"TypeSystemReference"}]},{"kind":"text","text":" annotation. Only one type system can be active for a single operation. Type systems are inherited from operation superclasses so that the most concrete type system reference is used. If no type system reference is found in the type hierarchy, all type checks and casts are kept default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"@TypeSystem\npublic static class ExampleTypeSystem {\n\n    @TypeCast(Undefined.class)\n    public static Undefined asUndefined(Object value) {\n        return Undefined.INSTANCE;\n    }\n\n    @TypeCheck(Undefined.class)\n    public static boolean isUndefined(Object value) {\n        return value == Undefined.INSTANCE;\n    }\n\n    @ImplicitCast\n    public static double castInt(int value) {\n        return value;\n    }\n}\n\n@TypeSystemReference(ExampleTypeSystem.class)\npublic abstract class BaseNode extends Node {\n    abstract Object execute();\n}\n\npublic static final class Undefined {\n    public static final Undefined INSTANCE = new Undefined();\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The example type system declared in here defines a special type check and cast for the type Undefined using methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeCheck"},"code":true,"children":[{"kind":"text","text":"TypeCheck"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeCast"},"code":true,"children":[{"kind":"text","text":"TypeCast"}]},{"kind":"text","text":". Undefined is a singleton type and therefore, only a single instance of it exists at a time. For singleton types the type check can be implemented using an identity comparison and instead of casting a value to Undefined we can implement it by returning a constant value. Both the singleton check and cast are considered more efficient than the default check and cast behavior."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Multiple distinct Java types can be used to represent values of the same semantic guest language type. For example our JavaScript implementation uses the Java types "},{"kind":"code","text":"int"},{"kind":"text","text":" and "},{"kind":"code","text":"double"},{"kind":"text","text":" to represent the JavaScript numeric type. Whenever a type needs to be checked for the type numeric we need to check the value for each representation type. Defining a specialization with two numeric parameters would normally require us to specify four specializations, for each combination of the representation type. However, in Java, an "},{"kind":"code","text":"int"},{"kind":"text","text":" type has the interesting property of always being representable with a double value without losing precision. Type systems allows the user to specify such relationships using implicit casts such as the "},{"kind":"code","text":"castInt"},{"kind":"text","text":" method declared in the example After declaring an implicit cast from "},{"kind":"code","text":"int"},{"kind":"text","text":" to "},{"kind":"code","text":"double"},{"kind":"text","text":" we can specify a single specialization with double type guards to implicitly represent all the cases of the JavaScript numeric type. Whenever the DSL implementation needs to cast a value from "},{"kind":"code","text":"int"},{"kind":"text","text":" to "},{"kind":"code","text":"double"},{"kind":"text","text":" then the implicit cast method is called. Specializations with "},{"kind":"code","text":"int"},{"kind":"text","text":" type guards can be declared before specializations with "},{"kind":"code","text":"double"},{"kind":"text","text":" type guards. If an int specialization is declared after the "},{"kind":"code","text":"double"},{"kind":"text","text":" specialization then the "},{"kind":"code","text":"int"},{"kind":"text","text":" specialization is unreachable due to the implicit cast. The requirements for implicit casts can vary between guest languages. Therefore, no implicit cast is enabled by default or if no type system is referenced."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If multiple implicit casts are declared for a single target type then their types are checked in declaration order. Languages implementations are encouraged to optimize their implicit cast declaration order by sorting them starting with the most frequently used type."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeCast"},"code":true,"children":[{"kind":"text","text":"TypeCast"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeCheck"},"code":true,"children":[{"kind":"text","text":"TypeCheck"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.ImplicitCast"},"code":true,"children":[{"kind":"text","text":"ImplicitCast"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/TypeSystem.java","line":126}},{"id":"com.oracle.truffle.api.dsl.TypeSystemReference","name":"TypeSystemReference","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TypeSystemReference"}],"members":[{"id":"com.oracle.truffle.api.dsl.TypeSystemReference#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":" java type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":" java type."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/TypeSystemReference.java","line":66}}],"doc":{"summary":[{"kind":"text","text":"References a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":" on a node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"References a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":" on a node. Must be applied on a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" class. At least one "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]},{"kind":"text","text":" must be referenced in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"'s type hierarchy."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.TypeSystem"},"code":true,"children":[{"kind":"text","text":"TypeSystem"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/TypeSystemReference.java","line":57}},{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException","name":"UnsupportedSpecializationException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"UnsupportedSpecializationException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"superclass":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"ancestors":[{"id":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#<init>(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node[],java.lang.Object...)","anchor":"<init>(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node[],java.lang.Object...)","kind":"constructor","name":"UnsupportedSpecializationException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"UnsupportedSpecializationException"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"[] "},{"kind":"param","text":"suppliedNodes"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"suppliedValues"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The node that does not support the provided values in any of its specializations. May be null."}]}]},{"name":"suppliedNodes","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The evaluated nodes that supplied the values. The array must much the length of "},{"kind":"code","text":"suppliedValues"},{"kind":"text","text":", and may contain null elements for values not not provided by a child node but through an execute method parameter. If the array would consist of only nulls, as in the case of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateUncached"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateInline"},"code":true,"children":[{"kind":"text","text":"inlined"}]},{"kind":"text","text":" nodes, "},{"kind":"code","text":"null"},{"kind":"text","text":" may be provided instead and will be treated as an array of nulls of the expected length."}]}]},{"name":"suppliedValues","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The values for which no compatible specialization could be found. The array reference must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Constructs a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException"},"code":true,"children":[{"kind":"text","text":"UnsupportedSpecializationException"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructs a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException"},"code":true,"children":[{"kind":"text","text":"UnsupportedSpecializationException"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/UnsupportedSpecializationException.java","line":80}},{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/UnsupportedSpecializationException.java","line":92}},{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getNode()","anchor":"getNode()","kind":"method","name":"getNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" that caused the this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException"},"code":true,"children":[{"kind":"text","text":"UnsupportedSpecializationException"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" that caused the this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException"},"code":true,"children":[{"kind":"text","text":"UnsupportedSpecializationException"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/UnsupportedSpecializationException.java","line":109}},{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedNodes()","anchor":"getSuppliedNodes()","kind":"method","name":"getSuppliedNodes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSuppliedNodes"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Returns the children of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getNode()"},"code":true,"children":[{"kind":"text","text":"getNode()"}]},{"kind":"text","text":" which produced the values returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedValues()"},"code":true,"children":[{"kind":"text","text":"getSuppliedValues()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the children of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getNode()"},"code":true,"children":[{"kind":"text","text":"getNode()"}]},{"kind":"text","text":" which produced the values returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedValues()"},"code":true,"children":[{"kind":"text","text":"getSuppliedValues()"}]},{"kind":"text","text":". The array returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedNodes()"},"code":true,"children":[{"kind":"text","text":"getSuppliedNodes()"}]},{"kind":"text","text":" has the same length as the array returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedValues()"},"code":true,"children":[{"kind":"text","text":"getSuppliedValues()"}]},{"kind":"text","text":". Never returns null."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/UnsupportedSpecializationException.java","line":121}},{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedValues()","anchor":"getSuppliedValues()","kind":"method","name":"getSuppliedValues","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSuppliedValues"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Returns the dynamic values that were supplied to the node.The array returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedNodes()"},"code":true,"children":[{"kind":"text","text":"getSuppliedNodes()"}]},{"kind":"text","text":" has the same length as the array returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedValues()"},"code":true,"children":[{"kind":"text","text":"getSuppliedValues()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the dynamic values that were supplied to the node.The array returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedNodes()"},"code":true,"children":[{"kind":"text","text":"getSuppliedNodes()"}]},{"kind":"text","text":" has the same length as the array returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.UnsupportedSpecializationException#getSuppliedValues()"},"code":true,"children":[{"kind":"text","text":"getSuppliedValues()"}]},{"kind":"text","text":". Never returns null."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/UnsupportedSpecializationException.java","line":137}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#fillInStackTrace()","text":"fillInStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Thrown by the generated code of Truffle-DSL if no compatible Specialization could be found for the provided values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Thrown by the generated code of Truffle-DSL if no compatible Specialization could be found for the provided values."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/dsl/UnsupportedSpecializationException.java","line":56}}]},{"id":"com.oracle.truffle.api.exception","name":"com.oracle.truffle.api.exception","doc":{"summary":[{"kind":"text","text":"This package contains a Truffle exception base class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This package contains a Truffle exception base class."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]}]]},"since":"20.3","types":[{"id":"com.oracle.truffle.api.exception.AbstractTruffleException","name":"AbstractTruffleException","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"AbstractTruffleException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleObject","ref":"com.oracle.truffle.api.interop.TruffleObject"}],"superclass":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"interfaces":[[{"kind":"type","text":"TruffleObject","ref":"com.oracle.truffle.api.interop.TruffleObject"}]],"ancestors":[{"id":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#UNLIMITED_STACK_TRACE","anchor":"UNLIMITED_STACK_TRACE","kind":"field","name":"UNLIMITED_STACK_TRACE","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"UNLIMITED_STACK_TRACE"}],"type":[{"kind":"keyword","text":"int"}],"constant":"-1","doc":{"summary":[{"kind":"text","text":"The constant for an unlimited stack trace element limit."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The constant for an unlimited stack trace element limit."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":168}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#<init>()","anchor":"<init>()","kind":"constructor","name":"AbstractTruffleException","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"AbstractTruffleException"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Creates a new AbstractTruffleException."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new AbstractTruffleException."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":181}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#<init>(com.oracle.truffle.api.nodes.Node)","anchor":"<init>(com.oracle.truffle.api.nodes.Node)","kind":"constructor","name":"AbstractTruffleException","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"AbstractTruffleException"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new AbstractTruffleException with given location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new AbstractTruffleException with given location."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":190}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#<init>(java.lang.String)","anchor":"<init>(java.lang.String)","kind":"constructor","name":"AbstractTruffleException","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"AbstractTruffleException"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new AbstractTruffleException with given message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new AbstractTruffleException with given message."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":199}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#<init>(java.lang.String,com.oracle.truffle.api.nodes.Node)","anchor":"<init>(java.lang.String,com.oracle.truffle.api.nodes.Node)","kind":"constructor","name":"AbstractTruffleException","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"AbstractTruffleException"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new AbstractTruffleException with given message and location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new AbstractTruffleException with given message and location."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":208}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#<init>(com.oracle.truffle.api.exception.AbstractTruffleException)","anchor":"<init>(com.oracle.truffle.api.exception.AbstractTruffleException)","kind":"constructor","name":"AbstractTruffleException","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"AbstractTruffleException"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleException","ref":"com.oracle.truffle.api.exception.AbstractTruffleException"},{"kind":"punct","text":" "},{"kind":"param","text":"prototype"},{"kind":"punct","text":")"}],"params":[{"name":"prototype","type":[{"kind":"type","text":"AbstractTruffleException","ref":"com.oracle.truffle.api.exception.AbstractTruffleException"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception to copy"}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies the prototype's message, cause, stack trace limit, location, BCI, suppressed exceptions, and Truffle stack trace."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies the prototype's message, cause, stack trace limit, location, BCI, suppressed exceptions, and Truffle stack trace."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":219}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#<init>(java.lang.String,java.lang.Throwable,int,com.oracle.truffle.api.nodes.Node)","anchor":"<init>(java.lang.String,java.lang.Throwable,int,com.oracle.truffle.api.nodes.Node)","kind":"constructor","name":"AbstractTruffleException","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"AbstractTruffleException"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"stackTraceElementLimit"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception message or "},{"kind":"code","text":"null"}]}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an internal or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleException"}]},{"kind":"text","text":" causing this exception or "},{"kind":"code","text":"null"},{"kind":"text","text":". If internal errors are passed as cause, they are not accessible by other languages or the embedder. In other words, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionCause(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getExceptionCause(Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.lang.Throwable#getCause()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},"code":true,"children":[{"kind":"text","text":"PolyglotException.getCause()"}]},{"kind":"text","text":" will return "},{"kind":"code","text":"null"},{"kind":"text","text":" for internal errors."}]}]},{"name":"stackTraceElementLimit","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a stack trace limit. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#UNLIMITED_STACK_TRACE"},"code":true,"children":[{"kind":"text","text":"UNLIMITED_STACK_TRACE"}]},{"kind":"text","text":" for unlimited stack trace length."}]}]},{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new AbstractTruffleException."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new AbstractTruffleException."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":246}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#<init>(java.lang.String,java.lang.Throwable,int,com.oracle.truffle.api.nodes.Node,int)","anchor":"<init>(java.lang.String,java.lang.Throwable,int,com.oracle.truffle.api.nodes.Node,int)","kind":"constructor","name":"AbstractTruffleException","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"AbstractTruffleException"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"stackTraceElementLimit"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception message or "},{"kind":"code","text":"null"}]}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the cause or "},{"kind":"code","text":"null"},{"kind":"text","text":"; internal causes are hidden from interop and the embedder"}]}]},{"name":"stackTraceElementLimit","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a stack trace limit. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#UNLIMITED_STACK_TRACE"},"code":true,"children":[{"kind":"text","text":"UNLIMITED_STACK_TRACE"}]},{"kind":"text","text":" for unlimited stack trace length."}]}]},{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a location node or "},{"kind":"code","text":"null"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a bytecode index for "},{"kind":"code","text":"location"},{"kind":"text","text":", or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if unavailable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new AbstractTruffleException with an explicit bytecode index for the exception location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new AbstractTruffleException with an explicit bytecode index for the exception location."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":262}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#fillInStackTrace()","anchor":"fillInStackTrace()","kind":"method","name":"fillInStackTrace","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"fillInStackTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},"overrides":{"id":"java.lang.Throwable#fillInStackTrace()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":275}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getLocation()","anchor":"getLocation()","kind":"method","name":"getLocation","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Returns a node indicating the location where this exception occurred in the AST."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a node indicating the location where this exception occurred in the AST. This method may return "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate that the location is not available."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":287}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getBytecodeIndex()","anchor":"getBytecodeIndex()","kind":"method","name":"getBytecodeIndex","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the BCI, or a negative value if unavailable"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the explicit BCI associated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getLocation()"},"code":true,"children":[{"kind":"text","text":"getLocation()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the explicit BCI associated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getLocation()"},"code":true,"children":[{"kind":"text","text":"getLocation()"}]},{"kind":"text","text":"."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":297}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getEncapsulatingSourceSection()","anchor":"getEncapsulatingSourceSection()","kind":"method","name":"getEncapsulatingSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getEncapsulatingSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns a source section associated with the exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a source section associated with the exception. This method may return "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate that the source section is not available."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: This method is expensive as it requires to access the current stack trace to get the to-most source section."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":310}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getStackTraceElementLimit()","anchor":"getStackTraceElementLimit()","kind":"method","name":"getStackTraceElementLimit","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getStackTraceElementLimit"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of guest language frames that should be collected for this exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of guest language frames that should be collected for this exception. Returns a negative integer by default for unlimited guest language frames. This is intended to be used by guest languages to limit the number of guest language stack frames. Languages might want to limit the number of frames for performance reasons. Only frames whose "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#countsTowardsStackTraceLimit()"},"code":true,"children":[{"kind":"text","text":"RootNode.countsTowardsStackTraceLimit()"}]},{"kind":"text","text":" method return true count towards the limit."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":339}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getCause()","anchor":"getCause()","kind":"method","name":"getCause","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getCause"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},"overrides":{"id":"java.lang.Throwable#getCause()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":348}},{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#createGuestStackTrace(java.lang.Throwable)","anchor":"createGuestStackTrace(java.lang.Throwable)","kind":"method","name":"createGuestStackTrace","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createGuestStackTrace"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"throwable"},{"kind":"punct","text":")"}],"params":[{"name":"throwable","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates an interop representation of the stack trace for the given "},{"kind":"code","text":"throwable"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an interop representation of the stack trace for the given "},{"kind":"code","text":"throwable"},{"kind":"text","text":". The returned object is suitable for use as the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionStackTrace(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getExceptionStackTrace(Object)"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":369}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A base class for an exception thrown during the execution of a guest language program."},{"kind":"break"},{"kind":"text","text":" The following snippet shows the guest language exception implementation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A base class for an exception thrown during the execution of a guest language program."},{"kind":"break"},{"kind":"text","text":" The following snippet shows the guest language exception implementation."}]},{"kind":"code","text":"final class MyLanguageException extends AbstractTruffleException {\n    MyLanguageException(String message, Node location) {\n        super(message, location);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The following snippet shows a typical implementation of a syntax error exception supporting also incomplete sources."}]},{"kind":"code","text":"@ExportLibrary(InteropLibrary.class)\nfinal class MyLanguageParseError extends AbstractTruffleException {\n    private final Source source;\n    private final int line;\n    private final int column;\n    private final int length;\n    private final boolean incompleteSource;\n\n    MyLanguageParseError(Source source, int line, int column, int length, boolean incomplete, String message) {\n        super(message);\n        this.source = source;\n        this.line = line;\n        this.column = column;\n        this.length = length;\n        this.incompleteSource = incomplete;\n    }\n\n    @ExportMessage\n    ExceptionType getExceptionType() {\n        return ExceptionType.PARSE_ERROR;\n    }\n\n    @ExportMessage\n    boolean isExceptionIncompleteSource() {\n        return incompleteSource;\n    }\n\n    @ExportMessage\n    boolean hasSourceLocation() {\n        return source != null;\n    }\n\n    @ExportMessage(name = \"getSourceLocation\")\n    SourceSection getSourceSection() throws UnsupportedMessageException {\n        if (source == null) {\n            throw UnsupportedMessageException.create();\n        }\n        return source.createSection(line, column, length);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The following snippet shows a typical implementation of an interrupt exception."}]},{"kind":"code","text":"@ExportLibrary(InteropLibrary.class)\nfinal class MyLanguageInterruptException extends AbstractTruffleException {\n\n    MyLanguageInterruptException(String message, Node location) {\n        super(message, location);\n    }\n\n    @ExportMessage\n    ExceptionType getExceptionType() {\n        return ExceptionType.INTERRUPT;\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The following snippet shows a typical implementation of an soft exit exception."}]},{"kind":"code","text":"@ExportLibrary(InteropLibrary.class)\nfinal class MyLanguageExitException extends AbstractTruffleException {\n\n    private final int exitStatus;\n\n    MyLanguageExitException(String message, int exitStatus, Node location) {\n        super(message, location);\n        this.exitStatus = exitStatus;\n    }\n\n    @ExportMessage\n    ExceptionType getExceptionType() {\n        return ExceptionType.EXIT;\n    }\n\n    @ExportMessage\n    int getExceptionExitStatus() {\n        return exitStatus;\n    }\n}"}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/exception/AbstractTruffleException.java","line":160}}]},{"id":"com.oracle.truffle.api.frame","name":"com.oracle.truffle.api.frame","doc":{"summary":[{"kind":"text","text":"Package containing stack frame representation classes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Package containing stack frame representation classes. Such a frames can be converted into "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.MaterializedFrame"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.frame.MaterializedFrame"}]},{"kind":"text","text":" stored on a heap for later access when the actual stack is elsewhere."}]}]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.frame.Frame","name":"Frame","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Frame"}],"members":[{"id":"com.oracle.truffle.api.frame.Frame#getFrameDescriptor()","anchor":"getFrameDescriptor()","kind":"method","name":"getFrameDescriptor","signature":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrameDescriptor"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the object describing the layout of this frame"}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":59}},{"id":"com.oracle.truffle.api.frame.Frame#getArguments()","anchor":"getArguments()","kind":"method","name":"getArguments","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getArguments"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments used when calling this method"}]}]},"doc":{"summary":[{"kind":"text","text":"Retrieves the arguments object from this frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Retrieves the arguments object from this frame. The runtime assumes that the arguments object is never null."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":68}},{"id":"com.oracle.truffle.api.frame.Frame#materialize()","anchor":"materialize()","kind":"method","name":"materialize","signature":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"name","text":"materialize"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new materialized frame"}]}]},"doc":{"summary":[{"kind":"text","text":"Materializes this frame, which allows it to be stored in a field or cast to "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"java.lang.Object"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Materializes this frame, which allows it to be stored in a field or cast to "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"java.lang.Object"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":77}},{"id":"com.oracle.truffle.api.frame.Frame#getObject(int)","anchor":"getObject(int)","kind":"method","name":"getObject","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getObject"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable"}]}]},"throws":[{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type object"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read access to a local variable of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read access to a local variable of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":87}},{"id":"com.oracle.truffle.api.frame.Frame#expectObject(int)","anchor":"expectObject(int)","kind":"method","name":"expectObject","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"expectObject"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the slot"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the slot in this frame"}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type object"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read and expects a value of type object for a given slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read and expects a value of type object for a given slot. Expect methods are intended to be used to implement speculative behavior where slots are expected to be tagged with a type. If the type changes an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" will be thrown containing the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)"},"code":true,"children":[{"kind":"text","text":"getValue(slot)"}]},{"kind":"text","text":". Clients of this API are then expected to rewrite and no longer use an expect methods for future reads of that slot. Expect methods are particularly useful to implement stack like behavior with a frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":105}},{"id":"com.oracle.truffle.api.frame.Frame#setObject(int,java.lang.Object)","anchor":"setObject(int,java.lang.Object)","kind":"method","name":"setObject","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setObject"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Write access to a local variable of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Write access to a local variable of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":118}},{"id":"com.oracle.truffle.api.frame.Frame#getByte(int)","anchor":"getByte(int)","kind":"method","name":"getByte","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable"}]}]},"throws":[{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Read access to a local variable of type byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read access to a local variable of type byte."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":131}},{"id":"com.oracle.truffle.api.frame.Frame#expectByte(int)","anchor":"expectByte(int)","kind":"method","name":"expectByte","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"expectByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the slot"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the slot in this frame"}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type byte"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read and expects a value of type byte for a given slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read and expects a value of type byte for a given slot. Expect methods are intended to be used to implement speculative behavior where slots are expected to be tagged with a type. If the type changes an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" will be thrown containing the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)"},"code":true,"children":[{"kind":"text","text":"getValue(slot)"}]},{"kind":"text","text":". Clients of this API are then expected to rewrite and no longer use an expect methods for future reads of that slot. Expect methods are particularly useful to implement stack like behavior with a frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":149}},{"id":"com.oracle.truffle.api.frame.Frame#setByte(int,byte)","anchor":"setByte(int,byte)","kind":"method","name":"setByte","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Write access to a local variable of type byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Write access to a local variable of type byte."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":162}},{"id":"com.oracle.truffle.api.frame.Frame#getBoolean(int)","anchor":"getBoolean(int)","kind":"method","name":"getBoolean","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"getBoolean"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable"}]}]},"throws":[{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type boolean"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read access to a local variable of type boolean."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read access to a local variable of type boolean."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":175}},{"id":"com.oracle.truffle.api.frame.Frame#expectBoolean(int)","anchor":"expectBoolean(int)","kind":"method","name":"expectBoolean","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"expectBoolean"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the slot"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the slot in this frame"}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type boolean"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read and expects a value of type boolean for a given slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read and expects a value of type boolean for a given slot. Expect methods are intended to be used to implement speculative behavior where slots are expected to be tagged with a type. If the type changes an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" will be thrown containing the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)"},"code":true,"children":[{"kind":"text","text":"getValue(slot)"}]},{"kind":"text","text":". Clients of this API are then expected to rewrite and no longer use an expect methods for future reads of that slot. Expect methods are particularly useful to implement stack like behavior with a frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":193}},{"id":"com.oracle.truffle.api.frame.Frame#setBoolean(int,boolean)","anchor":"setBoolean(int,boolean)","kind":"method","name":"setBoolean","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBoolean"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Write access to a local variable of type boolean."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Write access to a local variable of type boolean."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":206}},{"id":"com.oracle.truffle.api.frame.Frame#getInt(int)","anchor":"getInt(int)","kind":"method","name":"getInt","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable"}]}]},"throws":[{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type int"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read access to a local variable of type int."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read access to a local variable of type int."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":219}},{"id":"com.oracle.truffle.api.frame.Frame#expectInt(int)","anchor":"expectInt(int)","kind":"method","name":"expectInt","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"expectInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the slot"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the slot in this frame"}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type int"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read and expects a value of type int for a given slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read and expects a value of type int for a given slot. Expect methods are intended to be used to implement speculative behavior where slots are expected to be tagged with a type. If the type changes an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" will be thrown containing the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)"},"code":true,"children":[{"kind":"text","text":"getValue(slot)"}]},{"kind":"text","text":". Clients of this API are then expected to rewrite and no longer use an expect methods for future reads of that slot. Expect methods are particularly useful to implement stack like behavior with a frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":237}},{"id":"com.oracle.truffle.api.frame.Frame#setInt(int,int)","anchor":"setInt(int,int)","kind":"method","name":"setInt","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Write access to a local variable of type int."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Write access to a local variable of type int."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":250}},{"id":"com.oracle.truffle.api.frame.Frame#getLong(int)","anchor":"getLong(int)","kind":"method","name":"getLong","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable"}]}]},"throws":[{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type long"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read access to a local variable of type long."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read access to a local variable of type long."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":263}},{"id":"com.oracle.truffle.api.frame.Frame#expectLong(int)","anchor":"expectLong(int)","kind":"method","name":"expectLong","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"expectLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the slot"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the slot in this frame"}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type long"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read and expects a value of type long for a given slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read and expects a value of type long for a given slot. Expect methods are intended to be used to implement speculative behavior where slots are expected to be tagged with a type. If the type changes an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" will be thrown containing the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)"},"code":true,"children":[{"kind":"text","text":"getValue(slot)"}]},{"kind":"text","text":". Clients of this API are then expected to rewrite and no longer use an expect methods for future reads of that slot. Expect methods are particularly useful to implement stack like behavior with a frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":281}},{"id":"com.oracle.truffle.api.frame.Frame#setLong(int,long)","anchor":"setLong(int,long)","kind":"method","name":"setLong","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Write access to a local variable of type long."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Write access to a local variable of type long."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":294}},{"id":"com.oracle.truffle.api.frame.Frame#getFloat(int)","anchor":"getFloat(int)","kind":"method","name":"getFloat","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getFloat"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable"}]}]},"throws":[{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type float"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read access to a local variable of type float."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read access to a local variable of type float."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":307}},{"id":"com.oracle.truffle.api.frame.Frame#expectFloat(int)","anchor":"expectFloat(int)","kind":"method","name":"expectFloat","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"expectFloat"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the slot"}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the slot in this frame"}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type float"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read and expects a value of type float for a given slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read and expects a value of type float for a given slot. Expect methods are intended to be used to implement speculative behavior where slots are expected to be tagged with a type. If the type changes an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" will be thrown containing the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)"},"code":true,"children":[{"kind":"text","text":"getValue(slot)"}]},{"kind":"text","text":". Clients of this API are then expected to rewrite and no longer use an expect methods for future reads of that slot. Expect methods are particularly useful to implement stack like behavior with a frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":325}},{"id":"com.oracle.truffle.api.frame.Frame#setFloat(int,float)","anchor":"setFloat(int,float)","kind":"method","name":"setFloat","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloat"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Write access to a local variable of type float."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Write access to a local variable of type float."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":338}},{"id":"com.oracle.truffle.api.frame.Frame#getDouble(int)","anchor":"getDouble(int)","kind":"method","name":"getDouble","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable"}]}]},"throws":[{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type double"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read access to a local variable of type double."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read access to a local variable of type double."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":351}},{"id":"com.oracle.truffle.api.frame.Frame#expectDouble(int)","anchor":"expectDouble(int)","kind":"method","name":"expectDouble","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"expectDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the slot"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the slot in this frame"}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the current value is not of type double"}]}]}],"doc":{"summary":[{"kind":"text","text":"Read and expects a value of type double for a given slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read and expects a value of type double for a given slot. Expect methods are intended to be used to implement speculative behavior where slots are expected to be tagged with a type. If the type changes an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" will be thrown containing the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)"},"code":true,"children":[{"kind":"text","text":"getValue(slot)"}]},{"kind":"text","text":". Clients of this API are then expected to rewrite and no longer use an expect methods for future reads of that slot. Expect methods are particularly useful to implement stack like behavior with a frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":369}},{"id":"com.oracle.truffle.api.frame.Frame#setDouble(int,double)","anchor":"setDouble(int,double)","kind":"method","name":"setDouble","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Write access to a local variable of type double."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Write access to a local variable of type double."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":382}},{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)","anchor":"getValue(int)","kind":"method","name":"getValue","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getValue"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable or defaultValue if unset"}]}]},"doc":{"summary":[{"kind":"text","text":"Read access to a local variable of any type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read access to a local variable of any type."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":394}},{"id":"com.oracle.truffle.api.frame.Frame#copy(int,int)","anchor":"copy(int,int)","kind":"method","name":"copy","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copy"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"srcSlot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"destSlot"},{"kind":"punct","text":")"}],"params":[{"name":"srcSlot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the source local variable"}]}]},{"name":"destSlot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the target local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies, including the type, from one slot to another."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies, including the type, from one slot to another."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":406}},{"id":"com.oracle.truffle.api.frame.Frame#swap(int,int)","anchor":"swap(int,int)","kind":"method","name":"swap","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"swap"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"first"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"second"},{"kind":"punct","text":")"}],"params":[{"name":"first","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the first local variable"}]}]},{"name":"second","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the second local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Swaps, including the type, the contents of two slots."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Swaps, including the type, the contents of two slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":418}},{"id":"com.oracle.truffle.api.frame.Frame#getTag(int)","anchor":"getTag(int)","kind":"method","name":"getTag","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getTag"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the tag of the value in the slot"}]}]},"doc":{"summary":[{"kind":"text","text":"Determines the actual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]},{"kind":"text","text":" of the value in the slot, and returns it as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#tag"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.tag"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Determines the actual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]},{"kind":"text","text":" of the value in the slot, and returns it as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#tag"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.tag"}]},{"kind":"text","text":"."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":431}},{"id":"com.oracle.truffle.api.frame.Frame#isObject(int)","anchor":"isObject(int)","kind":"method","name":"isObject","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isObject"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether the given indexed slot is of type object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether the given indexed slot is of type object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should not be used with static slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":444}},{"id":"com.oracle.truffle.api.frame.Frame#isByte(int)","anchor":"isByte(int)","kind":"method","name":"isByte","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether the given indexed slot is of type byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether the given indexed slot is of type byte."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should not be used with static slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":457}},{"id":"com.oracle.truffle.api.frame.Frame#isBoolean(int)","anchor":"isBoolean(int)","kind":"method","name":"isBoolean","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isBoolean"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether the given indexed slot is of type boolean."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether the given indexed slot is of type boolean."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should not be used with static slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":470}},{"id":"com.oracle.truffle.api.frame.Frame#isInt(int)","anchor":"isInt(int)","kind":"method","name":"isInt","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether the given indexed slot is of type int."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether the given indexed slot is of type int."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should not be used with static slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":483}},{"id":"com.oracle.truffle.api.frame.Frame#isLong(int)","anchor":"isLong(int)","kind":"method","name":"isLong","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether the given indexed slot is of type long."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether the given indexed slot is of type long."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should not be used with static slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":496}},{"id":"com.oracle.truffle.api.frame.Frame#isFloat(int)","anchor":"isFloat(int)","kind":"method","name":"isFloat","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isFloat"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether the given indexed slot is of type float."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether the given indexed slot is of type float."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should not be used with static slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":509}},{"id":"com.oracle.truffle.api.frame.Frame#isDouble(int)","anchor":"isDouble(int)","kind":"method","name":"isDouble","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether the given indexed slot is of type double."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether the given indexed slot is of type double."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should not be used with static slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":522}},{"id":"com.oracle.truffle.api.frame.Frame#isStatic(int)","anchor":"isStatic(int)","kind":"method","name":"isStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks whether the given indexed slot is static."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether the given indexed slot is static."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should not be used with static slots."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":535}},{"id":"com.oracle.truffle.api.frame.Frame#clear(int)","anchor":"clear(int)","kind":"method","name":"clear","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clear"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Clears the given indexed slot in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clears the given indexed slot in the frame. Writing over a previously cleared slot is still allowed. Subsequent reads to this slot, unless re-written to, will fail with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException"},"code":true,"children":[{"kind":"text","text":"FrameSlotTypeException"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is intended to be used for implementations of liveness analysis. As such, the compiler will find and report any inconsistency with respect to liveness analysis when using this method, such as clearing a slot in a branch, but not on another one, and their execution merge."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Liveness analysis implementations are expected to clear unused slots on method entry"}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":555}},{"id":"com.oracle.truffle.api.frame.Frame#getAuxiliarySlot(int)","anchor":"getAuxiliarySlot(int)","kind":"method","name":"getAuxiliarySlot","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getAuxiliarySlot"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the auxiliary slot index to query"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the auxiliary slot - "},{"kind":"code","text":"null"},{"kind":"text","text":" if it was never set (not the frame descriptor's default value)"}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":566}},{"id":"com.oracle.truffle.api.frame.Frame#setAuxiliarySlot(int,java.lang.Object)","anchor":"setAuxiliarySlot(int,java.lang.Object)","kind":"method","name":"setAuxiliarySlot","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setAuxiliarySlot"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the auxiliary slot index"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the value of the given auxiliary slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the value of the given auxiliary slot."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":578}},{"id":"com.oracle.truffle.api.frame.Frame#getObjectStatic(int)","anchor":"getObjectStatic(int)","kind":"method","name":"getObjectStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getObjectStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if slot is uninitialized."}]}]},"doc":{"summary":[{"kind":"text","text":"Static read access to a local variable of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static read access to a local variable of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":". Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variable in the given slot is of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":593}},{"id":"com.oracle.truffle.api.frame.Frame#setObjectStatic(int,java.lang.Object)","anchor":"setObjectStatic(int,java.lang.Object)","kind":"method","name":"setObjectStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setObjectStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Static write access to a local variable of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static write access to a local variable of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":". Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not update the internal slot type, language implementations have to track this information."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":607}},{"id":"com.oracle.truffle.api.frame.Frame#getByteStatic(int)","anchor":"getByteStatic(int)","kind":"method","name":"getByteStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByteStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable, or "},{"kind":"code","text":"0"},{"kind":"text","text":" if slot is uninitialized."}]}]},"doc":{"summary":[{"kind":"text","text":"Static read access to a local variable of type byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static read access to a local variable of type byte. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variable in the given slot is of type byte."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":621}},{"id":"com.oracle.truffle.api.frame.Frame#setByteStatic(int,byte)","anchor":"setByteStatic(int,byte)","kind":"method","name":"setByteStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByteStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Static write access to a local variable of type byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static write access to a local variable of type byte. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not update the internal slot type, language implementations have to track this information."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":635}},{"id":"com.oracle.truffle.api.frame.Frame#getBooleanStatic(int)","anchor":"getBooleanStatic(int)","kind":"method","name":"getBooleanStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"getBooleanStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable, or "},{"kind":"code","text":"false"},{"kind":"text","text":" if slot is uninitialized."}]}]},"doc":{"summary":[{"kind":"text","text":"Static read access to a local variable of type boolean."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static read access to a local variable of type boolean. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variable in the given slot is of type boolean."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":649}},{"id":"com.oracle.truffle.api.frame.Frame#setBooleanStatic(int,boolean)","anchor":"setBooleanStatic(int,boolean)","kind":"method","name":"setBooleanStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBooleanStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Static write access to a local variable of type boolean."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static write access to a local variable of type boolean. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not update the internal slot type, language implementations have to track this information."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":663}},{"id":"com.oracle.truffle.api.frame.Frame#getIntStatic(int)","anchor":"getIntStatic(int)","kind":"method","name":"getIntStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getIntStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable, or "},{"kind":"code","text":"0"},{"kind":"text","text":" if slot is uninitialized."}]}]},"doc":{"summary":[{"kind":"text","text":"Static read access to a local variable of type int."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static read access to a local variable of type int. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variable in the given slot can is of type int."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":677}},{"id":"com.oracle.truffle.api.frame.Frame#setIntStatic(int,int)","anchor":"setIntStatic(int,int)","kind":"method","name":"setIntStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setIntStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Static write access to a local variable of type int."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static write access to a local variable of type int. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not update the internal slot type, language implementations have to track this information."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":691}},{"id":"com.oracle.truffle.api.frame.Frame#getLongStatic(int)","anchor":"getLongStatic(int)","kind":"method","name":"getLongStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLongStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable, or "},{"kind":"code","text":"0"},{"kind":"text","text":" if slot is uninitialized."}]}]},"doc":{"summary":[{"kind":"text","text":"Static read access to a local variable of type long."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static read access to a local variable of type long. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variable in the given slot is of type long."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":705}},{"id":"com.oracle.truffle.api.frame.Frame#setLongStatic(int,long)","anchor":"setLongStatic(int,long)","kind":"method","name":"setLongStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLongStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Static write access to a local variable of type long."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static write access to a local variable of type long. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not update the internal slot type, language implementations have to track this information."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":719}},{"id":"com.oracle.truffle.api.frame.Frame#getFloatStatic(int)","anchor":"getFloatStatic(int)","kind":"method","name":"getFloatStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getFloatStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable, or "},{"kind":"code","text":"0"},{"kind":"text","text":" if slot is uninitialized."}]}]},"doc":{"summary":[{"kind":"text","text":"Static read access to a local variable of type float."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static read access to a local variable of type float. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variable in the given slot is of type float."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":733}},{"id":"com.oracle.truffle.api.frame.Frame#setFloatStatic(int,float)","anchor":"setFloatStatic(int,float)","kind":"method","name":"setFloatStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloatStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Static write access to a local variable of type float."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static write access to a local variable of type float. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not update the internal slot type, language implementations have to track this information."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":747}},{"id":"com.oracle.truffle.api.frame.Frame#getDoubleStatic(int)","anchor":"getDoubleStatic(int)","kind":"method","name":"getDoubleStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDoubleStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current value of the local variable, or "},{"kind":"code","text":"0"},{"kind":"text","text":" if slot is uninitialized."}]}]},"doc":{"summary":[{"kind":"text","text":"Static read access to a local variable of type double."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static read access to a local variable of type double. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variable in the given slot is of type double."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":761}},{"id":"com.oracle.truffle.api.frame.Frame#setDoubleStatic(int,double)","anchor":"setDoubleStatic(int,double)","kind":"method","name":"setDoubleStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDoubleStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]},{"name":"value","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Static write access to a local variable of type double."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static write access to a local variable of type double. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not update the internal slot type, language implementations have to track this information."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":775}},{"id":"com.oracle.truffle.api.frame.Frame#copyPrimitiveStatic(int,int)","anchor":"copyPrimitiveStatic(int,int)","kind":"method","name":"copyPrimitiveStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyPrimitiveStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"srcSlot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"destSlot"},{"kind":"punct","text":")"}],"params":[{"name":"srcSlot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the source local variable"}]}]},{"name":"destSlot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the target local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies a primitive value from one slot to another."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies a primitive value from one slot to another. Requires both slots to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variable at the source slot is a primitive value."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":789}},{"id":"com.oracle.truffle.api.frame.Frame#copyObjectStatic(int,int)","anchor":"copyObjectStatic(int,int)","kind":"method","name":"copyObjectStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyObjectStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"srcSlot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"destSlot"},{"kind":"punct","text":")"}],"params":[{"name":"srcSlot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the source local variable"}]}]},{"name":"destSlot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the target local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies an object value from one slot to another."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies an object value from one slot to another. Requires both slots to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variable at the source slot is an "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":803}},{"id":"com.oracle.truffle.api.frame.Frame#copyStatic(int,int)","anchor":"copyStatic(int,int)","kind":"method","name":"copyStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"srcSlot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"destSlot"},{"kind":"punct","text":")"}],"params":[{"name":"srcSlot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the source local variable"}]}]},{"name":"destSlot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the target local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies from one slot to another."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies from one slot to another. Requires both slots to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". In cases where the underlying slot type is known, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#copyPrimitiveStatic(int,int)"},"code":true,"children":[{"kind":"text","text":"Frame.copyPrimitiveStatic"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#copyObjectStatic(int,int)"},"code":true,"children":[{"kind":"text","text":"Frame.copyObjectStatic"}]},{"kind":"text","text":" should be used for performance reasons."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":817}},{"id":"com.oracle.truffle.api.frame.Frame#swapPrimitiveStatic(int,int)","anchor":"swapPrimitiveStatic(int,int)","kind":"method","name":"swapPrimitiveStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"swapPrimitiveStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"first"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"second"},{"kind":"punct","text":")"}],"params":[{"name":"first","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the first local variable"}]}]},{"name":"second","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the second local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Swaps the primitive values of two slots."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Swaps the primitive values of two slots. Requires both slots to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variables in both slots are primitive values."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":831}},{"id":"com.oracle.truffle.api.frame.Frame#swapObjectStatic(int,int)","anchor":"swapObjectStatic(int,int)","kind":"method","name":"swapObjectStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"swapObjectStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"first"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"second"},{"kind":"punct","text":")"}],"params":[{"name":"first","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the first local variable"}]}]},{"name":"second","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the second local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Swaps the object values of two slots."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Swaps the object values of two slots. Requires both slots to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Since this method does not perform any type checks, language implementations have to guarantee that the variables in both slots are "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"s."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":845}},{"id":"com.oracle.truffle.api.frame.Frame#swapStatic(int,int)","anchor":"swapStatic(int,int)","kind":"method","name":"swapStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"swapStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"first"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"second"},{"kind":"punct","text":")"}],"params":[{"name":"first","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the first local variable"}]}]},{"name":"second","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the second local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Swaps the contents of two slots."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Swaps the contents of two slots. Requires both slots to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". In cases where the underlying slot type is known, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#swapPrimitiveStatic(int,int)"},"code":true,"children":[{"kind":"text","text":"Frame.swapPrimitiveStatic"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#swapObjectStatic(int,int)"},"code":true,"children":[{"kind":"text","text":"Frame.swapObjectStatic"}]},{"kind":"text","text":" should be used for performance reasons."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":859}},{"id":"com.oracle.truffle.api.frame.Frame#clearPrimitiveStatic(int)","anchor":"clearPrimitiveStatic(int)","kind":"method","name":"clearPrimitiveStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clearPrimitiveStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Clears the primitive value at the given slot in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clears the primitive value at the given slot in the frame. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Writing over a previously cleared slot is still allowed. Subsequent reads to the slot, unless re-written to, are not allowed and will fail with an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" if assertions are enabled. Since this method does not perform any type checks, language implementations have to guarantee that the variable at the given slot is a primitive value."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is intended to be used for implementations of liveness analysis. As such, the compiler will find and report any inconsistency with respect to liveness analysis when using this method, such as clearing a slot in a branch, but not on another one, and their execution merge."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Liveness analysis implementations are expected to clear unused slots on method entry."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":883}},{"id":"com.oracle.truffle.api.frame.Frame#clearObjectStatic(int)","anchor":"clearObjectStatic(int)","kind":"method","name":"clearObjectStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clearObjectStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Clears the object value at the given slot in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clears the object value at the given slot in the frame. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Writing over a previously cleared slot is still allowed. Subsequent reads to the slot, unless re-written to, are not allowed and will fail with an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" if assertions are enabled. Since this method does not perform any type checks, language implementations have to guarantee that the variable at the given slot is an "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is intended to be used for implementations of liveness analysis. As such, the compiler will find and report any inconsistency with respect to liveness analysis when using this method, such as clearing a slot in a branch, but not on another one, and their execution merge."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Liveness analysis implementations are expected to clear unused slots on method entry."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":907}},{"id":"com.oracle.truffle.api.frame.Frame#clearStatic(int)","anchor":"clearStatic(int)","kind":"method","name":"clearStatic","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clearStatic"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The slot of the local variable"}]}]}],"doc":{"summary":[{"kind":"text","text":"Clears the value at the given slot in the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clears the value at the given slot in the frame. Requires the given slot to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Static"}]},{"kind":"text","text":". Writing over a previously cleared slot is still allowed. Subsequent reads to the slot, unless re-written to, are not allowed and will fail with an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" if assertions are enabled. In cases where the underlying slot type is known, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#clearPrimitiveStatic(int)"},"code":true,"children":[{"kind":"text","text":"Frame.clearPrimitiveStatic"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#clearObjectStatic(int)"},"code":true,"children":[{"kind":"text","text":"Frame.clearObjectStatic"}]},{"kind":"text","text":" should be used for performance reasons."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":923}},{"id":"com.oracle.truffle.api.frame.Frame#copyTo(int,com.oracle.truffle.api.frame.Frame,int,int)","anchor":"copyTo(int,com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"copyTo","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyTo"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"destination"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"destinationOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"sourceOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the slot of the first local variable"}]}]},{"name":"destination","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the destination frame"}]}]},{"name":"destinationOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the first slot to copy locals into"}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of slots to copy"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if a frame using a different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":" is passed."}]}]},{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an invalid offset or length was passed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies values from this frame to the given frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies values from this frame to the given frame. The frames are required to have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getFrameDescriptor()"},"code":true,"children":[{"kind":"text","text":"frame descriptors"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":941}}],"doc":{"summary":[{"kind":"text","text":"Represents a frame containing values of local variables of the guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a frame containing values of local variables of the guest language. Instances of this type must not be stored in a field or cast to "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"java.lang.Object"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/Frame.java","line":53}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor","name":"FrameDescriptor","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"Cloneable","ref":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"Cloneable","ref":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.frame.FrameDescriptor#<init>()","anchor":"<init>()","kind":"constructor","name":"FrameDescriptor","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameDescriptor"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructs empty descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructs empty descriptor. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getDefaultValue()"},"code":true,"children":[{"kind":"text","text":"getDefaultValue()"}]},{"kind":"text","text":" is "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":134}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"FrameDescriptor","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameDescriptor"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":")"}],"params":[{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"to be returned from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getDefaultValue()"},"code":true,"children":[{"kind":"text","text":"getDefaultValue()"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Constructs new descriptor with specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getDefaultValue()"},"code":true,"children":[{"kind":"text","text":"getDefaultValue()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructs new descriptor with specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getDefaultValue()"},"code":true,"children":[{"kind":"text","text":"getDefaultValue()"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":144}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#copy()","anchor":"copy()","kind":"method","name":"copy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"copy"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"new instance of a descriptor with copies of values from this one"}]}]},"doc":{"summary":[{"kind":"text","text":"Deeper copy of the descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Deeper copy of the descriptor. Copies all slots in the descriptor, but only their identifier and info but not their kind!"}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":187}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getDefaultValue()","anchor":"getDefaultValue()","kind":"method","name":"getDefaultValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getDefaultValue"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value provided to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#<init>(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor(java.lang.Object)"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Default value for the created slots."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Default value for the created slots."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":214}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":219}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getNumberOfSlots()","anchor":"getNumberOfSlots()","kind":"method","name":"getNumberOfSlots","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getNumberOfSlots"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of indexed slots in this frame descriptor"}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":260}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getSlotKind(int)","anchor":"getSlotKind(int)","kind":"method","name":"getSlotKind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"name","text":"getSlotKind"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"index of the slot"}]}]}],"returns":{"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non-null "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]},{"kind":"text","text":" associated with the given indexed slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]},{"kind":"text","text":" associated with the given indexed slot."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":271}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#setSlotKind(int,com.oracle.truffle.api.frame.FrameSlotKind)","anchor":"setSlotKind(int,com.oracle.truffle.api.frame.FrameSlotKind)","kind":"method","name":"setSlotKind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setSlotKind"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"param","text":"kind"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"index of the slot"}]}]},{"name":"kind","type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"new non-null "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]},{"kind":"text","text":" of the given indexed slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]},{"kind":"text","text":" of the given indexed slot."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":286}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getSlotName(int)","anchor":"getSlotName(int)","kind":"method","name":"getSlotName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSlotName"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"index of the slot"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of the slot (may be "},{"kind":"code","text":"null"},{"kind":"text","text":")"}]}]},"doc":{"summary":[{"kind":"text","text":"Queries the name for a given indexed slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Queries the name for a given indexed slot."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":306}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getSlotInfo(int)","anchor":"getSlotInfo(int)","kind":"method","name":"getSlotInfo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSlotInfo"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"index of the slot"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the info object of the slot (may be "},{"kind":"code","text":"null"},{"kind":"text","text":")"}]}]},"doc":{"summary":[{"kind":"text","text":"Queries the info object for a given indexed slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Queries the info object for a given indexed slot."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":317}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#findOrAddAuxiliarySlot(java.lang.Object)","anchor":"findOrAddAuxiliarySlot(java.lang.Object)","kind":"method","name":"findOrAddAuxiliarySlot","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"findOrAddAuxiliarySlot"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"used as a hash map entry"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an integer that can be used to access the auxiliary slot in the frame"}]}]},"doc":{"summary":[{"kind":"text","text":"Find or adds an auxiliary slot to this frame descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find or adds an auxiliary slot to this frame descriptor. Returns an integer index that can be used to access the auxiliary slot in the frame."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":329}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#disableAuxiliarySlot(java.lang.Object)","anchor":"disableAuxiliarySlot(java.lang.Object)","kind":"method","name":"disableAuxiliarySlot","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disableAuxiliarySlot"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the key, as passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#findOrAddAuxiliarySlot(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"findOrAddAuxiliarySlot(Object)"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Disables the auxiliary slot with the given key, so that subsequently created "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":" instances may avoid allocating storage for it."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables the auxiliary slot with the given key, so that subsequently created "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":" instances may avoid allocating storage for it. Depending on the internal storage layout, it may not be possible to remove the storage for individual slots, so it is important to disable _all_ unused slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":360}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getAuxiliarySlots()","anchor":"getAuxiliarySlots()","kind":"method","name":"getAuxiliarySlots","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getAuxiliarySlots"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Integer","ref":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all currently active auxiliary slots along with their indexes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all currently active auxiliary slots along with their indexes. This is a slow operation that returns a data structure that is not backed by the frame descriptor, i.e., which does not reflect changes to the set of active auxiliary slots in either direction."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":385}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getNumberOfAuxiliarySlots()","anchor":"getNumberOfAuxiliarySlots()","kind":"method","name":"getNumberOfAuxiliarySlots","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getNumberOfAuxiliarySlots"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current number of auxiliary slots in this frame descriptor"}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":423}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getInfo()","anchor":"getInfo()","kind":"method","name":"getInfo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getInfo"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the user-defined info object associated with this frame descriptor"}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":432}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#newBuilder()","anchor":"newBuilder()","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Builds a new frame descriptor with index-based frame slots."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds a new frame descriptor with index-based frame slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":441}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor#newBuilder(int)","anchor":"newBuilder(int)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"capacity"},{"kind":"punct","text":")"}],"params":[{"name":"capacity","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected number of index-based frame slots (taken as a hint when allocating internal data structures)"}]}]}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Builds a new frame descriptor with index-based frame slots."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds a new frame descriptor with index-based frame slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":452}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Descriptor of the slots of frame objects."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Descriptor of the slots of frame objects. Multiple frame instances are associated with one such descriptor. The FrameDescriptor is thread-safe."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":62}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder","name":"FrameDescriptor.Builder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameDescriptor.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.frame.FrameDescriptor","members":[{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#defaultValue(java.lang.Object)","anchor":"defaultValue(java.lang.Object)","kind":"method","name":"defaultValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"defaultValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"newDefaultValue"},{"kind":"punct","text":")"}],"params":[{"name":"newDefaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the default value for the resulting frame descriptor"}]}]}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets the default value for the frame slots in this frame descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the default value for the frame slots in this frame descriptor."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":496}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#defaultValueIllegal()","anchor":"defaultValueIllegal()","kind":"method","name":"defaultValueIllegal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"defaultValueIllegal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets the default value to illegal, this means that an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException"},"code":true,"children":[{"kind":"text","text":"FrameSlotTypeException"}]},{"kind":"text","text":" is thrown if a slot is read before it is written."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the default value to illegal, this means that an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException"},"code":true,"children":[{"kind":"text","text":"FrameSlotTypeException"}]},{"kind":"text","text":" is thrown if a slot is read before it is written. A frame descriptor can either have a concrete "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#defaultValue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"default value"}]},{"kind":"text","text":" or an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#defaultValueIllegal()"},"code":true,"children":[{"kind":"text","text":"illegal default value"}]},{"kind":"text","text":", but not both."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":509}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#addSlots(int,com.oracle.truffle.api.frame.FrameSlotKind)","anchor":"addSlots(int,com.oracle.truffle.api.frame.FrameSlotKind)","kind":"method","name":"addSlots","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"addSlots"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"count"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"param","text":"kind"},{"kind":"punct","text":")"}],"params":[{"name":"count","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"number of slots to be added"}]}]},{"name":"kind","type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"default type of the newly added frame slots"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"index of the first slot"}]}]},"doc":{"summary":[{"kind":"text","text":"Adds the given number of consecutive indexed slots to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":", and initializes them with the given kind."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds the given number of consecutive indexed slots to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":", and initializes them with the given kind."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":523}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#useSlotKinds(boolean)","anchor":"useSlotKinds(boolean)","kind":"method","name":"useSlotKinds","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"useSlotKinds"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Enables the use of slot kinds like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getSlotKind(int)"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor.getSlotKind(int)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables the use of slot kinds like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getSlotKind(int)"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor.getSlotKind(int)"}]},{"kind":"text","text":". By default slot kinds are enabled. If they are disabled then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getSlotKind(int)"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor.getSlotKind(int)"}]},{"kind":"text","text":" always returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Illegal"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Illegal"}]},{"kind":"text","text":" and no slot with a different slot kind than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Illegal"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind.Illegal"}]},{"kind":"text","text":" must be added."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":542}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#addSlots(int)","anchor":"addSlots(int)","kind":"method","name":"addSlots","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"addSlots"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"count"},{"kind":"punct","text":")"}],"params":[{"name":"count","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of slots to add"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Adds the given number of consecutive indexed slots to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":", and initializes them without a kind."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds the given number of consecutive indexed slots to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":", and initializes them without a kind. If the kind is read anyway then Illegal will be returned and setting the kind will throw an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#useSlotKinds(boolean)"},"code":true,"children":[{"kind":"text","text":"to disable slot kinds all together."}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":556}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#addSlot(com.oracle.truffle.api.frame.FrameSlotKind,java.lang.Object,java.lang.Object)","anchor":"addSlot(com.oracle.truffle.api.frame.FrameSlotKind,java.lang.Object,java.lang.Object)","kind":"method","name":"addSlot","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"addSlot"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"param","text":"kind"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"info"},{"kind":"punct","text":")"}],"params":[{"name":"kind","type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"default type of the newly added frame slot"}]}]},{"name":"name","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Name of the newly added frame slot. Can (and should, if possible) be null."}]}]},{"name":"info","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Info object for the newly added frame slot. Can (and should, if possible) be null."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Adds an indexed frame slot to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds an indexed frame slot to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":". The frame descriptor's internal arrays for storing "},{"kind":"code","text":"name"},{"kind":"text","text":" and "},{"kind":"code","text":"info"},{"kind":"text","text":" are allocated only when needed, so using only "},{"kind":"code","text":"null"},{"kind":"text","text":" reduces memory footprint."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":571}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#info(java.lang.Object)","anchor":"info(java.lang.Object)","kind":"method","name":"info","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"info"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"info"},{"kind":"punct","text":")"}],"params":[{"name":"info","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the user-defined info object"}]}]}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor.Builder","ref":"com.oracle.truffle.api.frame.FrameDescriptor$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Adds a user-defined info object to the frame descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a user-defined info object to the frame descriptor. The contents of this object are strongly referenced from the frame descriptor and can be queried using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor#getInfo()"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor.getInfo()"}]},{"kind":"text","text":". They do not influence the semantics of the frame descriptor in any other way."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":602}},{"id":"com.oracle.truffle.api.frame.FrameDescriptor$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the newly created "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Uses the data provided to this builder to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Uses the data provided to this builder to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":"."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":613}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder API for frame descriptors with indexed slots."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder API for frame descriptors with indexed slots."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameDescriptor.java","line":461}},{"id":"com.oracle.truffle.api.frame.FrameExtensions","name":"FrameExtensions","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameExtensions"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.frame.FrameExtensions#<init>()","anchor":"<init>()","kind":"constructor","name":"FrameExtensions","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameExtensions"},{"kind":"punct","text":"()"}],"source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":50}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#getObject(com.oracle.truffle.api.frame.Frame,int)","anchor":"getObject(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"getObject","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Reads an object from the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads an object from the frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":58}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","anchor":"setObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","kind":"method","name":"setObject","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an Object into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an Object into the frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":65}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setBoolean(com.oracle.truffle.api.frame.Frame,int,boolean)","anchor":"setBoolean(com.oracle.truffle.api.frame.Frame,int,boolean)","kind":"method","name":"setBoolean","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a boolean into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a boolean into the frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":72}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setByte(com.oracle.truffle.api.frame.Frame,int,byte)","anchor":"setByte(com.oracle.truffle.api.frame.Frame,int,byte)","kind":"method","name":"setByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a byte into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a byte into the frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":79}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setInt(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"setInt(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"setInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an int into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an int into the frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":86}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setLong(com.oracle.truffle.api.frame.Frame,int,long)","anchor":"setLong(com.oracle.truffle.api.frame.Frame,int,long)","kind":"method","name":"setLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a long into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a long into the frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":93}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setLongOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","anchor":"setLongOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","kind":"method","name":"setLongOrObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLongOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":95}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setIntOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","anchor":"setIntOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","kind":"method","name":"setIntOrObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setIntOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":103}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setByteOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","anchor":"setByteOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","kind":"method","name":"setByteOrObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByteOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":111}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setBooleanOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","anchor":"setBooleanOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","kind":"method","name":"setBooleanOrObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBooleanOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":119}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setFloatOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","anchor":"setFloatOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","kind":"method","name":"setFloatOrObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloatOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":127}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setDoubleOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","anchor":"setDoubleOrObject(com.oracle.truffle.api.frame.Frame,int,java.lang.Object)","kind":"method","name":"setDoubleOrObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDoubleOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":135}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setFloat(com.oracle.truffle.api.frame.Frame,int,float)","anchor":"setFloat(com.oracle.truffle.api.frame.Frame,int,float)","kind":"method","name":"setFloat","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a float into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a float into the frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":148}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setDouble(com.oracle.truffle.api.frame.Frame,int,double)","anchor":"setDouble(com.oracle.truffle.api.frame.Frame,int,double)","kind":"method","name":"setDouble","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a double into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a double into the frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":155}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectBoolean(com.oracle.truffle.api.frame.Frame,int)","anchor":"expectBoolean(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"expectBoolean","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"expectBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Reads a boolean from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads a boolean from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":163}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectByte(com.oracle.truffle.api.frame.Frame,int)","anchor":"expectByte(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"expectByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"expectByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Reads a byte from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads a byte from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":171}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectInt(com.oracle.truffle.api.frame.Frame,int)","anchor":"expectInt(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"expectInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"expectInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Reads an int from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads an int from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":179}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectLong(com.oracle.truffle.api.frame.Frame,int)","anchor":"expectLong(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"expectLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"expectLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Reads a long from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads a long from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":187}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectObject(com.oracle.truffle.api.frame.Frame,int)","anchor":"expectObject(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"expectObject","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"expectObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Reads an Object from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads an Object from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":195}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectFloat(com.oracle.truffle.api.frame.Frame,int)","anchor":"expectFloat(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"expectFloat","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"expectFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Reads a float from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads a float from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":203}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectDouble(com.oracle.truffle.api.frame.Frame,int)","anchor":"expectDouble(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"expectDouble","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"expectDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Reads a double from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads a double from the frame, throwing an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" with the slot value when the tag does not match."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":211}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#requireObject(com.oracle.truffle.api.frame.Frame,int)","anchor":"requireObject(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"requireObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"requireObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Reads an Object from the frame, recovering gracefully when the slot is not Object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads an Object from the frame, recovering gracefully when the slot is not Object."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":218}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#uncheckedGetObject(com.oracle.truffle.api.frame.Frame,int)","anchor":"uncheckedGetObject(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"uncheckedGetObject","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"uncheckedGetObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Reads an object from the frame without checking the slot's tag."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads an object from the frame without checking the slot's tag."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":231}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#copy(com.oracle.truffle.api.frame.Frame,int,int)","anchor":"copy(com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"copy","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copy"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"srcSlot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"dstSlot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"srcSlot","type":[{"kind":"keyword","text":"int"}]},{"name":"dstSlot","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Copies a value from one slot to another."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies a value from one slot to another."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":238}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#copyTo(com.oracle.truffle.api.frame.Frame,int,com.oracle.truffle.api.frame.Frame,int,int)","anchor":"copyTo(com.oracle.truffle.api.frame.Frame,int,com.oracle.truffle.api.frame.Frame,int,int)","kind":"method","name":"copyTo","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyTo"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"srcFrame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"srcOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"dstFrame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"dstOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"srcFrame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"srcOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"dstFrame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"dstOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Copies a range of values from one frame to another."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies a range of values from one frame to another."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":245}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#clear(com.oracle.truffle.api.frame.Frame,int)","anchor":"clear(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"clear","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clear"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Clears a frame slot."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clears a frame slot."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":252}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#getValue(com.oracle.truffle.api.frame.Frame,int)","anchor":"getValue(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"getValue","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Reads the value of a slot from the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the value of a slot from the frame."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":259}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#resetFrame(com.oracle.truffle.api.frame.Frame)","anchor":"resetFrame(com.oracle.truffle.api.frame.Frame)","kind":"method","name":"resetFrame","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"resetFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]}],"source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":264}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#getObject(com.oracle.truffle.api.frame.Frame,long)","anchor":"getObject(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"getObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Reads an object from the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads an object from the frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":271}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","anchor":"setObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","kind":"method","name":"setObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an Object into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an Object into the frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":280}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setBoolean(com.oracle.truffle.api.frame.Frame,long,boolean)","anchor":"setBoolean(com.oracle.truffle.api.frame.Frame,long,boolean)","kind":"method","name":"setBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a boolean into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a boolean into the frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":289}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setByte(com.oracle.truffle.api.frame.Frame,long,byte)","anchor":"setByte(com.oracle.truffle.api.frame.Frame,long,byte)","kind":"method","name":"setByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a byte into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a byte into the frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":298}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setInt(com.oracle.truffle.api.frame.Frame,long,int)","anchor":"setInt(com.oracle.truffle.api.frame.Frame,long,int)","kind":"method","name":"setInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Stores an int into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores an int into the frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":307}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setLong(com.oracle.truffle.api.frame.Frame,long,long)","anchor":"setLong(com.oracle.truffle.api.frame.Frame,long,long)","kind":"method","name":"setLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Stores a long into the frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stores a long into the frame."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":316}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setLongOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","anchor":"setLongOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","kind":"method","name":"setLongOrObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLongOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":323}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setIntOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","anchor":"setIntOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","kind":"method","name":"setIntOrObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setIntOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":330}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setByteOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","anchor":"setByteOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","kind":"method","name":"setByteOrObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByteOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":337}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setBooleanOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","anchor":"setBooleanOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","kind":"method","name":"setBooleanOrObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBooleanOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":344}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setFloatOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","anchor":"setFloatOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","kind":"method","name":"setFloatOrObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloatOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":351}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setDoubleOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","anchor":"setDoubleOrObject(com.oracle.truffle.api.frame.Frame,long,java.lang.Object)","kind":"method","name":"setDoubleOrObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDoubleOrObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":358}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setFloat(com.oracle.truffle.api.frame.Frame,long,float)","anchor":"setFloat(com.oracle.truffle.api.frame.Frame,long,float)","kind":"method","name":"setFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":365}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#setDouble(com.oracle.truffle.api.frame.Frame,long,double)","anchor":"setDouble(com.oracle.truffle.api.frame.Frame,long,double)","kind":"method","name":"setDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":372}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectBoolean(com.oracle.truffle.api.frame.Frame,long)","anchor":"expectBoolean(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"expectBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"expectBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":379}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectByte(com.oracle.truffle.api.frame.Frame,long)","anchor":"expectByte(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"expectByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"expectByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":386}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectInt(com.oracle.truffle.api.frame.Frame,long)","anchor":"expectInt(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"expectInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"expectInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":393}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectLong(com.oracle.truffle.api.frame.Frame,long)","anchor":"expectLong(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"expectLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"expectLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":400}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectObject(com.oracle.truffle.api.frame.Frame,long)","anchor":"expectObject(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"expectObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"expectObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":407}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectFloat(com.oracle.truffle.api.frame.Frame,long)","anchor":"expectFloat(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"expectFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"expectFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":414}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#expectDouble(com.oracle.truffle.api.frame.Frame,long)","anchor":"expectDouble(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"expectDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"expectDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":421}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#requireObject(com.oracle.truffle.api.frame.Frame,long)","anchor":"requireObject(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"requireObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"requireObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":428}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#uncheckedGetObject(com.oracle.truffle.api.frame.Frame,long)","anchor":"uncheckedGetObject(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"uncheckedGetObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"uncheckedGetObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":435}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#getTag(com.oracle.truffle.api.frame.Frame,long)","anchor":"getTag(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"getTag","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getTag"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":442}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#getTag(com.oracle.truffle.api.frame.Frame,int)","anchor":"getTag(com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"getTag","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getTag"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":450}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#copy(com.oracle.truffle.api.frame.Frame,long,long)","anchor":"copy(com.oracle.truffle.api.frame.Frame,long,long)","kind":"method","name":"copy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copy"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"srcSlot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"dstSlot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"srcSlot","type":[{"kind":"keyword","text":"long"}]},{"name":"dstSlot","type":[{"kind":"keyword","text":"long"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":458}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#copyTo(com.oracle.truffle.api.frame.Frame,long,com.oracle.truffle.api.frame.Frame,long,long)","anchor":"copyTo(com.oracle.truffle.api.frame.Frame,long,com.oracle.truffle.api.frame.Frame,long,long)","kind":"method","name":"copyTo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyTo"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"srcFrame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"srcOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"dstFrame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"dstOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"srcFrame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"srcOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"dstFrame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"dstOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"length","type":[{"kind":"keyword","text":"long"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":465}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#clear(com.oracle.truffle.api.frame.Frame,long)","anchor":"clear(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"clear","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"clear"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":472}},{"id":"com.oracle.truffle.api.frame.FrameExtensions#getValue(com.oracle.truffle.api.frame.Frame,long)","anchor":"getValue(com.oracle.truffle.api.frame.Frame,long)","kind":"method","name":"getValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"slot","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":479}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Internal frame accessor methods for internal Truffle components that are trusted."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal frame accessor methods for internal Truffle components that are trusted."}]}]},"source":{"path":"com/oracle/truffle/api/frame/FrameExtensions.java","line":48}},{"id":"com.oracle.truffle.api.frame.FrameInstance","name":"FrameInstance","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameInstance"}],"members":[{"id":"com.oracle.truffle.api.frame.FrameInstance#getFrame(com.oracle.truffle.api.frame.FrameInstance.FrameAccess)","anchor":"getFrame(com.oracle.truffle.api.frame.FrameInstance.FrameAccess)","kind":"method","name":"getFrame","signature":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":" "},{"kind":"param","text":"access"},{"kind":"punct","text":")"}],"params":[{"name":"access","type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}]}],"returns":{"type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},"doc":{"summary":[{"kind":"text","text":"Accesses the underlying frame using a specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},"code":true,"children":[{"kind":"text","text":"access mode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Accesses the underlying frame using a specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},"code":true,"children":[{"kind":"text","text":"access mode"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Bytecode DSL note: This method should "},{"kind":"strong","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" be used with Bytecode DSL interpreters. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.bytecode.BytecodeFrame"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.bytecode.BytecodeFrame"}]},{"kind":"text","text":" for more information."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},"code":true,"children":[{"kind":"text","text":"FrameAccess"}]}]]},"since":"0.23","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":106}},{"id":"com.oracle.truffle.api.frame.FrameInstance#isVirtualFrame()","anchor":"isVirtualFrame()","kind":"method","name":"isVirtualFrame","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isVirtualFrame"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":109}},{"id":"com.oracle.truffle.api.frame.FrameInstance#getCompilationTier()","anchor":"getCompilationTier()","kind":"method","name":"getCompilationTier","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getCompilationTier"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns an integer for the optimized tier of this method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an integer for the optimized tier of this method. If "},{"kind":"code","text":"0"},{"kind":"text","text":" is returned then this means that the frame is currently being interpreted without any optimization. The number of tiers is unlimited, but is typically restricted to a small set. e.g. 0-2. Where 0 could indicate interpreted, 1 indicates first tier and 2 indicates last tier compilation. It is best to not interpret this number and just print it for the user."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":120}},{"id":"com.oracle.truffle.api.frame.FrameInstance#isCompilationRoot()","anchor":"isCompilationRoot()","kind":"method","name":"isCompilationRoot","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCompilationRoot"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns whether or not the current frame is a compilation root."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether or not the current frame is a compilation root. A compilation root is a compiled "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" which was itself compiled i.e. not inlined into another target."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":130}},{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallNode()","anchor":"getCallNode()","kind":"method","name":"getCallNode","signature":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getCallNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a node representing the callsite of the next new target on the stack. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" in case there is no upper target or location. The set of possible call nodes is restricted to any node that was passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(Node, Object...)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(Node, int, Object[])"}]},{"kind":"text","text":" or the node set using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference"},"code":true,"children":[{"kind":"text","text":"EncapsulatingNodeReference"}]},{"kind":"text","text":" when invoking "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(Object...)"}]},{"kind":"text","text":". If a cached variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.IndirectCallNode"},"code":true,"children":[{"kind":"text","text":"IndirectCallNode"}]},{"kind":"text","text":" was used then the call node will be the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.IndirectCallNode"},"code":true,"children":[{"kind":"text","text":"IndirectCallNode"}]},{"kind":"text","text":" respectively."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a node representing the callsite of the next new target on the stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a node representing the callsite of the next new target on the stack. This picture indicates how "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance"},"code":true,"children":[{"kind":"text","text":"FrameInstance"}]},{"kind":"text","text":" groups the stack."}]},{"kind":"code","text":"                     ===============\n Current:         ,>|  CallTarget   | FrameInstance\n                  |  ===============\n Caller:          '-|  CallNode     | FrameInstance\n                  ,>|  CallTarget   |\n                  |  ===============\n                  '-|  CallNode     | FrameInstance\n                    |  CallTarget   |\n                     ===============\n                          ...\n                     ===============\n                    |  CallNode     | FrameInstance\nInitial call:       |  CallTarget   |\n                     ==============="}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":169}},{"id":"com.oracle.truffle.api.frame.FrameInstance#getInstrumentableCallNode()","anchor":"getInstrumentableCallNode()","kind":"method","name":"getInstrumentableCallNode","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstrumentableCallNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Returns an instrumentable call node from a frame instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an instrumentable call node from a frame instance. This method should be preferred over "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallNode()"},"code":true,"children":[{"kind":"text","text":"getCallNode()"}]},{"kind":"text","text":" by tools to find the instrumentable node associated with this call node. In case of bytecode interpreters the instrumentable node needs to be resolved by the language and is not directly accessible from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" chain of the regular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallNode()"},"code":true,"children":[{"kind":"text","text":"call node"}]},{"kind":"text","text":". Just like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallNode()"},"code":true,"children":[{"kind":"text","text":"getCallNode()"}]},{"kind":"text","text":" this method may not directly return an instrumentable node. To find the eventual instrumentable node the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" chain must be searched. There is no guarantee that an instrumentable node can be found, e.g. if the language does not support instrumentation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findInstrumentableCallNode(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame,int)"},"code":true,"children":[{"kind":"text","text":"RootNode.findInstrumentableCallNode"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":185}},{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallTarget()","anchor":"getCallTarget()","kind":"method","name":"getCallTarget","signature":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"getCallTarget"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}]},"doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" being invoked in this frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" being invoked in this frame."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallNode()"},"code":true,"children":[{"kind":"text","text":"getCallNode()"}]},{"kind":"text","text":" for the relation between call node and CallTarget."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":200}},{"id":"com.oracle.truffle.api.frame.FrameInstance#getBytecodeIndex()","anchor":"getBytecodeIndex()","kind":"method","name":"getBytecodeIndex","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the BCI, or a negative value if invalid or unavailable"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the bytecode index of this frame's call site."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytecode index of this frame's call site."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this frame called the next target on the stack using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(Node, int, Object[])"}]},{"kind":"text","text":", and the supplied bytecode index was not "},{"kind":"code","text":"-1"},{"kind":"text","text":", returns that explicit index. Otherwise, returns the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"RootNode.findBytecodeIndex(Node, Frame)"}]},{"kind":"text","text":" on the root node associated with this frame's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCallTarget()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Negative values indicate invalid or unavailable indices; their meaning is language-specific."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"RootNode.findBytecodeIndex"}]}]]},"since":"24.1","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":218}}],"doc":{"summary":[{"kind":"text","text":"Represents a current frame instance on the stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a current frame instance on the stack. Please note that any frame instance must not be used after the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)"},"code":true,"children":[{"kind":"text","text":"iterateFrames()"}]},{"kind":"text","text":" method returned."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)"},"code":true,"children":[{"kind":"text","text":"To iterate the current frame instances on the stack."}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":61}},{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess","name":"FrameInstance.FrameAccess","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameInstance.FrameAccess"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.frame.FrameInstance","members":[{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#READ_ONLY","anchor":"READ_ONLY","kind":"enumConstant","name":"READ_ONLY","signature":[{"kind":"name","text":"READ_ONLY"}],"type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}],"doc":{"summary":[{"kind":"text","text":"This mode allows to read the frame and provides read only access to its local variables."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This mode allows to read the frame and provides read only access to its local variables. The returned frame must not be stored/persisted. Writing local variables in this mode will result in an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" only if assertions (-ea) are enabled."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":78}},{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#READ_WRITE","anchor":"READ_WRITE","kind":"enumConstant","name":"READ_WRITE","signature":[{"kind":"name","text":"READ_WRITE"}],"type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}],"doc":{"summary":[{"kind":"text","text":"This mode allows to read the frame and provides read and write access to its local variables."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This mode allows to read the frame and provides read and write access to its local variables. The returned frame must not be stored/persisted."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":86}},{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#MATERIALIZE","anchor":"MATERIALIZE","kind":"enumConstant","name":"MATERIALIZE","signature":[{"kind":"name","text":"MATERIALIZE"}],"type":[{"kind":"type","text":"FrameInstance.FrameAccess","ref":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess"}],"doc":{"summary":[{"kind":"text","text":"This mode allows to read a materialized version of the frame and provides read and write access to its local variables."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This mode allows to read a materialized version of the frame and provides read and write access to its local variables. In addition to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance$FrameAccess#READ_WRITE"},"code":true,"children":[{"kind":"text","text":"READ_WRITE"}]},{"kind":"text","text":" this mode allows to store/persist the returned frame."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":94}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Access mode for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getFrame(com.oracle.truffle.api.frame.FrameInstance.FrameAccess)"},"code":true,"children":[{"kind":"text","text":"FrameInstance.getFrame(FrameAccess)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Access mode for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getFrame(com.oracle.truffle.api.frame.FrameInstance.FrameAccess)"},"code":true,"children":[{"kind":"text","text":"FrameInstance.getFrame(FrameAccess)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getFrame(com.oracle.truffle.api.frame.FrameInstance.FrameAccess)"},"code":true,"children":[{"kind":"text","text":"FrameInstance.getFrame(FrameAccess)"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstance.java","line":69}},{"id":"com.oracle.truffle.api.frame.FrameInstanceVisitor","name":"FrameInstanceVisitor","kind":"interface","language":"java","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameInstanceVisitor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"members":[{"id":"com.oracle.truffle.api.frame.FrameInstanceVisitor#visitFrame(com.oracle.truffle.api.frame.FrameInstance)","anchor":"visitFrame(com.oracle.truffle.api.frame.FrameInstance)","kind":"method","name":"visitFrame","signature":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"visitFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"},{"kind":"punct","text":" "},{"kind":"param","text":"frameInstance"},{"kind":"punct","text":")"}],"params":[{"name":"frameInstance","type":[{"kind":"type","text":"FrameInstance","ref":"com.oracle.truffle.api.frame.FrameInstance"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstanceVisitor.java","line":55}}],"doc":{"summary":[{"kind":"text","text":"Callback interface for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.iterateFrames"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Callback interface for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.iterateFrames"}]},{"kind":"text","text":". Implementations of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstanceVisitor#visitFrame(com.oracle.truffle.api.frame.FrameInstance)"},"code":true,"children":[{"kind":"text","text":"visitFrame"}]},{"kind":"text","text":" return null to indicate that frame iteration should continue and the next caller frame should be visited; and return any non-null value to indicate that frame iteration should stop."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameInstanceVisitor.java","line":53}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind","name":"FrameSlotKind","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameSlotKind"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.frame.FrameSlotKind#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Object","anchor":"Object","kind":"enumConstant","name":"Object","signature":[{"kind":"name","text":"Object"}],"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":48}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Long","anchor":"Long","kind":"enumConstant","name":"Long","signature":[{"kind":"name","text":"Long"}],"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":50}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Int","anchor":"Int","kind":"enumConstant","name":"Int","signature":[{"kind":"name","text":"Int"}],"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":52}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Double","anchor":"Double","kind":"enumConstant","name":"Double","signature":[{"kind":"name","text":"Double"}],"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":54}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Float","anchor":"Float","kind":"enumConstant","name":"Float","signature":[{"kind":"name","text":"Float"}],"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":56}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Boolean","anchor":"Boolean","kind":"enumConstant","name":"Boolean","signature":[{"kind":"name","text":"Boolean"}],"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":58}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Byte","anchor":"Byte","kind":"enumConstant","name":"Byte","signature":[{"kind":"name","text":"Byte"}],"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":60}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Illegal","anchor":"Illegal","kind":"enumConstant","name":"Illegal","signature":[{"kind":"name","text":"Illegal"}],"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":62}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#Static","anchor":"Static","kind":"enumConstant","name":"Static","signature":[{"kind":"name","text":"Static"}],"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"since":"22.2","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":64}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#tag","anchor":"tag","kind":"field","name":"tag","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"tag"}],"type":[{"kind":"keyword","text":"byte"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":67}},{"id":"com.oracle.truffle.api.frame.FrameSlotKind#fromTag(byte)","anchor":"fromTag(byte)","kind":"method","name":"fromTag","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"name","text":"fromTag"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"tag"},{"kind":"punct","text":")"}],"params":[{"name":"tag","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the numeric (byte) representation of the kind"}]}]}],"returns":{"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the FrameSlotKind"}]}]},"doc":{"summary":[{"kind":"text","text":"Converts from the numeric representation used in the implementation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts from the numeric representation used in the implementation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotKind"},"code":true,"children":[{"kind":"text","text":"FrameSlotKind"}]},{"kind":"text","text":"."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":84}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotKind.java","line":46}},{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException","name":"FrameSlotTypeException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameSlotTypeException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"superclass":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"ancestors":[{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},{"id":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException#<init>()","anchor":"<init>()","kind":"constructor","name":"FrameSlotTypeException","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"FrameSlotTypeException"},{"kind":"punct","text":"()"}],"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException#create(int,com.oracle.truffle.api.frame.FrameSlotKind,com.oracle.truffle.api.frame.FrameSlotKind)"},"code":true,"children":[{"kind":"text","text":"create(int, FrameSlotKind, FrameSlotKind)"}]},{"kind":"text","text":" instead"}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotTypeException.java","line":62}},{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameSlotTypeException.java","line":80}},{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException#getSlot()","anchor":"getSlot()","kind":"method","name":"getSlot","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getSlot"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the frame slot index that was read."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the frame slot index that was read."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameSlotTypeException.java","line":95}},{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException#getExpectedKind()","anchor":"getExpectedKind()","kind":"method","name":"getExpectedKind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"name","text":"getExpectedKind"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}]},"doc":{"summary":[{"kind":"text","text":"Returns the expected frame slot kind when the exception occurred."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the expected frame slot kind when the exception occurred."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameSlotTypeException.java","line":104}},{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException#getActualKind()","anchor":"getActualKind()","kind":"method","name":"getActualKind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"name","text":"getActualKind"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}]},"doc":{"summary":[{"kind":"text","text":"Returns the actual frame slot kind when the exception occurred."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the actual frame slot kind when the exception occurred."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameSlotTypeException.java","line":113}},{"id":"com.oracle.truffle.api.frame.FrameSlotTypeException#create(int,com.oracle.truffle.api.frame.FrameSlotKind,com.oracle.truffle.api.frame.FrameSlotKind)","anchor":"create(int,com.oracle.truffle.api.frame.FrameSlotKind,com.oracle.truffle.api.frame.FrameSlotKind)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"slot"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedKind"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"},{"kind":"punct","text":" "},{"kind":"param","text":"actualKind"},{"kind":"punct","text":")"}],"params":[{"name":"slot","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame slot index used when reading"}]}]},{"name":"expectedKind","type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected frame slot kind when reading"}]}]},{"name":"actualKind","type":[{"kind":"type","text":"FrameSlotKind","ref":"com.oracle.truffle.api.frame.FrameSlotKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the actual frame slot kind when reading"}]}]}],"returns":{"type":[{"kind":"type","text":"FrameSlotTypeException","ref":"com.oracle.truffle.api.frame.FrameSlotTypeException"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new frame slot type exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new frame slot type exception."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/frame/FrameSlotTypeException.java","line":126}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#fillInStackTrace()","text":"fillInStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Exception thrown if the frame slot kind does not match the expected kind."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Exception thrown if the frame slot kind does not match the expected kind."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/FrameSlotTypeException.java","line":50}},{"id":"com.oracle.truffle.api.frame.MaterializedFrame","name":"MaterializedFrame","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"interfaces":[[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]],"inherited":[{"from":{"id":"com.oracle.truffle.api.frame.Frame","text":"Frame"},"kind":"interface","members":[{"id":"com.oracle.truffle.api.frame.Frame#clear(int)","text":"clear"},{"id":"com.oracle.truffle.api.frame.Frame#clearObjectStatic(int)","text":"clearObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#clearPrimitiveStatic(int)","text":"clearPrimitiveStatic"},{"id":"com.oracle.truffle.api.frame.Frame#clearStatic(int)","text":"clearStatic"},{"id":"com.oracle.truffle.api.frame.Frame#copy(int,int)","text":"copy"},{"id":"com.oracle.truffle.api.frame.Frame#copyObjectStatic(int,int)","text":"copyObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#copyPrimitiveStatic(int,int)","text":"copyPrimitiveStatic"},{"id":"com.oracle.truffle.api.frame.Frame#copyStatic(int,int)","text":"copyStatic"},{"id":"com.oracle.truffle.api.frame.Frame#copyTo(int,com.oracle.truffle.api.frame.Frame,int,int)","text":"copyTo"},{"id":"com.oracle.truffle.api.frame.Frame#expectBoolean(int)","text":"expectBoolean"},{"id":"com.oracle.truffle.api.frame.Frame#expectByte(int)","text":"expectByte"},{"id":"com.oracle.truffle.api.frame.Frame#expectDouble(int)","text":"expectDouble"},{"id":"com.oracle.truffle.api.frame.Frame#expectFloat(int)","text":"expectFloat"},{"id":"com.oracle.truffle.api.frame.Frame#expectInt(int)","text":"expectInt"},{"id":"com.oracle.truffle.api.frame.Frame#expectLong(int)","text":"expectLong"},{"id":"com.oracle.truffle.api.frame.Frame#expectObject(int)","text":"expectObject"},{"id":"com.oracle.truffle.api.frame.Frame#getArguments()","text":"getArguments"},{"id":"com.oracle.truffle.api.frame.Frame#getAuxiliarySlot(int)","text":"getAuxiliarySlot"},{"id":"com.oracle.truffle.api.frame.Frame#getBoolean(int)","text":"getBoolean"},{"id":"com.oracle.truffle.api.frame.Frame#getBooleanStatic(int)","text":"getBooleanStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getByte(int)","text":"getByte"},{"id":"com.oracle.truffle.api.frame.Frame#getByteStatic(int)","text":"getByteStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getDouble(int)","text":"getDouble"},{"id":"com.oracle.truffle.api.frame.Frame#getDoubleStatic(int)","text":"getDoubleStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getFloat(int)","text":"getFloat"},{"id":"com.oracle.truffle.api.frame.Frame#getFloatStatic(int)","text":"getFloatStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getFrameDescriptor()","text":"getFrameDescriptor"},{"id":"com.oracle.truffle.api.frame.Frame#getInt(int)","text":"getInt"},{"id":"com.oracle.truffle.api.frame.Frame#getIntStatic(int)","text":"getIntStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getLong(int)","text":"getLong"},{"id":"com.oracle.truffle.api.frame.Frame#getLongStatic(int)","text":"getLongStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getObject(int)","text":"getObject"},{"id":"com.oracle.truffle.api.frame.Frame#getObjectStatic(int)","text":"getObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getTag(int)","text":"getTag"},{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)","text":"getValue"},{"id":"com.oracle.truffle.api.frame.Frame#isBoolean(int)","text":"isBoolean"},{"id":"com.oracle.truffle.api.frame.Frame#isByte(int)","text":"isByte"},{"id":"com.oracle.truffle.api.frame.Frame#isDouble(int)","text":"isDouble"},{"id":"com.oracle.truffle.api.frame.Frame#isFloat(int)","text":"isFloat"},{"id":"com.oracle.truffle.api.frame.Frame#isInt(int)","text":"isInt"},{"id":"com.oracle.truffle.api.frame.Frame#isLong(int)","text":"isLong"},{"id":"com.oracle.truffle.api.frame.Frame#isObject(int)","text":"isObject"},{"id":"com.oracle.truffle.api.frame.Frame#isStatic(int)","text":"isStatic"},{"id":"com.oracle.truffle.api.frame.Frame#materialize()","text":"materialize"},{"id":"com.oracle.truffle.api.frame.Frame#setAuxiliarySlot(int,java.lang.Object)","text":"setAuxiliarySlot"},{"id":"com.oracle.truffle.api.frame.Frame#setBoolean(int,boolean)","text":"setBoolean"},{"id":"com.oracle.truffle.api.frame.Frame#setBooleanStatic(int,boolean)","text":"setBooleanStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setByte(int,byte)","text":"setByte"},{"id":"com.oracle.truffle.api.frame.Frame#setByteStatic(int,byte)","text":"setByteStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setDouble(int,double)","text":"setDouble"},{"id":"com.oracle.truffle.api.frame.Frame#setDoubleStatic(int,double)","text":"setDoubleStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setFloat(int,float)","text":"setFloat"},{"id":"com.oracle.truffle.api.frame.Frame#setFloatStatic(int,float)","text":"setFloatStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setInt(int,int)","text":"setInt"},{"id":"com.oracle.truffle.api.frame.Frame#setIntStatic(int,int)","text":"setIntStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setLong(int,long)","text":"setLong"},{"id":"com.oracle.truffle.api.frame.Frame#setLongStatic(int,long)","text":"setLongStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setObject(int,java.lang.Object)","text":"setObject"},{"id":"com.oracle.truffle.api.frame.Frame#setObjectStatic(int,java.lang.Object)","text":"setObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#swap(int,int)","text":"swap"},{"id":"com.oracle.truffle.api.frame.Frame#swapObjectStatic(int,int)","text":"swapObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#swapPrimitiveStatic(int,int)","text":"swapPrimitiveStatic"},{"id":"com.oracle.truffle.api.frame.Frame#swapStatic(int,int)","text":"swapStatic"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a materialized frame containing values of local variables of the guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a materialized frame containing values of local variables of the guest language. It can be created using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#materialize()"},"code":true,"children":[{"kind":"text","text":"VirtualFrame.materialize()"}]},{"kind":"text","text":" method. Instances of this type are the only frame instances that may be stored in fields or cast to "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"java.lang.Object"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/MaterializedFrame.java","line":51}},{"id":"com.oracle.truffle.api.frame.VirtualFrame","name":"VirtualFrame","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"VirtualFrame"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"interfaces":[[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]],"inherited":[{"from":{"id":"com.oracle.truffle.api.frame.Frame","text":"Frame"},"kind":"interface","members":[{"id":"com.oracle.truffle.api.frame.Frame#clear(int)","text":"clear"},{"id":"com.oracle.truffle.api.frame.Frame#clearObjectStatic(int)","text":"clearObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#clearPrimitiveStatic(int)","text":"clearPrimitiveStatic"},{"id":"com.oracle.truffle.api.frame.Frame#clearStatic(int)","text":"clearStatic"},{"id":"com.oracle.truffle.api.frame.Frame#copy(int,int)","text":"copy"},{"id":"com.oracle.truffle.api.frame.Frame#copyObjectStatic(int,int)","text":"copyObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#copyPrimitiveStatic(int,int)","text":"copyPrimitiveStatic"},{"id":"com.oracle.truffle.api.frame.Frame#copyStatic(int,int)","text":"copyStatic"},{"id":"com.oracle.truffle.api.frame.Frame#copyTo(int,com.oracle.truffle.api.frame.Frame,int,int)","text":"copyTo"},{"id":"com.oracle.truffle.api.frame.Frame#expectBoolean(int)","text":"expectBoolean"},{"id":"com.oracle.truffle.api.frame.Frame#expectByte(int)","text":"expectByte"},{"id":"com.oracle.truffle.api.frame.Frame#expectDouble(int)","text":"expectDouble"},{"id":"com.oracle.truffle.api.frame.Frame#expectFloat(int)","text":"expectFloat"},{"id":"com.oracle.truffle.api.frame.Frame#expectInt(int)","text":"expectInt"},{"id":"com.oracle.truffle.api.frame.Frame#expectLong(int)","text":"expectLong"},{"id":"com.oracle.truffle.api.frame.Frame#expectObject(int)","text":"expectObject"},{"id":"com.oracle.truffle.api.frame.Frame#getArguments()","text":"getArguments"},{"id":"com.oracle.truffle.api.frame.Frame#getAuxiliarySlot(int)","text":"getAuxiliarySlot"},{"id":"com.oracle.truffle.api.frame.Frame#getBoolean(int)","text":"getBoolean"},{"id":"com.oracle.truffle.api.frame.Frame#getBooleanStatic(int)","text":"getBooleanStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getByte(int)","text":"getByte"},{"id":"com.oracle.truffle.api.frame.Frame#getByteStatic(int)","text":"getByteStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getDouble(int)","text":"getDouble"},{"id":"com.oracle.truffle.api.frame.Frame#getDoubleStatic(int)","text":"getDoubleStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getFloat(int)","text":"getFloat"},{"id":"com.oracle.truffle.api.frame.Frame#getFloatStatic(int)","text":"getFloatStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getFrameDescriptor()","text":"getFrameDescriptor"},{"id":"com.oracle.truffle.api.frame.Frame#getInt(int)","text":"getInt"},{"id":"com.oracle.truffle.api.frame.Frame#getIntStatic(int)","text":"getIntStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getLong(int)","text":"getLong"},{"id":"com.oracle.truffle.api.frame.Frame#getLongStatic(int)","text":"getLongStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getObject(int)","text":"getObject"},{"id":"com.oracle.truffle.api.frame.Frame#getObjectStatic(int)","text":"getObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#getTag(int)","text":"getTag"},{"id":"com.oracle.truffle.api.frame.Frame#getValue(int)","text":"getValue"},{"id":"com.oracle.truffle.api.frame.Frame#isBoolean(int)","text":"isBoolean"},{"id":"com.oracle.truffle.api.frame.Frame#isByte(int)","text":"isByte"},{"id":"com.oracle.truffle.api.frame.Frame#isDouble(int)","text":"isDouble"},{"id":"com.oracle.truffle.api.frame.Frame#isFloat(int)","text":"isFloat"},{"id":"com.oracle.truffle.api.frame.Frame#isInt(int)","text":"isInt"},{"id":"com.oracle.truffle.api.frame.Frame#isLong(int)","text":"isLong"},{"id":"com.oracle.truffle.api.frame.Frame#isObject(int)","text":"isObject"},{"id":"com.oracle.truffle.api.frame.Frame#isStatic(int)","text":"isStatic"},{"id":"com.oracle.truffle.api.frame.Frame#materialize()","text":"materialize"},{"id":"com.oracle.truffle.api.frame.Frame#setAuxiliarySlot(int,java.lang.Object)","text":"setAuxiliarySlot"},{"id":"com.oracle.truffle.api.frame.Frame#setBoolean(int,boolean)","text":"setBoolean"},{"id":"com.oracle.truffle.api.frame.Frame#setBooleanStatic(int,boolean)","text":"setBooleanStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setByte(int,byte)","text":"setByte"},{"id":"com.oracle.truffle.api.frame.Frame#setByteStatic(int,byte)","text":"setByteStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setDouble(int,double)","text":"setDouble"},{"id":"com.oracle.truffle.api.frame.Frame#setDoubleStatic(int,double)","text":"setDoubleStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setFloat(int,float)","text":"setFloat"},{"id":"com.oracle.truffle.api.frame.Frame#setFloatStatic(int,float)","text":"setFloatStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setInt(int,int)","text":"setInt"},{"id":"com.oracle.truffle.api.frame.Frame#setIntStatic(int,int)","text":"setIntStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setLong(int,long)","text":"setLong"},{"id":"com.oracle.truffle.api.frame.Frame#setLongStatic(int,long)","text":"setLongStatic"},{"id":"com.oracle.truffle.api.frame.Frame#setObject(int,java.lang.Object)","text":"setObject"},{"id":"com.oracle.truffle.api.frame.Frame#setObjectStatic(int,java.lang.Object)","text":"setObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#swap(int,int)","text":"swap"},{"id":"com.oracle.truffle.api.frame.Frame#swapObjectStatic(int,int)","text":"swapObjectStatic"},{"id":"com.oracle.truffle.api.frame.Frame#swapPrimitiveStatic(int,int)","text":"swapPrimitiveStatic"},{"id":"com.oracle.truffle.api.frame.Frame#swapStatic(int,int)","text":"swapStatic"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a frame containing values of local variables of the guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a frame containing values of local variables of the guest language. Instances of this type must not be stored in a field or cast to "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"java.lang.Object"}]},{"kind":"text","text":". If this is necessary, the frame must be explicitly converted into a materialized frame using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#materialize()"},"code":true,"children":[{"kind":"text","text":"VirtualFrame.materialize()"}]},{"kind":"text","text":" method."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/frame/VirtualFrame.java","line":52}}]},{"id":"com.oracle.truffle.api.instrumentation","name":"com.oracle.truffle.api.instrumentation","doc":{"summary":[{"kind":"text","text":"The instrumentation API provides a way to introspect and inject behavior into interpreters written using the Truffle framework."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The instrumentation API provides a way to introspect and inject behavior into interpreters written using the Truffle framework. To adopt instrumentation support for a guest language implementation you need to subclass syntax nodes of your language with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.InstrumentableNode"}]},{"kind":"text","text":". For details please refer to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.InstrumentableNode"}]},{"kind":"text","text":". To use the instrumentation framework implementors must implement the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.TruffleInstrument"}]},{"kind":"text","text":" interface. Please refer to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.TruffleInstrument"}]},{"kind":"text","text":" for further details. Guest languages that want to use the capabilities of the instrumentation framework can access "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.Instrumenter"}]},{"kind":"text","text":" for their "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleLanguage"}]},{"kind":"text","text":" by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleLanguage.Env.lookup(Class)"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}]},{"kind":"text","text":" created using guest languages may be used to implement guest language features that require meta-programming capabilities."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.TruffleInstrument"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.InstrumentableNode"}]}]]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.instrumentation.AllocationEvent","name":"AllocationEvent","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"AllocationEvent"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.AllocationEvent#getLanguage()","anchor":"getLanguage()","kind":"method","name":"getLanguage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}]},"doc":{"summary":[{"kind":"text","text":"Returns the language performing the allocation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the language performing the allocation."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEvent.java","line":69}},{"id":"com.oracle.truffle.api.instrumentation.AllocationEvent#getOldSize()","anchor":"getOldSize()","kind":"method","name":"getOldSize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getOldSize"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"Returns an old size of the value prior to the allocation, in bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an old size of the value prior to the allocation, in bytes. Returns "},{"kind":"code","text":"0"},{"kind":"text","text":" when a new value is to be allocated, or the size of the value prior to the re-allocation. When the old size is unknown, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#SIZE_UNKNOWN"},"code":true,"children":[{"kind":"text","text":"AllocationReporter.SIZE_UNKNOWN"}]},{"kind":"text","text":" is returned."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEvent.java","line":80}},{"id":"com.oracle.truffle.api.instrumentation.AllocationEvent#getNewSize()","anchor":"getNewSize()","kind":"method","name":"getNewSize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getNewSize"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"Returns a size of the allocated value in bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a size of the allocated value in bytes. When called from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"AllocationListener.onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"}]},{"kind":"text","text":" an estimated size of the allocated value is provided. When called from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"AllocationListener.onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)"}]},{"kind":"text","text":" a corrected size can be provided, which might differ from the one reported in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"onEnter"}]},{"kind":"text","text":". When the allocated size is unknown, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#SIZE_UNKNOWN"},"code":true,"children":[{"kind":"text","text":"AllocationReporter.SIZE_UNKNOWN"}]},{"kind":"text","text":" is returned. The change in memory consumption caused by the allocation is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEvent#getNewSize()"},"code":true,"children":[{"kind":"text","text":"getNewSize()"}]},{"kind":"code","text":" - "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEvent#getOldSize()"},"code":true,"children":[{"kind":"text","text":"getOldSize()"}]},{"kind":"text","text":" when both old size and new size are known. The change can be either positive or negative."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEvent.java","line":98}},{"id":"com.oracle.truffle.api.instrumentation.AllocationEvent#getValue()","anchor":"getValue()","kind":"method","name":"getValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getValue"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the value which is a subject of allocation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the value which is a subject of allocation. When called from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"AllocationListener.onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"}]},{"kind":"text","text":" the returned value is either "},{"kind":"code","text":"null"},{"kind":"text","text":" when a new one is to be allocated, or non- "},{"kind":"code","text":"null"},{"kind":"text","text":" when the value is to be re-allocated. When called from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"AllocationListener.onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)"}]},{"kind":"text","text":" it is always non-"},{"kind":"code","text":"null"},{"kind":"text","text":" and it is either the newly allocated value, or the same instance of the re-allocated value as was provided in the preceding call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"AllocationListener.onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"}]},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEvent.java","line":114}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An event representing an allocation of a guest language value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An event representing an allocation of a guest language value."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEvent.java","line":50}},{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter","name":"AllocationEventFilter","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"AllocationEventFilter"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter#ANY","anchor":"ANY","kind":"field","name":"ANY","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"AllocationEventFilter","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"},{"kind":"punct","text":" "},{"kind":"name","text":"ANY"}],"type":[{"kind":"type","text":"AllocationEventFilter","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"}],"doc":{"summary":[{"kind":"text","text":"A filter that matches all allocations in all languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A filter that matches all allocations in all languages."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEventFilter.java","line":68}},{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter#newBuilder()","anchor":"newBuilder()","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"AllocationEventFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"AllocationEventFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"},"code":true,"children":[{"kind":"text","text":"AllocationEventFilter"}]},{"kind":"text","text":" instance through a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"},"code":true,"children":[{"kind":"text","text":"AllocationEventFilter"}]},{"kind":"text","text":" instance through a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEventFilter.java","line":81}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An instrumentation filter of allocations of guest language values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An instrumentation filter of allocations of guest language values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To create the filter, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter#newBuilder()"},"code":true,"children":[{"kind":"text","text":"newBuilder()"}]},{"kind":"text","text":" and complete that by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"Builder.build()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter#newBuilder()"},"code":true,"children":[{"kind":"text","text":"newBuilder()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachAllocationListener(com.oracle.truffle.api.instrumentation.AllocationEventFilter,T)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachAllocationListener(com.oracle.truffle.api.instrumentation.AllocationEventFilter,\n     com.oracle.truffle.api.instrumentation.AllocationListener)"}]}]]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEventFilter.java","line":61}},{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder","name":"AllocationEventFilter.Builder","kind":"class","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"AllocationEventFilter.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.AllocationEventFilter","members":[{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder#languages(com.oracle.truffle.api.nodes.LanguageInfo...)","anchor":"languages(com.oracle.truffle.api.nodes.LanguageInfo...)","kind":"method","name":"languages","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"AllocationEventFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"languages"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":"... "},{"kind":"param","text":"languages"},{"kind":"punct","text":")"}],"params":[{"name":"languages","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"AllocationEventFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Specify languages that are instrumented for allocations of guest language values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specify languages that are instrumented for allocations of guest language values. Initially the filter accepts any language. Multiple calls to this method rewrite the set of languages."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEventFilter.java","line":113}},{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"AllocationEventFilter","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"AllocationEventFilter","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"}]},"doc":{"summary":[{"kind":"text","text":"Create an instance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"},"code":true,"children":[{"kind":"text","text":"AllocationEventFilter"}]},{"kind":"text","text":" based on the current setup of this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create an instance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"},"code":true,"children":[{"kind":"text","text":"AllocationEventFilter"}]},{"kind":"text","text":" based on the current setup of this builder."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEventFilter.java","line":127}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A builder of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"},"code":true,"children":[{"kind":"text","text":"AllocationEventFilter"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A builder of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"},"code":true,"children":[{"kind":"text","text":"AllocationEventFilter"}]},{"kind":"text","text":". Use methods in this class to set the filter parameters."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationEventFilter.java","line":99}},{"id":"com.oracle.truffle.api.instrumentation.AllocationListener","name":"AllocationListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"AllocationListener"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)","anchor":"onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)","kind":"method","name":"onEnter","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"AllocationEvent","ref":"com.oracle.truffle.api.instrumentation.AllocationEvent"},{"kind":"punct","text":" "},{"kind":"param","text":"event"},{"kind":"punct","text":")"}],"params":[{"name":"event","type":[{"kind":"type","text":"AllocationEvent","ref":"com.oracle.truffle.api.instrumentation.AllocationEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the event describing the intended allocation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about an intent to allocate or re-allocate a guest language value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about an intent to allocate or re-allocate a guest language value. This method is called prior to the actual allocation and is followed by a call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)"}]},{"kind":"text","text":" after the successful allocation."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationListener.java","line":75}},{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)","anchor":"onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)","kind":"method","name":"onReturnValue","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onReturnValue"},{"kind":"punct","text":"("},{"kind":"type","text":"AllocationEvent","ref":"com.oracle.truffle.api.instrumentation.AllocationEvent"},{"kind":"punct","text":" "},{"kind":"param","text":"event"},{"kind":"punct","text":")"}],"params":[{"name":"event","type":[{"kind":"type","text":"AllocationEvent","ref":"com.oracle.truffle.api.instrumentation.AllocationEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the event describing the finished allocation"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about an allocated guest language value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about an allocated guest language value. This method is called after a preceding "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"}]},{"kind":"text","text":" call and right after the allocation is performed. When "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"onEnter"}]},{"kind":"text","text":" provided a non-"},{"kind":"code","text":"null"},{"kind":"text","text":" value in the event, it was re-allocated and the same value instance is in this event."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationListener.java","line":88}}],"doc":{"summary":[{"kind":"text","text":"Listener to be notified about guest language value allocations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Listener to be notified about guest language value allocations. Calls to this listener are initiated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter"},"code":true,"children":[{"kind":"text","text":"AllocationReporter"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachAllocationListener(com.oracle.truffle.api.instrumentation.AllocationEventFilter,T)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachAllocationListener(com.oracle.truffle.api.instrumentation.AllocationEventFilter, com.oracle.truffle.api.instrumentation.AllocationListener)"}]},{"kind":"text","text":" to register an implementation of this listener. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"EventBinding.dispose()"}]},{"kind":"text","text":" to unregister."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The listener gets called "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"before"}]},{"kind":"text","text":" the actual allocation and right "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"after"}]},{"kind":"text","text":" it. The calls to these methods are always in pairs, unless the programs crashes in between. Nested allocations are supported, several calls to "},{"kind":"code","text":"onEnter"},{"kind":"text","text":" prior every sub-value allocation can be followed by the appropriate number of "},{"kind":"code","text":"onReturnValue"},{"kind":"text","text":" calls after the sub-values are allocated, in the opposite order."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachAllocationListener(com.oracle.truffle.api.instrumentation.AllocationEventFilter,T)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachAllocationListener(com.oracle.truffle.api.instrumentation.AllocationEventFilter,\n     com.oracle.truffle.api.instrumentation.AllocationListener)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter"},"code":true,"children":[{"kind":"text","text":"AllocationReporter"}]}]]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationListener.java","line":64}},{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter","name":"AllocationReporter","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"AllocationReporter"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#SIZE_UNKNOWN","anchor":"SIZE_UNKNOWN","kind":"field","name":"SIZE_UNKNOWN","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"SIZE_UNKNOWN"}],"type":[{"kind":"keyword","text":"long"}],"constant":"-9223372036854775808L","doc":{"summary":[{"kind":"text","text":"Constant specifying an unknown size."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constant specifying an unknown size. Use it when it's not possible to estimate size of the memory being allocated."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationReporter.java","line":85}},{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#addActiveListener(java.util.function.Consumer)","anchor":"addActiveListener(java.util.function.Consumer)","kind":"method","name":"addActiveListener","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"addActiveListener"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Add a listener that is notified when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#isActive()"},"code":true,"children":[{"kind":"text","text":"active"}]},{"kind":"text","text":" value of this reporter changes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a listener that is notified when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#isActive()"},"code":true,"children":[{"kind":"text","text":"active"}]},{"kind":"text","text":" value of this reporter changes. The listener "},{"kind":"link","target":{"id":"java.util.function.Consumer#accept(T)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html#accept(T)"},"code":true,"children":[{"kind":"text","text":"accept"}]},{"kind":"text","text":" method is called with the new value of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#isActive()"},"code":true,"children":[{"kind":"text","text":"isActive()"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationReporter.java","line":108}},{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#removeActiveListener(java.util.function.Consumer)","anchor":"removeActiveListener(java.util.function.Consumer)","kind":"method","name":"removeActiveListener","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"removeActiveListener"},{"kind":"punct","text":"("},{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"type","text":"Consumer","ref":"java.util.function.Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Remove a listener that is notified when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#isActive()"},"code":true,"children":[{"kind":"text","text":"active"}]},{"kind":"text","text":" value of this reporter changes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Remove a listener that is notified when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#isActive()"},"code":true,"children":[{"kind":"text","text":"active"}]},{"kind":"text","text":" value of this reporter changes."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationReporter.java","line":118}},{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#isActive()","anchor":"isActive()","kind":"method","name":"isActive","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isActive"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" when there are some "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener"},"code":true,"children":[{"kind":"text","text":"AllocationListener"}]},{"kind":"text","text":"s attached, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}]}]},"doc":{"summary":[{"kind":"text","text":"Test if the reporter instance is actually doing some reporting when notify methods are called."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Test if the reporter instance is actually doing some reporting when notify methods are called. Methods "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#onEnter(java.lang.Object,long,long)"},"code":true,"children":[{"kind":"text","text":"onEnter(java.lang.Object, long, long)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#onReturnValue(java.lang.Object,long,long)"},"code":true,"children":[{"kind":"text","text":"onReturnValue(java.lang.Object, long, long)"}]},{"kind":"text","text":" have no effect when this method returns false. A listener can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#addActiveListener(java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"added"}]},{"kind":"text","text":" to listen on changes of this value."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationReporter.java","line":133}},{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#onEnter(java.lang.Object,long,long)","anchor":"onEnter(java.lang.Object,long,long)","kind":"method","name":"onEnter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"valueToReallocate"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"oldSize"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"newSizeEstimate"},{"kind":"punct","text":")"}],"params":[{"name":"valueToReallocate","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"null"},{"kind":"text","text":" in case of a new allocation, or the value that is to be re-allocated."}]}]},{"name":"oldSize","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"0"},{"kind":"text","text":" in case of a new allocation, or the size in bytes of value to be re-allocated. Can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#SIZE_UNKNOWN"},"code":true,"children":[{"kind":"text","text":"SIZE_UNKNOWN"}]},{"kind":"text","text":" when the value size is not known."}]}]},{"name":"newSizeEstimate","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an estimate of the allocation size of the value which is to be created or re-allocated, in bytes. Can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#SIZE_UNKNOWN"},"code":true,"children":[{"kind":"text","text":"SIZE_UNKNOWN"}]},{"kind":"text","text":" when the allocation size is not known."}]}]}],"doc":{"summary":[{"kind":"text","text":"Report an intent to allocate a new guest language value, or re-allocate an existing one."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Report an intent to allocate a new guest language value, or re-allocate an existing one. This method delegates to all registered listeners "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"AllocationListener.onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent)"}]},{"kind":"text","text":". Only primitive types, String and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.interop.TruffleObject"}]},{"kind":"text","text":" are accepted value types. The change in memory consumption caused by the allocation is going to be "},{"kind":"code","text":"newSizeEstimate - oldSize"},{"kind":"text","text":" when both old size and new size are known. The change can be either positive or negative."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A call to this method needs to be followed by a call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#onReturnValue(java.lang.Object,long,long)"},"code":true,"children":[{"kind":"text","text":"onReturnValue(java.lang.Object, long, long)"}]},{"kind":"text","text":" with the actual allocated value, or with the same (re-allocated) value. Nested allocations are supported, several calls to "},{"kind":"code","text":"onEnter"},{"kind":"text","text":" prior every sub-value allocation can be followed by the appropriate number of "},{"kind":"code","text":"onReturnValue"},{"kind":"text","text":" calls after the sub-values are allocated, in the opposite order."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationReporter.java","line":228}},{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#onReturnValue(java.lang.Object,long,long)","anchor":"onReturnValue(java.lang.Object,long,long)","kind":"method","name":"onReturnValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onReturnValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"oldSize"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"newSize"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value that was newly allocated, or the re-allocated value. Must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},{"name":"oldSize","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"size in bytes of an old value, if any. Must be "},{"kind":"code","text":"0"},{"kind":"text","text":" for newly allocated values. In case of re-allocation it's the size of the original value before re-allocation. Can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#SIZE_UNKNOWN"},"code":true,"children":[{"kind":"text","text":"SIZE_UNKNOWN"}]},{"kind":"text","text":" when not known."}]}]},{"name":"newSize","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the size of the allocated value in bytes. In case of re-allocation, it's the size of the object after re-allocation. The "},{"kind":"code","text":"newSize"},{"kind":"text","text":" may be less than "},{"kind":"code","text":"oldSize"},{"kind":"text","text":" when the object size shrinks. Can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#SIZE_UNKNOWN"},"code":true,"children":[{"kind":"text","text":"SIZE_UNKNOWN"}]},{"kind":"text","text":" when not known."}]}]}],"doc":{"summary":[{"kind":"text","text":"Report an allocation of a new one or re-allocation of an existing guest language value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Report an allocation of a new one or re-allocation of an existing guest language value. This method notifies all registered listeners "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener#onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)"},"code":true,"children":[{"kind":"text","text":"AllocationListener.onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent)"}]},{"kind":"text","text":" . Only primitive types, String and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.interop.TruffleObject"}]},{"kind":"text","text":" are accepted value types. The change in memory consumption caused by the allocation is "},{"kind":"code","text":"newSize - oldSize"},{"kind":"text","text":" when both old size and new size are known. The change can be either positive or negative."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#onEnter(java.lang.Object,long,long)"},"code":true,"children":[{"kind":"text","text":"onEnter(java.lang.Object, long, long)"}]},{"kind":"text","text":" must precede this call. In case of re-allocation, the value object passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationReporter#onEnter(java.lang.Object,long,long)"},"code":true,"children":[{"kind":"text","text":"onEnter(java.lang.Object, long, long)"}]},{"kind":"text","text":" must be the same instance as the value passed to this method."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationReporter.java","line":283}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Reporter of guest language value allocations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reporter of guest language value allocations. Language implementation ought to use this class to report all allocations and re-allocations of guest language values. An instance of this class can be obtained from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#lookup(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"Env.lookup(AllocationReporter.class)"}]},{"kind":"text","text":". If used from compiled code paths, then the allocation reporter must be stored in a compilation final or final field."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","language":"java","text":"@Override\nprotected ContextObject createContext(Env env) {\n    AllocationReporter reporter = env.lookup(AllocationReporter.class);\n    return new ContextObject(reporter);\n}\n\nObject allocateNew() {\n    AllocationReporter reporter = ContextObject.get(null).getReporter();\n    // Test if the reporter is active, we should compute the size estimate\n    if (reporter.isActive()) {\n        long size = findSizeEstimate();\n        reporter.onEnter(null, 0, size);\n    }\n    // Do the allocation itself\n    Object newObject = new MyTruffleObject();\n    // Test if the reporter is active,\n    // we should compute the allocated object size\n    if (reporter.isActive()) {\n        long size = findSize(newObject);\n        reporter.onReturnValue(newObject, 0, size);\n    }\n    return newObject;\n}\n\nObject allocateComplex() {\n    AllocationReporter reporter = ContextObject.get(null).getReporter();\n    // If the allocated size is a constant, onEnter() and onReturnValue()\n    // can be called without a fast-path performance penalty when not active\n    reporter.onEnter(null, 0, 16);\n    // Do the allocation itself\n    Object newObject = createComplexObject();\n    // Report the allocation\n    reporter.onReturnValue(newObject, 0, 16);\n    return newObject;\n}"}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/AllocationReporter.java","line":77}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener","name":"ContextsListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ContextsListener"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onContextCreated(com.oracle.truffle.api.TruffleContext)","anchor":"onContextCreated(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"onContextCreated","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onContextCreated"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about creation of a new polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about creation of a new polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":69}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onLanguageContextCreate(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"onLanguageContextCreate(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"onLanguageContextCreate","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLanguageContextCreate"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context is being created"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies before creation of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies before creation of a language-specific context in an existing polyglot context."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":78}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onLanguageContextCreated(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"onLanguageContextCreated(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"onLanguageContextCreated","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLanguageContextCreated"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context was created"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about creation of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about creation of a language-specific context in an existing polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":88}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onLanguageContextCreateFailed(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"onLanguageContextCreateFailed(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"onLanguageContextCreateFailed","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLanguageContextCreateFailed"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context creation failed"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies after failed creation of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies after failed creation of a language-specific context in an existing polyglot context."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":98}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onLanguageContextInitialize(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"onLanguageContextInitialize(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"onLanguageContextInitialize","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLanguageContextInitialize"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context is being initialized"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies before initialization of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies before initialization of a language-specific context in an existing polyglot context."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":109}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onLanguageContextInitialized(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"onLanguageContextInitialized(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"onLanguageContextInitialized","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLanguageContextInitialized"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context was initialized"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about initialization of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about initialization of a language-specific context in an existing polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":119}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onLanguageContextInitializeFailed(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"onLanguageContextInitializeFailed(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"onLanguageContextInitializeFailed","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLanguageContextInitializeFailed"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context initialization failed"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies after failed initialization of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies after failed initialization of a language-specific context in an existing polyglot context."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":129}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onLanguageContextFinalized(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"onLanguageContextFinalized(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"onLanguageContextFinalized","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLanguageContextFinalized"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context was finalized"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about finalization of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about finalization of a language-specific context in an existing polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":139}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onLanguageContextDisposed(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"onLanguageContextDisposed(com.oracle.truffle.api.TruffleContext,com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"onLanguageContextDisposed","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLanguageContextDisposed"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the polyglot context"}]}]},{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language for which a language-specific context was disposed"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about disposal of a language-specific context in an existing polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about disposal of a language-specific context in an existing polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":148}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onContextClosed(com.oracle.truffle.api.TruffleContext)","anchor":"onContextClosed(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"onContextClosed","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onContextClosed"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about close of a polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about close of a polyglot context."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":155}},{"id":"com.oracle.truffle.api.instrumentation.ContextsListener#onContextResetLimits(com.oracle.truffle.api.TruffleContext)","anchor":"onContextResetLimits(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"onContextResetLimits","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onContextResetLimits"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked when the resource consumption limits were reset for a particular context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when the resource consumption limits were reset for a particular context. For example this is method each time the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context#resetLimits()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html#resetLimits()"},"code":true,"children":[{"kind":"text","text":"Context.resetLimits()"}]},{"kind":"text","text":" method is called."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":163}}],"doc":{"summary":[{"kind":"text","text":"Listener to be notified about changes of contexts in guest language application."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Listener to be notified about changes of contexts in guest language application."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachContextsListener(T,boolean)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachContextsListener(com.oracle.truffle.api.instrumentation.ContextsListener, boolean)"}]},{"kind":"text","text":" to register an implementation of this listener. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"EventBinding.dispose()"}]},{"kind":"text","text":" to unregister."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The listener gets called when a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" is created or disposed and when individual languages are initialized or disposed in that context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachContextsListener(T,boolean)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachContextsListener(com.oracle.truffle.api.instrumentation.ContextsListener,\n     boolean)"}]}]]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ContextsListener.java","line":62}},{"id":"com.oracle.truffle.api.instrumentation.EventBinding","name":"EventBinding","kind":"class","language":"java","modifiers":["public"],"typeParams":[{"name":"T","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"subscriber type: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNodeFactory"}]},{"kind":"text","text":"."}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.EventBinding#getElement()","anchor":"getElement()","kind":"method","name":"getElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getElement"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the subscriber: an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNodeFactory"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener"}]},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/EventBinding.java","line":122}},{"id":"com.oracle.truffle.api.instrumentation.EventBinding#isAttached()","anchor":"isAttached()","kind":"method","name":"isAttached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isAttached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Test if this binding is attached."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Test if this binding is attached."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/EventBinding.java","line":131}},{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()","anchor":"attach()","kind":"method","name":"attach","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"attach"},{"kind":"punct","text":"()"}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the binding is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#isAttached()"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":" already, or when it was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Attach this binding to receive the associated notifications by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#getElement()"},"code":true,"children":[{"kind":"text","text":"subscriber"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attach this binding to receive the associated notifications by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#getElement()"},"code":true,"children":[{"kind":"text","text":"subscriber"}]},{"kind":"text","text":". When notification about existing sources were requested in binding creation, notifications will be performed in this call."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The binding is attached automatically, when one of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" attach methods were used. Use this for bindings created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" create methods only."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/EventBinding.java","line":147}},{"id":"com.oracle.truffle.api.instrumentation.EventBinding#tryAttach()","anchor":"tryAttach()","kind":"method","name":"tryAttach","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"tryAttach"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" when the binding was attached successfully, "},{"kind":"code","text":"false"},{"kind":"text","text":" when disposed or attached already."}]}]},"doc":{"summary":[{"kind":"text","text":"Try to attach this binding, if not disposed or attached already."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Try to attach this binding, if not disposed or attached already. Works the same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attach()"}]},{"kind":"text","text":", but returns "},{"kind":"code","text":"false"},{"kind":"text","text":" instead of throwing an exception when not successful."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The binding is attached automatically, when one of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" attach methods were used. Use this for bindings created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" create methods only."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/EventBinding.java","line":171}},{"id":"com.oracle.truffle.api.instrumentation.EventBinding#isDisposed()","anchor":"isDisposed()","kind":"method","name":"isDisposed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDisposed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether the subscription has been permanently canceled."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/EventBinding.java","line":191}},{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()","anchor":"dispose()","kind":"method","name":"dispose","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"dispose"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Cancels the subscription permanently."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Cancels the subscription permanently."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/EventBinding.java","line":200}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"children":[{"kind":"text","text":"instrumentation"}]},{"kind":"text","text":" handle for a subscription to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"children":[{"kind":"text","text":"filtered"}]},{"kind":"text","text":" stream of execution event notifications."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"children":[{"kind":"text","text":"instrumentation"}]},{"kind":"text","text":" handle for a subscription to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"children":[{"kind":"text","text":"filtered"}]},{"kind":"text","text":" stream of execution event notifications."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The subscription remains active until:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"explicit "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"children":[{"kind":"text","text":"disposal"}]},{"kind":"text","text":" of the subscription; or"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"the instrumented engine is "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#close()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#close()"},"children":[{"kind":"text","text":"closed"}]},{"kind":"text","text":"."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachExecutionEventListener(SourceSectionFilter, ExecutionEventListener)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachExecutionEventFactory(SourceSectionFilter, ExecutionEventNodeFactory)"}]}]]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/EventBinding.java","line":85}},{"id":"com.oracle.truffle.api.instrumentation.EventContext","name":"EventContext","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"EventContext"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.EventContext#hasTag(java.lang.Class)","anchor":"hasTag(java.lang.Class)","kind":"method","name":"hasTag","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasTag"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":"> "},{"kind":"param","text":"tag"},{"kind":"punct","text":")"}],"params":[{"name":"tag","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the tag to check to check, must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the underlying instrumented AST is tagged with a particular tag."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the underlying instrumented AST is tagged with a particular tag. The return value of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#hasTag(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"hasTag(Class)"}]},{"kind":"text","text":" always returns the same value for a particular tag and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext"},"code":true,"children":[{"kind":"text","text":"EventContext"}]},{"kind":"text","text":". The method may be used on compiled code paths."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":142}},{"id":"com.oracle.truffle.api.instrumentation.EventContext#getNodeObject()","anchor":"getNodeObject()","kind":"method","name":"getNodeObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getNodeObject"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a language provided object that represents the instrumented node properties."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a language provided object that represents the instrumented node properties. The returned is always a valid interop object. The returned object is never "},{"kind":"code","text":"null"},{"kind":"text","text":" and always returns "},{"kind":"code","text":"true"},{"kind":"text","text":" for the HAS_KEYS message. Multiple calls to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"getNodeObject()"}]},{"kind":"text","text":" return the same node object instance."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode.getNodeObject()"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":166}},{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedSourceSection()","anchor":"getInstrumentedSourceSection()","kind":"method","name":"getInstrumentedSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstrumentedSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" that is being instrumented."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" that is being instrumented. The returned source section is final for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext"},"code":true,"children":[{"kind":"text","text":"EventContext"}]},{"kind":"text","text":" instance. The returned source section may be null if the node does not provide sources section."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Performance note:"}]},{"kind":"text","text":" this is method may be invoked in compiled code and is guaranteed to always return a compilation constant ."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":198}},{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()","anchor":"getInstrumentedNode()","kind":"method","name":"getInstrumentedNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstrumentedNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Accessor to the instrumented node at which the event occurred."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Accessor to the instrumented node at which the event occurred. The returned AST must not be mutated by the user."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Performance note:"}]},{"kind":"text","text":" this is method may be invoked in compiled code and is guaranteed to always return a compilation constant ."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":212}},{"id":"com.oracle.truffle.api.instrumentation.EventContext#isLanguageContextInitialized()","anchor":"isLanguageContextInitialized()","kind":"method","name":"isLanguageContextInitialized","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isLanguageContextInitialized"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Test if language context of the source of the event is initialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Test if language context of the source of the event is initialized."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":221}},{"id":"com.oracle.truffle.api.instrumentation.EventContext#lookupExecutionEventNode(com.oracle.truffle.api.instrumentation.EventBinding)","anchor":"lookupExecutionEventNode(com.oracle.truffle.api.instrumentation.EventBinding)","kind":"method","name":"lookupExecutionEventNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventNode","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},{"kind":"punct","text":" "},{"kind":"name","text":"lookupExecutionEventNode"},{"kind":"punct","text":"("},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},{"kind":"punct","text":"> "},{"kind":"param","text":"binding"},{"kind":"punct","text":")"}],"params":[{"name":"binding","type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the binding to lookup"}]}]}],"returns":{"type":[{"kind":"type","text":"ExecutionEventNode","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns the execution event node that was inserted at this location given an event binding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the execution event node that was inserted at this location given an event binding. This is useful to disambiguate multiple bindings from each other when installed at the same source location."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":244}},{"id":"com.oracle.truffle.api.instrumentation.EventContext#lookupExecutionEventNodes(java.util.Collection)","anchor":"lookupExecutionEventNodes(java.util.Collection)","kind":"method","name":"lookupExecutionEventNodes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Iterator","ref":"java.util.Iterator","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Iterator.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ExecutionEventNode","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},{"kind":"punct","text":"> "},{"kind":"name","text":"lookupExecutionEventNodes"},{"kind":"punct","text":"("},{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},{"kind":"punct","text":">> "},{"kind":"param","text":"bindings"},{"kind":"punct","text":")"}],"params":[{"name":"bindings","type":[{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},{"kind":"punct","text":">>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a collection of bindings to find the event nodes for at this context location"}]}]}],"returns":{"type":[{"kind":"type","text":"Iterator","ref":"java.util.Iterator","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Iterator.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ExecutionEventNode","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all execution event nodes in the insertion order at this location, whose event bindings are contained in the given collection."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all execution event nodes in the insertion order at this location, whose event bindings are contained in the given collection. This is useful to be able to sort out multiple bindings when installed at the same source location."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":261}},{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)","anchor":"createUnwind(java.lang.Object)","kind":"method","name":"createUnwind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ThreadDeath","ref":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createUnwind"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"info"},{"kind":"punct","text":")"}],"params":[{"name":"info","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an info that is passed into "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onUnwind(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener.onUnwind(EventContext, VirtualFrame, Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode.onUnwind(VirtualFrame, Object)"}]},{"kind":"text","text":". It can be used for arbitrary client data that help to control the unwind process."}]}]}],"returns":{"type":[{"kind":"type","text":"ThreadDeath","ref":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"}]},"doc":{"summary":[{"kind":"text","text":"Create an unwind throwable, that when thrown, abruptly breaks execution of a node and unwinds it off the execution stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create an unwind throwable, that when thrown, abruptly breaks execution of a node and unwinds it off the execution stack. This is a a shortcut for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object,com.oracle.truffle.api.instrumentation.EventBinding)"},"code":true,"children":[{"kind":"text","text":"createUnwind(Object, EventBinding)"}]},{"kind":"text","text":" with the current binding, only the event listener instance that threw the unwind throwable gets called "},{"kind":"code","text":"onUnwind"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object,com.oracle.truffle.api.instrumentation.EventBinding)"},"code":true,"children":[{"kind":"text","text":"createUnwind(Object, EventBinding)"}]}]]},"since":"0.31","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":278}},{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object,com.oracle.truffle.api.instrumentation.EventBinding)","anchor":"createUnwind(java.lang.Object,com.oracle.truffle.api.instrumentation.EventBinding)","kind":"method","name":"createUnwind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ThreadDeath","ref":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createUnwind"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"info"},{"kind":"punct","text":", "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"unwindBinding"},{"kind":"punct","text":")"}],"params":[{"name":"info","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an info that is passed into "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onUnwind(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener.onUnwind(EventContext, VirtualFrame, Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode.onUnwind(VirtualFrame, Object)"}]},{"kind":"text","text":". It can be used for arbitrary client data that help to control the unwind process."}]}]},{"name":"unwindBinding","type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the binding whose listener's "},{"kind":"code","text":"onUnwind"},{"kind":"text","text":" is to be called, or "},{"kind":"code","text":"null"},{"kind":"text","text":" to call the current listener that throws the returned throwable."}]}]}],"returns":{"type":[{"kind":"type","text":"ThreadDeath","ref":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"}]},"doc":{"summary":[{"kind":"text","text":"Create an unwind throwable, that when thrown, abruptly breaks execution of a node and unwinds it off the execution stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create an unwind throwable, that when thrown, abruptly breaks execution of a node and unwinds it off the execution stack. It's to be thrown in "},{"kind":"code","text":"onEnter"},{"kind":"text","text":", "},{"kind":"code","text":"onReturnValue"},{"kind":"text","text":" or "},{"kind":"code","text":"onReturnExceptional"},{"kind":"text","text":" methods of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode"}]},{"kind":"text","text":", to initiate the unwind process. It acts in connection with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onUnwind(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener.onUnwind(EventContext, VirtualFrame, Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode.onUnwind(VirtualFrame, Object)"}]},{"kind":"text","text":". Only the event listener instance that is associated with the provided "},{"kind":"code","text":"unwindBinding"},{"kind":"text","text":" gets called "},{"kind":"code","text":"onUnwind"},{"kind":"text","text":", use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"createUnwind(java.lang.Object)"}]},{"kind":"text","text":" to have the current event listener called "},{"kind":"code","text":"onUnwind"},{"kind":"text","text":". Other bindings that happen to instrument the unwound nodes get called "},{"kind":"code","text":"onReturnExceptional"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned throwable can be kept and thrown again later to repeat the unwind process. A repeating unwind process is possible without deoptimization. A single throwable instance cannot be used on multiple threads concurrently. It can be thrown on a different thread only after the unwind finishes on the last thread."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example of forced return:"}]},{"kind":"code","language":"java","text":"protected void onCreate(TruffleInstrument.Env env) {\n    // Register a listener that checks the return value to all call nodes\n    // If the return value is not 42, it forces to return 42.\n    env.getInstrumenter().attachExecutionEventListener(\n        SourceSectionFilter.newBuilder().\n                            tagIs(StandardTags.CallTag.class).build(),\n        new ExecutionEventListener() {\n            public void onEnter(EventContext context, VirtualFrame f) { }\n            public void onReturnValue(EventContext context,\n                                      VirtualFrame f, Object result) {\n                if (!Objects.equals(result, 42)) {\n                    CompilerDirectives.transferToInterpreter();\n                    throw context.createUnwind(42);\n                }\n            }\n            public Object onUnwind(EventContext context,\n                                   VirtualFrame f, Object info) {\n                // return 42 on unwind\n                return info;\n            }\n            public void onReturnExceptional(EventContext context,\n                                            VirtualFrame f, Throwable ex) { }\n        });\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example of reenter:"}]},{"kind":"code","language":"java","text":"protected void onCreate(TruffleInstrument.Env env) {\n    // Two event bindings are created: one for reenter, one for unwind\n\n    // Listener that reenters on unwind, attached to root nodes.\n    EventBinding<ExecutionEventListener> functionReenter =\n        env.getInstrumenter().attachExecutionEventListener(\n            SourceSectionFilter.newBuilder().\n                                tagIs(StandardTags.RootTag.class).build(),\n        new ExecutionEventListener() {\n            public Object onUnwind(EventContext context,\n                                   VirtualFrame f, Object info) {\n                // Reenters on unwind.\n                return ProbeNode.UNWIND_ACTION_REENTER;\n            }\n            public void onEnter(EventContext context, VirtualFrame f) { }\n            public void onReturnValue(EventContext context,\n                                      VirtualFrame f, Object result) { }\n            public void onReturnExceptional(EventContext context,\n                                            VirtualFrame f, Throwable ex) { }\n        });\n\n    // Listener that initiates unwind at line 20, attached to statements.\n    env.getInstrumenter().attachExecutionEventListener(\n        SourceSectionFilter.newBuilder().\n                            tagIs(StandardTags.StatementTag.class).build(),\n        new ExecutionEventListener() {\n            public void onEnter(EventContext context, VirtualFrame f) {\n                SourceSection ss = context.getInstrumentedSourceSection();\n                if (ss.getStartLine() == 20) {\n                    CompilerDirectives.transferToInterpreter();\n                    // Unwind to nodes instrumented by functionReenter\n                    throw context.createUnwind(null, functionReenter);\n                }\n            }\n            public void onReturnValue(EventContext context,\n                                      VirtualFrame f, Object result) { }\n            public void onReturnExceptional(EventContext context,\n                                            VirtualFrame f, Throwable ex) { }\n        });\n}"}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":318}},{"id":"com.oracle.truffle.api.instrumentation.EventContext#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":324}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents the context of an execution event."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the context of an execution event. Instances of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext"},"code":true,"children":[{"kind":"text","text":"EventContext"}]},{"kind":"text","text":" should be neither stored, cached nor hashed. One exception is when they are stored in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode"}]},{"kind":"text","text":" implementations. The equality and hashing behavior is undefined."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNodeFactory"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener"}]}]]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/EventContext.java","line":74}},{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceEvent","name":"ExecuteSourceEvent","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecuteSourceEvent"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceEvent#getSource()","anchor":"getSource()","kind":"method","name":"getSource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"getSource"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}]},"doc":{"summary":[{"kind":"text","text":"Returns the executed source that caused this event."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the executed source that caused this event."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/ExecuteSourceEvent.java","line":67}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a source execute event from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener"},"code":true,"children":[{"kind":"text","text":"ExecuteSourceListener"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a source execute event from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener"},"code":true,"children":[{"kind":"text","text":"ExecuteSourceListener"}]},{"kind":"text","text":". Instances of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceEvent"},"code":true,"children":[{"kind":"text","text":"ExecuteSourceEvent"}]},{"kind":"text","text":" should be neither stored, cached nor hashed. The equality and hashing behavior is undefined."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener"},"code":true,"children":[{"kind":"text","text":"ExecuteSourceListener"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/ExecuteSourceEvent.java","line":54}},{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener","name":"ExecuteSourceListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecuteSourceListener"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener#onExecute(com.oracle.truffle.api.instrumentation.ExecuteSourceEvent)","anchor":"onExecute(com.oracle.truffle.api.instrumentation.ExecuteSourceEvent)","kind":"method","name":"onExecute","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onExecute"},{"kind":"punct","text":"("},{"kind":"type","text":"ExecuteSourceEvent","ref":"com.oracle.truffle.api.instrumentation.ExecuteSourceEvent"},{"kind":"punct","text":" "},{"kind":"param","text":"event"},{"kind":"punct","text":")"}],"params":[{"name":"event","type":[{"kind":"type","text":"ExecuteSourceEvent","ref":"com.oracle.truffle.api.instrumentation.ExecuteSourceEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an event with context information"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked whenever a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" is executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked whenever a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" is executed. The order in which multiple source event listeners are notified matches the order they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecuteSourceListener(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Implementation Note:"}]},{"kind":"text","text":" Source execute events are notified when the guest language implementation executes a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" by invoking any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" that uses the new source in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"Node.getSourceSection()"}]},{"kind":"text","text":". It assumes that all nodes of an AST have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" as their root."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/ExecuteSourceListener.java","line":70}}],"doc":{"summary":[{"kind":"text","text":"A listener attached by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" to specific sources of a guest language program to listen to execute source events."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A listener attached by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" to specific sources of a guest language program to listen to execute source events."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/ExecuteSourceListener.java","line":53}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener","name":"ExecutionEventListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecutionEventListener"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onEnter(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"onEnter(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"onEnter","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"indicating the current location in the guest language AST"}]}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked immediately before the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked immediately before the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is executed. The order in which multiple event listeners are notified matches the order they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":" ."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventListener.java","line":64}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onReturnValue(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","anchor":"onReturnValue(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","kind":"method","name":"onReturnValue","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onReturnValue"},{"kind":"punct","text":"("},{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"indicating the current location in the guest language AST"}]}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]},{"name":"result","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked immediately after an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is successfully executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked immediately after an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is successfully executed. The order in which multiple event listeners are notified matches the order they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventListener.java","line":77}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onReturnExceptional(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Throwable)","anchor":"onReturnExceptional(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Throwable)","kind":"method","name":"onReturnExceptional","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onReturnExceptional"},{"kind":"punct","text":"("},{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"exception"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"indicating the current location in the guest language AST"}]}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]},{"name":"exception","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception that occurred during the node's execution"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked immediately after an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" did not successfully execute."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked immediately after an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" did not successfully execute. The order in which multiple event listeners are notified matches the order they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When the "},{"kind":"code","text":"exception"},{"kind":"text","text":" is an instance of "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" the execution was abruptly interrupted. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"EventContext.createUnwind(Object)"}]},{"kind":"text","text":" creates a "},{"kind":"link","target":{"id":"java.lang.ThreadDeath","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadDeath.html"},"code":true,"children":[{"kind":"text","text":"ThreadDeath"}]},{"kind":"text","text":" to unwind nodes off, for instance. Listener instances that threw an unwind throwable get called "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onUnwind(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onUnwind(EventContext, VirtualFrame, Object)"}]},{"kind":"text","text":" instead."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventListener.java","line":96}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onUnwind(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","anchor":"onUnwind(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","kind":"method","name":"onUnwind","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"onUnwind"},{"kind":"punct","text":"("},{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"info"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"indicating the current location in the guest language AST"}]}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]},{"name":"info","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an info associated with the unwind - the object passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"EventContext.createUnwind(Object)"}]}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"null"},{"kind":"text","text":" to continue to unwind the parent node, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#UNWIND_ACTION_REENTER"},"code":true,"children":[{"kind":"text","text":"ProbeNode.UNWIND_ACTION_REENTER"}]},{"kind":"text","text":" to reenter the current node, or an interop value to return that value early from the current node (void nodes just return, ignoring the return value)."}]}]},"doc":{"summary":[{"kind":"text","text":"Invoked when an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is unwound from the execution stack by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"unwind throwable"}]},{"kind":"text","text":" thrown in this listener instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is unwound from the execution stack by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"unwind throwable"}]},{"kind":"text","text":" thrown in this listener instance. Any nodes between the instrumented ones are unwound off without any notification. The default implementation returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventListener.java","line":114}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onYield(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","anchor":"onYield(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","kind":"method","name":"onYield","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onYield"},{"kind":"punct","text":"("},{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"indicating the current location in the guest language AST"}]}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked on a yield of the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked on a yield of the current thread. A yield interrupts the current execution, which is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onResume(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"resumed"}]},{"kind":"text","text":" later on. Delegates to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onReturnValue(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onReturnValue(EventContext, VirtualFrame, Object)"}]},{"kind":"text","text":" by default."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventListener.java","line":127}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onResume(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"onResume(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"onResume","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onResume"},{"kind":"punct","text":"("},{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"indicating the current location in the guest language AST"}]}]},{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked on a resume of the execution on the current thread after a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onYield(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"yield"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked on a resume of the execution on the current thread after a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onYield(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"yield"}]},{"kind":"text","text":". Delegates to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onEnter(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"onEnter(EventContext, VirtualFrame)"}]},{"kind":"text","text":" by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#isSameFrame(com.oracle.truffle.api.nodes.RootNode,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.Env.isSameFrame(RootNode, Frame, Frame)"}]},{"kind":"text","text":" to match the interrupted and resumed execution."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventListener.java","line":143}}],"doc":{"summary":[{"kind":"text","text":"A listener attached by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" to specific locations of a guest language program to listen to execution events."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A listener attached by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" to specific locations of a guest language program to listen to execution events."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventListener.java","line":51}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode","name":"ExecutionEventNode","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecutionEventNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#<init>()","anchor":"<init>()","kind":"constructor","name":"ExecutionEventNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecutionEventNode"},{"kind":"punct","text":"()"}],"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":61}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onEnter(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"onEnter(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"onEnter","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame used in the instrumented node"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked immediately before the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked immediately before the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is executed. The order in which multiple event listeners are notified matches the order they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":74}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)","anchor":"onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)","kind":"method","name":"onInputValue","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onInputValue"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"},{"kind":"punct","text":" "},{"kind":"param","text":"inputContext"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"inputIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"inputValue"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame in use"}]}]},{"name":"inputContext","type":[{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the event context of the input child node"}]}]},{"name":"inputIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the child index of the input"}]}]},{"name":"inputValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return value of the input child"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked immediately after each return value event of instrumented input child node that match the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"input filter"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked immediately after each return value event of instrumented input child node that match the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"input filter"}]},{"kind":"text","text":". Whether, when and how often input child value events are triggered depends on the semantics of the instrumented node. For example, if the instrumented node represents binary arithmetic then two input value events will be triggered for index "},{"kind":"code","text":"0"},{"kind":"text","text":" and "},{"kind":"code","text":"1"},{"kind":"text","text":". For short-circuited child values not all input child nodes may be executed therefore they might not trigger events for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getInputCount()"},"code":true,"children":[{"kind":"text","text":"all inputs"}]},{"kind":"text","text":". For instrumented loop nodes input value events with the same "},{"kind":"code","text":"index"},{"kind":"text","text":" may be triggered many times."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The total number of input nodes that may produce input events can be accessed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getInputCount()"},"code":true,"children":[{"kind":"text","text":"getInputCount()"}]},{"kind":"text","text":". Other input contexts than the currently input context can be accessed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getInputContext(int)"},"code":true,"children":[{"kind":"text","text":"getInputContext(int)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Input values can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#saveInputValue(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"saved"}]},{"kind":"text","text":" to make them "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getSavedInputValues(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"getSavedInputValues(VirtualFrame)"}]},{"kind":"text","text":" accessible in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onReturn"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onReturnExceptional(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"onReturnExceptional"}]},{"kind":"text","text":" events."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#saveInputValue(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"saveInputValue(VirtualFrame, int, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getSavedInputValues(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"getSavedInputValues(VirtualFrame)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":107}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","anchor":"onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","kind":"method","name":"onReturnValue","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onReturnValue"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]},{"name":"result","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked immediately after an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is successfully executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked immediately after an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is successfully executed. The order in which multiple event listeners are notified matches the order they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":121}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onReturnExceptional(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Throwable)","anchor":"onReturnExceptional(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Throwable)","kind":"method","name":"onReturnExceptional","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onReturnExceptional"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"exception"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]},{"name":"exception","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception that occurred during the node's execution"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked immediately after the execution of an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" resulted in an exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked immediately after the execution of an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" resulted in an exception. Note that this could be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ControlFlowException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.nodes.ControlFlowException"}]},{"kind":"text","text":", which is expected and considered a successful execution of the node. The order in which multiple event listeners are notified matches the order they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":137}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","anchor":"onUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","kind":"method","name":"onUnwind","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"onUnwind"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"info"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]},{"name":"info","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an info associated with the unwind - the object passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"EventContext.createUnwind(Object)"}]}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"null"},{"kind":"text","text":" to continue to unwind the parent node, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#UNWIND_ACTION_REENTER"},"code":true,"children":[{"kind":"text","text":"ProbeNode.UNWIND_ACTION_REENTER"}]},{"kind":"text","text":" to reenter the current node, or an interop value to return that value early from the current node (void nodes just return, ignoring the return value)."}]}]},"doc":{"summary":[{"kind":"text","text":"Invoked when an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is unwound from the execution stack by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"unwind throwable"}]},{"kind":"text","text":" thrown in this node implementation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is unwound from the execution stack by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"unwind throwable"}]},{"kind":"text","text":" thrown in this node implementation. Any nodes between the instrumented ones are unwound off without any notification. The default implementation returns "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate continue unwind."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":157}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","anchor":"onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","kind":"method","name":"onYield","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onYield"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Invoked on a yield of the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked on a yield of the current thread. A yield interrupts the current execution, which is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onResume(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"resumed"}]},{"kind":"text","text":" later on. Delegates to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onReturnValue(VirtualFrame, Object)"}]},{"kind":"text","text":" by default."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":169}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onResume(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"onResume(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"onResume","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onResume"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked on a resume of the execution on the current thread after a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"yield"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked on a resume of the execution on the current thread after a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"yield"}]},{"kind":"text","text":". Delegates to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onEnter(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"onEnter(VirtualFrame)"}]},{"kind":"text","text":" by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#isSameFrame(com.oracle.truffle.api.nodes.RootNode,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.Env.isSameFrame(RootNode, Frame, Frame)"}]},{"kind":"text","text":" to match the interrupted and resumed execution."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":184}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onDispose(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"onDispose(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"onDispose","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onDispose"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame that was used for executing instrumented node"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked when an event node is removed from the AST."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked when an event node is removed from the AST. This happens if the underlying binding, language/instrument or engine is disposed. Event nodes are removed lazily. This means that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onDispose(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"onDispose(VirtualFrame)"}]},{"kind":"text","text":" is invoked the next time the particular part of the AST is executed. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#getInstrumentedNode()"},"code":true,"children":[{"kind":"text","text":"instrumented node"}]},{"kind":"text","text":" is not invoked anymore after it was disposed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onDispose(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"onDispose(VirtualFrame)"}]},{"kind":"text","text":" might or might not be executed."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":199}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getInputContext(int)","anchor":"getInputContext(int)","kind":"method","name":"getInputContext","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"},{"kind":"punct","text":" "},{"kind":"name","text":"getInputContext"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"index","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context index"}]}]}],"returns":{"type":[{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the index is out of bounds."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the event context of an input by index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the event context of an input by index. The returned input context matches the input context provided in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onInputValue(VirtualFrame, EventContext, int, Object)"}]},{"kind":"text","text":". The total number of instrumented input nodes can be accessed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getInputCount()"},"code":true,"children":[{"kind":"text","text":"getInputCount()"}]},{"kind":"text","text":". This method returns a constant event context for a constant input index, when called in partially evaluated code paths."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onInputValue(VirtualFrame, EventContext, int, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getInputCount()"},"code":true,"children":[{"kind":"text","text":"getInputCount()"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":215}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getInputCount()","anchor":"getInputCount()","kind":"method","name":"getInputCount","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInputCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the total number of instrumented input nodes that may produce "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"input events"}]},{"kind":"text","text":" when executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the total number of instrumented input nodes that may produce "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"input events"}]},{"kind":"text","text":" when executed."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onInputValue(VirtualFrame, EventContext, int, Object)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":235}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#saveInputValue(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)","anchor":"saveInputValue(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)","kind":"method","name":"saveInputValue","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"saveInputValue"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"inputIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"inputValue"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to store the input value in"}]}]},{"name":"inputIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the child input index"}]}]},{"name":"inputValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the input value"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"for invalid input indexes for non-existing input nodes."}]}]}],"doc":{"summary":[{"kind":"text","text":"Saves an input value reported by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onInputValue(VirtualFrame, EventContext, int, Object)"}]},{"kind":"text","text":" for use in later events."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Saves an input value reported by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onInputValue(VirtualFrame, EventContext, int, Object)"}]},{"kind":"text","text":" for use in later events. Saved input values can be restored using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getSavedInputValues(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"getSavedInputValues(VirtualFrame)"}]},{"kind":"text","text":" in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onReturn"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onReturnExceptional(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"onReturnExceptional"}]},{"kind":"text","text":" events. The implementation ensures that a minimal number of frame slots is used to save input values. It uses the AST structure to reuse frame slots efficiently whenever possible. The used frame slots are freed if the event binding is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"disposed"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onInputValue(VirtualFrame, EventContext, int, Object)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":261}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#getSavedInputValues(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"getSavedInputValues(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"getSavedInputValues","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSavedInputValues"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to read the input values from."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Returns all saved input values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all saved input values. For valid input indices that did not save any value "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned. If all inputs were filtered or a "},{"kind":"code","text":"null"},{"kind":"text","text":" input filter was provided then an empty array is returned."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#saveInputValue(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"saveInputValue(VirtualFrame, int, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onInputValue(VirtualFrame, EventContext, int, Object)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":278}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An event node created by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNodeFactory"}]},{"kind":"text","text":" for a specific locations of a guest language program to listen to instrumentation events."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An event node created by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNodeFactory"}]},{"kind":"text","text":" for a specific locations of a guest language program to listen to instrumentation events. In addition to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"listeners"}]},{"kind":"text","text":" event nodes allow to store state for a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext"},"code":true,"children":[{"kind":"text","text":"program location"}]},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNode.java","line":58}},{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory","name":"ExecutionEventNodeFactory","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecutionEventNodeFactory"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory#create(com.oracle.truffle.api.instrumentation.EventContext)","anchor":"create(com.oracle.truffle.api.instrumentation.EventContext)","kind":"method","name":"create","signature":[{"kind":"type","text":"ExecutionEventNode","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"EventContext","ref":"com.oracle.truffle.api.instrumentation.EventContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current context where this event node should get created."}]}]}],"returns":{"type":[{"kind":"type","text":"ExecutionEventNode","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new event node instance, or "},{"kind":"code","text":"null"},{"kind":"text","text":" for no event node at the location"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a new instance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode"}]},{"kind":"text","text":" for this particular source location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new instance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode"}]},{"kind":"text","text":" for this particular source location. This method might be invoked multiple times for one particular source location "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":". The implementation must ensure that this is handled accordingly."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNodeFactory.java","line":71}}],"doc":{"summary":[{"kind":"text","text":"Event node factories are factories of event nodes for a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext"},"code":true,"children":[{"kind":"text","text":"program location"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Event node factories are factories of event nodes for a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext"},"code":true,"children":[{"kind":"text","text":"program location"}]},{"kind":"text","text":". The factory might be invoked multiple times for one and the same source location but the location does never change for a particular returned event node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example it makes sense to register a performance counter on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory#create(com.oracle.truffle.api.instrumentation.EventContext)"},"code":true,"children":[{"kind":"text","text":"create(EventContext)"}]},{"kind":"text","text":" and increment the counter in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode"}]},{"kind":"text","text":" implementation. The counter can be stored as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"compilation final"}]},{"kind":"text","text":", so no peak performance overhead persists for looking up the counter on the fast path."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ExecutionEventNodeFactory.java","line":59}},{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper","name":"GenerateWrapper","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateWrapper"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#yieldExceptions()","anchor":"yieldExceptions()","kind":"annotationElement","name":"yieldExceptions","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[] "},{"kind":"name","text":"yieldExceptions"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Exceptions that are thrown to yield the execution of a thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Exceptions that are thrown to yield the execution of a thread. They must implement "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper$YieldException"},"code":true,"children":[{"kind":"text","text":"YieldException"}]},{"kind":"text","text":" interface. When one of them is thrown, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onYield()"}]},{"kind":"text","text":" is called automatically. To indicate resume of the execution, provide "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#resumeMethodPrefix()"},"code":true,"children":[{"kind":"text","text":"resumeMethodPrefix()"}]},{"kind":"text","text":"."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/GenerateWrapper.java","line":165}},{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#resumeMethodPrefix()","anchor":"resumeMethodPrefix()","kind":"annotationElement","name":"resumeMethodPrefix","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"resumeMethodPrefix"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Prefix of methods that resume execution after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"yield"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prefix of methods that resume execution after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"yield"}]},{"kind":"text","text":". The prefix is empty by default, which means no resume methods. When non-empty, the generated wrapper calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onResume(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"ProbeNode.onResume(VirtualFrame)"}]},{"kind":"text","text":" instead of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onEnter(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"ProbeNode.onEnter(VirtualFrame)"}]},{"kind":"text","text":"."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/GenerateWrapper.java","line":175}}],"doc":{"summary":[{"kind":"text","text":"Generates a default wrapper subclass of an annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode"}]},{"kind":"text","text":" subclass."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Generates a default wrapper subclass of an annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode"}]},{"kind":"text","text":" subclass. The generated subclass has the same class name as the original class name plus the 'Wrapper' suffix. The generated class has default package visibility. All non-final and non-private methods starting with execute or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#resumeMethodPrefix()"},"code":true,"children":[{"kind":"text","text":"resume prefix (when specified)"}]},{"kind":"text","text":" are overridden by the generated wrapper. The generated overrides notifies execution events as required by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode"},"code":true,"children":[{"kind":"text","text":"probes"}]},{"kind":"text","text":". Other abstract methods are directly delegated to the wrapped node. No other methods are overridden by the generated wrapper. At least one method starting with execute must be non-private and non-final. Every execute method must have "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.VirtualFrame"},"code":true,"children":[{"kind":"text","text":"VirtualFrame"}]},{"kind":"text","text":" as the first declared parameter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use methods with "},{"kind":"code","text":"execute"},{"kind":"text","text":" prefix for ordinary guest code execution. If the guest language supports yield, add "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#yieldExceptions()"},"code":true,"children":[{"kind":"text","text":"yieldExceptions()"}]},{"kind":"text","text":" argument and specify "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#resumeMethodPrefix()"},"code":true,"children":[{"kind":"text","text":"resume prefix"}]},{"kind":"text","text":" to mark method(s) that resume the yielded execution. To successfully match the yielded/resumed execution, override "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isSameFrame(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"RootNode.isSameFrame(Frame, Frame)"}]},{"kind":"text","text":" in case the resumed frame is not an identical instance to the yielded frame."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example Usage:"}]}]},{"kind":"code","text":"@GenerateWrapper\nabstract class ExpressionNode extends Node implements InstrumentableNode {\n\n    abstract Object execute(VirtualFrame frame);\n\n    @Override\n    public WrapperNode createWrapper(ProbeNode probeNode) {\n        return new ExpressionNodeWrapper(this, probeNode);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example that ignores return values:"}]}]},{"kind":"code","text":"@GenerateWrapper\nabstract class ExpressionNode extends Node implements InstrumentableNode {\n\n    abstract Object execute(VirtualFrame frame);\n\n    @Override\n    public WrapperNode createWrapper(ProbeNode probeNode) {\n        return new ExpressionNodeWrapper(this, probeNode);\n    }\n\n    @GenerateWrapper.OutgoingConverter\n    final Object convertOutgoing(Object outgoingValue) {\n        return null;\n    }\n}"},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example that converts incoming byte values to int:"}]}]},{"kind":"code","text":"@GenerateWrapper\nabstract class ExpressionNode extends Node implements InstrumentableNode {\n\n    abstract Object execute(VirtualFrame frame);\n\n    @Override\n    public WrapperNode createWrapper(ProbeNode probeNode) {\n        return new ExpressionNodeWrapper(this, probeNode);\n    }\n\n    @GenerateWrapper.IncomingConverter\n    final Object convertIncoming(Object incomingValue) {\n        if (incomingValue instanceof Byte) {\n            return (int) ((byte) incomingValue);\n        }\n        return incomingValue;\n    }\n}"},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example that prevents instrumentation from being added to a method:"}]}]},{"kind":"code","text":"@GenerateWrapper\nabstract class ExpressionNode extends Node implements InstrumentableNode {\n\n    abstract Object execute(VirtualFrame frame);\n\n    @Override\n    public WrapperNode createWrapper(ProbeNode probeNode) {\n        return new ExpressionNodeWrapper(this, probeNode);\n    }\n\n    @GenerateWrapper.Ignore\n    abstract Object executeWithoutInstrumentation(VirtualFrame frame);\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode"},"code":true,"children":[{"kind":"text","text":"ProbeNode"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/GenerateWrapper.java","line":153}},{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper$Ignore","name":"GenerateWrapper.Ignore","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateWrapper.Ignore"}],"enclosing":"com.oracle.truffle.api.instrumentation.GenerateWrapper","doc":{"summary":[{"kind":"text","text":"Annotates a method which should not be instrumented in the generated wrapper subclass."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotates a method which should not be instrumented in the generated wrapper subclass. The generated wrapper can still delegate to this method if it is abstract and can be overridden."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"for usage examples"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/instrumentation/GenerateWrapper.java","line":227}},{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper$IncomingConverter","name":"GenerateWrapper.IncomingConverter","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateWrapper.IncomingConverter"}],"enclosing":"com.oracle.truffle.api.instrumentation.GenerateWrapper","doc":{"summary":[{"kind":"text","text":"Annotates a method to be used as incoming value converter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotates a method to be used as incoming value converter. The annotated method can be used to convert incoming values that were introduced by instruments. Instruments may introduce new values to the interpreter using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"unwind"}]},{"kind":"text","text":" feature. Introduced values are interop values. If the language only supports a subset of interop values or requires them to be wrapped then the incoming converter can be used to perform the necessary conversion. The incoming converter is only invoked if a wrapper is currently inserted."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The return type and the single parameter of the annotated method must be of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":". The annotated method must have at least package-protected visibility. There can only be a single method annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper$IncomingConverter"},"code":true,"children":[{"kind":"text","text":"IncomingConverter"}]},{"kind":"text","text":" per class annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"GenerateWrapper"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"for usage examples"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/GenerateWrapper.java","line":194}},{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper$OutgoingConverter","name":"GenerateWrapper.OutgoingConverter","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateWrapper.OutgoingConverter"}],"enclosing":"com.oracle.truffle.api.instrumentation.GenerateWrapper","doc":{"summary":[{"kind":"text","text":"Annotates a method to be used as outgoing value converter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotates a method to be used as outgoing value converter. The annotated method can be used to convert outgoing return values of instrumentable nodes to instruments. This may be used to convert internal non-interop capable values to interop values before instruments can access it. The outgoing converter can also be used to just return "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate that return value should be ignored from this wrapped node. The outgoing converter is only invoked if a wrapper is currently inserted."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The annotated method is used to convert an guest language value to a format that can be read by other guest languages and tools. The return type and the single parameter of the annotated method must be of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":". There can only be a single method annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper$OutgoingConverter"},"code":true,"children":[{"kind":"text","text":"OutgoingConverter"}]},{"kind":"text","text":" per class annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"GenerateWrapper"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"for usage examples"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/GenerateWrapper.java","line":215}},{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper$YieldException","name":"GenerateWrapper.YieldException","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateWrapper.YieldException"}],"enclosing":"com.oracle.truffle.api.instrumentation.GenerateWrapper","members":[{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper$YieldException#getYieldValue()","anchor":"getYieldValue()","kind":"method","name":"getYieldValue","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getYieldValue"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Get the value provided by the yield."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the value provided by the yield."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/GenerateWrapper.java","line":246}}],"doc":{"summary":[{"kind":"text","text":"An interface to be implemented by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#yieldExceptions()"},"code":true,"children":[{"kind":"text","text":"yield exceptions"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An interface to be implemented by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#yieldExceptions()"},"code":true,"children":[{"kind":"text","text":"yield exceptions"}]},{"kind":"text","text":". When a yield exception is thrown from an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode"}]},{"kind":"text","text":" wrapped by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"GenerateWrapper"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onYield()"}]},{"kind":"text","text":" is called automatically."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/GenerateWrapper.java","line":239}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode","name":"InstrumentableNode","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"InstrumentableNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}],"interfaces":[[{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}]],"members":[{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#isInstrumentable()","anchor":"isInstrumentable()","kind":"method","name":"isInstrumentable","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInstrumentable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this node is instrumentable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this node is instrumentable. Instrumentable nodes are points where instrumenters can attach execution events. The return values of instrumentable nodes must always be interop capable values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The implementation of this method must ensure that its result is stable after the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"root node"}]},{"kind":"text","text":" was wrapped in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"RootNode.getCallTarget()"}]},{"kind":"text","text":". The result is stable if the result of calling this method remains always the same."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method might be called in parallel from multiple threads even if the language is single threaded. The method may be invoked without a language context currently being active."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":124}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#createWrapper(com.oracle.truffle.api.instrumentation.ProbeNode)","anchor":"createWrapper(com.oracle.truffle.api.instrumentation.ProbeNode)","kind":"method","name":"createWrapper","signature":[{"kind":"type","text":"InstrumentableNode.WrapperNode","ref":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode"},{"kind":"punct","text":" "},{"kind":"name","text":"createWrapper"},{"kind":"punct","text":"("},{"kind":"type","text":"ProbeNode","ref":"com.oracle.truffle.api.instrumentation.ProbeNode"},{"kind":"punct","text":" "},{"kind":"param","text":"probe"},{"kind":"punct","text":")"}],"params":[{"name":"probe","type":[{"kind":"type","text":"ProbeNode","ref":"com.oracle.truffle.api.instrumentation.ProbeNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode"},"code":true,"children":[{"kind":"text","text":"probe node"}]},{"kind":"text","text":" to be adopted and sent execution events by the wrapper"}]}]}],"returns":{"type":[{"kind":"type","text":"InstrumentableNode.WrapperNode","ref":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode"},"code":true,"children":[{"kind":"text","text":"wrapper"}]},{"kind":"text","text":" implementation"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a new, never adopted, unshared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode"},"code":true,"children":[{"kind":"text","text":"wrapper"}]},{"kind":"text","text":" node implementation for this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new, never adopted, unshared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode"},"code":true,"children":[{"kind":"text","text":"wrapper"}]},{"kind":"text","text":" node implementation for this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" node. The returned wrapper implementation must extend the same type that implements "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The instrumentation framework will, when needed during execution, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T)"},"code":true,"children":[{"kind":"text","text":"replace"}]},{"kind":"text","text":" the instrumentable node with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode"},"code":true,"children":[{"kind":"text","text":"wrapper"}]},{"kind":"text","text":" and delegate to the original node. After the replacement of an instrumentable node with a wrapper we refer to the original node as an instrumented node. Wrappers can be generated automatically using an annotation processor by annotating the class with @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"GenerateWrapper"}]},{"kind":"text","text":". Please note that if an instrumentable node subclass has additional execute methods then a new wrapper must be generated or implemented. Otherwise the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T)"},"code":true,"children":[{"kind":"text","text":"replacement"}]},{"kind":"text","text":" of the instrumentable node with the wrapper will fail if the subtype is used as static type in nodes "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Child"},"code":true,"children":[{"kind":"text","text":"children"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A wrapper forwards the following events concerning the delegate to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode"},"code":true,"children":[{"kind":"text","text":"probe"}]},{"kind":"text","text":" for propagation through the instrumentation framework, e.g. to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"children":[{"kind":"text","text":"event listeners"}]},{"kind":"text","text":" bound to this guest language program location:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onEnter(com.oracle.truffle.api.frame.VirtualFrame)"},"children":[{"kind":"text","text":"onEnter(Frame)"}]},{"kind":"text","text":": an "},{"kind":"emphasis","children":[{"kind":"text","text":"execute"}]},{"kind":"text","text":" method on the delegate is ready to be called;"}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"children":[{"kind":"text","text":"onReturnValue(Frame,Object)"}]},{"kind":"text","text":": an "},{"kind":"emphasis","children":[{"kind":"text","text":"execute"}]},{"kind":"text","text":" method on the delegate has just returned a (possibly "},{"kind":"code","text":"null"},{"kind":"text","text":") value;"}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onReturnExceptionalOrUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Throwable,boolean)"},"children":[{"kind":"text","text":"onReturnExceptionalOrUnwind(Frame,Throwable, boolean)"}]},{"kind":"text","text":": an "},{"kind":"emphasis","children":[{"kind":"text","text":"execute"}]},{"kind":"text","text":" method on the delegate has just thrown an exception."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is always invoked on an interpreter thread. The method may be invoked without a language context currently being active."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findProbe()"},"code":true,"children":[{"kind":"text","text":"findProbe()"}]},{"kind":"text","text":" is overriden and never returns a "},{"kind":"code","text":"null"},{"kind":"text","text":" value, then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#createWrapper(com.oracle.truffle.api.instrumentation.ProbeNode)"},"code":true,"children":[{"kind":"text","text":"createWrapper(ProbeNode)"}]},{"kind":"text","text":" does not need to be implemented and may throw an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" instead."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":168}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findProbe()","anchor":"findProbe()","kind":"method","name":"findProbe","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"ProbeNode","ref":"com.oracle.truffle.api.instrumentation.ProbeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"findProbe"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ProbeNode","ref":"com.oracle.truffle.api.instrumentation.ProbeNode"}]},"doc":{"summary":[{"kind":"text","text":"Determines how to find a probe given an instrumentable node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Determines how to find a probe given an instrumentable node. Implementing this method allows to customize probe storage, e.g. if a different strategy should be used other than the default wrapper node strategy. The default implementation discovers the probe through the parent wrapper node by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode#getProbeNode()"},"code":true,"children":[{"kind":"text","text":"WrapperNode.getProbeNode()"}]},{"kind":"text","text":". A probe can be initialized lazily on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findProbe()"},"code":true,"children":[{"kind":"text","text":"findProbe()"}]},{"kind":"text","text":" calls using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#createProbe(com.oracle.truffle.api.source.SourceSection)"},"code":true,"children":[{"kind":"text","text":"createProbe(SourceSection)"}]},{"kind":"text","text":". This method will never be invoked if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#isInstrumentable()"},"code":true,"children":[{"kind":"text","text":"isInstrumentable()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this method returns "},{"kind":"code","text":"null"},{"kind":"text","text":" then the default wrapper node strategy will be applied for this instrumentable node. A custom probe storage strategy must therefore ensure that this method never returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The probe must be stored/read from a reference with volatile semantics. This method must produce a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#isPartialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":" if the receiver is a PE constant."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#createProbe(com.oracle.truffle.api.source.SourceSection)"},"code":true,"children":[{"kind":"text","text":"createProbe(SourceSection)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":189}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#hasTag(java.lang.Class)","anchor":"hasTag(java.lang.Class)","kind":"method","name":"hasTag","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasTag"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":"> "},{"kind":"param","text":"tag"},{"kind":"punct","text":")"}],"params":[{"name":"tag","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags"},"code":true,"children":[{"kind":"text","text":"provided"}]},{"kind":"text","text":" by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the node should be considered tagged by a tag else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this node should be considered tagged by a given tag else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this node should be considered tagged by a given tag else "},{"kind":"code","text":"false"},{"kind":"text","text":". In order for a Truffle language to support a particular tag, the tag must also be marked as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags"},"code":true,"children":[{"kind":"text","text":"provided"}]},{"kind":"text","text":" by the language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Tags are used by guest languages to indicate that a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" is a member of a certain category of nodes. For example a debugger "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" might require a guest language to tag all nodes as statements that should be considered as such."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The node implementor may decide how to implement tagging for nodes. The simplest way to implement tagging using Java types is by overriding the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#hasTag(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"hasTag(Class)"}]},{"kind":"text","text":" method. This example shows how to tag a node subclass and all its subclasses as statement:"}]},{"kind":"code","language":"java","text":"@GenerateWrapper\nabstract static class StatementNode extends SimpleNode\n                implements InstrumentableNode {\n\n    @Override\n    public final Object execute(VirtualFrame frame) {\n        executeVoid(frame);\n        return null;\n    }\n\n    public abstract void executeVoid(VirtualFrame frame);\n\n    @Override\n    public final WrapperNode createWrapper(ProbeNode probe) {\n        return StatementNodeWrapper.create(this, probe);\n    }\n\n    public boolean hasTag(Class<? extends Tag> tag) {\n        if (tag == StandardTags.StatementTag.class) {\n            return true;\n        }\n        return false;\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Often it is impossible to just rely on the node's Java type to implement tagging. This example shows how to use local state to implement tagging for a node."}]},{"kind":"code","language":"java","text":"@GenerateWrapper\nstatic class HaltNode extends Node implements InstrumentableNode {\n    private boolean isDebuggerHalt;\n\n    public void setDebuggerHalt(boolean isDebuggerHalt) {\n        this.isDebuggerHalt = isDebuggerHalt;\n    }\n\n    public Object execute(VirtualFrame frame) {\n        // does nothing;\n        return null;\n    }\n\n    public boolean isInstrumentable() {\n        return true;\n    }\n\n    public boolean hasTag(Class<? extends Tag> tag) {\n        if (tag == Debugger.HaltTag.class) {\n            return isDebuggerHalt;\n        }\n        return false;\n    }\n\n    public WrapperNode createWrapper(ProbeNode probe) {\n        return new HaltNodeWrapper(this, probe);\n    }\n\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The implementation of hasTag method must ensure that its result is stable after the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"root node"}]},{"kind":"text","text":" was wrapped in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"RootNode.getCallTarget()"}]},{"kind":"text","text":". The result is stable if the result of calling this method for a particular tag remains always the same."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method might be called in parallel from multiple threads even if the language is single threaded. The method may be invoked without a language context currently being active."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":235}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()","anchor":"getNodeObject()","kind":"method","name":"getNodeObject","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getNodeObject"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node object as TruffleObject or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no node object properties are available for this instrumented node"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns an interop capable object that contains all keys and values of attributes associated with this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an interop capable object that contains all keys and values of attributes associated with this node. The returned object must return "},{"kind":"code","text":"true"},{"kind":"text","text":" in response to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"has members"}]},{"kind":"text","text":" message. If "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned then an empty tag object without any readable keys will be assumed. Multiple calls to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"getNodeObject()"}]},{"kind":"text","text":" for a particular node may return the same or objects with different identity. The returned object must not support any write operation. The returned object must not support execution or instantiation and must not have a size."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For performance reasons it is not recommended to eagerly collect all properties of the node object when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"getNodeObject()"}]},{"kind":"text","text":" is invoked. Instead, the language should lazily compute them when they are read. If the node object contains dynamic properties, that change during the execution of the AST, then the node must return an updated value for each key when it is read repeatedly. In other words the node object must always represent the current state of this AST "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":". The implementer should not cache the node instance in the AST. The instrumentation framework will take care of caching node object instances when they are requested by tools."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Compatibility:"}]},{"kind":"text","text":" In addition to the expected keys by the tag specification, the language implementation may provide any set of additional keys and values. Tools might depend on these language specific tags and might break if keys or values are changed without notice."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For a memory efficient implementation the language might make the instrumentable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" a TruffleObject and return this instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method might be called in parallel from multiple threads even if the language is single threaded. The method may be invoked without a language context currently being active. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getLock()"},"code":true,"children":[{"kind":"text","text":"AST lock"}]},{"kind":"text","text":" is held while "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"getNodeObject()"}]},{"kind":"text","text":" object is invoked. There is no lock held when the object is read."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":273}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#materializeInstrumentableNodes(java.util.Set)","anchor":"materializeInstrumentableNodes(java.util.Set)","kind":"method","name":"materializeInstrumentableNodes","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"InstrumentableNode","ref":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},{"kind":"punct","text":" "},{"kind":"name","text":"materializeInstrumentableNodes"},{"kind":"punct","text":"("},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">> "},{"kind":"param","text":"materializedTags"},{"kind":"punct","text":")"}],"params":[{"name":"materializedTags","type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a set of tags that requested to be materialized"}]}]}],"returns":{"type":[{"kind":"type","text":"InstrumentableNode","ref":"com.oracle.truffle.api.instrumentation.InstrumentableNode"}]},"doc":{"summary":[{"kind":"text","text":"Removes optimizations performed in this AST node to restore the syntactic AST structure."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes optimizations performed in this AST node to restore the syntactic AST structure. Guest languages may decide to group multiple nodes together into a single node. This is useful to reduce the memory consumed by the AST representation and it can also improve the execution performance when interpreting the AST. Performing such optimizations often modify the syntactic AST structure, leading to invalid execution events reported to the instrumentation framework. Implementing this method allows the instrumented node to restore the syntactic AST structure when needed. It provides a list of tags that were requested by all current execution event bindings to allow the language to do the materialization selectively for instrumentable nodes with certain tags only."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned instrumentable nodes must return themselves when this method is called on them with the same tags. Materialized nodes should not be re-materialized again. Instrumentation relies on the stability of materialized nodes. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"Node.notifyInserted(Node)"}]},{"kind":"text","text":" when you need to change the structure of instrumentable nodes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Node must return itself from this method when it has already seen all the materializedTags specified as an argument, i.e., not only if the set of tags is exactly the same as before, but also if the current set of tags is completely contained in the union of all the sets of tags specified in all the calls of this method that led to creation of this materialized node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the node returns a new node from this method, the subtree rooted at the new node must be completely unadopted, i.e., all nodes it contains must not have existed in the original AST. Also, the new subtree must be completely materialized, so that no new materializations occur when the instrumentation framework instruments the new subtree during the current traversal."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The AST lock is acquired while this method is invoked. Therefore it is not allowed to run guest language code while this method is invoked. This method might be called in parallel from multiple threads even if the language is single threaded. The method may be invoked without a language context currently being active. Language reference is always available."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In the example below, we show how the "},{"kind":"code","text":"IncrementNode"},{"kind":"text","text":" with a "},{"kind":"code","text":"ConstantNode"},{"kind":"text","text":" child is optimized into a "},{"kind":"code","text":"ConstantIncrementNode"},{"kind":"text","text":" and how it can implement "},{"kind":"code","text":"materializeSyntaxNodes"},{"kind":"text","text":" to restore the syntactic structure of the AST:"}]},{"kind":"code","language":"java","text":"@GenerateWrapper\nabstract static class ExpressionNode extends Node\n                implements InstrumentableNode {\n    abstract int execute(VirtualFrame frame);\n\n    public boolean isInstrumentable() {\n        return true;\n    }\n\n    public boolean hasTag(Class<? extends Tag> tag) {\n        return tag == StandardTags.ExpressionTag.class;\n    }\n\n    public WrapperNode createWrapper(ProbeNode probe) {\n        return new ExpressionNodeWrapper(this, probe);\n    }\n}\n\nclass ConstantNode extends ExpressionNode {\n\n    private final int constant;\n\n    ConstantNode(int constant) {\n        this.constant = constant;\n    }\n\n    @Override\n    int execute(VirtualFrame frame) {\n        return constant;\n    }\n\n}\n\n// node with constant folded operation\nclass ConstantIncrementNode extends ExpressionNode {\n    final int constantIncremented;\n\n    ConstantIncrementNode(int constant) {\n        this.constantIncremented = constant + 1;\n    }\n\n    // desguar to restore syntactic structure of the AST\n    public InstrumentableNode materializeInstrumentableNodes(\n                    Set<Class<? extends Tag>> tags) {\n        if (tags.contains(StandardTags.ExpressionTag.class)) {\n            return new IncrementNode(\n                            new ConstantNode(constantIncremented - 1));\n        }\n        return this;\n    }\n\n    @Override\n    int execute(VirtualFrame frame) {\n        return constantIncremented;\n    }\n\n}\n\n// node with full semantics of the node.\nclass IncrementNode extends ExpressionNode {\n    @Child ExpressionNode child;\n\n    IncrementNode(ExpressionNode child) {\n        this.child = child;\n    }\n\n    @Override\n    int execute(VirtualFrame frame) {\n        return child.execute(frame) + 1;\n    }\n}"}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":320}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findNearestNodeAt(int,java.util.Set)","anchor":"findNearestNodeAt(int,java.util.Set)","kind":"method","name":"findNearestNodeAt","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"findNearestNodeAt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceCharIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">> "},{"kind":"param","text":"tags"},{"kind":"punct","text":")"}],"params":[{"name":"sourceCharIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the 0-based character index in this node's source, to find the nearest tagged node from"}]}]},{"name":"tags","type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a set of tags, the nearest node needs to be tagged with at least one tag from this set"}]}]}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the nearest instrumentable node according to the execution flow and tagged with some of the tags, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when none was found"}]}]},"doc":{"summary":[{"kind":"text","text":"Find the nearest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" to the given source character index according to the guest language control flow, that is tagged with some of the given tags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find the nearest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" to the given source character index according to the guest language control flow, that is tagged with some of the given tags. The source character index is in this node's source. The nearest node will preferably be in the same block/function as the character index. This node acts as a context node - either a node containing the character index if such node exists, or node following the character index if exists, or node preceding the character index otherwise."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Return an instrumentable node that is tagged with some of the tags and containing the character index, if such exists and there is not a more suitable sibling node inside the container source section. Return the next sibling tagged node otherwise, or the previous one when the next one does not exist."}]},{"kind":"paragraph","children":[{"kind":"raw","html":"<u>Use Case</u>","text":"Use Case"},{"kind":"break"},{"kind":"text","text":" The current use-case of this method is a relocation of breakpoint position, for instance. When a user submits a breakpoint at the source character index, a nearest logical instrumentable node that has suitable tags needs to be found to move the breakpoint accordingly."}]},{"kind":"paragraph","children":[{"kind":"raw","html":"<u>Default Implementation</u>","text":"Default Implementation"},{"kind":"break"},{"kind":"text","text":" This method has a default implementation, which assumes that the materialized Truffle "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" hierarchy corresponds with the logical guest language AST structure. If this is not the case for a particular guest language, this method needs to be implemented, possibly with the help of language specific AST node classes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The default algorithm is following:"},{"kind":"break"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"If the character index is smaller than the start index of this node's source section, return the first tagged child of this node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If the character index is larger than the end index of this node's source section, return the last tagged child of this node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Otherwise, this node's source section contains the character index. Use following steps to find the nearest tagged node in this node's hierarchy:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Traverse the node children in declaration order (AST breadth-first order). For every child do:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"When the child is not instrumentable, include its children into the traversal."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"When the child does not have a source section assigned, ignore it."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"When the "},{"kind":"code","text":"sourceCharIndex"},{"kind":"text","text":" is inside the child's source section, find if it's tagged with one of the tags (store as "},{"kind":"code","text":"isTagged"},{"kind":"text","text":") and repeat recursively from "},{"kind":"strong","children":[{"kind":"text","text":"3.a."}]},{"kind":"text","text":" using this child as the node."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"When the child is above the character index, remember a sorted list of such children up to the lowest tagged child (store in "},{"kind":"code","text":"higherNodes"},{"kind":"text","text":" list)."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"When the child is below the character index, remember a sorted list of such children down to the highest tagged child (store in "},{"kind":"code","text":"lowerNodes"},{"kind":"text","text":" list)."}]}]]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If a tagged child node was found in "},{"kind":"strong","children":[{"kind":"text","text":"3.a"}]},{"kind":"text","text":" with source section matching the "},{"kind":"code","text":"sourceCharIndex"},{"kind":"text","text":", return it."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Otherwise, we check the list of lower/higher nodes:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Prefer the node after the character index."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Traverse "},{"kind":"code","text":"higherNodes"},{"kind":"text","text":" in ascending order. When the node is tagged, return it, when not, repeat with that node from "},{"kind":"strong","children":[{"kind":"text","text":"3.a."}]}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If no tagged node was found, traverse "},{"kind":"code","text":"lowerNodes"},{"kind":"text","text":" in descending order. When the node is tagged, return it, when not, repeat with that node from "},{"kind":"strong","children":[{"kind":"text","text":"3.a."}]}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"When nothing was found in the steps above, return "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"strong","children":[{"kind":"text","text":"c."}]},{"kind":"text","text":" didn't provide a tagged node, apply this algorithm recursively to a parent of this node, if exists. If you encounter the nearest tagged parent node found in "},{"kind":"strong","children":[{"kind":"text","text":"3.a"}]},{"kind":"text","text":", return it. Otherwise, return a tagged child found in the steps above, if any."}]}]]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findNearestNodeAt(int,int,java.util.Set)"},"code":true,"children":[{"kind":"text","text":"findNearestNodeAt(int, int, Set)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":400}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findNearestNodeAt(int,int,java.util.Set)","anchor":"findNearestNodeAt(int,int,java.util.Set)","kind":"method","name":"findNearestNodeAt","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"findNearestNodeAt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"line"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"column"},{"kind":"punct","text":", "},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">> "},{"kind":"param","text":"tags"},{"kind":"punct","text":")"}],"params":[{"name":"line","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based line number"}]}]},{"name":"column","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based column number, or less than one when the column is unknown"}]}]},{"name":"tags","type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a set of tags, the nearest node needs to be tagged with at least one tag from this set"}]}]}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the nearest instrumentable node according to the execution flow and tagged with some of the tags, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when none was found"}]}]},"doc":{"summary":[{"kind":"text","text":"Find the nearest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" to the given source line and column position, according to the guest language control flow, that is tagged with some of the given tags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find the nearest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" to the given source line and column position, according to the guest language control flow, that is tagged with some of the given tags."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Behaves in the same way as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findNearestNodeAt(int,java.util.Set)"},"code":true,"children":[{"kind":"text","text":"findNearestNodeAt(int, Set)"}]},{"kind":"text","text":" but uses line/column as the position specification instead of a character index."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findNearestNodeAt(int,java.util.Set)"},"code":true,"children":[{"kind":"text","text":"findNearestNodeAt(int, Set)"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":420}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findInstrumentableParent(com.oracle.truffle.api.nodes.Node)","anchor":"findInstrumentableParent(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"findInstrumentableParent","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"findInstrumentableParent"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a Node"}]}]}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the first instrumentable node, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no instrumentable parent exists."}]}]},"doc":{"summary":[{"kind":"text","text":"Find the first "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#isInstrumentable()"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" node on it's parent chain."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find the first "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#isInstrumentable()"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" node on it's parent chain. If the provided node is instrumentable itself, it is returned. If not, the first parent node that is instrumentable is returned, if any."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":437}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#createProbe(com.oracle.truffle.api.source.SourceSection)","anchor":"createProbe(com.oracle.truffle.api.source.SourceSection)","kind":"method","name":"createProbe","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"ProbeNode","ref":"com.oracle.truffle.api.instrumentation.ProbeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"createProbe"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceSection"},{"kind":"punct","text":")"}],"params":[{"name":"sourceSection","type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the eager materialized source section for this probe."}]}]}],"returns":{"type":[{"kind":"type","text":"ProbeNode","ref":"com.oracle.truffle.api.instrumentation.ProbeNode"}]},"doc":{"summary":[{"kind":"text","text":"Method allows to create an eager probe node given an instrumentable node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Method allows to create an eager probe node given an instrumentable node. This is useful to implement custom probe storage by implementing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findProbe()"},"code":true,"children":[{"kind":"text","text":"findProbe()"}]},{"kind":"text","text":"."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":454}}],"doc":{"summary":[{"kind":"text","text":"Interface implemented by AST "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"nodes"}]},{"kind":"text","text":" that may be "},{"kind":"emphasis","children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":": an AST location where "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"children":[{"kind":"text","text":"Truffle instruments"}]},{"kind":"text","text":" are permitted to listen to before and after using execution event listeners."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Interface implemented by AST "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"nodes"}]},{"kind":"text","text":" that may be "},{"kind":"emphasis","children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":": an AST location where "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"children":[{"kind":"text","text":"Truffle instruments"}]},{"kind":"text","text":" are permitted to listen to before and after using execution event listeners."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a node is instrumentable depends on the return value of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#isInstrumentable()"},"code":true,"children":[{"kind":"text","text":"isInstrumentable()"}]},{"kind":"text","text":". All instrumentable nodes must also extend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":". All other member methods of this interface are only allowed to be invoked if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#isInstrumentable()"},"code":true,"children":[{"kind":"text","text":"isInstrumentable()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" ."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Every instrumentable node is required to create a wrapper for this instrumentable node in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#createWrapper(com.oracle.truffle.api.instrumentation.ProbeNode)"},"code":true,"children":[{"kind":"text","text":"createWrapper(ProbeNode)"}]},{"kind":"text","text":". The instrumentation framework will, when needed during execution, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T)"},"code":true,"children":[{"kind":"text","text":"replace"}]},{"kind":"text","text":" the instrumentable node with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode"},"code":true,"children":[{"kind":"text","text":"wrapper"}]},{"kind":"text","text":" and delegate to the original node. After the replacement of an instrumentable node with a wrapper we refer to the original node as an instrumented node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Wrappers can be generated automatically using an annotation processor by annotating the class with @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"GenerateWrapper"}]},{"kind":"text","text":". If an instrumentable node subclass has additional declared methods than its instrumentable base class that are used by other nodes, then a new wrapper should be generated or implemented for the subclass, otherwise the replacement of the wrapper will fail."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instrumentable nodes may return "},{"kind":"code","text":"true"},{"kind":"text","text":" to indicate that they were tagged by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag"},"code":true,"children":[{"kind":"text","text":"tag"}]},{"kind":"text","text":". Tags are used by guest languages to indicate that a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" is a member of a certain category of nodes. For example a debugger "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" might require a guest language to tag all nodes as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$StatementTag"},"code":true,"children":[{"kind":"text","text":"statements"}]},{"kind":"text","text":" that should be considered as such. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#hasTag(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"hasTag(Class)"}]},{"kind":"text","text":" for further details on how to use tags."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example minimal implementation of an instrumentable node:"}]}]},{"kind":"code","language":"java","text":"@GenerateWrapper\nabstract static class SimpleNode extends Node\n                implements InstrumentableNode {\n\n    public abstract Object execute(VirtualFrame frame);\n\n    public boolean isInstrumentable() {\n        return true;\n    }\n\n    public WrapperNode createWrapper(ProbeNode probe) {\n        // ASTNodeWrapper is generated by @GenerateWrapper\n        return new SimpleNodeWrapper(this, probe);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Example for a typical implementation of an instrumentable node with support for source sections:"}]},{"kind":"code","language":"java","text":"@GenerateWrapper\nabstract static class RecommendedNode extends Node\n                implements InstrumentableNode {\n\n    private static final int NO_SOURCE = -1;\n\n    private int sourceCharIndex = NO_SOURCE;\n    private int sourceLength;\n\n    public abstract Object execute(VirtualFrame frame);\n\n    // invoked by the parser to set the source\n    void setSourceSection(int charIndex, int length) {\n        assert sourceCharIndex == NO_SOURCE : \"source should only be set once\";\n        this.sourceCharIndex = charIndex;\n        this.sourceLength = length;\n    }\n\n    public final boolean isInstrumentable() {\n        // all AST nodes with source are instrumentable\n        return sourceCharIndex != NO_SOURCE;\n    }\n\n    @Override\n    @TruffleBoundary\n    public final SourceSection getSourceSection() {\n        if (sourceCharIndex == NO_SOURCE) {\n            // AST node without source\n            return null;\n        }\n        RootNode rootNode = getRootNode();\n        if (rootNode == null) {\n            // not yet adopted yet\n            return null;\n        }\n        Source source = rootNode.getSourceSection().getSource();\n        return source.createSection(sourceCharIndex, sourceLength);\n    }\n\n    public WrapperNode createWrapper(ProbeNode probe) {\n        // ASTNodeWrapper is generated by @GenerateWrapper\n        return new RecommendedNodeWrapper(this, probe);\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#isInstrumentable()"},"code":true,"children":[{"kind":"text","text":"to decide whether node is instrumentable."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#hasTag(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"Implement hasTag to decide whether an instrumentable node is tagged with a tag."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"Use an annotation processor to generate the wrapper class."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachExecutionEventListener(SourceSectionFilter, ExecutionEventListener)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":107}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode","name":"InstrumentableNode.WrapperNode","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"InstrumentableNode.WrapperNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}],"interfaces":[[{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}]],"enclosing":"com.oracle.truffle.api.instrumentation.InstrumentableNode","members":[{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode#getDelegateNode()","anchor":"getDelegateNode()","kind":"method","name":"getDelegateNode","signature":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getDelegateNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" guest language node, adopted as a child, whose execution events the wrapper reports to the instrumentation framework."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" guest language node, adopted as a child, whose execution events the wrapper reports to the instrumentation framework."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method might be called in parallel from multiple threads. The method may be invoked without a language context currently being active."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":478}},{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode$WrapperNode#getProbeNode()","anchor":"getProbeNode()","kind":"method","name":"getProbeNode","signature":[{"kind":"type","text":"ProbeNode","ref":"com.oracle.truffle.api.instrumentation.ProbeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getProbeNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ProbeNode","ref":"com.oracle.truffle.api.instrumentation.ProbeNode"}]},"doc":{"summary":[{"kind":"text","text":"A child of the wrapper, through which the wrapper reports execution events related to the guest language "},{"kind":"emphasis","children":[{"kind":"text","text":"delegate"}]},{"kind":"text","text":" node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A child of the wrapper, through which the wrapper reports execution events related to the guest language "},{"kind":"emphasis","children":[{"kind":"text","text":"delegate"}]},{"kind":"text","text":" node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method might be called in parallel from multiple threads. The method may be invoked without a language context currently being active."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":489}}],"doc":{"summary":[{"kind":"text","text":"Nodes that the instrumentation framework inserts into guest language ASTs (between "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" guest language nodes and their parents) for the purpose of interposing on execution events and reporting them via the instrumentation framework."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Nodes that the instrumentation framework inserts into guest language ASTs (between "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" guest language nodes and their parents) for the purpose of interposing on execution events and reporting them via the instrumentation framework."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#createWrapper(com.oracle.truffle.api.instrumentation.ProbeNode)"},"code":true,"children":[{"kind":"text","text":"createWrapper(ProbeNode)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/InstrumentableNode.java","line":467}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter","name":"Instrumenter","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Instrumenter"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)","anchor":"attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)","kind":"method","name":"attachExecutionEventListener","modifiers":["public","final"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"ExecutionEventListener","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventListener","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachExecutionEventListener"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"eventFilter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"eventFilter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"filters the events that are reported to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"listener"}]}]}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"that listens to execution events."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Starts execution event notification for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"event filter"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts execution event notification for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"event filter"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":". The execution events are delivered to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"code":true,"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" which allows to dispose the attached execution event binding. Disposing the binding removes all probes and wrappers from the AST that were created for this instrument. The removal of probes and wrappers is performed lazily on the next execution of the AST."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"input value events"}]},{"kind":"text","text":" are delivered to the listener."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":88}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)","anchor":"attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)","kind":"method","name":"attachExecutionEventFactory","modifiers":["public","final"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachExecutionEventFactory"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"eventFilter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"eventFilter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"filters the events that are reported to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"execution event nodes"}]},{"kind":"text","text":" created by the factory."}]}]},{"name":"factory","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the factory that creates "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"execution event nodes"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Starts execution event notification for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"event filter"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"factory"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts execution event notification for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"event filter"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"factory"}]},{"kind":"text","text":". Events are delivered to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode"}]},{"kind":"text","text":" instances created by the factory."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"code":true,"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" which allows to dispose the attached execution event binding. Disposing the binding removes all probes and wrappers from the AST that were created for this instrument. The removal of probes and wrappers is performed lazily on the next execution of the AST."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"input value events"}]},{"kind":"text","text":" are delivered to the created execution event nodes. To deliver inputs events use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"attachExecutionEventFactory(SourceSectionFilter, SourceSectionFilter, ExecutionEventNodeFactory)"}]},{"kind":"text","text":" instead."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNodeFactory"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"attachExecutionEventFactory(SourceSectionFilter, SourceSectionFilter,\n     ExecutionEventNodeFactory)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":119}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)","anchor":"attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)","kind":"method","name":"attachExecutionEventFactory","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachExecutionEventFactory"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"eventFilter"},{"kind":"punct","text":", "},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"inputFilter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"eventFilter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"filters the events that are reported to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"execution event nodes"}]},{"kind":"text","text":" created by the factory."}]}]},{"name":"inputFilter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"filters input events, "},{"kind":"code","text":"null"},{"kind":"text","text":" for no input values"}]}]},{"name":"factory","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the factory that creates "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"execution event nodes"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Starts execution event notification for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"event filter"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"factory"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts execution event notification for a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"event filter"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"factory"}]},{"kind":"text","text":". Events are delivered to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode"}]},{"kind":"text","text":" instances created by the factory."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"code":true,"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" which allows to dispose the attached execution event binding. Disposing the binding removes all probes and wrappers from the AST that were created for this instrument. The removal of probes and wrappers is performed lazily on the next execution of the AST."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The input filter argument filters which "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"input events"}]},{"kind":"text","text":" are delivered to the created execution event nodes."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNodeFactory"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onInputValue(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.instrumentation.EventContext,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode.onInputValue(com.oracle.truffle.api.frame.VirtualFrame, EventContext,\n     int, Object)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":146}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)","anchor":"attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)","kind":"method","name":"attachExecutionEventFactory","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventNodeFactory","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachExecutionEventFactory"},{"kind":"punct","text":"("},{"kind":"type","text":"NearestSectionFilter","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"nearestFilter"},{"kind":"punct","text":", "},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"baseFilter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"nearestFilter","type":[{"kind":"type","text":"NearestSectionFilter","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter describing the nearest section"}]}]},{"name":"baseFilter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter selecting sections we find the nearest from"}]}]},{"name":"factory","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the factory that creates "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"execution event nodes"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a handle to dispose the execution event binding."}]}]},"doc":{"summary":[{"kind":"text","text":"Starts execution event notification for the nearest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" as specified by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts execution event notification for the nearest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" as specified by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":". Events are delivered to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode"}]},{"kind":"text","text":" instances created by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"factory"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"code":true,"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" which allows to dispose the attached execution event binding. Disposing the binding removes all probes and wrappers from the AST that were created for this instrument. The removal of probes and wrappers is performed lazily on the next execution of the AST."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The final nearest node is selected from the sections filtered by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"baseFilter"}]},{"kind":"text","text":" by applying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findNearestNodeAt(int,int,java.util.Set)"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode.findNearestNodeAt(int, int, Set)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNodeFactory"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":171}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceListener(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)","anchor":"attachLoadSourceListener(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)","kind":"method","name":"attachLoadSourceListener","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"LoadSourceListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"LoadSourceListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachLoadSourceListener"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeExistingSources"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter on which sources events are triggered."}]}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener that gets notified if a source was loaded"}]}]},{"name":"includeExistingSources","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for sources which were already loaded at the time when this listener was attached."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a handle for stopping the notification stream"}]}]},"doc":{"summary":[{"kind":"text","text":"Starts notifications for each newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" and returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" that can be used to terminate notifications."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts notifications for each newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" and returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" that can be used to terminate notifications. Only subsequent loads will be notified unless "},{"kind":"code","text":"includeExistingSources"},{"kind":"text","text":" is true, in which case a notification for each previous load will be delivered before this method returns."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceListener#onLoad(com.oracle.truffle.api.instrumentation.LoadSourceEvent)"},"code":true,"children":[{"kind":"text","text":"LoadSourceListener.onLoad(LoadSourceEvent)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":189}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecuteSourceListener(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)","anchor":"attachExecuteSourceListener(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)","kind":"method","name":"attachExecuteSourceListener","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"ExecuteSourceListener","ref":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecuteSourceListener","ref":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachExecuteSourceListener"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeExecutedSources"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter on which source events are triggered."}]}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener that gets notified if a source was executed"}]}]},{"name":"includeExecutedSources","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for sources which were already executed at the time when this listener was attached."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a handle for stopping the notification stream"}]}]},"doc":{"summary":[{"kind":"text","text":"Starts notifications for each newly executed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" and returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" that can be used to terminate notifications."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts notifications for each newly executed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" and returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" that can be used to terminate notifications. Only subsequent executions will be notified unless "},{"kind":"code","text":"includeExecutedSources"},{"kind":"text","text":" is true, in which case a notification for each previously executed source will be delivered before this method returns. A source is reported as executed if any of it's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":"s start to be executed. Every source is reported at most once."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener#onExecute(com.oracle.truffle.api.instrumentation.ExecuteSourceEvent)"},"code":true,"children":[{"kind":"text","text":"ExecuteSourceListener.onExecute(ExecuteSourceEvent)"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":209}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceSectionListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)","anchor":"attachLoadSourceSectionListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)","kind":"method","name":"attachLoadSourceSectionListener","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachLoadSourceSectionListener"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeExistingSourceSections"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter on which sources sections trigger events"}]}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener that gets notified if a source section was loaded"}]}]},{"name":"includeExistingSourceSections","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for sources which were already loaded at the time when this listener was attached."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a handle for stopping the notification stream"}]}]},"doc":{"summary":[{"kind":"text","text":"Starts notifications for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" in every newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" and returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" that can be used to terminate notifications."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts notifications for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" in every newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" and returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" that can be used to terminate notifications. Only subsequent loads will be notified unless "},{"kind":"code","text":"includeExistingSourceSections"},{"kind":"text","text":" is true, in which case a notification for each previous load will be delivered before this method returns. Every source is reported at most once."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener#onLoad(com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent)"},"code":true,"children":[{"kind":"text","text":"LoadSourceSectionListener.onLoad(LoadSourceSectionEvent)"}]}]]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":228}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceSectionListener(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)","anchor":"attachLoadSourceSectionListener(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)","kind":"method","name":"attachLoadSourceSectionListener","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachLoadSourceSectionListener"},{"kind":"punct","text":"("},{"kind":"type","text":"NearestSectionFilter","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"nearestFilter"},{"kind":"punct","text":", "},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"baseFilter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeExistingSourceSections"},{"kind":"punct","text":")"}],"params":[{"name":"nearestFilter","type":[{"kind":"type","text":"NearestSectionFilter","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter describing the nearest section"}]}]},{"name":"baseFilter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter selecting sections we find the nearest from"}]}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener that gets notified if a source section was loaded"}]}]},{"name":"includeExistingSourceSections","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for source sections which were already loaded at the time when this listener was attached."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a handle for stopping the notification stream"}]}]},"doc":{"summary":[{"kind":"text","text":"Starts notifications for the nearest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" as specified by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":" and returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" that can be used to terminate notifications."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts notifications for the nearest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" as specified by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":" and returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" that can be used to terminate notifications. The final nearest node is selected from the sections filtered by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"baseFilter"}]},{"kind":"text","text":" by applying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findNearestNodeAt(int,int,java.util.Set)"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode.findNearestNodeAt(int, int, Set)"}]},{"kind":"text","text":". Only subsequent loads will be notified unless "},{"kind":"code","text":"includeExistingSourceSections"},{"kind":"text","text":" is true, in which case a notification for each previously loaded source section will be delivered before this method returns."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener#onLoad(com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent)"},"code":true,"children":[{"kind":"text","text":"LoadSourceSectionListener.onLoad(LoadSourceSectionEvent)"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":251}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#createLoadSourceBinding(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)","anchor":"createLoadSourceBinding(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)","kind":"method","name":"createLoadSourceBinding","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"LoadSourceListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"LoadSourceListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createLoadSourceBinding"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeExistingSources"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter on which sources events are triggered."}]}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener that gets notified if a source was loaded"}]}]},{"name":"includeExistingSources","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for sources which were already loaded at the time when this listener was attached."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a binding handle to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attach"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"stop"}]},{"kind":"text","text":" the notification stream"}]}]},"doc":{"summary":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" to get notifications for each newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" to get notifications for each newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". The binding needs to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":" to receive notifications. Only subsequent loads will be notified after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attach"}]},{"kind":"text","text":", unless "},{"kind":"code","text":"includeExistingSources"},{"kind":"text","text":" is true, in which case a notification for each previously loaded source will be delivered before attach method returns."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The difference from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceListener(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"attachLoadSourceListener(SourceFilter, LoadSourceListener, boolean)"}]},{"kind":"text","text":" is in having the binding object before notifications are produced when existing sources are requested."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceListener#onLoad(com.oracle.truffle.api.instrumentation.LoadSourceEvent)"},"code":true,"children":[{"kind":"text","text":"LoadSourceListener.onLoad(LoadSourceEvent)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":275}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#createExecuteSourceBinding(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)","anchor":"createExecuteSourceBinding(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)","kind":"method","name":"createExecuteSourceBinding","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"ExecuteSourceListener","ref":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecuteSourceListener","ref":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createExecuteSourceBinding"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeExecutedSources"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter on which sources events are triggered."}]}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener that gets notified if a source was executed"}]}]},{"name":"includeExecutedSources","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for sources which were already executed at the time when this listener was attached."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a binding handle to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attach"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"stop"}]},{"kind":"text","text":" the notification stream"}]}]},"doc":{"summary":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" to get notifications for each newly executed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" to get notifications for each newly executed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". The binding needs to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":" to receive notifications. Only subsequent executions will be notified after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attach"}]},{"kind":"text","text":", unless "},{"kind":"code","text":"includeExecutedSources"},{"kind":"text","text":" is true, in which case a notification for each previously executed source will be delivered before attach method returns. Every source is reported at most once."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The difference from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecuteSourceListener(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"attachExecuteSourceListener(SourceFilter, ExecuteSourceListener, boolean)"}]},{"kind":"text","text":" is in having the binding object before notifications are produced when executed sources are requested."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecuteSourceListener#onExecute(com.oracle.truffle.api.instrumentation.ExecuteSourceEvent)"},"code":true,"children":[{"kind":"text","text":"ExecuteSourceListener.onExecute(ExecuteSourceEvent)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":300}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#createLoadSourceSectionBinding(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)","anchor":"createLoadSourceSectionBinding(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)","kind":"method","name":"createLoadSourceSectionBinding","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createLoadSourceSectionBinding"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeExistingSourceSections"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter on which sources events are triggered."}]}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener that gets notified if a source section was loaded"}]}]},{"name":"includeExistingSourceSections","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for source sections which were already loaded at the time when this listener was attached."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a binding handle to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attach"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"stop"}]},{"kind":"text","text":" the notification stream"}]}]},"doc":{"summary":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" to get notifications for each newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" in every newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" to get notifications for each newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" in every newly loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". The binding needs to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":" to receive notifications. Only subsequent loads will be notified after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attach"}]},{"kind":"text","text":", unless "},{"kind":"code","text":"includeExistingSourceSections"},{"kind":"text","text":" is true, in which case a notification for each previously loaded source section will be delivered before attach method returns. Every source is reported at most once."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The difference from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceSectionListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"attachLoadSourceSectionListener(SourceSectionFilter, LoadSourceSectionListener, boolean)"}]},{"kind":"text","text":" is in having the binding object before notifications are produced when existing source sections are requested."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener#onLoad(com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent)"},"code":true,"children":[{"kind":"text","text":"LoadSourceSectionListener.onLoad(LoadSourceSectionEvent)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":327}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#createLoadSourceSectionBinding(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)","anchor":"createLoadSourceSectionBinding(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)","kind":"method","name":"createLoadSourceSectionBinding","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createLoadSourceSectionBinding"},{"kind":"punct","text":"("},{"kind":"type","text":"NearestSectionFilter","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"nearestFilter"},{"kind":"punct","text":", "},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"baseFilter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeExistingSourceSections"},{"kind":"punct","text":")"}],"params":[{"name":"nearestFilter","type":[{"kind":"type","text":"NearestSectionFilter","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter describing the nearest section"}]}]},{"name":"baseFilter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter selecting sections we find the nearest from"}]}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener that gets notified if a source section was loaded"}]}]},{"name":"includeExistingSourceSections","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for source sections which were already loaded at the time when this listener was attached."}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a binding handle to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attach"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"stop"}]},{"kind":"text","text":" the notification stream"}]}]},"doc":{"summary":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" to get notification for the nearest source section to the given position as specified by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding"},"children":[{"kind":"text","text":"binding"}]},{"kind":"text","text":" to get notification for the nearest source section to the given position as specified by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":". The final nearest node is selected from the sections filtered by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"baseFilter"}]},{"kind":"text","text":" by applying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#findNearestNodeAt(int,int,java.util.Set)"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode.findNearestNodeAt(int, int, Set)"}]},{"kind":"text","text":". The binding needs to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":" to receive notifications. Only subsequent loads will be notified after "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#attach()"},"code":true,"children":[{"kind":"text","text":"attach"}]},{"kind":"text","text":", unless "},{"kind":"code","text":"includeExistingSourceSections"},{"kind":"text","text":" is true, in which case a notification for each previously loaded source section will be delivered before attach method returns."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The difference from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceSectionListener(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"attachLoadSourceSectionListener(NearestSectionFilter, SourceSectionFilter, LoadSourceSectionListener, boolean)"}]},{"kind":"text","text":" is in having the binding object before notifications are produced when existing source sections are requested."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener#onLoad(com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent)"},"code":true,"children":[{"kind":"text","text":"LoadSourceSectionListener.onLoad(LoadSourceSectionEvent)"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":356}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#visitLoadedSourceSections(com.oracle.truffle.api.instrumentation.SourceSectionFilter,com.oracle.truffle.api.instrumentation.LoadSourceSectionListener)","anchor":"visitLoadedSourceSections(com.oracle.truffle.api.instrumentation.SourceSectionFilter,com.oracle.truffle.api.instrumentation.LoadSourceSectionListener)","kind":"method","name":"visitLoadedSourceSections","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"visitLoadedSourceSections"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":", "},{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a filter on which source sections trigger events"}]}]},{"name":"listener","type":[{"kind":"type","text":"LoadSourceSectionListener","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener that gets notified with loaded source sections"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies the listener for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" in every loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" that corresponds to the filter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies the listener for each "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" in every loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" that corresponds to the filter. Only loaded sections are notified, synchronously."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener#onLoad(com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent)"},"code":true,"children":[{"kind":"text","text":"LoadSourceSectionListener.onLoad(LoadSourceSectionEvent)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":370}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachOutConsumer(T)","anchor":"attachOutConsumer(T)","kind":"method","name":"attachOutConsumer","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachOutConsumer"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"stream"},{"kind":"punct","text":")"}],"params":[{"name":"stream","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Attach an output stream as a consumer of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#out()"},"code":true,"children":[{"kind":"text","text":"standard output"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attach an output stream as a consumer of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#out()"},"code":true,"children":[{"kind":"text","text":"standard output"}]},{"kind":"text","text":". The consumer output stream receives all output that goes to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#out()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.Env.out()"}]},{"kind":"text","text":" since this call, including output emitted by the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine"}]},{"kind":"text","text":" this instrumenter is being executed in, output from instruments (including this one), etc. Be sure to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"dispose"}]},{"kind":"text","text":" the binding when it's not used any more."}]}]},"since":"0.25","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":382}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachErrConsumer(T)","anchor":"attachErrConsumer(T)","kind":"method","name":"attachErrConsumer","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachErrConsumer"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"stream"},{"kind":"punct","text":")"}],"params":[{"name":"stream","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Attach an output stream as a consumer of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#err()"},"code":true,"children":[{"kind":"text","text":"error output"}]},{"kind":"text","text":" ."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attach an output stream as a consumer of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#err()"},"code":true,"children":[{"kind":"text","text":"error output"}]},{"kind":"text","text":" . The consumer output stream receives all error output that goes to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#err()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.Env.err()"}]},{"kind":"text","text":" since this call, including error output emitted by the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine"}]},{"kind":"text","text":" this instrumenter is being executed in, error output from instruments (including this one), etc. Be sure to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"dispose"}]},{"kind":"text","text":" the binding when it's not used any more."}]}]},"since":"0.25","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":394}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachAllocationListener(com.oracle.truffle.api.instrumentation.AllocationEventFilter,T)","anchor":"attachAllocationListener(com.oracle.truffle.api.instrumentation.AllocationEventFilter,T)","kind":"method","name":"attachAllocationListener","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"AllocationListener","ref":"com.oracle.truffle.api.instrumentation.AllocationListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AllocationListener","ref":"com.oracle.truffle.api.instrumentation.AllocationListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachAllocationListener"},{"kind":"punct","text":"("},{"kind":"type","text":"AllocationEventFilter","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"AllocationEventFilter","ref":"com.oracle.truffle.api.instrumentation.AllocationEventFilter"}]},{"name":"listener","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Attach a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about allocations of guest language values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attach a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.AllocationListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about allocations of guest language values. Be sure to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"dispose"}]},{"kind":"text","text":" the binding when it's not used any more."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":403}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachContextsListener(T,boolean)","anchor":"attachContextsListener(T,boolean)","kind":"method","name":"attachContextsListener","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"ContextsListener","ref":"com.oracle.truffle.api.instrumentation.ContextsListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ContextsListener","ref":"com.oracle.truffle.api.instrumentation.ContextsListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachContextsListener"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeActiveContexts"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener to receive the context events"}]}]},{"name":"includeActiveContexts","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for present active contexts"}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a handle for unregistering the listener"}]}]},"doc":{"summary":[{"kind":"text","text":"Attach a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ContextsListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about changes in contexts in guest language application."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attach a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ContextsListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about changes in contexts in guest language application. This is supported in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getInstrumenter()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.Env.getInstrumenter()"}]},{"kind":"text","text":" only."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":416}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachThreadsListener(T,boolean)","anchor":"attachThreadsListener(T,boolean)","kind":"method","name":"attachThreadsListener","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"ThreadsListener","ref":"com.oracle.truffle.api.instrumentation.ThreadsListener"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ThreadsListener","ref":"com.oracle.truffle.api.instrumentation.ThreadsListener"},{"kind":"punct","text":"> "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachThreadsListener"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeInitializedThreads"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a listener to receive the context events"}]}]},{"name":"includeInitializedThreads","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether or not this listener should be notified for present initialized threads"}]}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a handle for unregistering the listener"}]}]},"doc":{"summary":[{"kind":"text","text":"Attach a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about changes in threads in guest language application."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attach a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about changes in threads in guest language application. This is supported in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getInstrumenter()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.Env.getInstrumenter()"}]},{"kind":"text","text":" only."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":429}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachThreadsActivationListener(com.oracle.truffle.api.instrumentation.ThreadsActivationListener)","anchor":"attachThreadsActivationListener(com.oracle.truffle.api.instrumentation.ThreadsActivationListener)","kind":"method","name":"attachThreadsActivationListener","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ThreadsActivationListener","ref":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener"},{"kind":"punct","text":"> "},{"kind":"name","text":"attachThreadsActivationListener"},{"kind":"punct","text":"("},{"kind":"type","text":"ThreadsActivationListener","ref":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener"},{"kind":"punct","text":" "},{"kind":"param","text":"listener"},{"kind":"punct","text":")"}],"params":[{"name":"listener","type":[{"kind":"type","text":"ThreadsActivationListener","ref":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener"}]}],"returns":{"type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ThreadsActivationListener","ref":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a handle for unregistering the listener."}]}]},"doc":{"summary":[{"kind":"text","text":"Attach a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about when a thread gets entered or left in guest language applications."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attach a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener"},"code":true,"children":[{"kind":"text","text":"listener"}]},{"kind":"text","text":" to be notified about when a thread gets entered or left in guest language applications."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The event notification starts after the listener registration is completed. This means that currently activated threads won't get a notification. It is also possible that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener#onLeaveThread(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"ThreadsActivationListener.onLeaveThread(TruffleContext)"}]},{"kind":"text","text":" is called without ever invoking "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener#onEnterThread(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"ThreadsActivationListener.onEnterThread(TruffleContext)"}]},{"kind":"text","text":"."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":443}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#querySourceSections(com.oracle.truffle.api.instrumentation.SourceSectionFilter)","anchor":"querySourceSections(com.oracle.truffle.api.instrumentation.SourceSectionFilter)","kind":"method","name":"querySourceSections","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"> "},{"kind":"name","text":"querySourceSections"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"criterion for inclusion"}]}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"unmodifiable list of instances that pass the filter"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a filtered list of loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a filtered list of loaded "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" instances."}]}]},"since":"0.18","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":453}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#queryTags(com.oracle.truffle.api.nodes.Node)","anchor":"queryTags(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"queryTags","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>> "},{"kind":"name","text":"queryTags"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node to query"}]}]}],"returns":{"type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an unmodifiable "},{"kind":"link","target":{"id":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},"code":true,"children":[{"kind":"text","text":"Set"}]},{"kind":"text","text":" of tag classes which where associated with this node."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns an unmodifiable "},{"kind":"link","target":{"id":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},"code":true,"children":[{"kind":"text","text":"Set"}]},{"kind":"text","text":" of tag classes which where associated with this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an unmodifiable "},{"kind":"link","target":{"id":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},"code":true,"children":[{"kind":"text","text":"Set"}]},{"kind":"text","text":" of tag classes which where associated with this node. If the instrumenter is used as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" then only nodes can be queried for tags that are associated with the current language otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. The given node must not be "},{"kind":"code","text":"null"},{"kind":"text","text":". If the given node is not instrumentable, the given node is not yet adopted by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" or the given tag was not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags"},"code":true,"children":[{"kind":"text","text":"provided"}]},{"kind":"text","text":" by the language then always an empty "},{"kind":"link","target":{"id":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},"code":true,"children":[{"kind":"text","text":"Set"}]},{"kind":"text","text":" is returned."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":477}},{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#lookupExecutionEventNode(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.instrumentation.EventBinding)","anchor":"lookupExecutionEventNode(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.instrumentation.EventBinding)","kind":"method","name":"lookupExecutionEventNode","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionEventNode","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},{"kind":"punct","text":" "},{"kind":"name","text":"lookupExecutionEventNode"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"binding"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an instrumentable node specifying the location"}]}]},{"name":"binding","type":[{"kind":"type","text":"EventBinding","ref":"com.oracle.truffle.api.instrumentation.EventBinding"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the binding to lookup the execution nodes of"}]}]}],"returns":{"type":[{"kind":"type","text":"ExecutionEventNode","ref":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode"}]},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the execution event node that was inserted at the node's location given an event binding, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the execution event node that was inserted at the node's location given an event binding, if any. This is useful to identify and find information from nodes that were created for a specific instrumentation."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":489}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Provides capabilities to attach listeners for execution, load, output and allocation events."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides capabilities to attach listeners for execution, load, output and allocation events. The instrumenter remains usable as long as the engine is not closed. The instrumenter methods are safe to be used from arbitrary other threads."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/Instrumenter.java","line":63}},{"id":"com.oracle.truffle.api.instrumentation.LoadSourceEvent","name":"LoadSourceEvent","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LoadSourceEvent"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.LoadSourceEvent#getSource()","anchor":"getSource()","kind":"method","name":"getSource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"getSource"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}]},"doc":{"summary":[{"kind":"text","text":"Returns the loaded source that caused this event."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the loaded source that caused this event."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/LoadSourceEvent.java","line":67}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a source load event from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceListener"},"code":true,"children":[{"kind":"text","text":"LoadSourceListener"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a source load event from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceListener"},"code":true,"children":[{"kind":"text","text":"LoadSourceListener"}]},{"kind":"text","text":". Instances of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceEvent"},"code":true,"children":[{"kind":"text","text":"LoadSourceEvent"}]},{"kind":"text","text":" should be neither stored, cached nor hashed. The equality and hashing behavior is undefined."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceListener"},"code":true,"children":[{"kind":"text","text":"LoadSourceListener"}]}]]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/LoadSourceEvent.java","line":54}},{"id":"com.oracle.truffle.api.instrumentation.LoadSourceListener","name":"LoadSourceListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"LoadSourceListener"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.LoadSourceListener#onLoad(com.oracle.truffle.api.instrumentation.LoadSourceEvent)","anchor":"onLoad(com.oracle.truffle.api.instrumentation.LoadSourceEvent)","kind":"method","name":"onLoad","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLoad"},{"kind":"punct","text":"("},{"kind":"type","text":"LoadSourceEvent","ref":"com.oracle.truffle.api.instrumentation.LoadSourceEvent"},{"kind":"punct","text":" "},{"kind":"param","text":"event"},{"kind":"punct","text":")"}],"params":[{"name":"event","type":[{"kind":"type","text":"LoadSourceEvent","ref":"com.oracle.truffle.api.instrumentation.LoadSourceEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an event with context information"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked whenever a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" is loaded."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked whenever a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" is loaded. The order in which multiple source event listeners are notified matches the order they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceListener(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Implementation Note:"}]},{"kind":"text","text":" Source load events are notified when the guest language implementation uses a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" by invoking "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"RootNode.getCallTarget()"}]},{"kind":"text","text":" with a root node that uses a new source in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"Node.getSourceSection()"}]},{"kind":"text","text":". It assumes that all nodes of an AST have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" as their root."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/LoadSourceListener.java","line":70}}],"doc":{"summary":[{"kind":"text","text":"A listener attached by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" to specific locations of a guest language program to listen to load source events."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A listener attached by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" to specific locations of a guest language program to listen to load source events."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/LoadSourceListener.java","line":53}},{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent","name":"LoadSourceSectionEvent","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LoadSourceSectionEvent"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns the loaded source section that caused this event."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the loaded source section that caused this event."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/LoadSourceSectionEvent.java","line":70}},{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent#getNode()","anchor":"getNode()","kind":"method","name":"getNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Returns the instrumentable Truffle node that caused this event."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the instrumentable Truffle node that caused this event."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/LoadSourceSectionEvent.java","line":79}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a source section load event from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"},"code":true,"children":[{"kind":"text","text":"LoadSourceSectionListener"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a source section load event from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"},"code":true,"children":[{"kind":"text","text":"LoadSourceSectionListener"}]},{"kind":"text","text":". Instances of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent"},"code":true,"children":[{"kind":"text","text":"LoadSourceSectionEvent"}]},{"kind":"text","text":" should be neither stored, cached nor hashed. The equality and hashing behavior is undefined."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener"},"code":true,"children":[{"kind":"text","text":"LoadSourceSectionListener"}]}]]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/LoadSourceSectionEvent.java","line":55}},{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener","name":"LoadSourceSectionListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"LoadSourceSectionListener"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.LoadSourceSectionListener#onLoad(com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent)","anchor":"onLoad(com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent)","kind":"method","name":"onLoad","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLoad"},{"kind":"punct","text":"("},{"kind":"type","text":"LoadSourceSectionEvent","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent"},{"kind":"punct","text":" "},{"kind":"param","text":"event"},{"kind":"punct","text":")"}],"params":[{"name":"event","type":[{"kind":"type","text":"LoadSourceSectionEvent","ref":"com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an event with context information"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked whenever a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":" is loaded."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked whenever a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":" is loaded. The listener might be notified for one source section multiple times but never with the same instrumented node. The order in which multiple source section event listeners are notified matches the order they are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceSectionListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"attached"}]},{"kind":"text","text":". "},{"kind":"strong","children":[{"kind":"text","text":"Implementation Note:"}]},{"kind":"text","text":" Source load events are notified when the guest language implementation uses a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" by invoking "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"RootNode.getCallTarget()"}]},{"kind":"text","text":" with a root node that uses a new source in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"Node.getSourceSection()"}]},{"kind":"text","text":". It assumes that all nodes of an AST have the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" as their root."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/LoadSourceSectionListener.java","line":73}}],"doc":{"summary":[{"kind":"text","text":"A listener attached by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" to specific locations of a guest language program to listen to sources section load events."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A listener attached by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" to specific locations of a guest language program to listen to sources section load events."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/instrumentation/LoadSourceSectionListener.java","line":54}},{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter","name":"NearestSectionFilter","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"NearestSectionFilter"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter#newBuilder(int,int)","anchor":"newBuilder(int,int)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"NearestSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"line"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"column"},{"kind":"punct","text":")"}],"params":[{"name":"line","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the line, greater than or equal to "},{"kind":"code","text":"1"}]}]},{"name":"column","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the column, or < 1 when column is unknown"}]}]}],"returns":{"type":[{"kind":"type","text":"NearestSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new builder to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":" instances"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder"},"code":true,"children":[{"kind":"text","text":"builder"}]},{"kind":"text","text":" pattern."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder"},"code":true,"children":[{"kind":"text","text":"builder"}]},{"kind":"text","text":" pattern. The filter will find source sections that are nearest to the given source line and column. To create the final filter finalize it using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"Builder.build()"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/NearestSectionFilter.java","line":103}},{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the filter attributes in a human readable form for debugging."}]}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/NearestSectionFilter.java","line":111}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Add a filter for source sections that are nearest to the given source position, according to the guest language control flow."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for source sections that are nearest to the given source position, according to the guest language control flow."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The selection of the nearest source location happens based on the provided "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]},{"kind":"text","text":" and this nearest section filter to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" create/attach methods. First location candidates are selected according to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]},{"kind":"text","text":". Based on this selection a nearest location is found using this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":". If new nearer locations are loaded then the listener/factory will be notified again. There is at most one nearest "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" at a time, therefore it is possible to detect updates by remembering and comparing the source section in the listener/factory."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Start building the nearest filter by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter#newBuilder(int,int)"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter.newBuilder(int, int)"}]},{"kind":"text","text":" and complete it by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"Builder.build()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A use-case is a debugger breakpoint, for instance, where the exact line or column is not always precise and the location needs to be updated when new code is loaded."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter#newBuilder(int,int)"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter.newBuilder(int, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#createLoadSourceSectionBinding(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.createLoadSourceSectionBinding(NearestSectionFilter, SourceSectionFilter,\n     LoadSourceSectionListener, boolean)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceSectionListener(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachLoadSourceSectionListener(NearestSectionFilter, SourceSectionFilter,\n     LoadSourceSectionListener, boolean)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.NearestSectionFilter,com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachExecutionEventFactory(NearestSectionFilter, SourceSectionFilter,\n     ExecutionEventNodeFactory)"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/NearestSectionFilter.java","line":79}},{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder","name":"NearestSectionFilter.Builder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"NearestSectionFilter.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.NearestSectionFilter","members":[{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder#anchorStart(boolean)","anchor":"anchorStart(boolean)","kind":"method","name":"anchorStart","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"NearestSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"anchorStart"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"start"},{"kind":"punct","text":")"}],"params":[{"name":"start","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"specify if we search for the nearest start or nearest end of the filtered source sections to the given location. "},{"kind":"code","text":"true"},{"kind":"text","text":" for the start and "},{"kind":"code","text":"false"},{"kind":"text","text":" for the end."}]}]}],"returns":{"type":[{"kind":"type","text":"NearestSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Specify the nearest anchor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specify the nearest anchor. By default, the start of source section is used."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/NearestSectionFilter.java","line":185}},{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder#tagIs(java.lang.Class...)","anchor":"tagIs(java.lang.Class...)","kind":"method","name":"tagIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"NearestSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"tagIs"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"tags"},{"kind":"punct","text":")"}],"params":[{"name":"tags","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a set of tags, the nearest node needs to be tagged with at least one tag from this set"}]}]}],"returns":{"type":[{"kind":"type","text":"NearestSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Specify tags of the nearest source section."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specify tags of the nearest source section. More accurate result might be provided when tags are not specified in the base source section filter by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#tagIs(java.lang.Class...)"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter.Builder.tagIs(Class...)"}]},{"kind":"text","text":", but here instead."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/NearestSectionFilter.java","line":200}},{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"NearestSectionFilter","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"NearestSectionFilter","ref":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the built filter"}]}]},"doc":{"summary":[{"kind":"text","text":"Finalizes and constructs the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finalizes and constructs the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":" instance."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/NearestSectionFilter.java","line":212}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder to configure "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":" before creating its instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder to configure "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter"},"code":true,"children":[{"kind":"text","text":"NearestSectionFilter"}]},{"kind":"text","text":" before creating its instance. Specify various parameters by calling individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":" methods. When done, call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.NearestSectionFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/NearestSectionFilter.java","line":161}},{"id":"com.oracle.truffle.api.instrumentation.ProbeNode","name":"ProbeNode","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ProbeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#UNWIND_ACTION_REENTER","anchor":"UNWIND_ACTION_REENTER","kind":"field","name":"UNWIND_ACTION_REENTER","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"UNWIND_ACTION_REENTER"}],"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":{"summary":[{"kind":"text","text":"A constant that performs reenter of the current node when returned from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onUnwind(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener.onUnwind(EventContext, VirtualFrame, Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode.onUnwind(VirtualFrame, Object)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A constant that performs reenter of the current node when returned from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener#onUnwind(com.oracle.truffle.api.instrumentation.EventContext,com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventListener.onUnwind(EventContext, VirtualFrame, Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"ExecutionEventNode.onUnwind(VirtualFrame, Object)"}]},{"kind":"text","text":"."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/instrumentation/ProbeNode.java","line":127}},{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onEnter(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"onEnter(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"onEnter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onEnter"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame of the execution."}]}]}],"doc":{"summary":[{"kind":"text","text":"Should get invoked before the node is invoked."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Should get invoked before the node is invoked."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ProbeNode.java","line":240}},{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","anchor":"onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","kind":"method","name":"onReturnValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onReturnValue"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame of the execution."}]}]},{"name":"result","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result value of the operation, must be an interop type (i.e. either implementing TruffleObject or be a primitive value), or "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Should get invoked after the node is invoked successfully."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Should get invoked after the node is invoked successfully."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ProbeNode.java","line":258}},{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#copy()","anchor":"copy()","kind":"method","name":"copy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"copy"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new copy"}]}]},"overrides":{"id":"com.oracle.truffle.api.nodes.Node#copy()"},"doc":{"summary":[{"kind":"text","text":"Creates a shallow copy of this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a shallow copy of this node."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/instrumentation/ProbeNode.java","line":295}},{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onReturnExceptionalOrUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Throwable,boolean)","anchor":"onReturnExceptionalOrUnwind(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Throwable,boolean)","kind":"method","name":"onReturnExceptionalOrUnwind","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"onReturnExceptionalOrUnwind"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"exception"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"isReturnCalled"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame of the execution."}]}]},{"name":"exception","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the exception that occurred during the execution"}]}]},{"name":"isReturnCalled","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"onReturnValue(VirtualFrame, Object)"}]},{"kind":"text","text":" was called already for this node's execution, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise. This helps to assure correct pairing of enter/return notifications."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"null"},{"kind":"text","text":" to proceed to throw of the exception, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#UNWIND_ACTION_REENTER"},"code":true,"children":[{"kind":"text","text":"UNWIND_ACTION_REENTER"}]},{"kind":"text","text":" to reenter the current node, or an interop value to return that value early from the current node (void nodes just return, ignoring the return value)."}]}]},"doc":{"summary":[{"kind":"text","text":"Should get invoked if the node did not complete successfully and handle a possible unwind."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Should get invoked if the node did not complete successfully and handle a possible unwind. When a non-"},{"kind":"code","text":"null"},{"kind":"text","text":" value is returned, a change of the execution path was requested by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventContext#createUnwind(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"unwind"}]},{"kind":"text","text":"."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/instrumentation/ProbeNode.java","line":318}},{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","anchor":"onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)","kind":"method","name":"onYield","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onYield"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame of the execution."}]}]},{"name":"result","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Should be invoked when the node yields execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Should be invoked when the node yields execution. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#yieldExceptions()"},"code":true,"children":[{"kind":"text","text":"GenerateWrapper.yieldExceptions()"}]},{"kind":"text","text":" when possible, to have "},{"kind":"code","text":"onYield()"},{"kind":"text","text":" called automatically."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When the yielded execution is resumed, call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onResume(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"onResume(VirtualFrame)"}]},{"kind":"text","text":", or use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#resumeMethodPrefix()"},"code":true,"children":[{"kind":"text","text":"GenerateWrapper.resumeMethodPrefix()"}]},{"kind":"text","text":"."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/ProbeNode.java","line":394}},{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onResume(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"onResume(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"onResume","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onResume"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame of the execution."}]}]}],"doc":{"summary":[{"kind":"text","text":"Should be invoked when execution is resumed after a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"yield"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Should be invoked when execution is resumed after a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProbeNode#onYield(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"yield"}]},{"kind":"text","text":". Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper#resumeMethodPrefix()"},"code":true,"children":[{"kind":"text","text":"GenerateWrapper.resumeMethodPrefix()"}]},{"kind":"text","text":" when possible, to have this method called automatically by the wrapper node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Override "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isSameFrame(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"RootNode.isSameFrame(Frame, Frame)"}]},{"kind":"text","text":" if necessary, to be able to match the yielded and resumed executions."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/ProbeNode.java","line":415}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents an event sink for instrumentation events that is embedded in the AST using wrappers if needed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an event sink for instrumentation events that is embedded in the AST using wrappers if needed. Instances of this class are provided by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#createWrapper(com.oracle.truffle.api.instrumentation.ProbeNode)"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode.createWrapper(ProbeNode)"}]},{"kind":"text","text":" to notify the instrumentation API about execution events."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is strongly recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.GenerateWrapper"},"code":true,"children":[{"kind":"text","text":"GenerateWrapper"}]},{"kind":"text","text":" to generate implementations of wrapper nodes. If needed to be done manually then the recommended implementation of an execute method looks as follows:"}]},{"kind":"code","text":"@Override\npublic Object execute(VirtualFrame frame) {\n    Object returnValue;\n    for (;;) {\n        boolean wasOnReturnExecuted = false;\n        try {\n            probeNode.onEnter(frame);\n            returnValue = delegateNode.executeGeneric(frame);\n            wasOnReturnExecuted = true;\n            probeNode.onReturnValue(frame, returnValue);\n            break;\n        } catch (Throwable t) {\n            Object result = probeNode.onReturnExceptionalOrUnwind(frame, t, wasOnReturnExecuted);\n            if (result == ProbeNode.UNWIND_ACTION_REENTER) {\n                continue;\n            } else if (result != null) {\n                returnValue = result;\n                break;\n            }\n            throw t;\n        }\n    }\n    return returnValue;\n}"}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ProbeNode.java","line":113}},{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags","name":"ProvidedTags","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ProvidedTags"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the set of tags that are provided by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" implementation."}]}]},"doc":{"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags"},"code":true,"children":[{"kind":"text","text":"class documentation for further details"}]}]]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ProvidedTags.java","line":71}}],"doc":{"summary":[{"kind":"text","text":"Specifies a set of tags that are provided by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" implementation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a set of tags that are provided by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" implementation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Tags are used by guest languages to indicate that a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" is a member of a certain category of nodes. For example a debugger "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" might require a guest language to tag all nodes as halt locations that should be considered as such."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/ProvidedTags.java","line":61}},{"id":"com.oracle.truffle.api.instrumentation.SourceFilter","name":"SourceFilter","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceFilter"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.SourceFilter#ANY","anchor":"ANY","kind":"field","name":"ANY","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"},{"kind":"punct","text":" "},{"kind":"name","text":"ANY"}],"type":[{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"}],"doc":{"summary":[{"kind":"text","text":"A filter that matches any source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A filter that matches any source."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceFilter.java","line":70}},{"id":"com.oracle.truffle.api.instrumentation.SourceFilter#newBuilder()","anchor":"newBuilder()","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new builder to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter"},"code":true,"children":[{"kind":"text","text":"SourceFilter"}]},{"kind":"text","text":" instances"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter"},"code":true,"children":[{"kind":"text","text":"SourceFilter"}]},{"kind":"text","text":" expression using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"},"code":true,"children":[{"kind":"text","text":"builder"}]},{"kind":"text","text":" pattern."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter"},"code":true,"children":[{"kind":"text","text":"SourceFilter"}]},{"kind":"text","text":" expression using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"},"code":true,"children":[{"kind":"text","text":"builder"}]},{"kind":"text","text":" pattern. Individual builder statements are interpreted as conjunctions (AND) while multiple parameters for individual filter expressions are treated as disjunctions (OR). To create the final filter finalize the expression using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"Builder.build()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#sourceIs(com.oracle.truffle.api.source.Source...)"},"code":true,"children":[{"kind":"text","text":"Builder.sourceIs(Source...)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#sourceIs(java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"Builder.sourceIs(Predicate)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#languageIs(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Builder.languageIs(String...)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#includeInternal(boolean)"},"code":true,"children":[{"kind":"text","text":"Builder.includeInternal(boolean)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"Builder.build()"}]}]]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceFilter.java","line":93}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A source filter represents an expression for a subset of guest language sources that are used in an Truffle interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A source filter represents an expression for a subset of guest language sources that are used in an Truffle interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Start building event filters by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter#newBuilder()"},"code":true,"children":[{"kind":"text","text":"SourceFilter.newBuilder()"}]},{"kind":"text","text":" and complete them by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"Builder.build()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter#newBuilder()"},"code":true,"children":[{"kind":"text","text":"SourceFilter.newBuilder()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachLoadSourceListener(com.oracle.truffle.api.instrumentation.SourceFilter,T,boolean)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachLoadSourceListener(SourceFilter, LoadSourceListener, boolean)"}]}]]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceFilter.java","line":63}},{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder","name":"SourceFilter.Builder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceFilter.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.SourceFilter","members":[{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#sourceIs(com.oracle.truffle.api.source.Source...)","anchor":"sourceIs(com.oracle.truffle.api.source.Source...)","kind":"method","name":"sourceIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceIs"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":"... "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for one of the given sources."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for one of the given sources."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceFilter.java","line":116}},{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#sourceIs(java.util.function.Predicate)","anchor":"sourceIs(java.util.function.Predicate)","kind":"method","name":"sourceIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceIs"},{"kind":"punct","text":"("},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":"> "},{"kind":"param","text":"predicate"},{"kind":"punct","text":")"}],"params":[{"name":"predicate","type":[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a test for source inclusion"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Adds custom predicate to filter inclusion of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"sources"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds custom predicate to filter inclusion of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"sources"}]},{"kind":"text","text":". The predicate must always return the same result for a source instance otherwise the behavior is undefined. The predicate should be able run on multiple threads at the same time."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceFilter.java","line":130}},{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#languageIs(java.lang.String...)","anchor":"languageIs(java.lang.String...)","kind":"method","name":"languageIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"languageIs"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"languageIds"},{"kind":"punct","text":")"}],"params":[{"name":"languageIds","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches one of the given language ID"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all sources that specify one of the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getLanguage()"},"code":true,"children":[{"kind":"text","text":"language ID"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all sources that specify one of the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getLanguage()"},"code":true,"children":[{"kind":"text","text":"language ID"}]},{"kind":"text","text":"."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceFilter.java","line":146}},{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#includeInternal(boolean)","anchor":"includeInternal(boolean)","kind":"method","name":"includeInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"includeInternal"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"internal"},{"kind":"punct","text":")"}],"params":[{"name":"internal","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"SourceFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter that includes or excludes "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isInternal()"},"code":true,"children":[{"kind":"text","text":"internal sources"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter that includes or excludes "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isInternal()"},"code":true,"children":[{"kind":"text","text":"internal sources"}]},{"kind":"text","text":". By default, internal sources are included, call with "},{"kind":"code","text":"false"},{"kind":"text","text":" to exclude internal code from instrumentation."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceFilter.java","line":178}},{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the built filter expression"}]}]},"doc":{"summary":[{"kind":"text","text":"Finalizes and constructs the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter"},"code":true,"children":[{"kind":"text","text":"SourceFilter"}]},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finalizes and constructs the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter"},"code":true,"children":[{"kind":"text","text":"SourceFilter"}]},{"kind":"text","text":" instance."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceFilter.java","line":189}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Configure your own "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter"},"code":true,"children":[{"kind":"text","text":"SourceFilter"}]},{"kind":"text","text":" before creating its instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configure your own "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter"},"code":true,"children":[{"kind":"text","text":"SourceFilter"}]},{"kind":"text","text":" before creating its instance. Specify various parameters by calling individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":" methods. When done, call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":"."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceFilter.java","line":103}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter","name":"SourceSectionFilter","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceSectionFilter"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter#ANY","anchor":"ANY","kind":"field","name":"ANY","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"name","text":"ANY"}],"type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":{"summary":[{"kind":"text","text":"A filter that matches everything."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A filter that matches everything."}]}]},"since":"0.18","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":78}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter#newBuilder()","anchor":"newBuilder()","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new builder to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]},{"kind":"text","text":" instances"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]},{"kind":"text","text":" expression using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},"code":true,"children":[{"kind":"text","text":"builder"}]},{"kind":"text","text":" pattern."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]},{"kind":"text","text":" expression using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},"code":true,"children":[{"kind":"text","text":"builder"}]},{"kind":"text","text":" pattern. Individual builder statements are interpreted as conjunctions (AND) while multiple parameters for individual filter expressions are treated as disjunctions (OR). To create the final filter finalize the expression using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"Builder.build()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#sourceIs(com.oracle.truffle.api.source.Source...)"},"code":true,"children":[{"kind":"text","text":"Builder.sourceIs(Source...)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#mimeTypeIs(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Builder.mimeTypeIs(String...)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#tagIs(java.lang.Class...)"},"code":true,"children":[{"kind":"text","text":"Builder.tagIs(Class...)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#tagIsNot(java.lang.Class...)"},"code":true,"children":[{"kind":"text","text":"Builder.tagIsNot(Class...)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#sourceSectionEquals(com.oracle.truffle.api.source.SourceSection...)"},"code":true,"children":[{"kind":"text","text":"Builder.sourceSectionEquals(SourceSection...)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#indexIn(int,int)"},"code":true,"children":[{"kind":"text","text":"Builder.indexIn(int, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#lineIn(int,int)"},"code":true,"children":[{"kind":"text","text":"Builder.lineIn(int, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#lineIs(int)"},"code":true,"children":[{"kind":"text","text":"Builder.lineIs(int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#rootNameIs(java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"Builder.rootNameIs(Predicate)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"Builder.build()"}]}]]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":107}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the filter expressions in a human readable form for debugging."}]}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":115}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter#includes(com.oracle.truffle.api.nodes.Node)","anchor":"includes(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"includes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"includes"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The node to check."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"True of the filter includes the node, false otherwise."}]}]},"doc":{"summary":[{"kind":"text","text":"Checks if the filter includes the given node, i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if the filter includes the given node, i.e. do the properties of the node's source section meet the conditions set by the filter."}]}]},"since":"19.0.","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":136}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter#includes(com.oracle.truffle.api.nodes.RootNode,com.oracle.truffle.api.source.SourceSection,java.util.Set)","anchor":"includes(com.oracle.truffle.api.nodes.RootNode,com.oracle.truffle.api.source.SourceSection,java.util.Set)","kind":"method","name":"includes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"includes"},{"kind":"punct","text":"("},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"rootNode"},{"kind":"punct","text":", "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"param","text":"nodeSourceSection"},{"kind":"punct","text":", "},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"originalTags"},{"kind":"punct","text":")"}],"params":[{"name":"rootNode","type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The root node to be checked against the filter."}]}]},{"name":"nodeSourceSection","type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The source section of the node to be checked against the filter."}]}]},{"name":"originalTags","type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>>"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the filter includes the source section and node. "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}]}]},"doc":{"summary":[{"kind":"text","text":"Checks if the filter includes the given root node, i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if the filter includes the given root node, i.e. do the properties of the given source section meet the conditions set by the filter without an instrumented node."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":155}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A source section filter represents an expression for a subset of tagged source sections that are used in an Truffle interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A source section filter represents an expression for a subset of tagged source sections that are used in an Truffle interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Start building event filters by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter#newBuilder()"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter.newBuilder()"}]},{"kind":"text","text":" and complete them by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"Builder.build()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter#newBuilder()"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter.newBuilder()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventFactory(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachExecutionEventFactory(SourceSectionFilter, ExecutionEventNodeFactory)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachExecutionEventListener(com.oracle.truffle.api.instrumentation.SourceSectionFilter,T)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachExecutionEventListener(SourceSectionFilter, ExecutionEventListener)"}]}]]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":71}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder","name":"SourceSectionFilter.Builder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceSectionFilter.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.SourceSectionFilter","members":[{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#sourceFilter(com.oracle.truffle.api.instrumentation.SourceFilter)","anchor":"sourceFilter(com.oracle.truffle.api.instrumentation.SourceFilter)","kind":"method","name":"sourceFilter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceFilter"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceFilter"},{"kind":"punct","text":")"}],"params":[{"name":"sourceFilter","type":[{"kind":"type","text":"SourceFilter","ref":"com.oracle.truffle.api.instrumentation.SourceFilter"}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Add a source filter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a source filter."}]}]},"since":"0.32","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":324}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#sourceIs(com.oracle.truffle.api.source.Source...)","anchor":"sourceIs(com.oracle.truffle.api.source.Source...)","kind":"method","name":"sourceIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceIs"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":"... "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections that reference one of the given sources."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections that reference one of the given sources."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":334}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#sourceIs(com.oracle.truffle.api.instrumentation.SourceSectionFilter.SourcePredicate)","anchor":"sourceIs(com.oracle.truffle.api.instrumentation.SourceSectionFilter.SourcePredicate)","kind":"method","name":"sourceIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceIs"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.SourcePredicate","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$SourcePredicate"},{"kind":"punct","text":" "},{"kind":"param","text":"predicate"},{"kind":"punct","text":")"}],"params":[{"name":"predicate","type":[{"kind":"type","text":"SourceSectionFilter.SourcePredicate","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$SourcePredicate"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a test for inclusion"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Adds custom predicate to filter inclusion of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"sources"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds custom predicate to filter inclusion of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"sources"}]},{"kind":"text","text":". The predicate must always return the same result for a source instance otherwise the behavior is undefined. The predicate should be able run on multiple threads at the same time."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":348}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#rootNameIs(java.util.function.Predicate)","anchor":"rootNameIs(java.util.function.Predicate)","kind":"method","name":"rootNameIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"rootNameIs"},{"kind":"punct","text":"("},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"predicate"},{"kind":"punct","text":")"}],"params":[{"name":"predicate","type":[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a test for inclusion"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Adds custom predicate to filter inclusion for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getName()"},"code":true,"children":[{"kind":"text","text":"root names"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds custom predicate to filter inclusion for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getName()"},"code":true,"children":[{"kind":"text","text":"root names"}]},{"kind":"text","text":". The root name might be "},{"kind":"code","text":"null"},{"kind":"text","text":" if not provided by the guest language. If the language returns a changing value it is unspecified which root name is going to be matched. The predicate must always return the same result for a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" instance otherwise the behavior is undefined. The predicate should be able run on multiple threads at the same time."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":367}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#mimeTypeIs(java.lang.String...)","anchor":"mimeTypeIs(java.lang.String...)","kind":"method","name":"mimeTypeIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"mimeTypeIs"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"mimeTypes"},{"kind":"punct","text":")"}],"params":[{"name":"mimeTypes","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches one of the given mime types"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections that declare one of the given mime-types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections that declare one of the given mime-types. Mime-types which are compared must match exactly one of the mime-types specified by the target guest language."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":384}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#tagIs(java.lang.Class...)","anchor":"tagIs(java.lang.Class...)","kind":"method","name":"tagIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"tagIs"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"tags"},{"kind":"punct","text":")"}],"params":[{"name":"tags","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches one of the given tags"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections that are tagged with one of the given tags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections that are tagged with one of the given tags."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":397}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#tagIsNot(java.lang.Class...)","anchor":"tagIsNot(java.lang.Class...)","kind":"method","name":"tagIsNot","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"tagIsNot"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"tags"},{"kind":"punct","text":")"}],"params":[{"name":"tags","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches not one of the given tags"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections that are not tagged with one of the given tags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections that are not tagged with one of the given tags."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":410}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#sourceSectionEquals(com.oracle.truffle.api.source.SourceSection...)","anchor":"sourceSectionEquals(com.oracle.truffle.api.source.SourceSection...)","kind":"method","name":"sourceSectionEquals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceSectionEquals"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"... "},{"kind":"param","text":"section"},{"kind":"punct","text":")"}],"params":[{"name":"section","type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches one of the given source sections"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections that equal one of the given source sections."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections that equal one of the given source sections."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":423}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#sourceSectionAvailableOnly(boolean)","anchor":"sourceSectionAvailableOnly(boolean)","kind":"method","name":"sourceSectionAvailableOnly","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sourceSectionAvailableOnly"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"availableOnly"},{"kind":"punct","text":")"}],"params":[{"name":"availableOnly","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" to include only non-null and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"available"}]},{"kind":"text","text":" source sections, "},{"kind":"code","text":"false"},{"kind":"text","text":" to include all."}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for available source sections."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for available source sections. By default all locations with or without available source sections are provided. If this flag is set to "},{"kind":"code","text":"true"},{"kind":"text","text":" then "},{"kind":"code","text":"null"},{"kind":"text","text":" and not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"available"}]},{"kind":"text","text":" source sections are filtered out."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":441}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#rootSourceSectionEquals(com.oracle.truffle.api.source.SourceSection...)","anchor":"rootSourceSectionEquals(com.oracle.truffle.api.source.SourceSection...)","kind":"method","name":"rootSourceSectionEquals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"rootSourceSectionEquals"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"... "},{"kind":"param","text":"section"},{"kind":"punct","text":")"}],"params":[{"name":"section","type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches one of the given root source sections"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all root source sections that equal one of the given source sections."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all root source sections that equal one of the given source sections. All descendant source sections of a matching root source section are included in the filter. This can mean in the dynamic language domain that all nodes of a function for which the root source section matches the given source section is instrumented but its inner functions and its nodes are not instrumented."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":457}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#indexNotIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"indexNotIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"indexNotIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"indexNotIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches indices that are not contained in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections which indices are not contained in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections which indices are not contained in one of the given index ranges."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":471}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#indexIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"indexIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"indexIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"indexIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches indices that are contained in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections which indices are contained in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections which indices are contained in one of the given index ranges."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":485}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#indexIn(int,int)","anchor":"indexIn(int,int)","kind":"method","name":"indexIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"indexIn"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"startIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the start index (inclusive)"}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of matched characters"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where the index is inside a startIndex (inclusive) plus a given length (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where the index is inside a startIndex (inclusive) plus a given length (exclusive)."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":500}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#lineIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"lineIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"lineIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"lineIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches lines that are contained in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where lines are contained in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where lines are contained in one of the given index ranges. Line indices must be greater than or equal to "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":512}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#lineNotIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"lineNotIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"lineNotIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"lineNotIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches lines that are not contained in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where lines are not contained in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where lines are not contained in one of the given index ranges. Line indices must be greater than or equal to "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":526}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#lineIn(int,int)","anchor":"lineIn(int,int)","kind":"method","name":"lineIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"lineIn"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startLine"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"startLine","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the start line (inclusive)"}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of matched lines"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where the line is inside a startLine (first index inclusive) plus a given length (last index exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where the line is inside a startLine (first index inclusive) plus a given length (last index exclusive)."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":541}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#lineStartsIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"lineStartsIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"lineStartsIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"lineStartsIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches lines that start in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where the line starts in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where the line starts in one of the given index ranges. Line indices must be greater than or equal to "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":556}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#lineEndsIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"lineEndsIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"lineEndsIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"lineEndsIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches lines that end in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where the line ends in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where the line ends in one of the given index ranges. Line indices must be greater than or equal to "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":570}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#columnIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"columnIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"columnIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"columnIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches columns that are contained in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where the columns are contained in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where the columns are contained in one of the given index ranges. Column indices must be greater than or equal to "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":584}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#columnNotIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"columnNotIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"columnNotIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"columnNotIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches columns that are not contained in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where columns are not contained in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where columns are not contained in one of the given index ranges. Column indices must be greater than or equal to "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":598}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#columnIn(int,int)","anchor":"columnIn(int,int)","kind":"method","name":"columnIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"columnIn"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startColumn"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"startColumn","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the start column (inclusive)"}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of matched columns"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where the column is inside a startColumn (first index inclusive) plus a given length (last index exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where the column is inside a startColumn (first index inclusive) plus a given length (last index exclusive)."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":613}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#columnStartsIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"columnStartsIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"columnStartsIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"columnStartsIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches columns that start in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all source sections where the column starts in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all source sections where the column starts in one of the given index ranges. Column indices must be greater than or equal to "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":628}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#columnEndsIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","anchor":"columnEndsIn(com.oracle.truffle.api.instrumentation.SourceSectionFilter.IndexRange...)","kind":"method","name":"columnEndsIn","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"columnEndsIn"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"... "},{"kind":"param","text":"ranges"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"matches columns that end in one of the given index ranges"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all sources sections where the column ends in one of the given index ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all sources sections where the column ends in one of the given index ranges. Column indices must be greater than or equal to "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":642}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#lineIs(int)","anchor":"lineIs(int)","kind":"method","name":"lineIs","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"lineIs"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"line"},{"kind":"punct","text":")"}],"params":[{"name":"line","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the line to be matched"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter for all sources sections where the line is exactly the given line."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter for all sources sections where the line is exactly the given line. Line indices must be greater than or equal to "},{"kind":"code","text":"1"},{"kind":"text","text":". *"}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":665}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#includeInternal(boolean)","anchor":"includeInternal(boolean)","kind":"method","name":"includeInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"includeInternal"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"internal"},{"kind":"punct","text":")"}],"params":[{"name":"internal","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a filter that includes or excludes "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isInternal()"},"code":true,"children":[{"kind":"text","text":"internal root nodes"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a filter that includes or excludes "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isInternal()"},"code":true,"children":[{"kind":"text","text":"internal root nodes"}]},{"kind":"text","text":". By default, internal roots are included, call with "},{"kind":"code","text":"false"},{"kind":"text","text":" to exclude internal code from instrumentation."}]}]},"since":"0.29","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":677}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#and(com.oracle.truffle.api.instrumentation.SourceSectionFilter)","anchor":"and(com.oracle.truffle.api.instrumentation.SourceSectionFilter)","kind":"method","name":"and","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"and"},{"kind":"punct","text":"("},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":")"}],"params":[{"name":"filter","type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an existing filter to be included"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.Builder","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the builder to chain calls"}]}]},"doc":{"summary":[{"kind":"text","text":"Adds all the filters defined in the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"filter"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds all the filters defined in the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"filter"}]},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":689}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the built filter expression"}]}]},"doc":{"summary":[{"kind":"text","text":"Finalizes and constructs the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finalizes and constructs the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]},{"kind":"text","text":" instance."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":702}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Configure your own "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]},{"kind":"text","text":" before creating its instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configure your own "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]},{"kind":"text","text":" before creating its instance. Specify various parameters by calling individual "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":" methods. When done, call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$Builder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":311}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange","name":"SourceSectionFilter.IndexRange","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceSectionFilter.IndexRange"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.SourceSectionFilter","members":[{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange#between(int,int)","anchor":"between(int,int)","kind":"method","name":"between","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":" "},{"kind":"name","text":"between"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"endIndex"},{"kind":"punct","text":")"}],"params":[{"name":"startIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the start index (inclusive)"}]}]},{"name":"endIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the end index (exclusive)"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new index range"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if parameter invariants are violated"}]}]}],"doc":{"summary":[{"kind":"text","text":"Constructs a new index range between one a first index inclusive and a second index exclusive."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructs a new index range between one a first index inclusive and a second index exclusive. Parameters must comply "},{"kind":"code","text":"startIndex >= 0"},{"kind":"text","text":" and "},{"kind":"code","text":"startIndex <= endIndex"},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":773}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange#byLength(int,int)","anchor":"byLength(int,int)","kind":"method","name":"byLength","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"},{"kind":"punct","text":" "},{"kind":"name","text":"byLength"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"startIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the start index (inclusive)"}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the length of the range"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSectionFilter.IndexRange","ref":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new index range"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if parameter invariants are violated"}]}]}],"doc":{"summary":[{"kind":"text","text":"Constructs a new index range with a given first index inclusive and a given length."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructs a new index range with a given first index inclusive and a given length. Parameters must comply "},{"kind":"code","text":"startIndex >= 0"},{"kind":"text","text":" and "},{"kind":"code","text":"length >= 0"},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":792}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a human readable version of the index range"}]}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":809}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a range between two indices within a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"source section filter"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a range between two indices within a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"source section filter"}]},{"kind":"text","text":". Instances are immutable."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter"},"code":true,"children":[{"kind":"text","text":"SourceSectionFilter"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange#between(int,int)"},"code":true,"children":[{"kind":"text","text":"between(int, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$IndexRange#byLength(int,int)"},"code":true,"children":[{"kind":"text","text":"byLength(int, int)"}]}]]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":752}},{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$SourcePredicate","name":"SourceSectionFilter.SourcePredicate","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceSectionFilter.SourcePredicate"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":">"}],"interfaces":[[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":">"}]],"enclosing":"com.oracle.truffle.api.instrumentation.SourceSectionFilter","members":[{"id":"com.oracle.truffle.api.instrumentation.SourceSectionFilter$SourcePredicate#test(com.oracle.truffle.api.source.Source)","anchor":"test(com.oracle.truffle.api.source.Source)","kind":"method","name":"test","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"test"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source object to filter"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.util.function.Predicate#test(T)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html#test(T)"},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given source should be tested positive and "},{"kind":"code","text":"false"},{"kind":"text","text":" if the sources should be filtered."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given source should be tested positive and "},{"kind":"code","text":"false"},{"kind":"text","text":" if the sources should be filtered."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":740}}],"inherited":[{"from":{"id":"java.util.function.Predicate","text":"Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},"kind":"interface","members":[{"id":"java.util.function.Predicate#and(java.util.function.Predicate)","text":"and","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html#and(java.util.function.Predicate)"},{"id":"java.util.function.Predicate#negate()","text":"negate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html#negate()"},{"id":"java.util.function.Predicate#or(java.util.function.Predicate)","text":"or","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html#or(java.util.function.Predicate)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a predicate for source objects."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a predicate for source objects."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/instrumentation/SourceSectionFilter.java","line":731}},{"id":"com.oracle.truffle.api.instrumentation.StandardTags","name":"StandardTags","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StandardTags"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Set of standard tags usable by language agnostic tools."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set of standard tags usable by language agnostic tools. Language should "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ProvidedTags"},"code":true,"children":[{"kind":"text","text":"provide"}]},{"kind":"text","text":" an implementation of these tags in order to support a wide variety of tools."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":54}},{"id":"com.oracle.truffle.api.instrumentation.StandardTags$CallTag","name":"StandardTags.CallTag","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StandardTags.CallTag"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"superclass":[{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"ancestors":[{"id":"com.oracle.truffle.api.instrumentation.Tag"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.StandardTags","inherited":[{"from":{"id":"com.oracle.truffle.api.instrumentation.Tag","text":"Tag"},"kind":"class","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","text":"findProvidedTag"},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","text":"getIdentifier"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks program locations that represent a call to other guest language functions, methods or closures."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks program locations that represent a call to other guest language functions, methods or closures."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use case descriptions:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Debugger:"}]},{"kind":"text","text":" Marks program locations where "},{"kind":"emphasis","children":[{"kind":"text","text":"returning"}]},{"kind":"text","text":" or "},{"kind":"emphasis","children":[{"kind":"text","text":"stepping out"}]},{"kind":"text","text":" from a method/procedure/closure call should halt. The debugger will halt at the code location that has just executed the call that returned."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The CallTag uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag$Identifier"},"code":true,"children":[{"kind":"text","text":"identifier"}]},{"kind":"text","text":" "},{"kind":"code","text":"\"CALL\""},{"kind":"text","text":". A node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$CallTag"},"code":true,"children":[{"kind":"text","text":"CallTag"}]},{"kind":"text","text":" must provide a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":", if its root node provides a source section."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the a node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$CallTag"},"code":true,"children":[{"kind":"text","text":"call"}]},{"kind":"text","text":" returns a non "},{"kind":"code","text":"null"},{"kind":"text","text":" value then it must be an interop value. There are assertions in place verifying this when Java assertions are enabled (-ea)."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":115}},{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ExpressionTag","name":"StandardTags.ExpressionTag","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StandardTags.ExpressionTag"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"superclass":[{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"ancestors":[{"id":"com.oracle.truffle.api.instrumentation.Tag"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.StandardTags","inherited":[{"from":{"id":"com.oracle.truffle.api.instrumentation.Tag","text":"Tag"},"kind":"class","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","text":"findProvidedTag"},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","text":"getIdentifier"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks program locations as to be considered expressions of the languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks program locations as to be considered expressions of the languages. Common examples for expressions are:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Literal expressions"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Arithmetic expressions like addition and multiplication"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Condition expressions"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Function calls"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Array, Object or variable reads and writes"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Instantiations"}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Use case descriptions:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Coverage:"}]},{"kind":"text","text":" To compute expression coverage."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Debugger:"}]},{"kind":"text","text":" Fine grained debugging of expressions. It is optional to implement the expression tag to support debuggers."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The ExpressionTag uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag$Identifier"},"code":true,"children":[{"kind":"text","text":"identifier"}]},{"kind":"text","text":" "},{"kind":"code","text":"\"EXPRESSION\""},{"kind":"text","text":". A node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ExpressionTag"},"code":true,"children":[{"kind":"text","text":"ExpressionTag"}]},{"kind":"text","text":" must provide a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":", if its root node provides a source section. *"}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the a node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ExpressionTag"},"code":true,"children":[{"kind":"text","text":"expression"}]},{"kind":"text","text":" returns a non "},{"kind":"code","text":"null"},{"kind":"text","text":" value then it must be an interop value. There are assertions in place verifying this when Java assertions are enabled (-ea)."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":209}},{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ReadVariableTag","name":"StandardTags.ReadVariableTag","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StandardTags.ReadVariableTag"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"superclass":[{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"ancestors":[{"id":"com.oracle.truffle.api.instrumentation.Tag"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.StandardTags","members":[{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ReadVariableTag#NAME","anchor":"NAME","kind":"field","name":"NAME","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"NAME"}],"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"constant":"\"readVariableName\"","doc":{"summary":[{"kind":"text","text":"Property of the node object that contains name of the variable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Property of the node object that contains name of the variable."}]}]},"since":"20.0.0","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":279}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.instrumentation.Tag","text":"Tag"},"kind":"class","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","text":"findProvidedTag"},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","text":"getIdentifier"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks program locations to be considered as reads of variables of the languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks program locations to be considered as reads of variables of the languages."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use case descriptions:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Language Server Protocol:"}]},{"kind":"text","text":" Marks every read of a variable to support the "},{"kind":"emphasis","children":[{"kind":"text","text":"documentHighlight"}]},{"kind":"text","text":", "},{"kind":"emphasis","children":[{"kind":"text","text":"hover"}]},{"kind":"text","text":", "},{"kind":"emphasis","children":[{"kind":"text","text":"definition"}]},{"kind":"text","text":" and "},{"kind":"emphasis","children":[{"kind":"text","text":"references"}]},{"kind":"text","text":" requests."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"To determine the name of the variable, it is required that a node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ReadVariableTag"},"code":true,"children":[{"kind":"text","text":"ReadVariableTag"}]},{"kind":"text","text":" also provides a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"node object"}]},{"kind":"text","text":" that has "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ReadVariableTag#NAME"},"code":true,"children":[{"kind":"text","text":"ReadVariableTag.NAME"}]},{"kind":"text","text":" property. The value of that property is either:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"a String name of the variable (in that case the node's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":" is considered as the variable's source section),"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"an object that provides name and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.asString(Object)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getSourceLocation(Object)"}]},{"kind":"text","text":" respectively,"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"an array of objects when multiple variables are being read, where each array element provides name and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" as specified above."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Furthermore, nodes tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$ReadVariableTag"},"code":true,"children":[{"kind":"text","text":"ReadVariableTag"}]},{"kind":"text","text":" have to provide a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":"."}]}]},"since":"20.0.0","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":271}},{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootBodyTag","name":"StandardTags.RootBodyTag","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StandardTags.RootBodyTag"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"superclass":[{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"ancestors":[{"id":"com.oracle.truffle.api.instrumentation.Tag"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.StandardTags","inherited":[{"from":{"id":"com.oracle.truffle.api.instrumentation.Tag","text":"Tag"},"kind":"class","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","text":"findProvidedTag"},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","text":"getIdentifier"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks program locations as bodies of a function, method or closure."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks program locations as bodies of a function, method or closure. The root prolog and epilog is not a part of this node, what makes a difference from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootTag"},"code":true,"children":[{"kind":"text","text":"RootTag"}]},{"kind":"text","text":". In particular, when the implementation copies "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getArguments()"},"code":true,"children":[{"kind":"text","text":"Frame.getArguments()"}]},{"kind":"text","text":" into frame slots, it should do it before this node for the instrumentation to work correctly."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use case descriptions:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Profiler:"}]},{"kind":"text","text":" Marks body of every root that should be profiled and where local variables are initialized and ready to be retrieved."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The RootBodyTag uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag$Identifier"},"code":true,"children":[{"kind":"text","text":"identifier"}]},{"kind":"text","text":" "},{"kind":"code","text":"\"ROOT_BODY\""},{"kind":"text","text":". A node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootBodyTag"},"code":true,"children":[{"kind":"text","text":"RootBodyTag"}]},{"kind":"text","text":" must provide a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":" , if its root node provides a source section."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the a node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootBodyTag"},"code":true,"children":[{"kind":"text","text":"root body"}]},{"kind":"text","text":" returns a non "},{"kind":"code","text":"null"},{"kind":"text","text":" value then it must be an interop value. There are assertions in place verifying this when Java assertions are enabled (-ea)."}]}]},"since":"19.2.0","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":174}},{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootTag","name":"StandardTags.RootTag","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StandardTags.RootTag"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"superclass":[{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"ancestors":[{"id":"com.oracle.truffle.api.instrumentation.Tag"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.StandardTags","inherited":[{"from":{"id":"com.oracle.truffle.api.instrumentation.Tag","text":"Tag"},"kind":"class","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","text":"findProvidedTag"},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","text":"getIdentifier"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks program locations as root of a function, method or closure."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks program locations as root of a function, method or closure. The root prolog should be executed by this node. In particular, when the implementation copies "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getArguments()"},"code":true,"children":[{"kind":"text","text":"Frame.getArguments()"}]},{"kind":"text","text":" into frame slots, it should do it here for the instrumentation to work correctly. As a result, local scope might be incomplete for instruments, as the prolog does not run before this node is entered and epilog may do destructions before this node is exited."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use case descriptions:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Debugger:"}]},{"kind":"text","text":" Use this tag to unwind frames."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The RootTag uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag$Identifier"},"code":true,"children":[{"kind":"text","text":"identifier"}]},{"kind":"text","text":" "},{"kind":"code","text":"\"ROOT\""},{"kind":"text","text":". A node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootTag"},"code":true,"children":[{"kind":"text","text":"RootTag"}]},{"kind":"text","text":" must provide a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":", if its root node provides a source section."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the a node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$RootTag"},"code":true,"children":[{"kind":"text","text":"root"}]},{"kind":"text","text":" returns a non "},{"kind":"code","text":"null"},{"kind":"text","text":" value then it must be an interop value. There are assertions in place verifying this when Java assertions are enabled (-ea)."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":145}},{"id":"com.oracle.truffle.api.instrumentation.StandardTags$StatementTag","name":"StandardTags.StatementTag","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StandardTags.StatementTag"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"superclass":[{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"ancestors":[{"id":"com.oracle.truffle.api.instrumentation.Tag"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.StandardTags","inherited":[{"from":{"id":"com.oracle.truffle.api.instrumentation.Tag","text":"Tag"},"kind":"class","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","text":"findProvidedTag"},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","text":"getIdentifier"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks program locations that represent a statement of a language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks program locations that represent a statement of a language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use case descriptions:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Debugger:"}]},{"kind":"text","text":" Marks program locations where ordinary stepping should halt. The debugger will halt just "},{"kind":"emphasis","children":[{"kind":"text","text":"before"}]},{"kind":"text","text":" a code location is executed that is marked with this tag."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In most languages, this means statements are distinct from expressions and only one node representing the statement should be tagged. Subexpressions are typically not tagged so that for example a step-over operation will stop at the next independent statement to get the desired behavior."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The StatemenTag uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag$Identifier"},"code":true,"children":[{"kind":"text","text":"identifier"}]},{"kind":"text","text":" "},{"kind":"code","text":"\"STATEMENT\""},{"kind":"text","text":". A node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$StatementTag"},"code":true,"children":[{"kind":"text","text":"StatementTag"}]},{"kind":"text","text":" must provide a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":", if its root node provides a source section."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the a node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$StatementTag"},"code":true,"children":[{"kind":"text","text":"statement"}]},{"kind":"text","text":" returns a non "},{"kind":"code","text":"null"},{"kind":"text","text":" value then it must be an interop value. There are assertions in place verifying this when Java assertions are enabled (-ea)."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":87}},{"id":"com.oracle.truffle.api.instrumentation.StandardTags$TryBlockTag","name":"StandardTags.TryBlockTag","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StandardTags.TryBlockTag"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"superclass":[{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"ancestors":[{"id":"com.oracle.truffle.api.instrumentation.Tag"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.StandardTags","members":[{"id":"com.oracle.truffle.api.instrumentation.StandardTags$TryBlockTag#CATCHES","anchor":"CATCHES","kind":"field","name":"CATCHES","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"CATCHES"}],"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"constant":"\"catches\"","doc":{"summary":[{"kind":"text","text":"Name of the "},{"kind":"code","text":"catches"},{"kind":"text","text":" function."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Name of the "},{"kind":"code","text":"catches"},{"kind":"text","text":" function."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":237}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.instrumentation.Tag","text":"Tag"},"kind":"class","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","text":"findProvidedTag"},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","text":"getIdentifier"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks program locations to be considered as try blocks, that are followed by catch."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks program locations to be considered as try blocks, that are followed by catch. To determine which exceptions are caught by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"InstrumentableNode"}]},{"kind":"text","text":" tagged with this tag, the node might provide a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"node object"}]},{"kind":"text","text":" that has "},{"kind":"code","text":"catches"},{"kind":"text","text":" function, which takes a an interop value that returns "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isException(Object)"}]},{"kind":"text","text":" and returns a boolean value indicating whether the try block catches the exception, or not. When this block catches all exceptions, no special node object or catches function needs to be provided."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":229}},{"id":"com.oracle.truffle.api.instrumentation.StandardTags$WriteVariableTag","name":"StandardTags.WriteVariableTag","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StandardTags.WriteVariableTag"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"superclass":[{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"}],"ancestors":[{"id":"com.oracle.truffle.api.instrumentation.Tag"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.StandardTags","members":[{"id":"com.oracle.truffle.api.instrumentation.StandardTags$WriteVariableTag#NAME","anchor":"NAME","kind":"field","name":"NAME","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"NAME"}],"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"constant":"\"writeVariableName\"","doc":{"summary":[{"kind":"text","text":"Property of the node object that contains name of the variable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Property of the node object that contains name of the variable."}]}]},"since":"20.0.0","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":322}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.instrumentation.Tag","text":"Tag"},"kind":"class","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","text":"findProvidedTag"},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","text":"getIdentifier"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks program locations to be considered as writes of variables of the languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks program locations to be considered as writes of variables of the languages."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use case descriptions:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Language Server Protocol:"}]},{"kind":"text","text":" Marks every write of a variable to support the "},{"kind":"emphasis","children":[{"kind":"text","text":"documentHighlight"}]},{"kind":"text","text":", "},{"kind":"emphasis","children":[{"kind":"text","text":"hover"}]},{"kind":"text","text":", "},{"kind":"emphasis","children":[{"kind":"text","text":"definition"}]},{"kind":"text","text":" and "},{"kind":"emphasis","children":[{"kind":"text","text":"references"}]},{"kind":"text","text":" requests."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"To determine the name of the variable, it is required that a node tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$WriteVariableTag"},"code":true,"children":[{"kind":"text","text":"WriteVariableTag"}]},{"kind":"text","text":" also provides a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#getNodeObject()"},"code":true,"children":[{"kind":"text","text":"node object"}]},{"kind":"text","text":" that has "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$WriteVariableTag#NAME"},"code":true,"children":[{"kind":"text","text":"WriteVariableTag.NAME"}]},{"kind":"text","text":" property. The value of that property is either:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"a String name of the variable (in that case the node's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":" is considered as the variable's source section),"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"an object that provides name and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.asString(Object)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getSourceLocation(Object)"}]},{"kind":"text","text":" respectively,"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"an array of objects when multiple variables are being read, where each array element provides name and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":" as specified above."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Furthermore, nodes tagged with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags$WriteVariableTag"},"code":true,"children":[{"kind":"text","text":"WriteVariableTag"}]},{"kind":"text","text":" have to provide a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"source section"}]},{"kind":"text","text":"."}]}]},"since":"20.0.0","source":{"path":"com/oracle/truffle/api/instrumentation/StandardTags.java","line":314}},{"id":"com.oracle.truffle.api.instrumentation.Tag","name":"Tag","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Tag"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.Tag#<init>()","anchor":"<init>()","kind":"constructor","name":"Tag","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Tag"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"No instances of tags allowed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"No instances of tags allowed. Tags are marker classes."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Tag.java","line":68}},{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","anchor":"findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)","kind":"method","name":"findProvidedTag","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":"> "},{"kind":"name","text":"findProvidedTag"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"tagId"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}]},{"name":"tagId","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Finds a provided tag by the language using its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag$Identifier"},"code":true,"children":[{"kind":"text","text":"identifier"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds a provided tag by the language using its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag$Identifier"},"code":true,"children":[{"kind":"text","text":"identifier"}]},{"kind":"text","text":". If the language implementation class is not yet loaded then this method will force the loading. Therefore it is not recommended to iterate over the entire list of languages and request all provided tags. It is guaranteed that there is only one provided tag class per tag identifier and language. For different languages the same tag id might refer to different tag classes."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Tag.java","line":81}},{"id":"com.oracle.truffle.api.instrumentation.Tag#getIdentifier(java.lang.Class)","anchor":"getIdentifier(java.lang.Class)","kind":"method","name":"getIdentifier","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getIdentifier"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":"> "},{"kind":"param","text":"tag"},{"kind":"punct","text":")"}],"params":[{"name":"tag","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Tag","ref":"com.oracle.truffle.api.instrumentation.Tag"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the tag to return the alias for."}]}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the alias string"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the alias of a particular tag or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no alias was specified for this tag."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the alias of a particular tag or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no alias was specified for this tag."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Tag.java","line":106}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Base class for tags used in the Truffle instrumentation framework."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Base class for tags used in the Truffle instrumentation framework."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.StandardTags"},"code":true,"children":[{"kind":"text","text":"For the standard set of tags"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"to find a provided tag of a language"}]}]]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Tag.java","line":61}},{"id":"com.oracle.truffle.api.instrumentation.Tag$Identifier","name":"Tag.Identifier","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Tag.Identifier"}],"enclosing":"com.oracle.truffle.api.instrumentation.Tag","members":[{"id":"com.oracle.truffle.api.instrumentation.Tag$Identifier#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the identifier value as string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the identifier value as string."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Tag.java","line":131}}],"doc":{"summary":[{"kind":"text","text":"Annotation applied to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag"},"code":true,"children":[{"kind":"text","text":"Tag"}]},{"kind":"text","text":" subclasses to specify the tag identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotation applied to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag"},"code":true,"children":[{"kind":"text","text":"Tag"}]},{"kind":"text","text":" subclasses to specify the tag identifier. The tag identifier can be used to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Tag#findProvidedTag(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"find"}]},{"kind":"text","text":" and load tag classes used by tools."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/instrumentation/Tag.java","line":122}},{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener","name":"ThreadsActivationListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ThreadsActivationListener"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener#onEnterThread(com.oracle.truffle.api.TruffleContext)","anchor":"onEnterThread(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"onEnterThread","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onEnterThread"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context being entered on the current thread"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notified when a context is entered on the "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"current thread"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notified when a context is entered on the "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"current thread"}]},{"kind":"text","text":". Entering a thread indicates that the context is currently active. A context maybe entered multiple times per thread. This method is executed frequently and must be designed for compilation. If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages may be executed without a context being entered."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/ThreadsActivationListener.java","line":80}},{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener#onLeaveThread(com.oracle.truffle.api.TruffleContext)","anchor":"onLeaveThread(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"onLeaveThread","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onLeaveThread"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context being left on the current thread"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notified when a context is entered on the "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"current thread"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notified when a context is entered on the "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"current thread"}]},{"kind":"text","text":". Leaving a thread indicates that the context is no longer active on that thread. A context maybe left multiple times per thread. This method is executed frequently and must be designed for compilation."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/ThreadsActivationListener.java","line":91}}],"doc":{"summary":[{"kind":"text","text":"Listener that allows to be notified when threads become active and deactivated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Listener that allows to be notified when threads become active and deactivated. This operation may called more frequently than the thread initialization with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsListener"},"code":true,"children":[{"kind":"text","text":"ThreadsListener"}]},{"kind":"text","text":", therefore the implementation of the threads activation listener needs to be designed for compilation. Care needs to be taken to not unnecessarily slow down thread activation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The event notification starts immediately after the listener is registered. It is therefore possible that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener#onLeaveThread(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"onLeaveThread(TruffleContext)"}]},{"kind":"text","text":" is called without "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener#onEnterThread(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"onEnterThread(TruffleContext)"}]},{"kind":"text","text":" ever being invoked, if the listener is attached in parallel. When any of the listener methods are executed then the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsActivationListener"},"code":true,"children":[{"kind":"text","text":"ThreadsActivationListener"}]},{"kind":"text","text":" is guaranteed to be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":". The provided "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" may be a PE constant, but it is not guaranteed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Common use-cases for threads activation include capturing the time the context is active, changing thread priorities or measuring thread allocated bytes of a context."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachThreadsActivationListener(com.oracle.truffle.api.instrumentation.ThreadsActivationListener)"},"code":true,"children":[{"kind":"text","text":"to register a listener"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/ThreadsActivationListener.java","line":67}},{"id":"com.oracle.truffle.api.instrumentation.ThreadsListener","name":"ThreadsListener","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ThreadsListener"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.ThreadsListener#onThreadInitialized(com.oracle.truffle.api.TruffleContext,java.lang.Thread)","anchor":"onThreadInitialized(com.oracle.truffle.api.TruffleContext,java.lang.Thread)","kind":"method","name":"onThreadInitialized","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onThreadInitialized"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context the thread is initialized in"}]}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the initialized thread"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about initialization of a thread to be used for a guest language execution in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about initialization of a thread to be used for a guest language execution in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":". If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages may be executed without a context being entered."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ThreadsListener.java","line":73}},{"id":"com.oracle.truffle.api.instrumentation.ThreadsListener#onThreadDisposed(com.oracle.truffle.api.TruffleContext,java.lang.Thread)","anchor":"onThreadDisposed(com.oracle.truffle.api.TruffleContext,java.lang.Thread)","kind":"method","name":"onThreadDisposed","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onThreadDisposed"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context the thread is disposed from"}]}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread"}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies about disposal of thread-related resources that were used for a guest language execution in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies about disposal of thread-related resources that were used for a guest language execution in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ThreadsListener.java","line":83}}],"doc":{"summary":[{"kind":"text","text":"Listener to be notified about changes of threads in guest language application."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Listener to be notified about changes of threads in guest language application."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachThreadsListener(T,boolean)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachThreadsListener(com.oracle.truffle.api.instrumentation.ThreadsListener, boolean)"}]},{"kind":"text","text":" to register an implementation of this listener. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.EventBinding#dispose()"},"code":true,"children":[{"kind":"text","text":"EventBinding.dispose()"}]},{"kind":"text","text":" to unregister."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The listener gets called when a thread is initialized for use in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":" or thread-related resources are disposed in a context. The notification calls do not say anything about the actual life-time of the thread as such, which may live before the initialization and may continue to live after the disposal."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter#attachThreadsListener(T,boolean)"},"code":true,"children":[{"kind":"text","text":"Instrumenter.attachThreadsListener(com.oracle.truffle.api.instrumentation.ThreadsListener,\n     boolean)"}]}]]},"since":"0.30","source":{"path":"com/oracle/truffle/api/instrumentation/ThreadsListener.java","line":61}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument","name":"TruffleInstrument","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleInstrument"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#<init>()","anchor":"<init>()","kind":"constructor","name":"TruffleInstrument","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleInstrument"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor for subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for subclasses."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":138}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#locals","anchor":"locals","kind":"field","name":"locals","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleInstrument.ContextLocalProvider","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider"},{"kind":"punct","text":" "},{"kind":"name","text":"locals"}],"type":[{"kind":"type","text":"TruffleInstrument.ContextLocalProvider","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider"}],"doc":{"summary":[{"kind":"text","text":"Provider for creating context local and context thread local references."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provider for creating context local and context thread local references."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextLocal(TruffleInstrument.ContextLocalFactory)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextThreadLocal(TruffleInstrument.ContextThreadLocalFactory)"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":316}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","anchor":"onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","kind":"method","name":"onCreate","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onCreate"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"env"},{"kind":"punct","text":")"}],"params":[{"name":"env","type":[{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"environment information for the instrument"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked once on each newly allocated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked once on each newly allocated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":" instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The method may "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#registerService(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"register"}]},{"kind":"text","text":" additional "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#services()"},"code":true,"children":[{"kind":"text","text":"services"}]},{"kind":"text","text":" - e.g. objects to be exposed via "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Instrument#lookup(java.lang.Class)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Instrument.html#lookup(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"lookup query"}]},{"kind":"text","text":". For example to expose a debugger one could define an abstract debugger controller:"}]},{"kind":"code","language":"java","text":"public abstract class DebuggerController {\n    DebuggerController() {\n    }\n\n    public abstract void installBreakpoint(int i, Callback callback);\n\n    public abstract void stepInto(Callback callback);\n\n    public abstract void stepOut(Callback callback);\n\n    public abstract void stepOver(Callback callback);\n\n    public interface Callback {\n\n        void halted(DebuggerController debugger, EventContext haltedAt);\n\n    }\n\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"and declare it as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#services()"},"code":true,"children":[{"kind":"text","text":"service"}]},{"kind":"text","text":" associated with the instrument, implement it, instantiate and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#registerService(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"register"}]},{"kind":"text","text":" in own's instrument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"onCreate"}]},{"kind":"text","text":" method:"}]},{"kind":"code","language":"java","text":"@Registration(id = DebuggerExample.ID, services = DebuggerController.class)\npublic final class DebuggerExample extends TruffleInstrument {\n    private Controller controller;\n\n    @Override\n    protected void onCreate(Env env) {\n        assert this.controller == null;\n        this.controller = new Controller(env.getInstrumenter());\n        env.registerService(controller);\n    }\n\n    private static final class Controller extends DebuggerController {\n        private final Instrumenter instrumenter;\n        private EventBinding<?> stepping;\n        private Callback currentStatementCallback;\n\n        Controller(Instrumenter instrumenter) {\n            this.instrumenter = instrumenter;\n        }"},{"kind":"paragraph","children":[{"kind":"text","text":"If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages are executed without a context being entered."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getInstrumenter()"},"code":true,"children":[{"kind":"text","text":"Env.getInstrumenter()"}]}]]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":347}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onPreinitialize(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","anchor":"onPreinitialize(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","kind":"method","name":"onPreinitialize","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"onPreinitialize"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"env"},{"kind":"punct","text":")"}],"params":[{"name":"env","type":[{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"environment information for the instrument"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the instrument state can be retained in the preinitialized engine, or "},{"kind":"code","text":"false"},{"kind":"text","text":" to fail engine preinitialization"}]}]},"doc":{"summary":[{"kind":"text","text":"Invoked once on an initialized "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" when its engine is preinitialized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked once on an initialized "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" when its engine is preinitialized. This method is called after all contexts have been prepared and without an entered context. Services of other instruments may be looked up; instruments initialized by such lookups receive this callback as well. When an explicitly preinitialized engine is consumed, the instrument's options must match, including which options were explicitly set. There is no consumption-time patch callback. By default, instruments do not support preinitialization."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":363}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onFinalize(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","anchor":"onFinalize(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","kind":"method","name":"onFinalize","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onFinalize"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"env"},{"kind":"punct","text":")"}],"params":[{"name":"env","type":[{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"environment information for the instrument"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked once on an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"children":[{"kind":"text","text":"instance"}]},{"kind":"text","text":" just before all instruments and languages are going to be disposed, possibly because the underlying "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"children":[{"kind":"text","text":"engine"}]},{"kind":"text","text":" is going to be closed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked once on an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"children":[{"kind":"text","text":"instance"}]},{"kind":"text","text":" just before all instruments and languages are going to be disposed, possibly because the underlying "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"children":[{"kind":"text","text":"engine"}]},{"kind":"text","text":" is going to be closed. This method is called before "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onDispose(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"onDispose(Env)"}]},{"kind":"text","text":" and the instrument must remain usable after finalization. The instrument can prepare for disposal while still having other instruments not disposed yet. In the event of VM shutdown, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onDispose(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"onDispose(Env)"}]},{"kind":"text","text":" for active instruments on unclosed "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"engines"}]},{"kind":"text","text":" is not called, and so in case the instrument is supposed to do some specific action before its disposal, e.g. print some kind of summary, it should be done in this method."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":381}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onDispose(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","anchor":"onDispose(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)","kind":"method","name":"onDispose","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onDispose"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"},{"kind":"punct","text":" "},{"kind":"param","text":"env"},{"kind":"punct","text":")"}],"params":[{"name":"env","type":[{"kind":"type","text":"TruffleInstrument.Env","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"environment information for the instrument"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invoked once on an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"children":[{"kind":"text","text":"instance"}]},{"kind":"text","text":" when it becomes disabled, possibly because the underlying "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"children":[{"kind":"text","text":"engine"}]},{"kind":"text","text":" has been closed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invoked once on an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"children":[{"kind":"text","text":"instance"}]},{"kind":"text","text":" when it becomes disabled, possibly because the underlying "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"children":[{"kind":"text","text":"engine"}]},{"kind":"text","text":" has been closed. A disposed instance is no longer usable. If the instrument is re-enabled, the engine will create a new instance. In the event of VM shutdown, this method is not called for active instruments on unclosed "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"engines"}]},{"kind":"text","text":". The unclosed engines are not closed automatically on VM shutdown, they just die with the VM."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":396}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getOptionDescriptors()","anchor":"getOptionDescriptors()","kind":"method","name":"getOptionDescriptors","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOptionDescriptors"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a set of option descriptors that are supported by this instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a set of option descriptors that are supported by this instrument. Option values are accessible using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions()"},"code":true,"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":" when the instrument is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":". By default no options are available for an instrument. Options returned by this method must specify the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#id()"},"code":true,"children":[{"kind":"text","text":"instrument id"}]},{"kind":"text","text":" as "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptor#getName()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptor.html#getName()"},"code":true,"children":[{"kind":"text","text":"name"}]},{"kind":"text","text":" prefix for each option. For example if the id of the instrument is \"debugger\" then a valid option name would be \"debugger.Enabled\". The instrument will automatically be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":" if one of the specified options was provided by the engine. To construct option descriptors from a list then "},{"kind":"link","target":{"id":"org.graalvm.options.OptionDescriptors#create(java.util.List)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html#create(java.util.List)"},"code":true,"children":[{"kind":"text","text":"OptionDescriptors.create(List)"}]},{"kind":"text","text":" can be used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default option descriptors may only be specified per engine or bound engine, but option values may also be specified per context. In this case the context specific options can be specified with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getContextOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"getContextOptionDescriptors()"}]},{"kind":"text","text":" and the values can be accessed with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"Env.getOptions(TruffleContext)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.Option"},"code":true,"children":[{"kind":"text","text":"For an example of declaring the option descriptor using an annotation."}]}]]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":419}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getContextOptionDescriptors()","anchor":"getContextOptionDescriptors()","kind":"method","name":"getContextOptionDescriptors","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getContextOptionDescriptors"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a set of option descriptors for instrument options that can be specified per context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a set of option descriptors for instrument options that can be specified per context. This can be specified in addition to options specified on the engine level, instruments may specify options for each context. Option descriptors specified per context must not overlap with option descriptors specified per instrument instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"\n@Option.Group(MyInstrument.ID)\nfinal class MyContext {\n\n    @Option(category = OptionCategory.EXPERT, help = \"Description...\")\n    static final OptionKey MyContextOption = new OptionKey<>(Boolean.FALSE);\n}\n\n@Registration(...)\nclass MyInstrument extends TruffleInstrument {\n\n  static final OptionDescriptors CONTEXT_OPTIONS = new MyContextOptionDescriptors();\n\n  //...\n\n  protected OptionDescriptors getContextOptionDescriptors() {\n     return CONTEXT_OPTIONS;\n  }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"to lookup the option values for a context."}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":456}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getSourceOptionDescriptors()","anchor":"getSourceOptionDescriptors()","kind":"method","name":"getSourceOptionDescriptors","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceOptionDescriptors"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionDescriptors","ref":"org.graalvm.options.OptionDescriptors","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionDescriptors.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a set of source option descriptors that are supported by this language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a set of source option descriptors that are supported by this language. Option values are accessible using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions(com.oracle.truffle.api.source.Source)"},"code":true,"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":". Languages must always return the same option descriptors independent of the language instance or side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.Option"},"code":true,"children":[{"kind":"text","text":"For an example of declaring the option descriptor using an annotation."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getContextOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"for another example"}]}]]},"since":"25.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":469}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)","anchor":"createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)","kind":"method","name":"createContextLocal","modifiers":["protected","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"ContextLocal","ref":"com.oracle.truffle.api.ContextLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createContextLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleInstrument.ContextLocalFactory","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"TruffleInstrument.ContextLocalFactory","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"ContextLocal","ref":"com.oracle.truffle.api.ContextLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new context local reference for this Truffle instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new context local reference for this Truffle instrument. Starting with JDK 21, using this method leads to a this-escape warning. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextLocal(TruffleInstrument.ContextLocalFactory)"}]},{"kind":"text","text":" instead."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 23.1, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextLocal(TruffleInstrument.ContextLocalFactory)"}]},{"kind":"text","text":" instead"}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":485}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)","anchor":"createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)","kind":"method","name":"createContextThreadLocal","modifiers":["protected","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"ContextThreadLocal","ref":"com.oracle.truffle.api.ContextThreadLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createContextThreadLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleInstrument.ContextThreadLocalFactory","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"TruffleInstrument.ContextThreadLocalFactory","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"ContextThreadLocal","ref":"com.oracle.truffle.api.ContextThreadLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new context thread local reference for this Truffle instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new context thread local reference for this Truffle instrument. Starting with JDK 21, using this method leads to a this-escape warning. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextThreadLocal(TruffleInstrument.ContextThreadLocalFactory)"}]},{"kind":"text","text":" instead."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 23.1, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextThreadLocal(TruffleInstrument.ContextThreadLocalFactory)"}]},{"kind":"text","text":" instead"}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":502}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instrument implementation classes must use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration"},"code":true,"children":[{"kind":"text","text":"Registration"}]},{"kind":"text","text":" annotation to provide required metadata and to enable automatic discovery of the implementation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An instrument is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":" if at least one instrument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions()"},"code":true,"children":[{"kind":"text","text":"option"}]},{"kind":"text","text":" was specified or if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#registerService(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"service"}]},{"kind":"text","text":" was looked up. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" available in the provided "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"},"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":" allows the instrument instance to bind listeners for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventListener"},"children":[{"kind":"text","text":"execution"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.LoadSourceListener"},"children":[{"kind":"text","text":"source"}]},{"kind":"text","text":" events, as well as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNodeFactory"},"children":[{"kind":"text","text":"node factories"}]},{"kind":"text","text":" for code injection at guest language code locations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An instrument is disposed when the associated polyglot "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"children":[{"kind":"text","text":"engine"}]},{"kind":"text","text":" is disposed. All active bindings created by a disposed instrument become disposed automatically. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]},{"kind":"text","text":" instance available in the provided "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env"},"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":" may not be used after disposal."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Example for a simple expression coverage instrument:"}]},{"kind":"code","language":"java","text":"@Registration(id = CoverageExample.ID, services = Object.class)\npublic final class CoverageExample extends TruffleInstrument {\n\n    public static final String ID = \"test-coverage\";\n\n    private final Set<SourceSection> coverage = new HashSet<>();\n\n    @Override\n    protected void onCreate(final Env env) {\n        SourceSectionFilter.Builder builder = SourceSectionFilter.newBuilder();\n        SourceSectionFilter filter = builder.tagIs(ExpressionTag.class).build();\n        Instrumenter instrumenter = env.getInstrumenter();\n        instrumenter.attachExecutionEventFactory(filter,\n                        new CoverageExampleEventFactory(env));\n    }\n\n    private class CoverageExampleEventFactory\n                    implements ExecutionEventNodeFactory {\n\n        private final Env env;\n\n        CoverageExampleEventFactory(final Env env) {\n            this.env = env;\n        }\n\n        public ExecutionEventNode create(final EventContext ec) {\n            final PrintStream out = new PrintStream(env.out());\n            return new ExecutionEventNode() {\n                @CompilationFinal private boolean visited;\n\n                @Override\n                public void onReturnValue(VirtualFrame vFrame, Object result) {\n                    if (!visited) {\n                        CompilerDirectives.transferToInterpreterAndInvalidate();\n                        visited = true;\n                        SourceSection src = ec.getInstrumentedSourceSection();\n                        out.print(src.getCharIndex() + \" \");\n                        coverage.add(src);\n                    }\n                }\n            };\n        }\n    }\n\n}"}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":132}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalFactory","name":"TruffleInstrument.ContextLocalFactory","kind":"interface","language":"java","modifiers":["protected"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleInstrument.ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"enclosing":"com.oracle.truffle.api.instrumentation.TruffleInstrument","members":[{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalFactory#create(com.oracle.truffle.api.TruffleContext)","anchor":"create(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"create","signature":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns a new value for a context local of an instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new value for a context local of an instrument. The returned value must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and must return a stable and exact type per registered instrument. A thread local must always return the same "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"class"}]},{"kind":"text","text":", even for multiple instances of the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":". If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages may be executed without a context being entered."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextLocal(TruffleInstrument.ContextLocalFactory)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":526}}],"doc":{"summary":[{"kind":"text","text":"Context local factory for Truffle instruments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Context local factory for Truffle instruments. Creates a new value per context."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":512}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider","name":"TruffleInstrument.ContextLocalProvider","kind":"class","language":"java","modifiers":["protected","static","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleInstrument.ContextLocalProvider"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.TruffleInstrument","members":[{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)","anchor":"createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)","kind":"method","name":"createContextLocal","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"ContextLocal","ref":"com.oracle.truffle.api.ContextLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createContextLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleInstrument.ContextLocalFactory","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"TruffleInstrument.ContextLocalFactory","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"ContextLocal","ref":"com.oracle.truffle.api.ContextLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new context local reference for this instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new context local reference for this instrument. Context locals for instruments allow to store additional top-level values for each context similar to language contexts. This enables instruments to use context local values just as languages using their language context. Context local factories are guaranteed to be invoked after the instrument is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Context local references must be created during the invocation in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":" constructor. Calling this method at a later point in time will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":". For each registered "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":" subclass it is required to always produce the same number of context local references. The values produced by the factory must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and use a stable exact value type for each instance of a registered instrument class. If the return value of the factory is not stable or "},{"kind":"code","text":"null"},{"kind":"text","text":" then an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. These restrictions allow the Truffle runtime to read the value more efficiently."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@TruffleInstrument.Registration(id = \"example\", name = \"Example Instrument\")\npublic static class ExampleInstrument extends TruffleInstrument {\n\n    final ContextLocal local = locals.createContextLocal(ExampleLocal::new);\n\n    @Override\n    protected void onCreate(Env env) {\n        ExecutionEventListener listener = new ExecutionEventListener() {\n            public void onEnter(EventContext context, VirtualFrame frame) {\n                ExampleLocal value = local.get();\n                // use context local value;\n            }\n\n            public void onReturnValue(EventContext context, VirtualFrame frame, Object result) {\n            }\n\n            public void onReturnExceptional(EventContext context, VirtualFrame frame, Throwable exception) {\n            }\n        };\n\n        env.getInstrumenter().attachExecutionEventListener(\n                        SourceSectionFilter.ANY,\n                        listener);\n    }\n\n    static class ExampleLocal {\n\n        final TruffleContext context;\n\n        ExampleLocal(TruffleContext context) {\n            this.context = context;\n        }\n\n    }\n\n}"}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":216}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)","anchor":"createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)","kind":"method","name":"createContextThreadLocal","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"ContextThreadLocal","ref":"com.oracle.truffle.api.ContextThreadLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"createContextThreadLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleInstrument.ContextThreadLocalFactory","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factory"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"TruffleInstrument.ContextThreadLocalFactory","ref":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"ContextThreadLocal","ref":"com.oracle.truffle.api.ContextThreadLocal"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new context thread local reference for this Truffle language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new context thread local reference for this Truffle language. Context thread locals for languages allow to store additional top-level values for each context and thread. The factory may be invoked on any thread other than the thread of the context thread local value. Context thread local factories are guaranteed to be invoked after the instrument is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Context thread local references must be created during the invocation in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" constructor. Calling this method at a later point in time will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":". For each registered "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" subclass it is required to always produce the same number of context thread local references. The values produces by the factory must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and use a stable exact value type for each instance of a registered language class. If the return value of the factory is not stable or "},{"kind":"code","text":"null"},{"kind":"text","text":" then an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. These restrictions allow the Truffle runtime to read the value more efficiently."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Context thread locals should not contain a strong reference to the provided thread. Use a weak reference instance for that purpose."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@TruffleInstrument.Registration(id = \"example\", name = \"Example Instrument\")\npublic static class ExampleInstrument extends TruffleInstrument {\n\n    final ContextThreadLocal local = locals.createContextThreadLocal(ExampleLocal::new);\n\n    @Override\n    protected void onCreate(Env env) {\n        ExecutionEventListener listener = new ExecutionEventListener() {\n            public void onEnter(EventContext context, VirtualFrame frame) {\n                ExampleLocal value = local.get();\n                // use thread local value;\n                assert value.thread.get() == Thread.currentThread();\n            }\n\n            public void onReturnValue(EventContext context, VirtualFrame frame, Object result) {\n            }\n\n            public void onReturnExceptional(EventContext context, VirtualFrame frame, Throwable exception) {\n            }\n        };\n\n        env.getInstrumenter().attachExecutionEventListener(\n                        SourceSectionFilter.ANY,\n                        listener);\n    }\n\n    static class ExampleLocal {\n\n        final TruffleContext context;\n        final WeakReference thread;\n\n        ExampleLocal(TruffleContext context, Thread thread) {\n            this.context = context;\n            this.thread = new WeakReference<>(thread);\n        }\n    }\n\n}"}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":294}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Provider for creating context local and context thread local references."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provider for creating context local and context thread local references."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#locals"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.locals"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextLocal(TruffleInstrument.ContextLocalFactory)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextThreadLocal(TruffleInstrument.ContextThreadLocalFactory)"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":149}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextThreadLocalFactory","name":"TruffleInstrument.ContextThreadLocalFactory","kind":"interface","language":"java","modifiers":["protected"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleInstrument.ContextThreadLocalFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"enclosing":"com.oracle.truffle.api.instrumentation.TruffleInstrument","members":[{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextThreadLocalFactory#create(com.oracle.truffle.api.TruffleContext,java.lang.Thread)","anchor":"create(com.oracle.truffle.api.TruffleContext,java.lang.Thread)","kind":"method","name":"create","signature":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"param","text":"thread"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]},{"name":"thread","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns a new value for a context thread local for a context and thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new value for a context thread local for a context and thread. The returned value must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and must return a stable and exact type per registered instrument. A thread local must always return the same "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"class"}]},{"kind":"text","text":", even for multiple instances of the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":". If this method throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" the exception interop messages may be executed without a context being entered."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$ContextLocalProvider#createContextThreadLocal(com.oracle.truffle.api.instrumentation.TruffleInstrument.ContextThreadLocalFactory)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.ContextLocalProvider.createContextThreadLocal(TruffleInstrument.ContextThreadLocalFactory)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":549}}],"doc":{"summary":[{"kind":"text","text":"Context local factory for Truffle instruments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Context local factory for Truffle instruments. Creates a new value per context and thread."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":534}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env","name":"TruffleInstrument.Env","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleInstrument.Env"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.instrumentation.TruffleInstrument","members":[{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getInstrumenter()","anchor":"getInstrumenter()","kind":"method","name":"getInstrumenter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Instrumenter","ref":"com.oracle.truffle.api.instrumentation.Instrumenter"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstrumenter"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Instrumenter","ref":"com.oracle.truffle.api.instrumentation.Instrumenter"}]},"doc":{"summary":[{"kind":"text","text":"Returns the instrumenter which lets you instrument guest language ASTs."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the instrumenter which lets you instrument guest language ASTs."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.Instrumenter"},"code":true,"children":[{"kind":"text","text":"Instrumenter"}]}]]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":579}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#in()","anchor":"in()","kind":"method","name":"in","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InputStream","ref":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"},{"kind":"punct","text":" "},{"kind":"name","text":"in"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InputStream","ref":"java.io.InputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/InputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"reader, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Input associated with "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine"}]},{"kind":"text","text":" this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" is being executed in."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Input associated with "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine"}]},{"kind":"text","text":" this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" is being executed in."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":590}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#out()","anchor":"out()","kind":"method","name":"out","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"name","text":"out"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"writer, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Standard output writer for "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine"}]},{"kind":"text","text":" this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" is being executed in."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Standard output writer for "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine"}]},{"kind":"text","text":" this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" is being executed in."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":601}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#err()","anchor":"err()","kind":"method","name":"err","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"name","text":"err"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"writer, never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Standard error writer for "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine"}]},{"kind":"text","text":" this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" is being executed in."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Standard error writer for "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine"}]},{"kind":"text","text":" this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" is being executed in."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":612}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#startServer(java.net.URI,org.graalvm.polyglot.io.MessageEndpoint)","anchor":"startServer(java.net.URI,org.graalvm.polyglot.io.MessageEndpoint)","kind":"method","name":"startServer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"MessageEndpoint","ref":"org.graalvm.polyglot.io.MessageEndpoint","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageEndpoint.html"},{"kind":"punct","text":" "},{"kind":"name","text":"startServer"},{"kind":"punct","text":"("},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"param","text":"uri"},{"kind":"punct","text":", "},{"kind":"type","text":"MessageEndpoint","ref":"org.graalvm.polyglot.io.MessageEndpoint","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageEndpoint.html"},{"kind":"punct","text":" "},{"kind":"param","text":"server"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"},{"kind":"punct","text":", "},{"kind":"type","text":"MessageTransport.VetoException","ref":"org.graalvm.polyglot.io.MessageTransport$VetoException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageTransport.VetoException.html"}],"params":[{"name":"uri","type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the URI of the server endpoint"}]}]},{"name":"server","type":[{"kind":"type","text":"MessageEndpoint","ref":"org.graalvm.polyglot.io.MessageEndpoint","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageEndpoint.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the handler of messages at the server side"}]}]}],"returns":{"type":[{"kind":"type","text":"MessageEndpoint","ref":"org.graalvm.polyglot.io.MessageEndpoint","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageEndpoint.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an implementation of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.MessageEndpoint","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageEndpoint.html"},"code":true,"children":[{"kind":"text","text":"MessageEndpoint"}]},{"kind":"text","text":" call back representing the client side, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no virtual transport is available"}]}]},"throws":[{"type":[{"kind":"type","text":"MessageTransport.VetoException","ref":"org.graalvm.polyglot.io.MessageTransport$VetoException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageTransport.VetoException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if creation of a server at that URI is not allowed"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Start a server at the provided URI via the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.MessageTransport","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageTransport.html"},"code":true,"children":[{"kind":"text","text":"MessageTransport"}]},{"kind":"text","text":" service."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Start a server at the provided URI via the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.MessageTransport","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageTransport.html"},"code":true,"children":[{"kind":"text","text":"MessageTransport"}]},{"kind":"text","text":" service. Before an instrument creates a server endpoint for a message protocol, it needs to check the result of this method. When a virtual message transport is available, it blocks until a client connects and "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.MessageEndpoint","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageEndpoint.html"},"code":true,"children":[{"kind":"text","text":"MessageEndpoint"}]},{"kind":"text","text":" representing the peer endpoint is returned. Those endpoints need to be used instead of a direct creation of a server socket. If no virtual message transport is available at that URI, "},{"kind":"code","text":"null"},{"kind":"text","text":" is returned and the instrument needs to set up the server itself."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.MessageTransport$VetoException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageTransport.VetoException.html"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.io.MessageTransport.VetoException"}]},{"kind":"text","text":" is thrown, the server creation needs to be abandoned."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method can be called concurrently from multiple threads. However, the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.MessageEndpoint","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/MessageEndpoint.html"},"code":true,"children":[{"kind":"text","text":"MessageEndpoint"}]},{"kind":"text","text":" ought to be called on one thread at a time, unless you're sure that the particular implementation can handle concurrent calls. The same holds true for the returned endpoint, it's called synchronously."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":640}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#registerService(java.lang.Object)","anchor":"registerService(java.lang.Object)","kind":"method","name":"registerService","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"registerService"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"service"},{"kind":"punct","text":")"}],"params":[{"name":"service","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a service to be returned from associated "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Instrument#lookup(java.lang.Class)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Instrument.html#lookup(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Instrument.lookup"}]}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the method is called later than from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"}]},{"kind":"text","text":" method"}]}]}],"doc":{"summary":[{"kind":"text","text":"Registers additional service."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Registers additional service. This method can be called multiple time, but only during "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"initialization of the instrument"}]},{"kind":"text","text":". These services are made available to users via "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Instrument#lookup(java.lang.Class)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Instrument.html#lookup(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Instrument.lookup"}]},{"kind":"text","text":" query method. This method can only be called from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"}]},{"kind":"text","text":" method - then the services are collected and cannot be changed anymore."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":661}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)","anchor":"lookup(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Class)","kind":"method","name":"lookup","modifiers":["public"],"typeParams":[{"name":"S","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the requested type"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"S"},{"kind":"punct","text":" "},{"kind":"name","text":"lookup"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":"> "},{"kind":"param","text":"type"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"identification of the language to query"}]}]},{"name":"type","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class of the requested type"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"S"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the registered service or "},{"kind":"code","text":"null"},{"kind":"text","text":" if none is found"}]}]},"doc":{"summary":[{"kind":"text","text":"Queries a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language implementation"}]},{"kind":"text","text":" for a special service."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Queries a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language implementation"}]},{"kind":"text","text":" for a special service. The services can be provided by the language by directly implementing them when subclassing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":". The truffle language needs to be entered on the current Thread otherwise an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":686}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#lookup(com.oracle.truffle.api.InstrumentInfo,java.lang.Class)","anchor":"lookup(com.oracle.truffle.api.InstrumentInfo,java.lang.Class)","kind":"method","name":"lookup","modifiers":["public"],"typeParams":[{"name":"S","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the requested type"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"S"},{"kind":"punct","text":" "},{"kind":"name","text":"lookup"},{"kind":"punct","text":"("},{"kind":"type","text":"InstrumentInfo","ref":"com.oracle.truffle.api.InstrumentInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"instrument"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":"> "},{"kind":"param","text":"type"},{"kind":"punct","text":")"}],"params":[{"name":"instrument","type":[{"kind":"type","text":"InstrumentInfo","ref":"com.oracle.truffle.api.InstrumentInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"identification of the instrument to query"}]}]},{"name":"type","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"S"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class of the requested type"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"S"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the registered service or "},{"kind":"code","text":"null"},{"kind":"text","text":" if none is found"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns an additional service provided by this instrument, specified by type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an additional service provided by this instrument, specified by type. If an instrument is not enabled, it will be enabled automatically by requesting a supported service. If the instrument does not provide a service for a given type it will not be enabled automatically. An "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown if a service is looked up from the current instrument."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":707}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getLanguages()","anchor":"getLanguages()","kind":"method","name":"getLanguages","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getLanguages"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns a map "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getId()"},"code":true,"children":[{"kind":"text","text":"language id"}]},{"kind":"text","text":" to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo"},"code":true,"children":[{"kind":"text","text":"language info"}]},{"kind":"text","text":" of all languages that are installed in the environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a map "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getId()"},"code":true,"children":[{"kind":"text","text":"language id"}]},{"kind":"text","text":" to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo"},"code":true,"children":[{"kind":"text","text":"language info"}]},{"kind":"text","text":" of all languages that are installed in the environment."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":725}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getHostLanguage()","anchor":"getHostLanguage()","kind":"method","name":"getHostLanguage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getHostLanguage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}]},"doc":{"summary":[{"kind":"text","text":"Retrieves the host language used in this environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Retrieves the host language used in this environment. The returned language can be used to obtain the host language top scope object using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getScope(com.oracle.truffle.api.nodes.LanguageInfo)"},"code":true,"children":[{"kind":"text","text":"getScope(LanguageInfo)"}]},{"kind":"text","text":" method."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":740}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getInstruments()","anchor":"getInstruments()","kind":"method","name":"getInstruments","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"InstrumentInfo","ref":"com.oracle.truffle.api.InstrumentInfo"},{"kind":"punct","text":"> "},{"kind":"name","text":"getInstruments"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"InstrumentInfo","ref":"com.oracle.truffle.api.InstrumentInfo"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns a map "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InstrumentInfo#getId()"},"code":true,"children":[{"kind":"text","text":"instrument id"}]},{"kind":"text","text":" to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InstrumentInfo"},"code":true,"children":[{"kind":"text","text":"instrument info"}]},{"kind":"text","text":" of all instruments that are installed in the environment."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a map "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InstrumentInfo#getId()"},"code":true,"children":[{"kind":"text","text":"instrument id"}]},{"kind":"text","text":" to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InstrumentInfo"},"code":true,"children":[{"kind":"text","text":"instrument info"}]},{"kind":"text","text":" of all instruments that are installed in the environment."}]}]},"since":"0.26","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":755}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions()","anchor":"getOptions()","kind":"method","name":"getOptions","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOptions"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the context independent option values for the options described in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.getOptionDescriptors()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the context independent option values for the options described in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.getOptionDescriptors()"}]},{"kind":"text","text":". The returned options are never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions(com.oracle.truffle.api.TruffleContext)"},"code":true,"children":[{"kind":"text","text":"to return the context specific options for this instrument."}]}]]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":783}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions(com.oracle.truffle.api.TruffleContext)","anchor":"getOptions(com.oracle.truffle.api.TruffleContext)","kind":"method","name":"getOptions","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOptions"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]}],"returns":{"type":[{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the context specific option values for the options described in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getContextOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.getContextOptionDescriptors()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.getOptionDescriptors()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the context specific option values for the options described in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getContextOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.getContextOptionDescriptors()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.getOptionDescriptors()"}]},{"kind":"text","text":". Instrument context options can be different for each TruffleContext, whereas regular options cannot."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions()"},"code":true,"children":[{"kind":"text","text":"to get the context independent options set for this instrument"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":796}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions(com.oracle.truffle.api.source.Source)","anchor":"getOptions(com.oracle.truffle.api.source.Source)","kind":"method","name":"getOptions","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOptions"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source whose option values are to be retrieved"}]}]}],"returns":{"type":[{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parsed "},{"kind":"link","target":{"id":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},"code":true,"children":[{"kind":"text","text":"OptionValues"}]},{"kind":"text","text":" for the specified source"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if option validation fails"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the parsed option values of the given source for the current instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the parsed option values of the given source for the current instrument. Options can be specified by implementing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#getSourceOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.getSourceOptionDescriptors()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that options may not be validated beforehand, which can result in an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" if validation fails. If the source was parsed previously, all options are guaranteed to have been validated. Otherwise, this method validates only the options of the current instrument."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":816}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#parse(com.oracle.truffle.api.source.Source,java.lang.String...)","anchor":"parse(com.oracle.truffle.api.source.Source,java.lang.String...)","kind":"method","name":"parse","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"parse"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"argumentNames"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source to evaluate"}]}]},{"name":"argumentNames","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the names of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(java.lang.Object...)"}]},{"kind":"text","text":" arguments that can be referenced from the source"}]}]}],"returns":{"type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the call target representing the parsed result"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the parsing or evaluation fails for some reason"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}]}],"doc":{"summary":[{"kind":"text","text":"Evaluates source of (potentially different) language using the current context.The names of arguments are parameters for the resulting {#link CallTarget} that allow the "},{"kind":"code","text":"source"},{"kind":"text","text":" to reference the actual parameters passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(java.lang.Object...)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Evaluates source of (potentially different) language using the current context.The names of arguments are parameters for the resulting {#link CallTarget} that allow the "},{"kind":"code","text":"source"},{"kind":"text","text":" to reference the actual parameters passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(java.lang.Object...)"}]},{"kind":"text","text":"."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":839}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#parseInline(com.oracle.truffle.api.source.Source,com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.MaterializedFrame)","anchor":"parseInline(com.oracle.truffle.api.source.Source,com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.MaterializedFrame)","kind":"method","name":"parseInline","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutableNode","ref":"com.oracle.truffle.api.nodes.ExecutableNode"},{"kind":"punct","text":" "},{"kind":"name","text":"parseInline"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a source snippet to parse at the provided node location"}]}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a context location where the source is parsed at, must not be "},{"kind":"code","text":"null"}]}]},{"name":"frame","type":[{"kind":"type","text":"MaterializedFrame","ref":"com.oracle.truffle.api.frame.MaterializedFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a frame location where the source is parsed at, can be "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"type","text":"ExecutableNode","ref":"com.oracle.truffle.api.nodes.ExecutableNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the executable fragment representing the parsed result, or "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Parses source snippet of the node's language at the provided node location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Parses source snippet of the node's language at the provided node location. The result is an AST fragment represented by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutableNode"},"code":true,"children":[{"kind":"text","text":"ExecutableNode"}]},{"kind":"text","text":" that accepts frames valid at the provided node location, or "},{"kind":"code","text":"null"},{"kind":"text","text":" when inline parsing is not supported by the language."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":863}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getTruffleFile(com.oracle.truffle.api.TruffleContext,java.lang.String)","anchor":"getTruffleFile(com.oracle.truffle.api.TruffleContext,java.lang.String)","kind":"method","name":"getTruffleFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getTruffleFile"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"path"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":" to use a current entered context."}]}]},{"name":"path","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the absolute or relative path to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the "},{"kind":"link","target":{"id":"java.nio.file.FileSystem","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"FileSystem"}]},{"kind":"text","text":" supports only "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"code","text":"path"},{"kind":"text","text":" string cannot be converted to a "},{"kind":"link","target":{"id":"java.nio.file.Path","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/Path.html"},"code":true,"children":[{"kind":"text","text":"Path"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given path and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given path and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":891}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getTruffleFile(com.oracle.truffle.api.TruffleContext,java.net.URI)","anchor":"getTruffleFile(com.oracle.truffle.api.TruffleContext,java.net.URI)","kind":"method","name":"getTruffleFile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getTruffleFile"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"param","text":"uri"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":" to use a current entered context."}]}]},{"name":"uri","type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" to create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" scheme is not supported"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if preconditions on the "},{"kind":"code","text":"uri"},{"kind":"text","text":" do not hold."}]}]},{"type":[{"kind":"type","text":"FileSystemNotFoundException","ref":"java.nio.file.FileSystemNotFoundException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/file/FileSystemNotFoundException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"is the file system, identified by the "},{"kind":"code","text":"uri"},{"kind":"text","text":", does not exist and cannot be created automatically"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" for given "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"context"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":912}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getEnteredContext()","anchor":"getEnteredContext()","kind":"method","name":"getEnteredContext","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"name","text":"getEnteredContext"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}]},"doc":{"summary":[{"kind":"text","text":"Returns the entered "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no context is entered."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the entered "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext"},"code":true,"children":[{"kind":"text","text":"TruffleContext"}]},{"kind":"text","text":" or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no context is entered."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":925}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#isEngineRoot(com.oracle.truffle.api.nodes.RootNode)","anchor":"isEngineRoot(com.oracle.truffle.api.nodes.RootNode)","kind":"method","name":"isEngineRoot","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isEngineRoot"},{"kind":"punct","text":"("},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":")"}],"params":[{"name":"root","type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the root node to check"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if engine root else "},{"kind":"code","text":"false"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given root node is considered an engine evaluation root for the current execution context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given root node is considered an engine evaluation root for the current execution context. Multiple such root nodes can appear on stack frames returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.iterateFrames(com.oracle.truffle.api.frame.FrameInstanceVisitor)"}]},{"kind":"text","text":". A debugger implementation might use this information to hide stack frames of other engines."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":941}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#setAsynchronousStackDepth(int)","anchor":"setAsynchronousStackDepth(int)","kind":"method","name":"setAsynchronousStackDepth","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setAsynchronousStackDepth"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"depth"},{"kind":"punct","text":")"}],"params":[{"name":"depth","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the requested stack depth, 0 means no asynchronous stack frames are required."}]}]}],"doc":{"summary":[{"kind":"text","text":"Request for languages to provide stack frames of scheduled asynchronous execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Request for languages to provide stack frames of scheduled asynchronous execution. Languages might not provide asynchronous stack frames by default for performance reasons. At most "},{"kind":"code","text":"depth"},{"kind":"text","text":" asynchronous stack frames are asked for. When multiple instruments call this method, the languages get a maximum depth of these calls and may therefore provide longer asynchronous stacks than requested. Also, languages may provide asynchronous stacks if it's of no performance penalty, or if requested by other options."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Asynchronous stacks can then be accessed via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#getAsynchronousStackTrace(com.oracle.truffle.api.CallTarget,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"TruffleStackTrace.getAsynchronousStackTrace(CallTarget, Frame)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#getAsynchronousStackTrace(com.oracle.truffle.api.CallTarget,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"TruffleStackTrace.getAsynchronousStackTrace(CallTarget, Frame)"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":965}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getLanguageInfo(java.lang.Class)","anchor":"getLanguageInfo(java.lang.Class)","kind":"method","name":"getLanguageInfo","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguageInfo"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language class to convert"}]}]}],"returns":{"type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the associated language info"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the language class is not valid."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo"},"code":true,"children":[{"kind":"text","text":"language info"}]},{"kind":"text","text":" for a given language class if available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo"},"code":true,"children":[{"kind":"text","text":"language info"}]},{"kind":"text","text":" for a given language class if available. Language classes are typically obtained by invoking the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getLanguage(Object)"}]},{"kind":"text","text":" message. Throws an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" if the provided language is not registered. Note that languages may be returned that are not contained in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getLanguages()"},"code":true,"children":[{"kind":"text","text":"getLanguages()"}]},{"kind":"text","text":". For example, values originating from the embedder like Java classes or "},{"kind":"link","target":{"id":"org.graalvm.polyglot.proxy.Proxy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/proxy/Proxy.html"},"code":true,"children":[{"kind":"text","text":"polyglot proxies"}]},{"kind":"text","text":"."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":983}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getLanguageView(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Object)","anchor":"getLanguageView(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Object)","kind":"method","name":"getLanguageView","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguageView"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language to provide the view for"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to language specific information for."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Wraps the provided value to provide language specific information for primitive and foreign values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Wraps the provided value to provide language specific information for primitive and foreign values. A typical implementation of a given language for this method does the following:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Return the current language id as their associated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Provide a language specific "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"display string"}]},{"kind":"text","text":" for primitive and foreign values."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Return a language specific "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"metaobject"}]},{"kind":"text","text":" primitive or foreign values."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Add members to the object that would implicitly be available for all objects. For example, any JavaScript object is expected to have a prototype member. Foreign objects, even if they do not have such a member, are interpreted as if they have."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getLanguageView(Object, Object)"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1016}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getPolyglotBindings()","anchor":"getPolyglotBindings()","kind":"method","name":"getPolyglotBindings","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getPolyglotBindings"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an interop object having the symbol names as properties"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the polyglot scope - symbols explicitly exported by languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the polyglot scope - symbols explicitly exported by languages. The polyglot bindings of the current entered context are returned."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1033}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getScope(com.oracle.truffle.api.nodes.LanguageInfo)","anchor":"getScope(com.oracle.truffle.api.nodes.LanguageInfo)","kind":"method","name":"getScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getScope"},{"kind":"punct","text":"("},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a language"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the top scope, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the language does not support such concept"}]}]},"doc":{"summary":[{"kind":"text","text":"Provides top scope object of the language, if any."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides top scope object of the language, if any. Uses the current context to find the language scope associated with. The returned object is an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"interop scope object"}]},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getScope(C)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getScope(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1052}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getInternalResource(java.lang.Class)","anchor":"getInternalResource(java.lang.Class)","kind":"method","name":"getInternalResource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getInternalResource"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource","ref":"com.oracle.truffle.api.InternalResource"},{"kind":"punct","text":"> "},{"kind":"param","text":"resource"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"resource","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource","ref":"com.oracle.truffle.api.InternalResource"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the resource class to load"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"resource"},{"kind":"text","text":" is not associated with this instrument"}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the target directory of an internal resource."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the target directory of an internal resource. The internal resource is guaranteed to be fully "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource#unpackFiles(com.oracle.truffle.api.InternalResource.Env,java.nio.file.Path)"},"code":true,"children":[{"kind":"text","text":"InternalResource.unpackFiles(InternalResource.Env, Path)"}]},{"kind":"text","text":" unpacked} before this method returns. When this method is called for the first time and the resource is not cached than the resource will be unpacked. Unpacking an internal resource can be an expensive operation, but the implementation makes sure that unpacked internal resources are cached."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" will only grant read-only access to the target directory, but access is provided even if IO access is disabled."}]},{"kind":"paragraph","children":[{"kind":"text","text":"On a HotSpot VM the internal resource is typically cached in the user directory, so unpacking would be repeated once per operating system user. When the language was compiled using native-image internal resources are unpacked at native-image compile time and stored relative to the native-image."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The caller thread must be entered in a context."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1087}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getInternalResource(java.lang.String)","anchor":"getInternalResource(java.lang.String)","kind":"method","name":"getInternalResource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"name","text":"getInternalResource"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"resourceId"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"resourceId","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"unique id of the resource to be loaded"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"internal resource directory or "},{"kind":"code","text":"null"},{"kind":"text","text":" if resource with the "},{"kind":"code","text":"resourceId"},{"kind":"text","text":" is not associated with this instrument"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case of IO error"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the target directory of an internal resource."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" representing the target directory of an internal resource. Unlike the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getInternalResource(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"getInternalResource(Class)"}]},{"kind":"text","text":", this method can be used for optional resources whose classes may not exist at runtime. In this case the optional resource must be unpacked at build time, see "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#copyResources(java.nio.file.Path,java.lang.String...)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#copyResources(java.nio.file.Path,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Engine.copyResources(Path, String...)"}]},{"kind":"text","text":". If the resource with the specified "},{"kind":"code","text":"resourceId"},{"kind":"text","text":" is not associated to this instrument, the function returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getInternalResource(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"getInternalResource(Class)"}]}],[{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#copyResources(java.nio.file.Path,java.lang.String...)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#copyResources(java.nio.file.Path,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Engine.copyResources(Path, String...)"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1108}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getLogger(java.lang.String)","anchor":"getLogger(java.lang.String)","kind":"method","name":"getLogger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"},{"kind":"punct","text":" "},{"kind":"name","text":"getLogger"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"loggerName"},{"kind":"punct","text":")"}],"params":[{"name":"loggerName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]},{"kind":"text","text":", if a "},{"kind":"code","text":"loggerName"},{"kind":"text","text":" is null or empty a root logger for language or instrument is returned"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Find or create an engine bound logger for an instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find or create an engine bound logger for an instrument. When a logging is required from a thread which entered a context the context's logging handler and options are used. Otherwise the engine's logging handler and options are used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a logger with given name already exists it's returned, otherwise a new logger is created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike loggers created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger#getLogger(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"TruffleLogger.getLogger"}]},{"kind":"text","text":" loggers created by this method are bound to engine, there may be more logger instances having the same name but each bound to different engine instance. Instruments should never store the returned logger into a static fields. A new logger must be always created in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"onCreate"}]},{"kind":"text","text":" method."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1134}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getLogger(java.lang.Class)","anchor":"getLogger(java.lang.Class)","kind":"method","name":"getLogger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"},{"kind":"punct","text":" "},{"kind":"name","text":"getLogger"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"forClass"},{"kind":"punct","text":")"}],"params":[{"name":"forClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},"code":true,"children":[{"kind":"text","text":"Class"}]},{"kind":"text","text":" to create a logger for"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleLogger","ref":"com.oracle.truffle.api.TruffleLogger"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger"},"code":true,"children":[{"kind":"text","text":"TruffleLogger"}]}]}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"forClass"},{"kind":"text","text":" is null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Find or create an engine bound logger for an instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find or create an engine bound logger for an instrument. The engine bound loggers can be used by threads executing without any current context. When a logging is required from a thread which entered a context the context's logging handler and options are used. Otherwise the engine's logging handler and options are used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a logger for the class already exists it's returned, otherwise a new logger is created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike loggers created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLogger#getLogger(java.lang.String,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"TruffleLogger.getLogger"}]},{"kind":"text","text":" loggers created by this method are bound to engine, there may be more logger instances having the same name but each bound to different engine instance. Instruments should never store the returned logger into a static fields. A new logger must be always created in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"onCreate"}]},{"kind":"text","text":" method."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1165}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#isSameFrame(com.oracle.truffle.api.nodes.RootNode,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)","anchor":"isSameFrame(com.oracle.truffle.api.nodes.RootNode,com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"isSameFrame","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isSameFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame1"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame2"},{"kind":"punct","text":")"}],"params":[{"name":"root","type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}]},{"name":"frame1","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"frame2","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Tests if two frames are the same."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if two frames are the same. This method is mainly used by instruments in case of "},{"kind":"code","text":"yield"},{"kind":"text","text":" of the execution and later resume. Frame comparison is used to match the particular yielded and resumed execution. The frames must correspond to the root."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1176}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#calculateContextHeapSize(com.oracle.truffle.api.TruffleContext,long,java.util.concurrent.atomic.AtomicBoolean)","anchor":"calculateContextHeapSize(com.oracle.truffle.api.TruffleContext,long,java.util.concurrent.atomic.AtomicBoolean)","kind":"method","name":"calculateContextHeapSize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"calculateContextHeapSize"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"truffleContext"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"stopAtBytes"},{"kind":"punct","text":", "},{"kind":"type","text":"AtomicBoolean","ref":"java.util.concurrent.atomic.AtomicBoolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/atomic/AtomicBoolean.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cancelled"},{"kind":"punct","text":")"}],"params":[{"name":"truffleContext","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"specifies the polyglot context for which retained size is calculated."}]}]},{"name":"stopAtBytes","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the calculated size exceeds stopAtBytes, calculation is stopped and only size calculated up to that point is returned, i.e., if the retained size is greater than stopAtBytes, a value greater than stopAtBytes will be returned, not the total retained size which might be much greater."}]}]},{"name":"cancelled","type":[{"kind":"type","text":"AtomicBoolean","ref":"java.util.concurrent.atomic.AtomicBoolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/atomic/AtomicBoolean.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when cancelled returns true, calculation is cancelled and "},{"kind":"link","target":{"id":"java.util.concurrent.CancellationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/CancellationException.html"},"code":true,"children":[{"kind":"text","text":"java.util.concurrent.CancellationException"}]},{"kind":"text","text":" is thrown. The message of the exception specifies the number of bytes calculated up to that point."}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"calculated heap memory size retained by the specified polyglot context, or a value greater than stopAtBytes if the calculated size is greater than stopAtBytes."}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case heap size calculation is not supported on current runtime."}]}]},{"type":[{"kind":"type","text":"CancellationException","ref":"java.util.concurrent.CancellationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/CancellationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in case the heap size calculation is cancelled based on the cancelled parameter. The message of the exception specifies the number of bytes calculated up to that point."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns heap memory size retained by a polyglot context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns heap memory size retained by a polyglot context."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1203}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#submitThreadLocal(com.oracle.truffle.api.TruffleContext,java.lang.Thread[],com.oracle.truffle.api.ThreadLocalAction)","anchor":"submitThreadLocal(com.oracle.truffle.api.TruffleContext,java.lang.Thread[],com.oracle.truffle.api.ThreadLocalAction)","kind":"method","name":"submitThreadLocal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Future","ref":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Void","ref":"java.lang.Void","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Void.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"submitThreadLocal"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":", "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"threads"},{"kind":"punct","text":", "},{"kind":"type","text":"ThreadLocalAction","ref":"com.oracle.truffle.api.ThreadLocalAction"},{"kind":"punct","text":" "},{"kind":"param","text":"action"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"TruffleContext","ref":"com.oracle.truffle.api.TruffleContext"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context in which the action should be performed. Non "},{"kind":"code","text":"null"},{"kind":"text","text":" ."}]}]},{"name":"threads","type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the threads to execute the action on. "},{"kind":"code","text":"null"},{"kind":"text","text":" for all threads"}]}]},{"name":"action","type":[{"kind":"type","text":"ThreadLocalAction","ref":"com.oracle.truffle.api.ThreadLocalAction"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the action to perform on that thread."}]}]}],"returns":{"type":[{"kind":"type","text":"Future","ref":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Void","ref":"java.lang.Void","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Void.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Submits a thread local action to be performed at the next guest language safepoint on a provided set of threads, once for each thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Submits a thread local action to be performed at the next guest language safepoint on a provided set of threads, once for each thread. If the threads array is "},{"kind":"code","text":"null"},{"kind":"text","text":" then the thread local action will be performed on all alive threads. The submitted actions are processed in the same order as they are submitted in. The action can be synchronous or asynchronous, side-effecting or non-sideeffecting. Please see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]},{"kind":"text","text":" for details."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is ensured that a thread local action will get processed as long as the thread stays active for this context. If a thread becomes inactive before the action can get processed then the action will not be performed for this thread. If a thread becomes active while the action is being processed then the action will be performed for that thread as long as the thread filter includes the thread or "},{"kind":"code","text":"null"},{"kind":"text","text":" was passed. Already started synchronous actions will block on activation of a new thread. If the synchronous action was not yet started on any thread, then the synchronous action will also be performed for the newly activated thread."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The method returns a "},{"kind":"link","target":{"id":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},"code":true,"children":[{"kind":"text","text":"Future"}]},{"kind":"text","text":" instance that allows to wait for the thread local action to complete or to cancel a currently performed event."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example Usage:"}]},{"kind":"code","text":"Env env; // supplied by TruffleInstrument\nTruffleContext context; // supplied by ContextsListener\n\nenv.submitThreadLocal(context, null, new ThreadLocalAction(true, true) {\n    @Override\n    protected void perform(Access access) {\n        // perform action\n    }\n});"},{"kind":"paragraph","children":[{"kind":"text","text":"By default thread-local actions are executed once per configured thread and do not repeat themselves. If a ThreadLocalAction is configured to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction#<init>(boolean,boolean,boolean)"},"code":true,"children":[{"kind":"text","text":"recurring"}]},{"kind":"text","text":" then the action will automatically be rescheduled in the same configuration until it is "},{"kind":"link","target":{"id":"java.util.concurrent.Future#cancel(boolean)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html#cancel(boolean)"},"code":true,"children":[{"kind":"text","text":"cancelled"}]},{"kind":"text","text":". For recurring actions, an invocation of "},{"kind":"link","target":{"id":"java.util.concurrent.Future#get()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html#get()"},"code":true,"children":[{"kind":"text","text":"Future.get()"}]},{"kind":"text","text":" will only wait for the first action to be performed. "},{"kind":"link","target":{"id":"java.util.concurrent.Future#isDone()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html#isDone()"},"code":true,"children":[{"kind":"text","text":"Future.isDone()"}]},{"kind":"text","text":" will return "},{"kind":"code","text":"true"},{"kind":"text","text":" only if the action was canceled. Canceling a recurring action will result in the current event being canceled and no further events being submitted. Using recurring events should be preferred over submitting the event again for the current thread while performing the thread-local action as recurring events are also resubmitted in case all threads leave and later reenter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the thread local action future needs to be waited on and this might be prone to deadlocks the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#setBlocked(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.TruffleSafepoint.Interrupter,com.oracle.truffle.api.TruffleSafepoint.Interruptible,T,java.lang.Runnable,java.util.function.Consumer)"},"code":true,"children":[{"kind":"text","text":"blocking API"}]},{"kind":"text","text":" can be used to allow other thread local actions to be processed while the current thread is waiting. The returned "},{"kind":"link","target":{"id":"java.util.concurrent.Future#get()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html#get()"},"code":true,"children":[{"kind":"text","text":"Future.get()"}]},{"kind":"text","text":" method can be used as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint$Interruptible"},"code":true,"children":[{"kind":"text","text":"Interruptible"}]},{"kind":"text","text":". If the supplied context is already closed, the method returns a completed "},{"kind":"link","target":{"id":"java.util.concurrent.Future","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Future.html"},"code":true,"children":[{"kind":"text","text":"Future"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.ThreadLocalAction"},"code":true,"children":[{"kind":"text","text":"ThreadLocalAction"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1271}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#createSystemThread(java.lang.Runnable)","anchor":"createSystemThread(java.lang.Runnable)","kind":"method","name":"createSystemThread","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createSystemThread"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new thread designed to process instrument tasks in the background."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread designed to process instrument tasks in the background. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#createSystemThread(java.lang.Runnable,java.lang.ThreadGroup)"},"code":true,"children":[{"kind":"text","text":"createSystemThread(Runnable, ThreadGroup)"}]},{"kind":"text","text":" for a detailed description of the parameters."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#createSystemThread(java.lang.Runnable,java.lang.ThreadGroup)"},"code":true,"children":[{"kind":"text","text":"createSystemThread(Runnable, ThreadGroup)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1288}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#createSystemThread(java.lang.Runnable,java.lang.ThreadGroup)","anchor":"createSystemThread(java.lang.Runnable,java.lang.ThreadGroup)","kind":"method","name":"createSystemThread","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createSystemThread"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"runnable"},{"kind":"punct","text":", "},{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"threadGroup"},{"kind":"punct","text":")"}],"params":[{"name":"runnable","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the runnable to run on this thread."}]}]},{"name":"threadGroup","type":[{"kind":"type","text":"ThreadGroup","ref":"java.lang.ThreadGroup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ThreadGroup.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the thread group, passed on to the underlying "},{"kind":"link","target":{"id":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"},"code":true,"children":[{"kind":"text","text":"Thread"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"Thread","ref":"java.lang.Thread","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html"}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the engine is already closed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new thread designed to process instrument tasks in the background."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new thread designed to process instrument tasks in the background. The created thread cannot enter the context, if it tries an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. Creating or terminating a system thread does not notify languages or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ThreadsListener"},"code":true,"children":[{"kind":"text","text":"ThreadsListener"}]},{"kind":"text","text":"s. Creating a system thread does not cause a transition to multi-threaded access."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended to set an "},{"kind":"link","target":{"id":"java.lang.Thread#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)"},"code":true,"children":[{"kind":"text","text":"uncaught exception handler"}]},{"kind":"text","text":" for the created thread. For example the thread can throw an uncaught exception if the engine is closed before the thread is started."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The instrument that created and started the thread is responsible to stop and join it during the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onDispose(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"onDispose"}]},{"kind":"text","text":", otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":" is thrown. It's not safe to use the "},{"kind":"link","target":{"id":"java.util.concurrent.ExecutorService#awaitTermination(long,java.util.concurrent.TimeUnit)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/ExecutorService.html#awaitTermination(long,java.util.concurrent.TimeUnit)"},"code":true,"children":[{"kind":"text","text":"ExecutorService.awaitTermination(long, java.util.concurrent.TimeUnit)"}]},{"kind":"text","text":" to detect Thread termination as the system thread may be cancelled before executing the executor worker."},{"kind":"break"},{"kind":"text","text":" A typical implementation looks like:"}]},{"kind":"code","language":"java","text":"class SystemThreadInstrument extends TruffleInstrument {\n\n    private volatile Thread systemThread;\n    private volatile boolean cancelled;\n    private final BlockingQueue<Runnable> tasks = new LinkedBlockingQueue<>();\n\n    @Override\n    protected void onCreate(Env env) {\n        // Create and start a Thread for the asynchronous task.\n        // Remember the Thread reference to stop and join it in\n        // the finalizeContext\n        systemThread = env.createSystemThread(() -> {\n            while (!cancelled) {\n                try {\n                    Runnable task = tasks.poll(Integer.MAX_VALUE, SECONDS);\n                    if (task != null) {\n                        task.run();\n                    }\n                } catch (InterruptedException ie) {\n                    // pass to cancelled check\n                }\n            }\n        });\n        systemThread.start();\n    }\n\n    @Override\n    protected void onDispose(Env env) {\n        // Stop and join system thread.\n        cancelled = true;\n        systemThread.interrupt();\n        boolean interrupted = false;\n        boolean terminated = false;\n        while (!terminated) {\n            try {\n                systemThread.join();\n                terminated = true;\n            } catch (InterruptedException ie) {\n                interrupted = true;\n            }\n        }\n        if (interrupted) {\n            Thread.currentThread().interrupt();\n        }\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#createSystemThread(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"createSystemThread(Runnable)"}]}]]},"since":"22.3","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1322}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getSandboxPolicy()","anchor":"getSandboxPolicy()","kind":"method","name":"getSandboxPolicy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSandboxPolicy"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the engine's "},{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the engine's "},{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]},{"kind":"text","text":". An instrument can use the returned sandbox policy to make instrument-specific verifications that the sandbox requirements are met. These verifications should be made as early as possible in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.onCreate(Env)"}]},{"kind":"text","text":" method."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument.onCreate(Env)"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1342}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Access to instrumentation services as well as input, output, and error streams."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Access to instrumentation services as well as input, output, and error streams."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":557}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration","name":"TruffleInstrument.Registration","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleInstrument.Registration"}],"enclosing":"com.oracle.truffle.api.instrumentation.TruffleInstrument","members":[{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#id()","anchor":"id()","kind":"annotationElement","name":"id","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"id"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"A custom machine identifier for this instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A custom machine identifier for this instrument. If not defined then the fully qualified class name is used."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1364}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#name()","anchor":"name()","kind":"annotationElement","name":"name","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"The name of the instrument in an arbitrary format for humans."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The name of the instrument in an arbitrary format for humans."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1371}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#version()","anchor":"version()","kind":"annotationElement","name":"version","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"version"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"inherit\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"inherit\"","doc":{"summary":[{"kind":"text","text":"The version for instrument in an arbitrary format."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The version for instrument in an arbitrary format. It inherits from "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#getVersion()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#getVersion()"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.Engine.getVersion()"}]},{"kind":"text","text":" by default."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1379}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#internal()","anchor":"internal()","kind":"annotationElement","name":"internal","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"internal"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Specifies whether the instrument is accessible using the polyglot API."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies whether the instrument is accessible using the polyglot API. Internal instruments are only accessible from other instruments or guest languages."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1387}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#services()","anchor":"services()","kind":"annotationElement","name":"services","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[] "},{"kind":"name","text":"services"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"list of service types that this instrument can provide"}]}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Declarative list of classes this instrument is known to provide."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declarative list of classes this instrument is known to provide. The instrument is supposed to override its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument#onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument.Env)"},"code":true,"children":[{"kind":"text","text":"onCreate"}]},{"kind":"text","text":" method and instantiate and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#registerService(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"register"}]},{"kind":"text","text":" all here in defined services."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Instruments automatically get created when their registered "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Instrument#lookup(java.lang.Class)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Instrument.html#lookup(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"service is requested"}]},{"kind":"text","text":"."}]}]},"since":"0.25","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1402}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#website()","anchor":"website()","kind":"annotationElement","name":"website","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"website"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"A link to a website with more information about the instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A link to a website with more information about the instrument. Will be shown in the help text of GraalVM launchers."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The link can contain the following substitutions:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"code","text":"${graalvm-version}"}]}]},{"kind":"paragraph","children":[{"kind":"text","text":"the current GraalVM version. Optionally, a format string can be provided for the version using "},{"kind":"code","text":"${graalvm-version:format}"},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"org.graalvm.home.Version#format(java.lang.String)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/home/Version.html#format(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"Version.format"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"code","text":"${graalvm-website-version}"}]}]},{"kind":"paragraph","children":[{"kind":"text","text":"the current GraalVM version in a format suitable for links to the GraalVM reference manual. The exact format may change without notice."}]}]]}]},"since":"22.1.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1421}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#sandbox()","anchor":"sandbox()","kind":"annotationElement","name":"sandbox","signature":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},{"kind":"punct","text":" "},{"kind":"name","text":"sandbox"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"TRUSTED"}],"returns":{"type":[{"kind":"type","text":"SandboxPolicy","ref":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"}]},"defaultValue":"TRUSTED","doc":{"summary":[{"kind":"text","text":"Specifies the most strict sandbox policy in which the instrument can be used."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the most strict sandbox policy in which the instrument can be used. The instrument can be used in an engine with the specified sandbox policy or a weaker one. For example, if an instrument specifies "},{"kind":"code","text":"ISOLATED"},{"kind":"text","text":" policy, it can be used in an engine configured with sandbox policy "},{"kind":"code","text":"TRUSTED"},{"kind":"text","text":", "},{"kind":"code","text":"CONSTRAINED"},{"kind":"text","text":" or "},{"kind":"code","text":"ISOLATED"},{"kind":"text","text":". But it cannot be used in an engine configured with the "},{"kind":"code","text":"UNTRUSTED"},{"kind":"text","text":" sandbox policy."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.SandboxPolicy","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SandboxPolicy.html"},"code":true,"children":[{"kind":"text","text":"SandboxPolicy"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1434}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#internalResources()","anchor":"internalResources()","kind":"annotationElement","name":"internalResources","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource","ref":"com.oracle.truffle.api.InternalResource"},{"kind":"punct","text":">[] "},{"kind":"name","text":"internalResources"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalResource","ref":"com.oracle.truffle.api.InternalResource"},{"kind":"punct","text":">[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Declarative list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" classes that is associated with this instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declarative list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" classes that is associated with this instrument. Use the "},{"kind":"code","text":"internalResources"},{"kind":"text","text":" attribute solely for registering required internal resources. Optional internal resources should provide the associated instrument identifier using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Id#componentId()"},"code":true,"children":[{"kind":"text","text":"Id.componentId()"}]},{"kind":"text","text":" method. To unpack all resources of an instrument embedders may use "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#copyResources(java.nio.file.Path,java.lang.String...)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#copyResources(java.nio.file.Path,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"Engine.copyResources(Path, String...)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Id"},"code":true,"children":[{"kind":"text","text":"Id"}]}]]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1447}},{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration#optionalResources()","anchor":"optionalResources()","kind":"annotationElement","name":"optionalResources","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"optionalResources"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"A declarative list of optional "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" identifiers associated with this instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A declarative list of optional "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" identifiers associated with this instrument. It is recommended to register all optional resource identifiers here. Specifying the resource identifier allows the instrument use the resource even if its implementation was omitted at runtime. To use the resource when its implementation was omitted the "},{"kind":"code","text":"polyglot.engine.resourcePath.instrumentId"},{"kind":"text","text":" system property must be specified and point to a path with the resources. This allows to omit the resource implementation class in standalone distributions."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Id"},"code":true,"children":[{"kind":"text","text":"Id"}]}]]},"since":"25.0","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1462}}],"doc":{"summary":[{"kind":"text","text":"Annotation that registers an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" implementations for automatic discovery."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotation that registers an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"instrument"}]},{"kind":"text","text":" implementations for automatic discovery."}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/instrumentation/TruffleInstrument.java","line":1354}}]},{"id":"com.oracle.truffle.api.instrumentation.provider","name":"com.oracle.truffle.api.instrumentation.provider","doc":{"summary":[{"kind":"text","text":"This package contains a provider to instantiate a Truffle instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This package contains a provider to instantiate a Truffle instrument. The Truffle instrument provider is not intended to be implemented directly by a language developer, rather the implementation is generated by the Truffle DSL."}]}]},"since":"23.1","types":[{"id":"com.oracle.truffle.api.instrumentation.provider.TruffleInstrumentProvider","name":"TruffleInstrumentProvider","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleInstrumentProvider"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.instrumentation.provider.TruffleInstrumentProvider#<init>()","anchor":"<init>()","kind":"constructor","name":"TruffleInstrumentProvider","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleInstrumentProvider"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor to be called by subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor to be called by subclasses."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/provider/TruffleInstrumentProvider.java","line":66}},{"id":"com.oracle.truffle.api.instrumentation.provider.TruffleInstrumentProvider#getInstrumentClassName()","anchor":"getInstrumentClassName()","kind":"method","name":"getInstrumentClassName","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getInstrumentClassName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the name of a class implementing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name of a class implementing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/provider/TruffleInstrumentProvider.java","line":74}},{"id":"com.oracle.truffle.api.instrumentation.provider.TruffleInstrumentProvider#create()","anchor":"create()","kind":"method","name":"create","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new instance of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new instance of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/provider/TruffleInstrumentProvider.java","line":81}},{"id":"com.oracle.truffle.api.instrumentation.provider.TruffleInstrumentProvider#getServicesClassNames()","anchor":"getServicesClassNames()","kind":"method","name":"getServicesClassNames","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getServicesClassNames"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the class names of provided services."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the class names of provided services."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/provider/TruffleInstrumentProvider.java","line":88}},{"id":"com.oracle.truffle.api.instrumentation.provider.TruffleInstrumentProvider#getInternalResourceIds()","anchor":"getInternalResourceIds()","kind":"method","name":"getInternalResourceIds","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getInternalResourceIds"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns ids of provided internal resources."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns ids of provided internal resources."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/provider/TruffleInstrumentProvider.java","line":95}},{"id":"com.oracle.truffle.api.instrumentation.provider.TruffleInstrumentProvider#createInternalResource(java.lang.String)","anchor":"createInternalResource(java.lang.String)","kind":"method","name":"createInternalResource","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createInternalResource"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"resourceId"},{"kind":"punct","text":")"}],"params":[{"name":"resourceId","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"resourceId"},{"kind":"text","text":" is not supported by this instrument"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates an instrument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" identified by the "},{"kind":"code","text":"resourceId"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an instrument "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" identified by the "},{"kind":"code","text":"resourceId"},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/provider/TruffleInstrumentProvider.java","line":105}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Used to register a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"java.util.ServiceLoader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ServiceLoader.html"},"code":true,"children":[{"kind":"text","text":"ServiceLoader"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Used to register a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"java.util.ServiceLoader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ServiceLoader.html"},"code":true,"children":[{"kind":"text","text":"ServiceLoader"}]},{"kind":"text","text":". This interface is not intended to be implemented directly by an instrument developer, rather the implementation is generated by the Truffle DSL. The generated implementation has to inherit the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration"},"code":true,"children":[{"kind":"text","text":"Registration"}]},{"kind":"text","text":" annotations from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument"},"code":true,"children":[{"kind":"text","text":"TruffleInstrument"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/instrumentation/provider/TruffleInstrumentProvider.java","line":59}}]},{"id":"com.oracle.truffle.api.interop","name":"com.oracle.truffle.api.interop","doc":{"summary":[{"kind":"text","text":"This package contains classes that specify the contract for inter-operability between Truffle guest languages and tools."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This package contains classes that specify the contract for inter-operability between Truffle guest languages and tools."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.interop.InteropLibrary"}]}]]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.interop.ArityException","name":"ArityException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ArityException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"superclass":[{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"ancestors":[{"id":"com.oracle.truffle.api.interop.InteropException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.ArityException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/ArityException.java","line":72}},{"id":"com.oracle.truffle.api.interop.ArityException#getExpectedMinArity()","anchor":"getExpectedMinArity()","kind":"method","name":"getExpectedMinArity","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getExpectedMinArity"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the minimum number of arguments that are expected."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the minimum number of arguments that are expected. The returned minimum arity might be less conservative than the actual specification of the executable or instantiable invoked."}]}]},"since":"21.0","source":{"path":"com/oracle/truffle/api/interop/ArityException.java","line":100}},{"id":"com.oracle.truffle.api.interop.ArityException#getExpectedMaxArity()","anchor":"getExpectedMaxArity()","kind":"method","name":"getExpectedMaxArity","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getExpectedMaxArity"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the maximum number of arguments that are expected."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the maximum number of arguments that are expected. Returns a negative number if infinite arguments can be provided."}]}]},"since":"21.0","source":{"path":"com/oracle/truffle/api/interop/ArityException.java","line":110}},{"id":"com.oracle.truffle.api.interop.ArityException#getActualArity()","anchor":"getActualArity()","kind":"method","name":"getActualArity","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getActualArity"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of provided arguments"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the actual number of arguments provided by the foreign access."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the actual number of arguments provided by the foreign access. If a negative value is returned then the actual arity is unknown."}]}]},"since":"0.11","source":{"path":"com/oracle/truffle/api/interop/ArityException.java","line":121}},{"id":"com.oracle.truffle.api.interop.ArityException#create(int,int,int)","anchor":"create(int,int,int)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedMinArity"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedMaxArity"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"actualArity"},{"kind":"punct","text":")"}],"params":[{"name":"expectedMinArity","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"(inclusive) the minimum number of arguments expected by the executable. Must be greater or equal to zero."}]}]},{"name":"expectedMaxArity","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"(inclusive) the maximum number of arguments expected by the executable. If the maximum is negative then an infinite number of arguments is expected. If the number is positive then the maximum must be greater or equal to "},{"kind":"code","text":"expectedMinArity"},{"kind":"text","text":"."}]}]},{"name":"actualArity","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of provided by the executable. The actual arity must not be within range of the expected min and max arity."}]}]}],"returns":{"type":[{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ArityException"},"code":true,"children":[{"kind":"text","text":"ArityException"}]},{"kind":"text","text":" to indicate that the wrong number of arguments were provided."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ArityException"},"code":true,"children":[{"kind":"text","text":"ArityException"}]},{"kind":"text","text":" to indicate that the wrong number of arguments were provided. Throws an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" if the arguments are invalid and assertions (-ea) are enabled."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/interop/ArityException.java","line":143}},{"id":"com.oracle.truffle.api.interop.ArityException#create(int,int,int,java.lang.Throwable)","anchor":"create(int,int,int,java.lang.Throwable)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedMinArity"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedMaxArity"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"actualArity"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"expectedMinArity","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"(inclusive) the minimum number of arguments expected by the executable. Must be greater or equal to zero."}]}]},{"name":"expectedMaxArity","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"(inclusive) the maximum number of arguments expected by the executable. If the maximum is negative then an infinite number of arguments is expected. If the number is positive then the maximum must be greater or equal to "},{"kind":"code","text":"expectedMinArity"},{"kind":"text","text":"."}]}]},{"name":"actualArity","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of provided by the executable. The actual arity must not be within range of the expected min and max arity."}]}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest language exception that caused the error."}]}]}],"returns":{"type":[{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ArityException"},"code":true,"children":[{"kind":"text","text":"ArityException"}]},{"kind":"text","text":" to indicate that the wrong number of arguments were provided."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ArityException"},"code":true,"children":[{"kind":"text","text":"ArityException"}]},{"kind":"text","text":" to indicate that the wrong number of arguments were provided. Throws an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" if the arguments are invalid and assertions (-ea) are enabled."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is translated to a source language error. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/interop/ArityException.java","line":178}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.interop.InteropException","text":"InteropException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","text":"fillInStackTrace"},{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","text":"getCause"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown if a executable or instantiable object was provided with the wrong number of arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown if a executable or instantiable object was provided with the wrong number of arguments."}]}]},"since":"0.11","source":{"path":"com/oracle/truffle/api/interop/ArityException.java","line":52}},{"id":"com.oracle.truffle.api.interop.ExceptionType","name":"ExceptionType","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"ExceptionType"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.ExceptionType#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.interop.ExceptionType#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.interop.ExceptionType#EXIT","anchor":"EXIT","kind":"enumConstant","name":"EXIT","signature":[{"kind":"name","text":"EXIT"}],"type":[{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"}],"doc":{"summary":[{"kind":"text","text":"Indicates that the application was soft-exited within the guest language program."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates that the application was soft-exited within the guest language program. To obtain the exit status use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionExitStatus(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getExceptionExitStatus"}]},{"kind":"text","text":". See "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/Exit.md","children":[{"kind":"text","text":"Context Exit"}]},{"kind":"text","text":" for further information."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a language uses hard exits, it should not use soft exits, i.e. throw exceptions of this type on its own."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a language that does not use soft exits sees an exception of this type, it should re-throw it like other foreign exceptions, triggering finally blocks."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionExitStatus(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getExceptionExitStatus(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/ExceptionType.java","line":71}},{"id":"com.oracle.truffle.api.interop.ExceptionType#INTERRUPT","anchor":"INTERRUPT","kind":"enumConstant","name":"INTERRUPT","signature":[{"kind":"name","text":"INTERRUPT"}],"type":[{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"}],"doc":{"summary":[{"kind":"text","text":"Indicates that the application thread was interrupted by an "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates that the application thread was interrupted by an "},{"kind":"link","target":{"id":"java.lang.InterruptedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/InterruptedException.html"},"code":true,"children":[{"kind":"text","text":"InterruptedException"}]},{"kind":"text","text":"."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/ExceptionType.java","line":78}},{"id":"com.oracle.truffle.api.interop.ExceptionType#RUNTIME_ERROR","anchor":"RUNTIME_ERROR","kind":"enumConstant","name":"RUNTIME_ERROR","signature":[{"kind":"name","text":"RUNTIME_ERROR"}],"type":[{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"}],"doc":{"summary":[{"kind":"text","text":"Indicates a guest language error."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates a guest language error."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/ExceptionType.java","line":85}},{"id":"com.oracle.truffle.api.interop.ExceptionType#PARSE_ERROR","anchor":"PARSE_ERROR","kind":"enumConstant","name":"PARSE_ERROR","signature":[{"kind":"name","text":"PARSE_ERROR"}],"type":[{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"}],"doc":{"summary":[{"kind":"text","text":"Indicates a parser or syntax error."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Indicates a parser or syntax error. Syntax errors typically occur while "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"parsing"}]},{"kind":"text","text":" of guest language source code. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExceptionIncompleteSource(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isExceptionIncompleteSource"}]},{"kind":"text","text":" to find out if the parse error happened due to incomplete source."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExceptionIncompleteSource(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isExceptionIncompleteSource(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/ExceptionType.java","line":96}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a type of a Truffle exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a type of a Truffle exception."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionType(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.getExceptionType(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/ExceptionType.java","line":54}},{"id":"com.oracle.truffle.api.interop.HeapIsolationException","name":"HeapIsolationException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"HeapIsolationException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"superclass":[{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"ancestors":[{"id":"com.oracle.truffle.api.interop.InteropException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.HeapIsolationException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/HeapIsolationException.java","line":67}},{"id":"com.oracle.truffle.api.interop.HeapIsolationException#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"HeapIsolationException","ref":"com.oracle.truffle.api.interop.HeapIsolationException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"HeapIsolationException","ref":"com.oracle.truffle.api.interop.HeapIsolationException"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.HeapIsolationException"},"code":true,"children":[{"kind":"text","text":"HeapIsolationException"}]},{"kind":"text","text":" indicating that a host object cannot be unboxed because it was allocated in a foreign heap."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.HeapIsolationException"},"code":true,"children":[{"kind":"text","text":"HeapIsolationException"}]},{"kind":"text","text":" indicating that a host object cannot be unboxed because it was allocated in a foreign heap. For example, when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.asHostObject(Object)"}]},{"kind":"text","text":" is invoked from within a polyglot isolate."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This factory method is intended for use in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled code paths"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/HeapIsolationException.java","line":82}},{"id":"com.oracle.truffle.api.interop.HeapIsolationException#create(java.lang.Throwable)","anchor":"create(java.lang.Throwable)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"HeapIsolationException","ref":"com.oracle.truffle.api.interop.HeapIsolationException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]}],"returns":{"type":[{"kind":"type","text":"HeapIsolationException","ref":"com.oracle.truffle.api.interop.HeapIsolationException"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.HeapIsolationException"},"code":true,"children":[{"kind":"text","text":"HeapIsolationException"}]},{"kind":"text","text":" indicating that a host object cannot be unboxed because it was allocated in a foreign heap."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.HeapIsolationException"},"code":true,"children":[{"kind":"text","text":"HeapIsolationException"}]},{"kind":"text","text":" indicating that a host object cannot be unboxed because it was allocated in a foreign heap. For example, when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.asHostObject(Object)"}]},{"kind":"text","text":" is invoked from within a polyglot isolate."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition, a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is translated to a source language error. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This factory method is intended for use in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled code paths"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/HeapIsolationException.java","line":107}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.interop.InteropException","text":"InteropException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","text":"fillInStackTrace"},{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","text":"getCause"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Exception thrown when a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":" cannot unbox a host object because the object resides in a foreign heap."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Exception thrown when a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":" cannot unbox a host object because the object resides in a foreign heap."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/HeapIsolationException.java","line":51}},{"id":"com.oracle.truffle.api.interop.InteropException","name":"InteropException","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InteropException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"superclass":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"ancestors":[{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","anchor":"getCause()","kind":"method","name":"getCause","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getCause"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},"overrides":{"id":"java.lang.Throwable#getCause()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},"doc":{"summary":[{"kind":"text","text":"Returns the cause of an interop exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the cause of an interop exception."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/InteropException.java","line":70}},{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","anchor":"fillInStackTrace()","kind":"method","name":"fillInStackTrace","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"fillInStackTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},"overrides":{"id":"java.lang.Throwable#fillInStackTrace()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},"doc":{"summary":[{"kind":"text","text":"No stack trace for interop exceptions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"No stack trace for interop exceptions."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/InteropException.java","line":82}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Common super class for exceptions that can occur when sending "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"interop messages"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Common super class for exceptions that can occur when sending "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"interop messages"}]},{"kind":"text","text":". This super class is used to catch any kind of these exceptions."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"InteropLibrary"}]}]]},"since":"0.11","source":{"path":"com/oracle/truffle/api/interop/InteropException.java","line":52}},{"id":"com.oracle.truffle.api.interop.InteropLibrary","name":"InteropLibrary","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InteropLibrary"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"superclass":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"ancestors":[{"id":"com.oracle.truffle.api.library.Library"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.InteropLibrary#<init>()","anchor":"<init>()","kind":"constructor","name":"InteropLibrary","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"InteropLibrary"},{"kind":"punct","text":"()"}],"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":203}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNull(java.lang.Object)","anchor":"isNull(java.lang.Object)","kind":"method","name":"isNull","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isNull"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"null"},{"kind":"text","text":" like value, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"null"},{"kind":"text","text":" like value, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Most object oriented languages have one or many values representing null values. Invoking this message does not cause any observable side-effects."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":213}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBoolean(java.lang.Object)","anchor":"isBoolean(java.lang.Object)","kind":"method","name":"isBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"boolean"},{"kind":"text","text":" like value, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"boolean"},{"kind":"text","text":" like value, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asBoolean(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asBoolean(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":225}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asBoolean(java.lang.Object)","anchor":"asBoolean(java.lang.Object)","kind":"method","name":"asBoolean","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"asBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBoolean(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isBoolean(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the Java boolean value if the receiver represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBoolean(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"boolean"}]},{"kind":"text","text":" like value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the Java boolean value if the receiver represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBoolean(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"boolean"}]},{"kind":"text","text":" like value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBoolean(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isBoolean(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":239}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)","anchor":"isExecutable(java.lang.Object)","kind":"method","name":"isExecutable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isExecutable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents an "},{"kind":"code","text":"executable"},{"kind":"text","text":" value, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents an "},{"kind":"code","text":"executable"},{"kind":"text","text":" value, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Functions, methods or closures are common examples of executable values. Invoking this message does not cause any observable side-effects. Note that receiver values which are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executable"}]},{"kind":"text","text":" might also be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstantiable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"instantiable"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#execute(java.lang.Object,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"execute(Object, Object...)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":254}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#execute(java.lang.Object,java.lang.Object...)","anchor":"execute(java.lang.Object,java.lang.Object...)","kind":"method","name":"execute","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"arguments"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"},{"kind":"punct","text":", "},{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if one of the arguments is not compatible to the executable signature. The exception is thrown on best effort basis, dynamic languages may throw their own exceptions if the arguments are wrong."}]}]},{"type":[{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the number of expected arguments does not match the number of actual arguments."}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isExecutable(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Executes an executable value with the given arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes an executable value with the given arguments."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isExecutable(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":272}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExecutableName(java.lang.Object)","anchor":"hasExecutableName(java.lang.Object)","kind":"method","name":"hasExecutableName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasExecutableName"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver has an executable name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver has an executable name. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExecutableName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getExecutableName(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":284}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExecutableName(java.lang.Object)","anchor":"getExecutableName(java.lang.Object)","kind":"method","name":"getExecutableName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getExecutableName"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns executable name of the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns executable name of the receiver. Throws "},{"kind":"code","text":"UnsupportedMessageException"},{"kind":"text","text":" when the receiver is has no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExecutableName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executable name"}]},{"kind":"text","text":". The return value is an interop value that is guaranteed to return "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isString(Object)"}]},{"kind":"text","text":". This method must not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExecutableName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasExecutableName(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":298}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasDeclaringMetaObject(java.lang.Object)","anchor":"hasDeclaringMetaObject(java.lang.Object)","kind":"method","name":"hasDeclaringMetaObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasDeclaringMetaObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver has a declaring meta object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver has a declaring meta object. The declaring meta object is the meta object of the executable or meta object that declares the receiver value. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getDeclaringMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getDeclaringMetaObject(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":312}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getDeclaringMetaObject(java.lang.Object)","anchor":"getDeclaringMetaObject(java.lang.Object)","kind":"method","name":"getDeclaringMetaObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getDeclaringMetaObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns declaring meta object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns declaring meta object. The declaring meta object is the meta object of declaring executable or meta object. Throws "},{"kind":"code","text":"UnsupportedMessageException"},{"kind":"text","text":" when the receiver is has no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasDeclaringMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"declaring meta object"}]},{"kind":"text","text":". The return value is an interop value that is guaranteed to return "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasDeclaringMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasDeclaringMetaObject(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":327}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstantiable(java.lang.Object)","anchor":"isInstantiable(java.lang.Object)","kind":"method","name":"isInstantiable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInstantiable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents an "},{"kind":"code","text":"instantiable"},{"kind":"text","text":" value, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents an "},{"kind":"code","text":"instantiable"},{"kind":"text","text":" value, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Contructors or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"metaobjects"}]},{"kind":"text","text":" are typical examples of instantiable values. Invoking this message does not cause any observable side-effects. Note that receiver values which are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executable"}]},{"kind":"text","text":" might also be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstantiable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"instantiable"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#instantiate(java.lang.Object,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"instantiate(Object, Object...)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":344}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#instantiate(java.lang.Object,java.lang.Object...)","anchor":"instantiate(java.lang.Object,java.lang.Object...)","kind":"method","name":"instantiate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"instantiate"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"arguments"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"},{"kind":"punct","text":", "},{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if one of the arguments is not compatible to the executable signature"}]}]},{"type":[{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the number of expected arguments does not match the number of actual arguments."}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstantiable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isInstantiable(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Instantiates the receiver value with the given arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Instantiates the receiver value with the given arguments. The returned object must be initialized correctly according to the language specification (e.g. by calling the constructor or initialization routine)."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isExecutable(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":363}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)","anchor":"isString(java.lang.Object)","kind":"method","name":"isString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isString"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"string"},{"kind":"text","text":" value, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"string"},{"kind":"text","text":" value, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asString(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":376}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asString(java.lang.Object)","anchor":"asString(java.lang.Object)","kind":"method","name":"asString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asString"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isString(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the Java string value if the receiver represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":" like value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the Java string value if the receiver represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":" like value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isString(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":390}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asTruffleString(java.lang.Object)","anchor":"asTruffleString(java.lang.Object)","kind":"method","name":"asTruffleString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"asTruffleString"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isString(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" value if the receiver represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":" like value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" value if the receiver represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":" like value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isString(Object)"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":404}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)","anchor":"isNumber(java.lang.Object)","kind":"method","name":"isNumber","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isNumber"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" value, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" value, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInByte(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInByte(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInShort(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInShort(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInInt(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInInt(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInLong(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInLong(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInBigInteger(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInBigInteger(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInFloat(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInFloat(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInDouble(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInDouble(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asByte(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asByte(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asShort(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asShort(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asInt(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asInt(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asLong(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asLong(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asBigInteger(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asBigInteger(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asFloat(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asFloat(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asDouble(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asDouble(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":429}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInByte(java.lang.Object)","anchor":"fitsInByte(java.lang.Object)","kind":"method","name":"fitsInByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java byte primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java byte primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asByte(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asByte(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":444}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInShort(java.lang.Object)","anchor":"fitsInShort(java.lang.Object)","kind":"method","name":"fitsInShort","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInShort"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java short primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java short primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asShort(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asShort(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":458}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInInt(java.lang.Object)","anchor":"fitsInInt(java.lang.Object)","kind":"method","name":"fitsInInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java int primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java int primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asInt(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asInt(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":472}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInLong(java.lang.Object)","anchor":"fitsInLong(java.lang.Object)","kind":"method","name":"fitsInLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java long primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java long primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asLong(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asLong(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":486}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInBigInteger(java.lang.Object)","anchor":"fitsInBigInteger(java.lang.Object)","kind":"method","name":"fitsInBigInteger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInBigInteger"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java BigInteger without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java BigInteger without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asBigInteger(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asBigInteger(Object)"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":500}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInFloat(java.lang.Object)","anchor":"fitsInFloat(java.lang.Object)","kind":"method","name":"fitsInFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java float primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java float primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asFloat(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asFloat(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":525}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInDouble(java.lang.Object)","anchor":"fitsInDouble(java.lang.Object)","kind":"method","name":"fitsInDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"fitsInDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java double primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents a "},{"kind":"code","text":"number"},{"kind":"text","text":" and its value fits in a Java double primitive without loss of precision, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asDouble(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asDouble(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":539}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asByte(java.lang.Object)","anchor":"asByte(java.lang.Object)","kind":"method","name":"asByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"asByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]},{"kind":"text","text":" or it does not fit without loss of precision."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver value as Java byte primitive if the number fits without loss of precision."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver value as Java byte primitive if the number fits without loss of precision. Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInByte(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInByte(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":554}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asShort(java.lang.Object)","anchor":"asShort(java.lang.Object)","kind":"method","name":"asShort","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"asShort"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"short"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]},{"kind":"text","text":" or it does not fit without loss of precision."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver value as Java short primitive if the number fits without loss of precision."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver value as Java short primitive if the number fits without loss of precision. Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInShort(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInShort(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":569}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asInt(java.lang.Object)","anchor":"asInt(java.lang.Object)","kind":"method","name":"asInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"asInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]},{"kind":"text","text":" or it does not fit without loss of precision."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver value as Java int primitive if the number fits without loss of precision."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver value as Java int primitive if the number fits without loss of precision. Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInInt(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInInt(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":584}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asLong(java.lang.Object)","anchor":"asLong(java.lang.Object)","kind":"method","name":"asLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"asLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]},{"kind":"text","text":" or it does not fit without loss of precision."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver value as Java long primitive if the number fits without loss of precision."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver value as Java long primitive if the number fits without loss of precision. Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInLong(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInLong(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":599}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asBigInteger(java.lang.Object)","anchor":"asBigInteger(java.lang.Object)","kind":"method","name":"asBigInteger","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"BigInteger","ref":"java.math.BigInteger","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/math/BigInteger.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asBigInteger"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"BigInteger","ref":"java.math.BigInteger","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/math/BigInteger.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]},{"kind":"text","text":" or it does not fit without loss of precision."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver value as Java BigInteger if the number fits without loss of precision."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver value as Java BigInteger if the number fits without loss of precision. Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInBigInteger(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInBigInteger(Object)"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":614}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asFloat(java.lang.Object)","anchor":"asFloat(java.lang.Object)","kind":"method","name":"asFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"asFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]},{"kind":"text","text":" or it does not fit without loss of precision."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver value as Java float primitive if the number fits without loss of precision."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver value as Java float primitive if the number fits without loss of precision. Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInFloat(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInFloat(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":652}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asDouble(java.lang.Object)","anchor":"asDouble(java.lang.Object)","kind":"method","name":"asDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"asDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]},{"kind":"text","text":" or it does not fit without loss of precision."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver value as Java double primitive if the number fits without loss of precision."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver value as Java double primitive if the number fits without loss of precision. Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNumber(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#fitsInDouble(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"fitsInDouble(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":667}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)","anchor":"hasMembers(java.lang.Object)","kind":"method","name":"hasMembers","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasMembers"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver may have members."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver may have members. Therefore, at least one of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readMember(Object, String)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeMember(Object, String, Object)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"removeMember(Object, String)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#invokeMember(java.lang.Object,java.lang.String,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"invokeMember(Object, String, Object...)"}]},{"kind":"text","text":" must not throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":". Members are structural elements of a class. For example, a method or field is a member of a class. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"getMembers(Object, boolean)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberReadable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberReadable(Object, String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberModifiable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberModifiable(Object, String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInvocable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberInvocable(Object, String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberInsertable(Object, String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberRemovable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberRemovable(Object, String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readMember(Object, String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeMember(Object, String, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"removeMember(Object, String)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#invokeMember(java.lang.Object,java.lang.String,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"invokeMember(Object, String, Object...)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":693}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBytecodeIndex(java.lang.Object)","anchor":"hasBytecodeIndex(java.lang.Object)","kind":"method","name":"hasBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Determines whether the given receiver provides a bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Determines whether the given receiver provides a bytecode index. For example, a stack frame object may provide a bytecode index. Calling this message does not produce any observable side effects. The default implementation returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBytecodeIndex(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBytecodeIndex(Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":707}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBytecodeIndex(java.lang.Object)","anchor":"getBytecodeIndex(java.lang.Object)","kind":"method","name":"getBytecodeIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns bytecode index of the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns bytecode index of the receiver. Throws "},{"kind":"code","text":"UnsupportedMessageException"},{"kind":"text","text":" when the receiver does not provide a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBytecodeIndex(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"bytecode index"}]},{"kind":"text","text":" or has no bytecode index."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBytecodeIndex(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBytecodeIndex(Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":720}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInternal(java.lang.Object)","anchor":"isInternal(java.lang.Object)","kind":"method","name":"isInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Determines whether the given receiver represents an internal object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Determines whether the given receiver represents an internal object. For example, a stack frame object may be marked as internal so that it can be excluded from a stack trace shown to the user. Calling this message does not produce any observable side effects. The default implementation returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getLanguageId(Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":734}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object,boolean)","anchor":"getMembers(java.lang.Object,boolean)","kind":"method","name":"getMembers","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMembers"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"includeInternal"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"includeInternal","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver does not have any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"members"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns an array of member name strings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an array of member name strings. The returned value must return "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasArrayElements(Object)"}]},{"kind":"text","text":" and every array element must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":". The member elements may also provide additional information like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" in case of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"scope"}]},{"kind":"text","text":" variables, etc."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The order of member names needs to be:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"deterministic, assuming the program execution is deterministic,"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"in the declaration order, when applicable,"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"multiple invocations of this method must return the same members in the same order as long as no side-effecting operations were performed."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If the includeInternal argument is "},{"kind":"code","text":"true"},{"kind":"text","text":" then internal member names are returned as well. Internal members are implementation specific and should not be exposed to guest language application. An example of internal members are internal slots in ECMAScript."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMembers(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":761}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)","anchor":"getMembers(java.lang.Object)","kind":"method","name":"getMembers","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMembers"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver has no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"members"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Short-cut for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"getMembers(receiver, false)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Short-cut for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"getMembers(receiver, false)"}]},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"getMembers(Object, boolean)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":775}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberReadable(java.lang.Object,java.lang.String)","anchor":"isMemberReadable(java.lang.Object,java.lang.String)","kind":"method","name":"isMemberReadable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMemberReadable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMembers(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberInsertable(Object, String)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readMember(Object, String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":789}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readMember(java.lang.Object,java.lang.String)","anchor":"readMember(java.lang.Object,java.lang.String)","kind":"method","name":"readMember","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"readMember"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if when the receiver does not support reading at all. An empty receiver with no readable members supports the read operation (even though there is nothing to read), therefore it throws "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException"},"code":true,"children":[{"kind":"text","text":"UnknownIdentifierException"}]},{"kind":"text","text":" for all arguments instead."}]}]},{"type":[{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given member cannot be read, e.g. because it is not (or no longer) "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberReadable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":" such as when the member with the given name does not exist or has been removed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the value of a given member."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the value of a given member."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In case of a method-like member, we recommend that languages return a bound method (or an artificial receiver-method binding) to improve cross-language portability. In this case, the member should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberReadable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInvocable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"invocable"}]},{"kind":"text","text":" and the result of reading the member should be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executable"}]},{"kind":"text","text":" and bound to the receiver."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This message must have not observable side-effects unless "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMemberReadSideEffects(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"hasMemberReadSideEffects(Object, String)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMemberReadSideEffects(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"hasMemberReadSideEffects(Object, String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":816}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberModifiable(java.lang.Object,java.lang.String)","anchor":"isMemberModifiable(java.lang.Object,java.lang.String)","kind":"method","name":"isMemberModifiable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMemberModifiable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMembers(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberInsertable(Object, String)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeMember(Object, String, Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":831}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)","anchor":"isMemberInsertable(java.lang.Object,java.lang.String)","kind":"method","name":"isMemberInsertable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMemberInsertable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is not existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is not existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMembers(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberExisting(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberExisting(Object, String)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeMember(Object, String, Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":846}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)","anchor":"writeMember(java.lang.Object,java.lang.String,java.lang.Object)","kind":"method","name":"writeMember","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeMember"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the receiver does not support writing at all, e.g. when it is immutable."}]}]},{"type":[{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given member is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberModifiable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" nor "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the provided value type is not allowed to be written."}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the value of a given member."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the value of a given member. Writing a member is allowed if is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberModifiable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", or not existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":". This method must have no observable side-effects other than the changed member unless "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMemberWriteSideEffects(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"side-effects"}]},{"kind":"text","text":" are allowed."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMemberWriteSideEffects(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"hasMemberWriteSideEffects(Object, String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":868}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberRemovable(java.lang.Object,java.lang.String)","anchor":"isMemberRemovable(java.lang.Object,java.lang.String)","kind":"method","name":"isMemberRemovable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMemberRemovable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is existing and removable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is existing and removable. This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMembers(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberInsertable(Object, String)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"removeMember(Object, String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":882}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeMember(java.lang.Object,java.lang.String)","anchor":"removeMember(java.lang.Object,java.lang.String)","kind":"method","name":"removeMember","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"removeMember"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the receiver does not support removing at all, e.g. when it is immutable."}]}]},{"type":[{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given member is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberRemovable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberRemovable(Object, String)"}]},{"kind":"text","text":" removable}, e.g. the receiver does not have a member with the given name."}]}]}],"doc":{"summary":[{"kind":"text","text":"Removes a member from the receiver object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes a member from the receiver object. Removing member is allowed if is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberRemovable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":". This method does not have not observable side-effects other than the removed member."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberRemovable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberRemovable(Object, String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":901}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInvocable(java.lang.Object,java.lang.String)","anchor":"isMemberInvocable(java.lang.Object,java.lang.String)","kind":"method","name":"isMemberInvocable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMemberInvocable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is invocable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given member is invocable. This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMembers(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberInsertable(Object, String)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#invokeMember(java.lang.Object,java.lang.String,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"invokeMember(Object, String, Object...)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":915}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#invokeMember(java.lang.Object,java.lang.String,java.lang.Object...)","anchor":"invokeMember(java.lang.Object,java.lang.String,java.lang.Object...)","kind":"method","name":"invokeMember","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"invokeMember"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"arguments"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given member does not exist or is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInvocable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"invocable"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if one of the arguments is not compatible to the executable signature. The exception is thrown on best effort basis, dynamic languages may throw their own exceptions if the arguments are wrong."}]}]},{"type":[{"kind":"type","text":"ArityException","ref":"com.oracle.truffle.api.interop.ArityException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the number of expected arguments does not match the number of actual arguments."}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the receiver does not support invoking at all, e.g. when storing executable members is not allowed."}]}]}],"doc":{"summary":[{"kind":"text","text":"Invokes a member for a given receiver and arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invokes a member for a given receiver and arguments."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInvocable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"isMemberInvocable(Object, String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":935}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInternal(java.lang.Object,java.lang.String)","anchor":"isMemberInternal(java.lang.Object,java.lang.String)","kind":"method","name":"isMemberInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMemberInternal"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if a member is internal."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if a member is internal. Internal members are not enumerated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"getMembers(Object, boolean)"}]},{"kind":"text","text":" by default. Internal members are only relevant to guest language implementations and tools, but not to guest applications or embedders. An example of internal members are internal slots in ECMAScript. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"getMembers(Object, boolean)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":951}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberWritable(java.lang.Object,java.lang.String)","anchor":"isMemberWritable(java.lang.Object,java.lang.String)","kind":"method","name":"isMemberWritable","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMemberWritable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if the member is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberModifiable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if the member is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberModifiable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInsertable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":961}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberExisting(java.lang.Object,java.lang.String)","anchor":"isMemberExisting(java.lang.Object,java.lang.String)","kind":"method","name":"isMemberExisting","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMemberExisting"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if the member is existing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if the member is existing. A member is existing if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberModifiable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberReadable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberRemovable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMemberInvocable(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"invocable"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":973}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMemberReadSideEffects(java.lang.Object,java.lang.String)","anchor":"hasMemberReadSideEffects(java.lang.Object,java.lang.String)","kind":"method","name":"hasMemberReadSideEffects","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasMemberReadSideEffects"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if reading a member may cause a side-effect."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if reading a member may cause a side-effect. Invoking this message does not cause any observable side-effects. A member read does not cause any side-effects by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For instance in JavaScript a property read may have side-effects if the property has a getter function."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readMember(Object, String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":988}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMemberWriteSideEffects(java.lang.Object,java.lang.String)","anchor":"hasMemberWriteSideEffects(java.lang.Object,java.lang.String)","kind":"method","name":"hasMemberWriteSideEffects","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasMemberWriteSideEffects"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"member"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"member","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if writing a member may cause a side-effect, besides the write operation of the member."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if writing a member may cause a side-effect, besides the write operation of the member. Invoking this message does not cause any observable side-effects. A member write does not cause any side-effects by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For instance in JavaScript a property write may have side-effects if the property has a setter function."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeMember(Object, String, Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1003}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasStaticScope(java.lang.Object)","anchor":"hasStaticScope(java.lang.Object)","kind":"method","name":"hasStaticScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasStaticScope"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given receiver is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"children":[{"kind":"text","text":"meta object"}]},{"kind":"text","text":" that provides a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getStaticScope(java.lang.Object)"},"children":[{"kind":"text","text":"static scope"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given receiver is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"children":[{"kind":"text","text":"meta object"}]},{"kind":"text","text":" that provides a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getStaticScope(java.lang.Object)"},"children":[{"kind":"text","text":"static scope"}]},{"kind":"text","text":". A static scope represents the static or class-level members associated with the receiver's type, such as static fields or methods."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message must not cause any observable side effects."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Only "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"meta objects"}]},{"kind":"text","text":" are permitted to expose a static scope, for all non-meta objects this method must return "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default, this method returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getStaticScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getStaticScope(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1024}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getStaticScope(java.lang.Object)","anchor":"getStaticScope(java.lang.Object)","kind":"method","name":"getStaticScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getStaticScope"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if the receiver does not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasStaticScope(java.lang.Object)"},"children":[{"kind":"text","text":"have a static scope"}]}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the static scope associated with the given receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the static scope associated with the given receiver. The receiver must be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"children":[{"kind":"text","text":"meta object"}]},{"kind":"text","text":". A static scope is an object that exposes static members, members whose values or behaviors are independent of any particular instance of the receiver."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The static scope typically serves as an artificial or meta-level object that provides access to instance-independent members declared by the meta object. The returned object can be used as the receiver for interop messages such as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readMember(java.lang.Object,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"readMember"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeMember(java.lang.Object,java.lang.String,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeMember"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#invokeMember(java.lang.Object,java.lang.String,java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"invokeMember"}]},{"kind":"text","text":" when accessing static members."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned static scope is always expected to be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"scope"}]},{"kind":"text","text":" and provide "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"members"}]},{"kind":"text","text":", representing the receiver's static context."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Examples:"}]}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"In Java, the static scope exposes static fields and methods of a class."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"In Python, the static scope exposes class-level attributes and methods, effectively corresponding to the members provided by the Python metaobject."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasStaticScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasStaticScope(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isScope(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMembers(Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1059}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)","anchor":"hasHashEntries(java.lang.Object)","kind":"method","name":"hasHashEntries","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasHashEntries"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver may have hash entries."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver may have hash entries. Therefore, at least one of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValue(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readHashValue(Object, Object)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeHashEntry(Object, Object, Object)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeHashEntry(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"removeHashEntry(Object, Object)"}]},{"kind":"text","text":" must not throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":". For example, the contents of a map data structure could be interpreted as hash elements. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getHashEntriesIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getHashEntriesIterator(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getHashSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getHashSize(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryReadable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryReadable(Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryWritable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryWritable(Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryInsertable(Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryRemovable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryRemovable(Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValue(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readHashValue(Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValueOrDefault(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readHashValueOrDefault(Object, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeHashEntry(Object, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeHashEntry(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"removeHashEntry(Object, Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1085}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getHashSize(java.lang.Object)","anchor":"getHashSize(java.lang.Object)","kind":"method","name":"getHashSize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashSize"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasHashEntries(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the number of receiver entries."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of receiver entries."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1099}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryReadable(java.lang.Object,java.lang.Object)","anchor":"isHashEntryReadable(java.lang.Object,java.lang.Object)","kind":"method","name":"isHashEntryReadable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryReadable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValue(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValue(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasHashEntries(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryInsertable(Object, Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValue(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readHashValue(Object, Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1114}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValue(java.lang.Object,java.lang.Object)","anchor":"readHashValue(java.lang.Object,java.lang.Object)","kind":"method","name":"readHashValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"readHashValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the receiver does not support reading at all. An empty receiver with no readable hash entries supports the read operation (even though there is nothing to read), therefore it throws "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownKeyException"},"code":true,"children":[{"kind":"text","text":"UnknownKeyException"}]},{"kind":"text","text":" for all arguments instead."}]}]},{"type":[{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if mapping for the specified key is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryReadable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":", e.g. when the hash does not contain specified key."}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the value for the specified key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the value for the specified key."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryReadable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryReadable(Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValueOrDefault(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readHashValueOrDefault(Object, Object, Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1133}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValueOrDefault(java.lang.Object,java.lang.Object,java.lang.Object)","anchor":"readHashValueOrDefault(java.lang.Object,java.lang.Object,java.lang.Object)","kind":"method","name":"readHashValueOrDefault","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"readHashValueOrDefault"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the receiver does not support reading at all. An empty receiver with no readable hash entries supports the read operation (even though there is nothing to read), therefore it returns the "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":" for all arguments instead."}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the value for the specified key or returns the "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":" when the mapping for the specified key does not exist or is not readable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the value for the specified key or returns the "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":" when the mapping for the specified key does not exist or is not readable."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryReadable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryReadable(Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readHashValue(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readHashValue(Object, Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1150}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryModifiable(java.lang.Object,java.lang.Object)","anchor":"isHashEntryModifiable(java.lang.Object,java.lang.Object)","kind":"method","name":"isHashEntryModifiable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryModifiable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasHashEntries(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryInsertable(Object, Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeHashEntry(Object, Object, Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1168}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)","anchor":"isHashEntryInsertable(java.lang.Object,java.lang.Object)","kind":"method","name":"isHashEntryInsertable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryInsertable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key does not exist and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key does not exist and is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasHashEntries(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryExisting(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryExisting(Object, Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeHashEntry(Object, Object, Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1183}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryWritable(java.lang.Object,java.lang.Object)","anchor":"isHashEntryWritable(java.lang.Object,java.lang.Object)","kind":"method","name":"isHashEntryWritable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryWritable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryModifiable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryModifiable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1195}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)","anchor":"writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)","kind":"method","name":"writeHashEntry","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeHashEntry"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the receiver does not support writing at all, e.g. when it is immutable."}]}]},{"type":[{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if mapping for the specified key is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryModifiable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" nor "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the provided key type or value type is not allowed to be written."}]}]}],"doc":{"summary":[{"kind":"text","text":"Associates the specified value with the specified key in the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Associates the specified value with the specified key in the receiver. Writing the entry is allowed if is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryModifiable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", or not existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1213}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryRemovable(java.lang.Object,java.lang.Object)","anchor":"isHashEntryRemovable(java.lang.Object,java.lang.Object)","kind":"method","name":"isHashEntryRemovable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryRemovable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is removable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for the specified key exists and is removable. This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasHashEntries(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryInsertable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryInsertable(Object, Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeHashEntry(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"removeHashEntry(Object, Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1227}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeHashEntry(java.lang.Object,java.lang.Object)","anchor":"removeHashEntry(java.lang.Object,java.lang.Object)","kind":"method","name":"removeHashEntry","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"removeHashEntry"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the receiver does not support removing at all, e.g. when it is immutable."}]}]},{"type":[{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given mapping is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryRemovable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":", e.g. the receiver does not have a mapping for given key."}]}]}],"doc":{"summary":[{"kind":"text","text":"Removes the mapping for a given key from the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes the mapping for a given key from the receiver. Mapping removing is allowed if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryRemovable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryRemovable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHashEntryRemovable(Object, Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1244}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryExisting(java.lang.Object,java.lang.Object)","anchor":"isHashEntryExisting(java.lang.Object,java.lang.Object)","kind":"method","name":"isHashEntryExisting","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHashEntryExisting"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for a given key is existing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if mapping for a given key is existing. The mapping is existing if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryModifiable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryReadable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHashEntryRemovable(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1257}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getHashEntriesIterator(java.lang.Object)","anchor":"getHashEntriesIterator(java.lang.Object)","kind":"method","name":"getHashEntriesIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashEntriesIterator"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasHashEntries(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the hash entries iterator for the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the hash entries iterator for the receiver. The return value is always an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"iterator"}]},{"kind":"text","text":" of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"array"}]},{"kind":"text","text":" elements. The first array element is a key, the second array element is an associated value. Array returned by the iterator may be modifiable but detached from the hash, updating the array elements may not update the hash. So even if array elements are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementModifiable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" always use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeHashEntry(java.lang.Object,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeHashEntry(Object, Object, Object)"}]},{"kind":"text","text":" to update the hash mapping."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1274}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getHashKeysIterator(java.lang.Object)","anchor":"getHashKeysIterator(java.lang.Object)","kind":"method","name":"getHashKeysIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashKeysIterator"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasHashEntries(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the hash keys iterator for the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the hash keys iterator for the receiver. The return value is always an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"iterator"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1287}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getHashValuesIterator(java.lang.Object)","anchor":"getHashValuesIterator(java.lang.Object)","kind":"method","name":"getHashValuesIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getHashValuesIterator"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasHashEntries(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the hash values iterator for the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the hash values iterator for the receiver. The return value is always an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"iterator"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1300}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)","anchor":"hasArrayElements(java.lang.Object)","kind":"method","name":"hasArrayElements","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasArrayElements"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver may have array elements."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver may have array elements. Therefore, At least one of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readArrayElement(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"readArrayElement(Object, long)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeArrayElement(java.lang.Object,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeArrayElement(Object, long, Object)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeArrayElement(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"removeArrayElement(Object, long)"}]},{"kind":"text","text":" must not throw {#link "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":". For example, the contents of an array or list datastructure could be interpreted as array elements. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getArraySize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getArraySize(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1318}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readArrayElement(java.lang.Object,long)","anchor":"readArrayElement(java.lang.Object,long)","kind":"method","name":"readArrayElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"readArrayElement"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"index","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the receiver does not support reading at all. An empty receiver with no readable array elements supports the read operation (even though there is nothing to read), therefore it throws "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException"},"code":true,"children":[{"kind":"text","text":"UnknownIdentifierException"}]},{"kind":"text","text":" for all arguments instead."}]}]},{"type":[{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given index is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementReadable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":", e.g. when the index is invalid or the index is out of bounds."}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the value of an array element by index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the value of an array element by index. This method must have not observable side-effect."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1336}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getArraySize(java.lang.Object)","anchor":"getArraySize(java.lang.Object)","kind":"method","name":"getArraySize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getArraySize"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasArrayElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the array size of the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the array size of the receiver."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1348}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementReadable(java.lang.Object,long)","anchor":"isArrayElementReadable(java.lang.Object,long)","kind":"method","name":"isArrayElementReadable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isArrayElementReadable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"index","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given array element is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readArrayElement(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given array element is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readArrayElement(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasArrayElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readArrayElement(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"readArrayElement(Object, long)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1362}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeArrayElement(java.lang.Object,long,java.lang.Object)","anchor":"writeArrayElement(java.lang.Object,long,java.lang.Object)","kind":"method","name":"writeArrayElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeArrayElement"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"index","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the receiver does not support writing at all, e.g. when it is immutable."}]}]},{"type":[{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given index is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementInsertable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":" nor "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementModifiable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", e.g. when the index is invalid or the index is out of bounds and the array does not support growing."}]}]},{"type":[{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the provided value type is not allowed to be written."}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the value of an array element by index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the value of an array element by index. Writing an array element is allowed if is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementModifiable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", or not existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementInsertable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":". This method must have not observable side-effects other than the changed array element."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1383}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeArrayElement(java.lang.Object,long)","anchor":"removeArrayElement(java.lang.Object,long)","kind":"method","name":"removeArrayElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"removeArrayElement"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"index","type":[{"kind":"keyword","text":"long"}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when the receiver does not support removing at all, e.g. when it is immutable."}]}]},{"type":[{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given index is not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementRemovable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":", e.g. when the index is invalid, the index is out of bounds, or the array does not support shifting of remaining elements."}]}]}],"doc":{"summary":[{"kind":"text","text":"Remove an array element from the receiver object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Remove an array element from the receiver object. Removing member is allowed if the array element is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementRemovable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasArrayElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementInsertable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"isArrayElementInsertable(Object, long)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". This method does not have observable side-effects other than the removed array element and shift of remaining elements. If shifting is not supported then the array might allow only removal of last element."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementRemovable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"isArrayElementRemovable(Object, long)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1407}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementModifiable(java.lang.Object,long)","anchor":"isArrayElementModifiable(java.lang.Object,long)","kind":"method","name":"isArrayElementModifiable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isArrayElementModifiable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"index","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given array element index is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeArrayElement(java.lang.Object,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given array element index is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeArrayElement(java.lang.Object,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasArrayElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementInsertable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"isArrayElementInsertable(Object, long)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeArrayElement(java.lang.Object,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeArrayElement(Object, long, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementInsertable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"isArrayElementInsertable(Object, long)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1423}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementInsertable(java.lang.Object,long)","anchor":"isArrayElementInsertable(java.lang.Object,long)","kind":"method","name":"isArrayElementInsertable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isArrayElementInsertable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"index","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given array element index is not existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeArrayElement(java.lang.Object,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given array element index is not existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeArrayElement(java.lang.Object,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasArrayElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementExisting(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"isArrayElementExisting(Object, long)"}]},{"kind":"text","text":"} returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeArrayElement(java.lang.Object,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"writeArrayElement(Object, long, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementModifiable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"isArrayElementModifiable(Object, long)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1439}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementRemovable(java.lang.Object,long)","anchor":"isArrayElementRemovable(java.lang.Object,long)","kind":"method","name":"isArrayElementRemovable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isArrayElementRemovable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"index","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given array element index is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeArrayElement(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a given array element index is existing and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeArrayElement(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":". This method may only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasArrayElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" as well and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementInsertable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"isArrayElementInsertable(Object, long)"}]},{"kind":"text","text":"} returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#removeArrayElement(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"removeArrayElement(Object, long)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1454}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementWritable(java.lang.Object,long)","anchor":"isArrayElementWritable(java.lang.Object,long)","kind":"method","name":"isArrayElementWritable","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isArrayElementWritable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"index","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if the array element is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementModifiable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementInsertable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if the array element is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementModifiable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementInsertable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"insertable"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1465}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementExisting(java.lang.Object,long)","anchor":"isArrayElementExisting(java.lang.Object,long)","kind":"method","name":"isArrayElementExisting","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isArrayElementExisting"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"index","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if the array element is existing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if the array element is existing. An array element is existing if it is, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementModifiable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"modifiable"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementReadable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"readable"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isArrayElementRemovable(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"removable"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1477}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)","anchor":"hasBufferElements(java.lang.Object)","kind":"method","name":"hasBufferElements","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasBufferElements"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver may have buffer elements."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver may have buffer elements."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this message returns "},{"kind":"code","text":"true"},{"kind":"text","text":", then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferByte(java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"readBufferByte(Object, long)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferShort(java.lang.Object,java.nio.ByteOrder,long)"},"code":true,"children":[{"kind":"text","text":"readBufferShort(Object, ByteOrder, long)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferInt(java.lang.Object,java.nio.ByteOrder,long)"},"code":true,"children":[{"kind":"text","text":"readBufferInt(Object, ByteOrder, long)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferLong(java.lang.Object,java.nio.ByteOrder,long)"},"code":true,"children":[{"kind":"text","text":"readBufferLong(Object, ByteOrder, long)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferFloat(java.lang.Object,java.nio.ByteOrder,long)"},"code":true,"children":[{"kind":"text","text":"readBufferFloat(Object, ByteOrder, long)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferDouble(java.lang.Object,java.nio.ByteOrder,long)"},"code":true,"children":[{"kind":"text","text":"readBufferDouble(Object, ByteOrder, long)"}]},{"kind":"text","text":" must not throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default, it returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1500}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBufferWritable(java.lang.Object)","anchor":"isBufferWritable(java.lang.Object)","kind":"method","name":"isBufferWritable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isBufferWritable"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is a modifiable buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is a modifiable buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this message returns "},{"kind":"code","text":"true"},{"kind":"text","text":", then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferByte(java.lang.Object,long,byte)"},"code":true,"children":[{"kind":"text","text":"writeBufferByte(Object, long, byte)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferShort(java.lang.Object,java.nio.ByteOrder,long,short)"},"code":true,"children":[{"kind":"text","text":"writeBufferShort(Object, ByteOrder, long, short)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferInt(java.lang.Object,java.nio.ByteOrder,long,int)"},"code":true,"children":[{"kind":"text","text":"writeBufferInt(Object, ByteOrder, long, int)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferLong(java.lang.Object,java.nio.ByteOrder,long,long)"},"code":true,"children":[{"kind":"text","text":"writeBufferLong(Object, ByteOrder, long, long)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferFloat(java.lang.Object,java.nio.ByteOrder,long,float)"},"code":true,"children":[{"kind":"text","text":"writeBufferFloat(Object, ByteOrder, long, float)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferDouble(java.lang.Object,java.nio.ByteOrder,long,double)"},"code":true,"children":[{"kind":"text","text":"writeBufferDouble(Object, ByteOrder, long, double)"}]},{"kind":"text","text":" must not throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default, it returns "},{"kind":"code","text":"false"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" return "},{"kind":"code","text":"true"},{"kind":"text","text":", and throws "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":" otherwise."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1527}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)","anchor":"getBufferSize(java.lang.Object)","kind":"method","name":"getBufferSize","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getBufferSize"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the buffer size of the receiver, in bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the buffer size of the receiver, in bytes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1545}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferByte(java.lang.Object,long)","anchor":"readBufferByte(java.lang.Object,long)","kind":"method","name":"readBufferByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"readBufferByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte at the given index"}]}]},"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the byte from the receiver object at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the byte from the receiver object at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1566}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBuffer(java.lang.Object,long,byte[],int,int)","anchor":"readBuffer(java.lang.Object,long,byte[],int,int)","kind":"method","name":"readBuffer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"readBuffer"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"destination"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"destinationOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"offset in the buffer to start reading from."}]}]},{"name":"destination","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"byte array to write the read bytes into."}]}]},{"name":"destinationOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"offset in the destination array to start writing from."}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"number of bytes to read."}]}]}],"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || length < 0 || byteOffset + length > "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads bytes from the receiver object into the specified byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads bytes from the receiver object into the specified byte array."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1589}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferByte(java.lang.Object,long,byte)","anchor":"writeBufferByte(java.lang.Object,long,byte)","kind":"method","name":"writeBufferByte","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeBufferByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBufferWritable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isBufferWritable"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given byte from the receiver object at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given byte from the receiver object at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1613}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferShort(java.lang.Object,java.nio.ByteOrder,long)","anchor":"readBufferShort(java.lang.Object,java.nio.ByteOrder,long)","kind":"method","name":"readBufferShort","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"readBufferShort"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 1"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the short from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the short from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1636}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferShort(java.lang.Object,java.nio.ByteOrder,long,short)","anchor":"writeBufferShort(java.lang.Object,java.nio.ByteOrder,long,short)","kind":"method","name":"writeBufferShort","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeBufferShort"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"short"}]}],"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 1"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBufferWritable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isBufferWritable"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given short from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given short from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1656}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferInt(java.lang.Object,java.nio.ByteOrder,long)","anchor":"readBufferInt(java.lang.Object,java.nio.ByteOrder,long)","kind":"method","name":"readBufferInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"readBufferInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 3"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the int from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the int from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1679}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferInt(java.lang.Object,java.nio.ByteOrder,long,int)","anchor":"writeBufferInt(java.lang.Object,java.nio.ByteOrder,long,int)","kind":"method","name":"writeBufferInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeBufferInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 3"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBufferWritable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isBufferWritable"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given int from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given int from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1699}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferLong(java.lang.Object,java.nio.ByteOrder,long)","anchor":"readBufferLong(java.lang.Object,java.nio.ByteOrder,long)","kind":"method","name":"readBufferLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"readBufferLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 7"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the long from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the long from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1722}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferLong(java.lang.Object,java.nio.ByteOrder,long,long)","anchor":"writeBufferLong(java.lang.Object,java.nio.ByteOrder,long,long)","kind":"method","name":"writeBufferLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeBufferLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 7"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBufferWritable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isBufferWritable"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given long from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given long from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1742}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferFloat(java.lang.Object,java.nio.ByteOrder,long)","anchor":"readBufferFloat(java.lang.Object,java.nio.ByteOrder,long)","kind":"method","name":"readBufferFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"readBufferFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the float at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 3"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the float from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the float from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1765}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferFloat(java.lang.Object,java.nio.ByteOrder,long,float)","anchor":"writeBufferFloat(java.lang.Object,java.nio.ByteOrder,long,float)","kind":"method","name":"writeBufferFloat","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeBufferFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 3"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBufferWritable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isBufferWritable"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given float from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given float from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1785}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#readBufferDouble(java.lang.Object,java.nio.ByteOrder,long)","anchor":"readBufferDouble(java.lang.Object,java.nio.ByteOrder,long)","kind":"method","name":"readBufferDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"readBufferDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the double at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 7"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the double from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the double from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Invoking this message does not cause any observable side-effects."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1808}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#writeBufferDouble(java.lang.Object,java.nio.ByteOrder,long,double)","anchor":"writeBufferDouble(java.lang.Object,java.nio.ByteOrder,long,double)","kind":"method","name":"writeBufferDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeBufferDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"order"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"order","type":[{"kind":"type","text":"ByteOrder","ref":"java.nio.ByteOrder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/ByteOrder.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"throws":[{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset "},{"kind":"code","text":"<"},{"kind":"code","text":" 0 || byteOffset "},{"kind":"code","text":">"},{"kind":"code","text":"= "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getBufferSize(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getBufferSize(Object)"}]},{"kind":"code","text":" - 7"}]}]},{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasBufferElements(Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBufferWritable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isBufferWritable"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given double from the receiver object in the given byte order at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given double from the receiver object in the given byte order at the given byte offset from the start of the buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The access is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" guaranteed to be atomic. Therefore, this message is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" thread-safe."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1828}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isPointer(java.lang.Object)","anchor":"isPointer(java.lang.Object)","kind":"method","name":"isPointer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isPointer"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value represents a native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value represents a native pointer. Native pointers are represented as 64 bit pointers. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is expected that objects should only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if the native pointer value corresponding to this object already exists, and obtaining it is a cheap operation. If an object can be transformed to a pointer representation, but this hasn't happened yet, the object is expected to return "},{"kind":"code","text":"false"},{"kind":"text","text":" with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isPointer(Object)"}]},{"kind":"text","text":", and wait for the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toNative(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"toNative(Object)"}]},{"kind":"text","text":" message to trigger the transformation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asPointer(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toNative(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"toNative(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1850}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asPointer(java.lang.Object)","anchor":"asPointer(java.lang.Object)","kind":"method","name":"asPointer","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"asPointer"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isPointer(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the pointer value as long value if the receiver represents a pointer like value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the pointer value as long value if the receiver represents a pointer like value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isPointer(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1863}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#toNative(java.lang.Object)","anchor":"toNative(java.lang.Object)","kind":"method","name":"toNative","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"toNative"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Attempts to transform a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"receiver"}]},{"kind":"text","text":" to a value that represents a raw native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Attempts to transform a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"receiver"}]},{"kind":"text","text":" to a value that represents a raw native pointer. After a successful transformation, the provided receiver returns true for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isPointer(Object)"}]},{"kind":"text","text":" and can be unwrapped using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asPointer(Object)"}]},{"kind":"text","text":" message. If transformation cannot be done "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isPointer(Object)"}]},{"kind":"text","text":" will keep returning false."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isPointer(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asPointer(Object)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1878}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asInstant(java.lang.Object)","anchor":"asInstant(java.lang.Object)","kind":"method","name":"asInstant","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Instant","ref":"java.time.Instant","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Instant.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asInstant"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Instant","ref":"java.time.Instant","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Instant.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isInstant(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver as instant if this object represents an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"instant"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver as instant if this object represents an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"instant"}]},{"kind":"text","text":". If a value is an instant then it is also a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"date"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"time"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":". Using this method may be more efficient than reconstructing the timestamp from the date, time and timezone data."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Implementers should implement this method if they can provide a more efficient conversion to Instant than reconstructing it from date, time and timezone date. Implementers must ensure that the following Java code snippet always holds:"}]},{"kind":"code","text":"ZoneId zone = getTimeZone(receiver);\nLocalDate date = getDate(receiver);\nLocalTime time = getTime(receiver);\nassert ZonedDateTime.of(date, time, zone).toInstant().equals(getInstant(receiver));"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isDate(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isTime(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isTimeZone(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1905}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstant(java.lang.Object)","anchor":"isInstant(java.lang.Object)","kind":"method","name":"isInstant","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInstant"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents an instant."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents an instant. If a value is an instant then it is also a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"date"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"time"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":". This method is short-hand for:"}]},{"kind":"code","text":"isDate(v) && isTime(v) && isTimeZone(v)"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isDate(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isTime(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isInstant(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asInstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asInstant(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1937}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)","anchor":"isTimeZone(java.lang.Object)","kind":"method","name":"isTimeZone","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isTimeZone"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a timezone, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a timezone, else "},{"kind":"code","text":"false"},{"kind":"text","text":". The interpretation of timezone objects may vary:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isDate(Object)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isTime(Object)"}]},{"kind":"text","text":" return "},{"kind":"code","text":"true"},{"kind":"text","text":", then the returned date or time information is aware of this timezone."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isDate(Object)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isTime(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":", then it represents just timezone information."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Objects with only date information must not have timezone information attached and objects with only time information must have either none, or "},{"kind":"link","target":{"id":"java.time.zone.ZoneRules#isFixedOffset()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/zone/ZoneRules.html#isFixedOffset()"},"code":true,"children":[{"kind":"text","text":"fixed zone"}]},{"kind":"text","text":" only. If this rule is violated then an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown if assertions are enabled."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asTimeZone(Object)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asTimeZone(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asInstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asInstant(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1961}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asTimeZone(java.lang.Object)","anchor":"asTimeZone(java.lang.Object)","kind":"method","name":"asTimeZone","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ZoneId","ref":"java.time.ZoneId","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asTimeZone"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"ZoneId","ref":"java.time.ZoneId","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/ZoneId.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isTimeZone(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" ."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver as timestamp if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver as timestamp if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isTimeZone(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1975}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)","anchor":"isDate(java.lang.Object)","kind":"method","name":"isDate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDate"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a date, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a date, else "},{"kind":"code","text":"false"},{"kind":"text","text":". If the receiver is also a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":" then the date is aware, otherwise it is naive."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asDate(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":1988}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asDate(java.lang.Object)","anchor":"asDate(java.lang.Object)","kind":"method","name":"asDate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LocalDate","ref":"java.time.LocalDate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/LocalDate.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asDate"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"LocalDate","ref":"java.time.LocalDate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/LocalDate.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isDate(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver as date if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"date"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver as date if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"date"}]},{"kind":"text","text":". The returned date is either aware if the receiver has a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":" otherwise it is naive."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isDate(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2003}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)","anchor":"isTime(java.lang.Object)","kind":"method","name":"isTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isTime"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a time, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a time, else "},{"kind":"code","text":"false"},{"kind":"text","text":". If the receiver is also a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":" then the time is aware, otherwise it is naive."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asTime(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2016}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asTime(java.lang.Object)","anchor":"asTime(java.lang.Object)","kind":"method","name":"asTime","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"LocalTime","ref":"java.time.LocalTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/LocalTime.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asTime"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"LocalTime","ref":"java.time.LocalTime","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/LocalTime.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isTime(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver as time if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"time"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver as time if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"time"}]},{"kind":"text","text":". The returned time is either aware if the receiver has a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":" otherwise it is naive."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isTime(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2031}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDuration(java.lang.Object)","anchor":"isDuration(java.lang.Object)","kind":"method","name":"isDuration","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDuration"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a duration, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object represents a duration, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"java.time.Duration","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Duration.html"},"code":true,"children":[{"kind":"text","text":"Duration"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asDuration(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asDuration(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2043}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asDuration(java.lang.Object)","anchor":"asDuration(java.lang.Object)","kind":"method","name":"asDuration","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Duration","ref":"java.time.Duration","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Duration.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asDuration"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Duration","ref":"java.time.Duration","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/Duration.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDuration(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isDuration(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" ."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the receiver as duration if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDuration(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"duration"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver as duration if this object represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDuration(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"duration"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDuration(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isDuration(Object)"}]}]]},"since":"20.0.0 beta 2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2057}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)","anchor":"isException(java.lang.Object)","kind":"method","name":"isException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isException"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value represents a throwable exception/error."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value represents a throwable exception/error. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Objects must only return "},{"kind":"code","text":"true"},{"kind":"text","text":" if they support "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#throwException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"throwException"}]},{"kind":"text","text":" as well. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#throwException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"throwException(Object)"}]},{"kind":"text","text":" must be implemented."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that a receiver that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHostObject(java.lang.Object)"},"children":[{"kind":"text","text":"is also a host object"}]},{"kind":"text","text":" may have "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asHostObject(Object)"}]},{"kind":"text","text":" return an object that is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" a "},{"kind":"link","target":{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"code":true,"children":[{"kind":"text","text":"Throwable"}]},{"kind":"text","text":". This is the case when a guest exception wraps an arbitrary host object (or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary#delegateTo()"},"children":[{"kind":"text","text":"delegates to"}]},{"kind":"text","text":" another object for that matter), so "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHostObject(Object)"}]},{"kind":"text","text":" returns true and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asHostObject(Object)"}]},{"kind":"text","text":" returns the underlying host object, whereas "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#throwException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"throwException(Object)"}]},{"kind":"text","text":" throws the guest exception."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following simplified "},{"kind":"code","text":"TryCatchNode"},{"kind":"text","text":" shows how the exceptions should be handled by languages."}]},{"kind":"code","language":"java","text":"static final class TryCatchNode extends StatementNode {\n\n    @Node.Child private BlockNode block;\n    @Node.Child private BlockNode catchBlock;\n    @Node.Child private BlockNode finallyBlock;\n    private final BranchProfile exceptionProfile;\n\n    TryCatchNode(BlockNode block, BlockNode catchBlock,\n                    BlockNode finallyBlock) {\n        this.block = block;\n        this.catchBlock = catchBlock;\n        this.finallyBlock = finallyBlock;\n        this.exceptionProfile = BranchProfile.create();\n    }\n\n    @Override\n    void executeVoid(VirtualFrame frame) {\n        RuntimeException rethrowException = null;\n        try {\n            block.executeVoid(frame);\n        } catch (AbstractTruffleException ex) {\n            exceptionProfile.enter();\n            try {\n                if (catchBlock != null) {\n                    catchBlock.executeVoid(frame);\n                    // do not rethrow if handled\n                    rethrowException = null;\n                } else {\n                    // rethrow if not handled\n                    rethrowException = ex;\n                }\n            } catch (AbstractTruffleException e) {\n                rethrowException = e;\n            }\n        } catch (ControlFlowException cfe) {\n            // run finally blocks for control flow\n            rethrowException = cfe;\n        }\n        // Java finally blocks that execute nodes are not allowed for\n        // compilation as code in finally blocks is duplicated\n        // by the Java bytecode compiler. This can lead to\n        // exponential code growth in worst cases.\n        if (finallyBlock != null) {\n            finallyBlock.executeVoid(frame);\n        }\n        if (rethrowException != null) {\n            throw rethrowException;\n        }\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#throwException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"throwException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]}]]},"since":"19.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2087}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#throwException(java.lang.Object)","anchor":"throwException(java.lang.Object)","kind":"method","name":"throwException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"kind":"punct","text":" "},{"kind":"name","text":"throwException"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Throws the receiver object as an exception of the source language, as if it was thrown by the source language itself."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Throws the receiver object as an exception of the source language, as if it was thrown by the source language itself. Allows rethrowing exceptions caught by another language. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]},{"kind":"text","text":" must be implemented."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Any interop value can be an exception value and export "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#throwException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"throwException(Object)"}]},{"kind":"text","text":". The exception thrown by this message must extend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":". In future versions this contract will be enforced using an assertion."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For a sample "},{"kind":"code","text":"TryCatchNode"},{"kind":"text","text":" implementation see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}]]},"since":"19.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2111}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionType(java.lang.Object)","anchor":"getExceptionType(java.lang.Object)","kind":"method","name":"getExceptionType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"},{"kind":"punct","text":" "},{"kind":"name","text":"getExceptionType"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"ExceptionType","ref":"com.oracle.truffle.api.interop.ExceptionType"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ExceptionType"},"code":true,"children":[{"kind":"text","text":"exception type"}]},{"kind":"text","text":" of the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ExceptionType"},"code":true,"children":[{"kind":"text","text":"exception type"}]},{"kind":"text","text":" of the receiver. Throws "},{"kind":"code","text":"UnsupportedMessageException"},{"kind":"text","text":" when the receiver is not an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For a sample "},{"kind":"code","text":"TryCatchNode"},{"kind":"text","text":" implementation see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ExceptionType"},"code":true,"children":[{"kind":"text","text":"ExceptionType"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2133}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExceptionIncompleteSource(java.lang.Object)","anchor":"isExceptionIncompleteSource(java.lang.Object)","kind":"method","name":"isExceptionIncompleteSource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isExceptionIncompleteSource"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if receiver value represents an incomplete source exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if receiver value represents an incomplete source exception. Throws "},{"kind":"code","text":"UnsupportedMessageException"},{"kind":"text","text":" when the receiver is not an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception"}]},{"kind":"text","text":" or the exception is not a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ExceptionType#PARSE_ERROR"},"code":true,"children":[{"kind":"text","text":"ExceptionType.PARSE_ERROR"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionType(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getExceptionType(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2152}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionExitStatus(java.lang.Object)","anchor":"getExceptionExitStatus(java.lang.Object)","kind":"method","name":"getExceptionExitStatus","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getExceptionExitStatus"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns exception exit status of the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns exception exit status of the receiver. Throws "},{"kind":"code","text":"UnsupportedMessageException"},{"kind":"text","text":" when the receiver is not an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception"}]},{"kind":"text","text":" of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ExceptionType#EXIT"},"code":true,"children":[{"kind":"text","text":"exit type"}]},{"kind":"text","text":". See "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/Exit.md","children":[{"kind":"text","text":"Context Exit"}]},{"kind":"text","text":" for further information. A return value zero indicates that the execution of the application was successful, a non-zero value that it failed. The individual interpretation of non-zero values depends on the application."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionType(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getExceptionType(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.ExceptionType"},"code":true,"children":[{"kind":"text","text":"ExceptionType"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2175}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExceptionCause(java.lang.Object)","anchor":"hasExceptionCause(java.lang.Object)","kind":"method","name":"hasExceptionCause","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasExceptionCause"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is an exception with an attached internal cause."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is an exception with an attached internal cause. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionCause(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getExceptionCause(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2193}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionCause(java.lang.Object)","anchor":"getExceptionCause(java.lang.Object)","kind":"method","name":"getExceptionCause","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getExceptionCause"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns the internal cause of the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the internal cause of the receiver. Throws "},{"kind":"code","text":"UnsupportedMessageException"},{"kind":"text","text":" when the receiver is not an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception"}]},{"kind":"text","text":" or if the exception does not support an exception cause. The returned value of this message is guaranteed to represent either an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception"}]},{"kind":"text","text":" or an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNull(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"null"}]},{"kind":"text","text":" object. An null object is returned if the exception supports a cause but the cause itself is "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExceptionCause(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasExceptionCause(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2215}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExceptionMessage(java.lang.Object)","anchor":"hasExceptionMessage(java.lang.Object)","kind":"method","name":"hasExceptionMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasExceptionMessage"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is an exception that has an exception message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is an exception that has an exception message. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionMessage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getExceptionMessage(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2233}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionMessage(java.lang.Object)","anchor":"getExceptionMessage(java.lang.Object)","kind":"method","name":"getExceptionMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getExceptionMessage"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns exception message of the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns exception message of the receiver. Throws "},{"kind":"code","text":"UnsupportedMessageException"},{"kind":"text","text":" when the receiver is not an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception"}]},{"kind":"text","text":" or has no exception message. The return value of this message is guaranteed to return "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isString(Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExceptionMessage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasExceptionMessage(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2253}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExceptionStackTrace(java.lang.Object)","anchor":"hasExceptionStackTrace(java.lang.Object)","kind":"method","name":"hasExceptionStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasExceptionStackTrace"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is an exception and has a stack trace."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is an exception and has a stack trace. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionStackTrace(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getExceptionStackTrace(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2271}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionStackTrace(java.lang.Object)","anchor":"getExceptionStackTrace(java.lang.Object)","kind":"method","name":"getExceptionStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getExceptionStackTrace"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Returns the exception stack trace of the receiver that is of type exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the exception stack trace of the receiver that is of type exception. Returns an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"array"}]},{"kind":"text","text":" of objects with potentially "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExecutableName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executable name"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasDeclaringMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"declaring meta object"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" of the caller. Throws "},{"kind":"code","text":"UnsupportedMessageException"},{"kind":"text","text":" when the receiver is not an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception"}]},{"kind":"text","text":" or has no stack trace. Invoking this message or accessing the stack trace elements array must not cause any observable side-effects."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The default implementation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getExceptionStackTrace(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getExceptionStackTrace(Object)"}]},{"kind":"text","text":" calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTrace#getStackTrace(java.lang.Throwable)"},"code":true,"children":[{"kind":"text","text":"TruffleStackTrace.getStackTrace(Throwable)"}]},{"kind":"text","text":" on the underlying exception object and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getGuestObject()"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement.getGuestObject()"}]},{"kind":"text","text":" to access an interop capable object of the underlying stack trace element."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isException(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExceptionStackTrace(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasExceptionStackTrace(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2299}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIterator(java.lang.Object)","anchor":"hasIterator(java.lang.Object)","kind":"method","name":"hasIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasIterator"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver provides an iterator."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver provides an iterator. For example, an array or a list provide an iterator over their content. Invoking this message does not cause any observable side-effects. By default returns "},{"kind":"code","text":"true"},{"kind":"text","text":" for receivers that have "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"array elements"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getIterator(Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2318}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIterator(java.lang.Object)","anchor":"getIterator(java.lang.Object)","kind":"method","name":"getIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getIterator"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIterator(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the iterator for the receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the iterator for the receiver. The return value is always an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"iterator"}]},{"kind":"text","text":". Invoking this message does not cause any observable side-effects."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2332}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)","anchor":"isIterator(java.lang.Object)","kind":"method","name":"isIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isIterator"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents an iterator."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver represents an iterator. Invoking this message does not cause any observable side-effects. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIterator(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getIterator(Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2348}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIteratorNextElement(java.lang.Object)","anchor":"hasIteratorNextElement(java.lang.Object)","kind":"method","name":"hasIteratorNextElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasIteratorNextElement"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIterator(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is an iterator which has more elements, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver is an iterator which has more elements, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Multiple calls to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIteratorNextElement(Object)"}]},{"kind":"text","text":" might lead to different results if the underlying data structure is modified."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following example shows how the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIteratorNextElement"}]},{"kind":"text","text":" message can be emulated in languages where iterators only have a next method and throw an exception if there are no further elements."}]},{"kind":"code","text":"@ExportLibrary(InteropLibrary.class)\nabstract class InteropIterator implements TruffleObject {\n\n    @SuppressWarnings(\"serial\")\n    public static final class Stop extends AbstractTruffleException {\n    }\n\n    private static final Object STOP = new Object();\n    private Object next;\n\n    protected InteropIterator() {\n    }\n\n    protected abstract Object next() throws Stop;\n\n    @ExportMessage\n    @SuppressWarnings(\"static-method\")\n    boolean isIterator() {\n        return true;\n    }\n\n    @ExportMessage\n    boolean hasIteratorNextElement() {\n        fetchNext();\n        return next != STOP;\n    }\n\n    @ExportMessage\n    Object getIteratorNextElement() throws StopIterationException {\n        fetchNext();\n        Object res = next;\n        if (res == STOP) {\n            throw StopIterationException.create();\n        } else {\n            next = null;\n        }\n        return res;\n    }\n\n    private void fetchNext() {\n        if (next == null) {\n            try {\n                next = next();\n            } catch (Stop stop) {\n                next = STOP;\n            }\n        }\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIterator(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getIteratorNextElement(Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2420}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIteratorNextElement(java.lang.Object)","anchor":"getIteratorNextElement(java.lang.Object)","kind":"method","name":"getIteratorNextElement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getIteratorNextElement"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"StopIterationException","ref":"com.oracle.truffle.api.interop.StopIterationException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIterator(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver or when the underlying iterator element exists but is not readable."}]}]},{"type":[{"kind":"type","text":"StopIterationException","ref":"com.oracle.truffle.api.interop.StopIterationException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the iteration has no more elements. Even if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.StopIterationException"},"code":true,"children":[{"kind":"text","text":"StopIterationException"}]},{"kind":"text","text":" was thrown it might not be thrown again by a next "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getIteratorNextElement(Object)"}]},{"kind":"text","text":" invocation on the same receiver due to a modification of an underlying iterable."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the next element in the iteration."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the next element in the iteration. When the underlying data structure is modified the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getIteratorNextElement(Object)"}]},{"kind":"text","text":" may throw the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.StopIterationException"},"code":true,"children":[{"kind":"text","text":"StopIterationException"}]},{"kind":"text","text":" despite the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIteratorNextElement(Object)"}]},{"kind":"text","text":" returned "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIterator(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIteratorNextElement(Object)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2442}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasSourceLocation(java.lang.Object)","anchor":"hasSourceLocation(java.lang.Object)","kind":"method","name":"hasSourceLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasSourceLocation"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value has a declared source location attached, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value has a declared source location attached, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Returning a source location for a value is optional and typically impacts the capabilities of tools like debuggers to jump to the declaration of a value."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Examples for values that may provide a source location:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Metaobjects"}]},{"kind":"text","text":" like classes or types."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"First class "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executables"}]},{"kind":"text","text":", like functions, closures or promises."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Allocation sites for instances. Note that in most languages it is very expensive to track the allocation site of an instance and it is therefore not recommended to support this feature by default, but ideally behind an optional language option."}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getSourceLocation(Object)"}]},{"kind":"text","text":" must be implemented."}]}]]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getSourceLocation(Object)"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2468}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getSourceLocation(java.lang.Object)","anchor":"getSourceLocation(java.lang.Object)","kind":"method","name":"getSourceLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceLocation"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasSourceLocation(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the declared source location of the receiver value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the declared source location of the receiver value. Throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":" if the value does not have a declared source location. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasSourceLocation(Object)"}]},{"kind":"text","text":" for further details on potential interpretations. Throws "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":" by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasSourceLocation(Object)"}]},{"kind":"text","text":" must be implemented."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2491}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguage(java.lang.Object)","anchor":"hasLanguage(java.lang.Object)","kind":"method","name":"hasLanguage","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasLanguage"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver originates from a language, else "},{"kind":"code","text":"false"},{"kind":"text","text":" ."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver originates from a language, else "},{"kind":"code","text":"false"},{"kind":"text","text":" . Primitive values or other shared interop value representations that are not associated with a language may return "},{"kind":"code","text":"false"},{"kind":"text","text":". Values that originate from a language should return "},{"kind":"code","text":"true"},{"kind":"text","text":". Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The associated language allows tools to identify the original language of a value. If an instrument requests a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getLanguageView(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language view"}]},{"kind":"text","text":" then values that are already associated with a language will just return the same value. Otherwise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getLanguageView(Object, Object)"}]},{"kind":"text","text":" will be invoked on the language. The returned language may be also exposed to embedders in the future."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getLanguage(Object)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"toDisplayString(Object, boolean)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getLanguage(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"toDisplayString(Object)"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasLanguageId(Object)"}]},{"kind":"text","text":"."}]}],"since":"25.1"},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2523}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguage(java.lang.Object)","anchor":"getLanguage(java.lang.Object)","kind":"method","name":"getLanguage","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"name","text":"getLanguage"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasLanguage(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the original language of the receiver value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the original language of the receiver value. The returned language class must be non-null and represent a valid "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":" language class. For more details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasLanguage(Object)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasLanguage(Object)"}]},{"kind":"text","text":" must be implemented."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getLanguageId(Object)"}]},{"kind":"text","text":"."}]}],"since":"25.1"},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2542}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguageId(java.lang.Object)","anchor":"hasLanguageId(java.lang.Object)","kind":"method","name":"hasLanguageId","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasLanguageId"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver originates from a language, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver originates from a language, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Primitive values or other shared interop value representations that are not associated with a language may return "},{"kind":"code","text":"false"},{"kind":"text","text":". Values that originate from a language should return {code true}. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The associated language allows tools to identify the original language of a value. If an instrument requests a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getLanguageView(com.oracle.truffle.api.nodes.LanguageInfo,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language view"}]},{"kind":"text","text":" then values that are already associated with a language will just return the same value. Otherwise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getLanguageView(Object, Object)"}]},{"kind":"text","text":" will be invoked on the language. The returned language id may be also exposed to embedders in polyglot stack frame."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getLanguageId(Object)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"toDisplayString(Object, boolean)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getLanguageId(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"toDisplayString(Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2570}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguageLegacy(java.lang.Object)","anchor":"hasLanguageLegacy(java.lang.Object)","kind":"method","name":"hasLanguageLegacy","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasLanguageLegacy"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2584}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguageId(java.lang.Object)","anchor":"getLanguageId(java.lang.Object)","kind":"method","name":"getLanguageId","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguageId"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasLanguageId(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the language id of the receiver value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the language id of the receiver value. The returned language id must be non-null and represent a valid id of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration"},"code":true,"children":[{"kind":"text","text":"registered"}]},{"kind":"text","text":" language. For more details see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasLanguageId(Object)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguageId(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasLanguageId(Object)"}]},{"kind":"text","text":" must be implemented."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2609}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguageLegacy(java.lang.Object)","anchor":"getLanguageLegacy(java.lang.Object)","kind":"method","name":"getLanguageLegacy","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>> "},{"kind":"name","text":"getLanguageLegacy"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>>"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true}],"source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2619}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMetaObject(java.lang.Object)","anchor":"hasMetaObject(java.lang.Object)","kind":"method","name":"hasMetaObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasMetaObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value has a metaobject associated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value has a metaobject associated. The metaobject represents a description of the object, reveals its kind and its features. Some information that a metaobject might define includes the base object's type, interface, class, methods, attributes, etc. Should return "},{"kind":"code","text":"false"},{"kind":"text","text":" when no metaobject is known for this type. Returns "},{"kind":"code","text":"false"},{"kind":"text","text":" by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An example, for Java objects the returned metaobject is the "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"class"}]},{"kind":"text","text":" instance. In JavaScript this could be the function or class that is associated with the object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Metaobjects for primitive values or values of other languages may be provided using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language views"}]},{"kind":"text","text":". While an object is associated with a metaobject in one language, the metaobject might be a different when viewed from another language."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMetaObject(Object)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMetaObject(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2651}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaObject(java.lang.Object)","anchor":"getMetaObject(java.lang.Object)","kind":"method","name":"getMetaObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMetaObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMetaObject(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the metaobject that is associated with this value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the metaobject that is associated with this value. The metaobject represents a description of the object, reveals its kind and its features. Some information that a metaobject might define includes the base object's type, interface, class, methods, attributes, etc. When no metaobject is known for this type. Throws "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":" by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned object must return "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]},{"kind":"text","text":" and provide implementations for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaSimpleName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMetaSimpleName(Object)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaQualifiedName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMetaQualifiedName(Object)"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaInstance(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaInstance(Object, Object)"}]},{"kind":"text","text":". For all values with metaobjects it must at hold that "},{"kind":"code","text":"isMetaInstance(getMetaObject(value), value) ==\ntrue"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMetaObject(Object)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMetaObject(Object)"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2679}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object,boolean)","anchor":"toDisplayString(java.lang.Object,boolean)","kind":"method","name":"toDisplayString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toDisplayString"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowSideEffects"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"allowSideEffects","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether side-effects are allowed in the production of the string."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Converts the receiver to a human readable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the receiver to a human readable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":". Each language may have special formating conventions - even primitive values may not follow the traditional Java rules. The format of the returned string is intended to be interpreted by humans not machines and should therefore not be relied upon by machines. By default the receiver class name and its "},{"kind":"link","target":{"id":"java.lang.System#identityHashCode(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/System.html#identityHashCode(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"identity hash code"}]},{"kind":"text","text":" is used as string representation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"String representations for primitive values or values of other languages may be provided using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language views"}]},{"kind":"text","text":". It is common that languages provide different string representations for primitive and foreign values. To convert the result value to a Java string use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.asString(Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getLanguageView(Object, Object)"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2701}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object)","anchor":"toDisplayString(java.lang.Object)","kind":"method","name":"toDisplayString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toDisplayString"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Converts the receiver to a human readable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":" of the language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts the receiver to a human readable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":" of the language. Short-cut for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"toDisplayString(Object, true)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#toDisplayString(java.lang.Object,boolean)"},"code":true,"children":[{"kind":"text","text":"toDisplayString(Object, boolean)"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2719}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)","anchor":"isMetaObject(java.lang.Object)","kind":"method","name":"isMetaObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMetaObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value represents a metaobject."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value represents a metaobject. Metaobjects may be values that naturally occur in a language or they may be returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMetaObject(Object)"}]},{"kind":"text","text":". A metaobject represents a description of the object, reveals its kind and its features. If a receiver is a metaobject it is often also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstantiable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"instantiable"}]},{"kind":"text","text":", but this is not a requirement."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Sample interpretations:"}]},{"kind":"text","text":" In Java an instance of the type "},{"kind":"link","target":{"id":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},"code":true,"children":[{"kind":"text","text":"Class"}]},{"kind":"text","text":" is a metaobject. In JavaScript any function instance is a metaobject. For example, the metaobject of a JavaScript class is the associated constructor function."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaQualifiedName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMetaQualifiedName(Object)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaSimpleName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMetaSimpleName(Object)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaInstance(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaInstance(Object, Object)"}]},{"kind":"text","text":" must be implemented as well."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2740}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaQualifiedName(java.lang.Object)","anchor":"getMetaQualifiedName(java.lang.Object)","kind":"method","name":"getMetaQualifiedName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMetaQualifiedName"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"metaObject"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"metaObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the qualified name of a metaobject as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the qualified name of a metaobject as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Sample interpretations:"}]},{"kind":"text","text":" The qualified name of a Java class includes the package name and its class name. JavaScript does not have the notion of qualified name and therefore returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaSimpleName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"simple name"}]},{"kind":"text","text":" instead."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]},{"kind":"text","text":" must be implemented as well."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2760}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaSimpleName(java.lang.Object)","anchor":"getMetaSimpleName(java.lang.Object)","kind":"method","name":"getMetaSimpleName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMetaSimpleName"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"metaObject"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"metaObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the simple name of a metaobject as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the simple name of a metaobject as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Sample interpretations:"}]},{"kind":"text","text":" The simple name of a Java class is the class name."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]},{"kind":"text","text":" must be implemented as well."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2778}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaInstance(java.lang.Object,java.lang.Object)","anchor":"isMetaInstance(java.lang.Object,java.lang.Object)","kind":"method","name":"isMetaInstance","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMetaInstance"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"instance"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"instance","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance object to check."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given instance is of the provided receiver metaobject, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given instance is of the provided receiver metaobject, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Sample interpretations:"}]},{"kind":"text","text":" A Java object is an instance of its returned "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"class"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]},{"kind":"text","text":" must be implemented as well."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2798}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMetaParents(java.lang.Object)","anchor":"hasMetaParents(java.lang.Object)","kind":"method","name":"hasMetaParents","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasMetaParents"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a metaobject"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"is a metaobject"}]},{"kind":"text","text":" which has parents (super types)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the receiver value "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"is a metaobject"}]},{"kind":"text","text":" which has parents (super types)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaParents(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMetaParents(Object)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaParents(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMetaParents(Object)"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2814}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMetaParents(java.lang.Object)","anchor":"getMetaParents(java.lang.Object)","kind":"method","name":"getMetaParents","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMetaParents"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a metaobject"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMetaParents(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMetaParents(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns an array like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasArrayElements(Object)"}]},{"kind":"text","text":" of metaobjects that are direct parents (super types) of this metaobject."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an array like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasArrayElements(Object)"}]},{"kind":"text","text":" of metaobjects that are direct parents (super types) of this metaobject."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The returned object is an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"array"}]},{"kind":"text","text":" of objects that return "},{"kind":"code","text":"true"},{"kind":"text","text":" from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isMetaObject(Object)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMetaParents(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMetaParents(Object)"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2832}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdenticalOrUndefined(java.lang.Object,java.lang.Object)","anchor":"isIdenticalOrUndefined(java.lang.Object,java.lang.Object)","kind":"method","name":"isIdenticalOrUndefined","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"},{"kind":"punct","text":" "},{"kind":"name","text":"isIdenticalOrUndefined"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"other","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the other value to compare to"}]}]}],"returns":{"type":[{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":" if the receiver is or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#FALSE"},"code":true,"children":[{"kind":"text","text":"FALSE"}]},{"kind":"text","text":" if the receiver is not identical to the "},{"kind":"code","text":"other"},{"kind":"text","text":" value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":" if the receiver is or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#FALSE"},"code":true,"children":[{"kind":"text","text":"FALSE"}]},{"kind":"text","text":" if the receiver is not identical to the "},{"kind":"code","text":"other"},{"kind":"text","text":" value. Returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#UNDEFINED"},"code":true,"children":[{"kind":"text","text":"UNDEFINED"}]},{"kind":"text","text":" if the operation is not specified."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Sample interpretations:"}]}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"A Java object might be of the identical instance as another Java object. Typically compared using the "},{"kind":"code","text":"=="},{"kind":"text","text":" operator."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Any implementation, with the exception of an implementation that returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#UNDEFINED"},"code":true,"children":[{"kind":"text","text":"UNDEFINED"}]},{"kind":"text","text":" unconditionally, must guarantee the following properties:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"It is "},{"kind":"emphasis","children":[{"kind":"text","text":"reflexive"}]},{"kind":"text","text":": for any value "},{"kind":"code","text":"x"},{"kind":"text","text":", "},{"kind":"code","text":"lib.isIdenticalOrUndefined(x, x)"},{"kind":"text","text":" always returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":". This is necessary to ensure that the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIdentity(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIdentity(Object)"}]},{"kind":"text","text":" contract has reliable results."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It is "},{"kind":"emphasis","children":[{"kind":"text","text":"symmetric"}]},{"kind":"text","text":": for any values "},{"kind":"code","text":"x"},{"kind":"text","text":" and "},{"kind":"code","text":"y"},{"kind":"text","text":", "},{"kind":"code","text":"lib.isIdenticalOrUndefined(x, y)"},{"kind":"text","text":" returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":" if and only if "},{"kind":"code","text":"lib.isIdenticalOrUndefined(y, x)"},{"kind":"text","text":" returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It is "},{"kind":"emphasis","children":[{"kind":"text","text":"transitive"}]},{"kind":"text","text":": for any values "},{"kind":"code","text":"x"},{"kind":"text","text":", "},{"kind":"code","text":"y"},{"kind":"text","text":", and "},{"kind":"code","text":"z"},{"kind":"text","text":", if "},{"kind":"code","text":"lib.isIdenticalOrUndefined(x, y)"},{"kind":"text","text":" returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":" and "},{"kind":"code","text":"lib.isIdenticalOrUndefined(y, z)"},{"kind":"text","text":" returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":", then "},{"kind":"code","text":"lib.isIdentical(x, z, zLib)"},{"kind":"text","text":" returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It is "},{"kind":"emphasis","children":[{"kind":"text","text":"consistent"}]},{"kind":"text","text":": for any values "},{"kind":"code","text":"x"},{"kind":"text","text":" and "},{"kind":"code","text":"y"},{"kind":"text","text":", multiple invocations of "},{"kind":"code","text":"lib.isIdenticalOrUndefined(x, y)"},{"kind":"text","text":" consistently returns the same value."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that the target language identical semantics typically does not map directly to interop identical implementation. Instead target language identity is specified by the language operation, may take multiple other rules into account and may only fallback to interop identical for values without dedicated interop type. For example, in many languages primitives like numbers or strings may be identical, in the target language sense, still identity can only be exposed for objects and non-primitive values. Primitive values like "},{"kind":"link","target":{"id":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},"code":true,"children":[{"kind":"text","text":"Integer"}]},{"kind":"text","text":" can never be interop identical to other boxed language integers as this would violate the symmetric property."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example receiver class MyObject which uses an explicit identity field to compute whether two values are identical."}]},{"kind":"code","text":"static class MyObject {\n\n    final Object identity;\n\n    MyObject(Object identity) {\n        this.identity = identity;\n    }\n\n    @ExportMessage\n    static final class IsIdenticalOrUndefined {\n        @Specialization\n        static TriState doMyObject(MyObject receiver, MyObject other) {\n            return receiver.identity == other.identity ? TriState.TRUE : TriState.FALSE;\n        }\n\n        @Fallback\n        static TriState doOther(MyObject receiver, Object other) {\n            return TriState.UNDEFINED;\n        }\n    }\n    // ...\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#identityHashCode(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"identityHashCode(Object)"}]},{"kind":"text","text":" must be implemented."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2911}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdentical(java.lang.Object,java.lang.Object,com.oracle.truffle.api.interop.InteropLibrary)","anchor":"isIdentical(java.lang.Object,java.lang.Object,com.oracle.truffle.api.interop.InteropLibrary)","kind":"method","name":"isIdentical","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isIdentical"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":", "},{"kind":"type","text":"InteropLibrary","ref":"com.oracle.truffle.api.interop.InteropLibrary"},{"kind":"punct","text":" "},{"kind":"param","text":"otherInterop"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"other","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"otherInterop","type":[{"kind":"type","text":"InteropLibrary","ref":"com.oracle.truffle.api.interop.InteropLibrary"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if two values represent the identical value, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if two values represent the identical value, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Two values are identical if and only if they have specified identity semantics in the target language and refer to the identical instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default, an interop value does not support identical comparisons, and will return "},{"kind":"code","text":"false"},{"kind":"text","text":" for any invocation of this method. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIdentity(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIdentity(Object)"}]},{"kind":"text","text":" to find out whether a receiver supports identity comparisons."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method has the following properties:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"It is "},{"kind":"strong","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" "},{"kind":"emphasis","children":[{"kind":"text","text":"reflexive"}]},{"kind":"text","text":": for any value "},{"kind":"code","text":"x"},{"kind":"text","text":", "},{"kind":"code","text":"lib.isIdentical(x, x, lib)"},{"kind":"text","text":" may return "},{"kind":"code","text":"false"},{"kind":"text","text":" if the object does not support identity, else "},{"kind":"code","text":"true"},{"kind":"text","text":". This method is reflexive if "},{"kind":"code","text":"x"},{"kind":"text","text":" supports identity. A value supports identity if "},{"kind":"code","text":"lib.isIdentical(x, x, lib)"},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":". The method "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIdentity(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIdentity(Object)"}]},{"kind":"text","text":" may be used to document this intent explicitly."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It is "},{"kind":"emphasis","children":[{"kind":"text","text":"symmetric"}]},{"kind":"text","text":": for any values "},{"kind":"code","text":"x"},{"kind":"text","text":" and "},{"kind":"code","text":"y"},{"kind":"text","text":", "},{"kind":"code","text":"lib.isIdentical(x, y, yLib)"},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if "},{"kind":"code","text":"lib.isIdentical(y, x, xLib)"},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It is "},{"kind":"emphasis","children":[{"kind":"text","text":"transitive"}]},{"kind":"text","text":": for any values "},{"kind":"code","text":"x"},{"kind":"text","text":", "},{"kind":"code","text":"y"},{"kind":"text","text":", and "},{"kind":"code","text":"z"},{"kind":"text","text":", if "},{"kind":"code","text":"lib.isIdentical(x, y, yLib)"},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" and "},{"kind":"code","text":"lib.isIdentical(y, z, zLib)"},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":", then "},{"kind":"code","text":"lib.isIdentical(x, z, zLib)"},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It is "},{"kind":"emphasis","children":[{"kind":"text","text":"consistent"}]},{"kind":"text","text":": for any values "},{"kind":"code","text":"x"},{"kind":"text","text":" and "},{"kind":"code","text":"y"},{"kind":"text","text":", multiple invocations of "},{"kind":"code","text":"lib.isIdentical(x, y, yLib)"},{"kind":"text","text":" consistently returns "},{"kind":"code","text":"true"},{"kind":"text","text":" or consistently return "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that the target language identical semantics typically does not map directly to interop identical implementation. Instead target language identity is specified by the language operation, may take multiple other rules into account and may only fallback to interop identical for values without dedicated interop type. For example, in many languages primitives like numbers or strings may be identical, in the target language sense, still identity can only be exposed for objects and non-primitive values. Primitive values like "},{"kind":"link","target":{"id":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},"code":true,"children":[{"kind":"text","text":"Integer"}]},{"kind":"text","text":" can never be interop identical to other boxed language integers as this would violate the symmetric property."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method performs double dispatch by forwarding calls to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdenticalOrUndefined(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIdenticalOrUndefined(Object, Object)"}]},{"kind":"text","text":" with receiver and other value first and then with reversed parameters if the result was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#UNDEFINED"},"code":true,"children":[{"kind":"text","text":"undefined"}]},{"kind":"text","text":". This allows the receiver and the other value to negotiate identity semantics. This method is supposed to be exported only if the receiver represents a wrapper that forwards messages. In such a case the isIdentical message should be forwarded to the delegate value. Otherwise, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdenticalOrUndefined(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIdenticalOrUndefined(Object, Object)"}]},{"kind":"text","text":" should be exported instead."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Cached usage example:"}]},{"kind":"code","text":"abstract class IsIdenticalUsage extends Node {\n\n    abstract boolean execute(Object left, Object right);\n\n    @Specialization(limit = \"3\")\n    public boolean isIdentical(Object left, Object right,\n                    @CachedLibrary(\"left\") InteropLibrary leftInterop,\n                    @CachedLibrary(\"right\") InteropLibrary rightInterop) {\n        return leftInterop.isIdentical(left, right, rightInterop);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Uncached usage example:"}]},{"kind":"code","text":"@TruffleBoundary\npublic static boolean isIdentical(Object left, Object right) {\n    return InteropLibrary.getUncached(left).isIdentical(left, right,\n                    InteropLibrary.getUncached(right));\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"For a full example please refer to the SLEqualNode of the SimpleLanguage example implementation."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":2994}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIdentity(java.lang.Object)","anchor":"hasIdentity(java.lang.Object)","kind":"method","name":"hasIdentity","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasIdentity"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if the receiver specifies identity, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if the receiver specifies identity, else "},{"kind":"code","text":"false"},{"kind":"text","text":". This method is a short-cut for "},{"kind":"code","text":"this.isIdentical(receiver, receiver, this) != TriState.UNDEFINED"},{"kind":"text","text":". This message cannot be exported. To add identity support to the receiver export "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdenticalOrUndefined(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIdenticalOrUndefined(Object, Object)"}]},{"kind":"text","text":" instead."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdenticalOrUndefined(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIdenticalOrUndefined(Object, Object)"}]}]]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3012}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#identityHashCode(java.lang.Object)","anchor":"identityHashCode(java.lang.Object)","kind":"method","name":"identityHashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"identityHashCode"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIdentity(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasIdentity(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns an identity hash code for the receiver if it has "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIdentity(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"identity"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an identity hash code for the receiver if it has "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIdentity(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"identity"}]},{"kind":"text","text":". If the receiver has no identity then an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":" is thrown. The identity hash code may be used by languages to store foreign values with identity in an identity hash map."}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Whenever it is invoked on the same object more than once during an execution of a guest context, the identityHashCode method must consistently return the same integer. This integer need not remain consistent from one execution context of a guest application to another execution context of the same application."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If two objects are the same according to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdentical(java.lang.Object,java.lang.Object,com.oracle.truffle.api.interop.InteropLibrary)"},"code":true,"children":[{"kind":"text","text":"isIdentical(Object, Object, InteropLibrary)"}]},{"kind":"text","text":" message, then calling the identityHashCode method on each of the two objects must produce the same integer result."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"As much as is reasonably practical, the identityHashCode message does return distinct integers for objects that are not the same."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdenticalOrUndefined(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIdenticalOrUndefined(Object, Object)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdenticalOrUndefined(java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isIdenticalOrUndefined(Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIdentical(java.lang.Object,java.lang.Object,com.oracle.truffle.api.interop.InteropLibrary)"},"code":true,"children":[{"kind":"text","text":"isIdentical(Object, Object, InteropLibrary)"}]}]]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3042}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)","anchor":"isScope(java.lang.Object)","kind":"method","name":"isScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isScope"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value represents a scope object, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the value represents a scope object, else "},{"kind":"code","text":"false"},{"kind":"text","text":". The scope object contains variables as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"members"}]},{"kind":"text","text":". The scope may return a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" that indicates the range of the scope in the source code. The scope may have "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"parent scopes"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"members"}]},{"kind":"text","text":" of a scope represent all visible flattened variables, including all parent scopes, if any. The variables of the current scope must be listed first in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMembers(Object)"}]},{"kind":"text","text":". Variables of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"parent scope"}]},{"kind":"text","text":" must be listed afterwards, even if they contain duplicates. This allows to resolve which variables are redeclared in sub scopes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Every "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"member"}]},{"kind":"text","text":" may not be just a String literal, but a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string object"}]},{"kind":"text","text":" that provides also a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"source location"}]},{"kind":"text","text":" of its declaration. When different variables of the same name are in different scopes, they will be represented by different member elements providing the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"name"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasMembers(Object)"}]},{"kind":"text","text":" must be implemented and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasSourceLocation(Object)"}]},{"kind":"text","text":" is recommended."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getMembers(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasScopeParent(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3074}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)","anchor":"hasScopeParent(java.lang.Object)","kind":"method","name":"hasScopeParent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasScopeParent"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this scope has an enclosing parent scope, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this scope has an enclosing parent scope, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isScope(Object)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getScopeParent(Object)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isScope(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getScopeParent(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3090}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getScopeParent(java.lang.Object)","anchor":"getScopeParent(java.lang.Object)","kind":"method","name":"getScopeParent","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getScopeParent"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasScopeParent(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same receiver."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the parent scope object if it "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"has the parent"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the parent scope object if it "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"has the parent"}]},{"kind":"text","text":". The returned object must be a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"scope"}]},{"kind":"text","text":" and must provide a reduced list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"member"}]},{"kind":"text","text":" variables, omitting all variables that are local to the current scope."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isScope(Object)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getScopeParent(Object)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isScope(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hasScopeParent(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3110}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHostObject(java.lang.Object)","anchor":"isHostObject(java.lang.Object)","kind":"method","name":"isHostObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHostObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the argument is wrapped Java host language object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the argument is wrapped Java host language object. This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asHostObject(Object)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#asHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"asHostObject(Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3123}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#asHostObject(java.lang.Object)","anchor":"asHostObject(java.lang.Object)","kind":"method","name":"asHostObject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"asHostObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":", "},{"kind":"type","text":"HeapIsolationException","ref":"com.oracle.truffle.api.interop.HeapIsolationException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHostObject(Object)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the given receiver."}]}]},{"type":[{"kind":"type","text":"HeapIsolationException","ref":"com.oracle.truffle.api.interop.HeapIsolationException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the guest object represents a host object located in a foreign heap, for example in a polyglot isolate."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the Java host object representation of the given Truffle guest object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the Java host object representation of the given Truffle guest object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Implementations of this method must not produce any observable side effects. If this method is implemented, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHostObject(Object)"}]},{"kind":"text","text":" must also be implemented and return "},{"kind":"code","text":"true"},{"kind":"text","text":" for the same receiver."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isHostObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isHostObject(Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3143}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getFactory()","anchor":"getFactory()","kind":"method","name":"getFactory","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"InteropLibrary","ref":"com.oracle.truffle.api.interop.InteropLibrary"},{"kind":"punct","text":"> "},{"kind":"name","text":"getFactory"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"InteropLibrary","ref":"com.oracle.truffle.api.interop.InteropLibrary"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the library factory for the interop library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the library factory for the interop library. Short-cut for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#resolve(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"ResolvedLibrary.resolve(InteropLibrary.class)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#resolve(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.resolve(Class)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3155}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropLibrary","ref":"com.oracle.truffle.api.interop.InteropLibrary"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InteropLibrary","ref":"com.oracle.truffle.api.interop.InteropLibrary"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached automatically dispatched version of the interop library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached automatically dispatched version of the interop library. This is a short-cut for calling "},{"kind":"code","text":"InteropLibrary.getFactory().getUncached()"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached()"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.getUncached()"}]}]]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3166}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#getUncached(java.lang.Object)","anchor":"getUncached(java.lang.Object)","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropLibrary","ref":"com.oracle.truffle.api.interop.InteropLibrary"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"v"},{"kind":"punct","text":")"}],"params":[{"name":"v","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"InteropLibrary","ref":"com.oracle.truffle.api.interop.InteropLibrary"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached manually dispatched version of the interop library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached manually dispatched version of the interop library. This is a short-cut for calling "},{"kind":"code","text":"InteropLibrary.getFactory().getUncached(v)"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.getUncached(Object)"}]}]]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3177}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#assertAdopted()","anchor":"assertAdopted()","kind":"method","name":"assertAdopted","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"assertAdopted"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Utility for libraries to require adoption before cached versions of nodes can be executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Utility for libraries to require adoption before cached versions of nodes can be executed. Only fails if assertions (-ea) are enabled."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3187}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isValidValue(java.lang.Object)","anchor":"isValidValue(java.lang.Object)","kind":"method","name":"isValidValue","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isValidValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Utility to check whether a value is a valid interop value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Utility to check whether a value is a valid interop value. Interop values are all values that can flow through the language implementation freely and are intended to be used as receivers for the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"InteropLibrary"}]},{"kind":"text","text":". This method will be extended with more checked types as interop is extended with further allowed values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is not recommended to make assumptions about the types of interop values. It is recommended to use instance methods in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"InteropLibrary"}]},{"kind":"text","text":" to check for interop types instead. However, it can be useful to make such assumptions for performance reasons. To verify that these assumptions continue to hold this method can be used."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3208}},{"id":"com.oracle.truffle.api.interop.InteropLibrary#isValidProtocolValue(java.lang.Object)","anchor":"isValidProtocolValue(java.lang.Object)","kind":"method","name":"isValidProtocolValue","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isValidProtocolValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Utility to check whether a value is a valid interop protocol value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Utility to check whether a value is a valid interop protocol value. An interop protocol value is either an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isValidValue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"interop value"}]},{"kind":"text","text":" or a value that might be returned or passed as parameter by any of the methods in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"InteropLibrary"}]},{"kind":"text","text":". This can be useful to validate all values received or returned by a wrapper that uses "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"ReflectionLibrary"}]},{"kind":"text","text":" to delegate all interop protocol parameters and return values. This method will be extended with more checked types as interop is extended with further allowed values."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isValidValue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isValidValue(Object)"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":3234}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.library.Library","text":"Library"},"kind":"class","members":[{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)","text":"accepts"}]},{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents the library that specifies the interoperability message protocol between Truffle languages, tools and embedders."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the library that specifies the interoperability message protocol between Truffle languages, tools and embedders. Every method represents one message specified by the protocol. In the following text we will abbreviate interoperability with interop."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The interop API differentiates between the source and the target language. The source language is the language that implements/exports the message implementations. The implementations map types of the source language to the interop protocol as it is specified by the protocol. For example, language values that represent arrays or array like structures should implement the messages for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"array based access"}]},{"kind":"text","text":". This allows the target language to call the protocol without knowledge of the concrete source language. The target language embeds the interop protocol semantics as part of their existing language semantics. For example, language operations that access array elements in the target language should call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"array access"}]},{"kind":"text","text":" messages for interop values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The interop protocol only allows "},{"kind":"emphasis","children":[{"kind":"text","text":"interop values"}]},{"kind":"text","text":" to be used as receivers, return values or parameters of messages. Allowed Java types of interop values are:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":": Any object that implements the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":" interface is interpreted according to the interop messages it "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"exports"}]},{"kind":"text","text":". Truffle objects are expected but not required to export interop library messages."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Character","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Character.html"},"code":true,"children":[{"kind":"text","text":"Character"}]},{"kind":"text","text":" are interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"string"}]},{"kind":"text","text":" value."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},"code":true,"children":[{"kind":"text","text":"Boolean"}]},{"kind":"text","text":" is interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBoolean(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"boolean"}]},{"kind":"text","text":" value."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"java.lang.Byte","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Byte.html"},"code":true,"children":[{"kind":"text","text":"Byte"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Short","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Short.html"},"code":true,"children":[{"kind":"text","text":"Short"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Integer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html"},"code":true,"children":[{"kind":"text","text":"Integer"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},"code":true,"children":[{"kind":"text","text":"Long"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Float","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html"},"code":true,"children":[{"kind":"text","text":"Float"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Double","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html"},"code":true,"children":[{"kind":"text","text":"Double"}]},{"kind":"text","text":" are interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"number"}]},{"kind":"text","text":" values."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that "},{"kind":"code","text":"null"},{"kind":"text","text":" is "},{"kind":"emphasis","children":[{"kind":"text","text":"never"}]},{"kind":"text","text":" a valid interop value. Instead, use a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":" which implements "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNull(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"isNull(Object)"}]},{"kind":"text","text":" message."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following type combinations are mutually exclusive and cannot return "},{"kind":"code","text":"true"},{"kind":"text","text":" for the type check message of the same receiver value:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNull(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Null"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isBoolean(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Boolean"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"String"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isNumber(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Number"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDate(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Date"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTime(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Time"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"TimeZone"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isDuration(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Duration"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isException(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Exception"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Meta-Object"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Iterator"}]}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"All receiver values may have none, one or multiple of the following traits:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executable"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isInstantiable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"instantiable"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isPointer(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"pointer"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"members"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasStaticScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"static scope"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasHashEntries(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"hash entries"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasArrayElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"array elements"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBufferElements(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"buffer elements"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasLanguage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"associated metaobject"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasMetaParents(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"metaobject parents as array elements"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasDeclaringMetaObject(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"declaring meta object"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasSourceLocation(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"source location"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIdentity(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"identity"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasScopeParent(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"scope parent"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExecutableName(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executable name"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExceptionMessage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception message"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExceptionCause(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception cause"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasExceptionStackTrace(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"exception stack trace"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasIterator(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"iterator"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#hasBytecodeIndex(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"bytecode index"}]}]}]]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Naive and aware dates and times"}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a date or time value has a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isTimeZone(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"timezone"}]},{"kind":"text","text":" then it is called "},{"kind":"emphasis","children":[{"kind":"text","text":"aware"}]},{"kind":"text","text":" , otherwise "},{"kind":"emphasis","children":[{"kind":"text","text":"naive"}]}]},{"kind":"paragraph","children":[{"kind":"text","text":"An aware time and date has sufficient knowledge of applicable algorithmic and political time adjustments, such as time zone and daylight saving time information, to locate itself relative to other aware objects. An aware object is used to represent a specific moment in time that is not open to interpretation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A naive time and date does not contain enough information to unambiguously locate itself relative to other date/time objects. Whether a naive object represents Coordinated Universal Time (UTC), local time, or time in some other timezone is purely up to the program, just like it is up to the program whether a particular number represents metres, miles, or mass. Naive objects are easy to understand and to work with, at the cost of ignoring some aspects of reality."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Interop messages throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"checked exceptions"}]},{"kind":"text","text":" to indicate error states. The target language is supposed to always catch those exceptions and translate them into guest language errors of the target language. Interop message contracts are verified only if assertions (-ea) are enabled."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library"},"code":true,"children":[{"kind":"text","text":"Reference documentation of Truffle Libraries."}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InteropLibrary.java","line":186}},{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException","name":"InvalidArrayIndexException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InvalidArrayIndexException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"superclass":[{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"ancestors":[{"id":"com.oracle.truffle.api.interop.InteropException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InvalidArrayIndexException.java","line":76}},{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException#getInvalidIndex()","anchor":"getInvalidIndex()","kind":"method","name":"getInvalidIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getInvalidIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"Returns the invalid index that was used."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the invalid index that was used."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InvalidArrayIndexException.java","line":87}},{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException#create(long)","anchor":"create(long)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"invalidIndex"},{"kind":"punct","text":")"}],"params":[{"name":"invalidIndex","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index that could not be accessed"}]}]}],"returns":{"type":[{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException"},"code":true,"children":[{"kind":"text","text":"InvalidArrayIndexException"}]},{"kind":"text","text":" to indicate that an array index is invalid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException"},"code":true,"children":[{"kind":"text","text":"InvalidArrayIndexException"}]},{"kind":"text","text":" to indicate that an array index is invalid."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InvalidArrayIndexException.java","line":100}},{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException#create(long,java.lang.Throwable)","anchor":"create(long,java.lang.Throwable)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"invalidIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"invalidIndex","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index that could not be accessed"}]}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest language exception that caused the error."}]}]}],"returns":{"type":[{"kind":"type","text":"InvalidArrayIndexException","ref":"com.oracle.truffle.api.interop.InvalidArrayIndexException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException"},"code":true,"children":[{"kind":"text","text":"InvalidArrayIndexException"}]},{"kind":"text","text":" to indicate that an array index is invalid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException"},"code":true,"children":[{"kind":"text","text":"InvalidArrayIndexException"}]},{"kind":"text","text":" to indicate that an array index is invalid."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is translated to a source language error. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/InvalidArrayIndexException.java","line":125}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.interop.InteropException","text":"InteropException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","text":"fillInStackTrace"},{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","text":"getCause"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown if an array does not contain a element with an index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown if an array does not contain a element with an index. Interop exceptions are supposed to be caught and converted into a guest language error by the caller."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidArrayIndexException#getInvalidIndex()"},"code":true,"children":[{"kind":"text","text":"getInvalidIndex()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"InteropLibrary"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/InvalidArrayIndexException.java","line":55}},{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException","name":"InvalidBufferOffsetException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InvalidBufferOffsetException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"superclass":[{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"ancestors":[{"id":"com.oracle.truffle.api.interop.InteropException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException#getByteOffset()","anchor":"getByteOffset()","kind":"method","name":"getByteOffset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getByteOffset"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"Returns the start byte offset of the invalid access from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the start byte offset of the invalid access from the start of the buffer."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InvalidBufferOffsetException.java","line":80}},{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException#getLength()","anchor":"getLength()","kind":"method","name":"getLength","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"Returns the length of the accessed memory region in bytes starting from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException#getByteOffset()"},"code":true,"children":[{"kind":"text","text":"the start byte offset"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the length of the accessed memory region in bytes starting from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException#getByteOffset()"},"code":true,"children":[{"kind":"text","text":"the start byte offset"}]},{"kind":"text","text":"."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InvalidBufferOffsetException.java","line":90}},{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InvalidBufferOffsetException.java","line":99}},{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException#create(long,long)","anchor":"create(long,long)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the start byteOffset of the invalid access"}]}]},{"name":"length","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the length of the accessed memory region in bytes starting from "},{"kind":"code","text":"byteOffset"}]}]}],"returns":{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"},"code":true,"children":[{"kind":"text","text":"InvalidBufferOffsetException"}]},{"kind":"text","text":" to indicate that a buffer access is invalid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"},"code":true,"children":[{"kind":"text","text":"InvalidBufferOffsetException"}]},{"kind":"text","text":" to indicate that a buffer access is invalid."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InvalidBufferOffsetException.java","line":116}},{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException#create(long,long,java.lang.Throwable)","anchor":"create(long,long,java.lang.Throwable)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the start byteOffset of the invalid access"}]}]},{"name":"length","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the length of the accessed memory region in bytes starting from "},{"kind":"code","text":"byteOffset"},{"kind":"text","text":"."}]}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest language exception that caused the error."}]}]}],"returns":{"type":[{"kind":"type","text":"InvalidBufferOffsetException","ref":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"},"code":true,"children":[{"kind":"text","text":"InvalidBufferOffsetException"}]},{"kind":"text","text":" to indicate that a buffer access is invalid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException"},"code":true,"children":[{"kind":"text","text":"InvalidBufferOffsetException"}]},{"kind":"text","text":" to indicate that a buffer access is invalid."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is translated to a source language error. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InvalidBufferOffsetException.java","line":143}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.interop.InteropException","text":"InteropException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","text":"fillInStackTrace"},{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","text":"getCause"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown if a buffer access if out of bounds."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown if a buffer access if out of bounds. Interop exceptions are supposed to be caught and converted into a guest language error by the caller."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException#getByteOffset()"},"code":true,"children":[{"kind":"text","text":"getByteOffset()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InvalidBufferOffsetException#getLength()"},"code":true,"children":[{"kind":"text","text":"getLength()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"InteropLibrary"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/InvalidBufferOffsetException.java","line":56}},{"id":"com.oracle.truffle.api.interop.NodeLibrary","name":"NodeLibrary","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeLibrary"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"superclass":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"ancestors":[{"id":"com.oracle.truffle.api.library.Library"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.NodeLibrary#<init>()","anchor":"<init>()","kind":"constructor","name":"NodeLibrary","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeLibrary"},{"kind":"punct","text":"()"}],"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":77}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasScope(java.lang.Object,com.oracle.truffle.api.frame.Frame)","anchor":"hasScope(java.lang.Object,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"hasScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasScope"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a Node, never "},{"kind":"code","text":"null"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":", can be "},{"kind":"code","text":"null"},{"kind":"text","text":" in case of lexical access."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":", if the node is in a scope containing local variables, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":", if the node is in a scope containing local variables, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#getScope(java.lang.Object,com.oracle.truffle.api.frame.Frame,boolean)"},"code":true,"children":[{"kind":"text","text":"getScope(Object, Frame, boolean)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#getScope(java.lang.Object,com.oracle.truffle.api.frame.Frame,boolean)"},"code":true,"children":[{"kind":"text","text":"getScope(Object, Frame, boolean)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":92}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#getScope(java.lang.Object,com.oracle.truffle.api.frame.Frame,boolean)","anchor":"getScope(java.lang.Object,com.oracle.truffle.api.frame.Frame,boolean)","kind":"method","name":"getScope","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getScope"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"nodeEnter"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"node","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a Node, never "},{"kind":"code","text":"null"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":", can be "},{"kind":"code","text":"null"},{"kind":"text","text":" in case of lexical access."}]}]},{"name":"nodeEnter","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when "},{"kind":"code","text":"true"},{"kind":"text","text":", the location that determines scope variables is at the enter to the node execution, else "},{"kind":"code","text":"false"},{"kind":"text","text":". Use "},{"kind":"code","text":"true"},{"kind":"text","text":" when called e.g. by instruments from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onEnter(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.ExecutionEventNode.onEnter(VirtualFrame)"}]},{"kind":"text","text":" and "},{"kind":"code","text":"false"},{"kind":"text","text":" when called e.g. from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.ExecutionEventNode#onReturnValue(com.oracle.truffle.api.frame.VirtualFrame,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.ExecutionEventNode.onReturnValue(VirtualFrame, Object)"}]},{"kind":"text","text":". This argument helps to determine visible variables in case that some variables are added during the node execution."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"An interop object with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isScope(Object)"}]},{"kind":"text","text":" being true."}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasScope(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"hasScope(Object, Frame)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same node and frame."}]}]}],"doc":{"summary":[{"kind":"text","text":"Get an object representing a local scope containing variables visible at the node location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get an object representing a local scope containing variables visible at the node location. The returned object must respond "},{"kind":"code","text":"true"},{"kind":"text","text":" to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isScope(Object)"}]},{"kind":"text","text":". The scope object exposes all locally visible variables as flattened "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getMembers(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"members"}]},{"kind":"text","text":", including all parent scopes (for example block, closure, lexical or dynamic scopes). Local scopes are associated with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isScope(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isScope(Object)"}]},{"kind":"text","text":" for details."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasScope(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"hasScope(Object, Frame)"}]},{"kind":"text","text":" must be implemented."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A returned scope is only valid while the regular guest language execution on this thread is suspended. If the guest execution is continued e.g. if a new instrumentation event occurs, the scope is invalid and should be discarded."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":127}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasReceiverMember(java.lang.Object,com.oracle.truffle.api.frame.Frame)","anchor":"hasReceiverMember(java.lang.Object,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"hasReceiverMember","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasReceiverMember"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a Node, never "},{"kind":"code","text":"null"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":", can be "},{"kind":"code","text":"null"},{"kind":"text","text":" in case of lexical access."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":", if there is a named receiver object, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":", if there is a named receiver object, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#getReceiverMember(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"getReceiverMember(Object, Frame)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#getReceiverMember(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"getReceiverMember(Object, Frame)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":144}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#getReceiverMember(java.lang.Object,com.oracle.truffle.api.frame.Frame)","anchor":"getReceiverMember(java.lang.Object,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"getReceiverMember","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getReceiverMember"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"node","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a Node, never "},{"kind":"code","text":"null"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":", can be "},{"kind":"code","text":"null"},{"kind":"text","text":" in case of lexical access."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"interop string object"}]},{"kind":"text","text":"."}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasReceiverMember(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"hasReceiverMember(Object, Frame)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same node and frame."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns an object that represents the receiver name when available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an object that represents the receiver name when available. The returned value is guaranteed to return true for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isString(Object)"}]},{"kind":"text","text":". Examples for receiver names are "},{"kind":"code","text":"this"},{"kind":"text","text":" in Java or self in Ruby or Python. The value of the receiver object can be retrieved from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#getScope(java.lang.Object,com.oracle.truffle.api.frame.Frame,boolean)"},"code":true,"children":[{"kind":"text","text":"scope"}]},{"kind":"text","text":" by converting the member to a string using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isString(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"InteropLibrary.isString(Object)"}]},{"kind":"text","text":". The return value of this method is an Object intentionally to allow the member to have additional interop traits."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasReceiverMember(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"hasReceiverMember(Object, Frame)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasReceiverMember(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"hasReceiverMember(Object, Frame)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#getScope(java.lang.Object,com.oracle.truffle.api.frame.Frame,boolean)"},"code":true,"children":[{"kind":"text","text":"getScope(Object, Frame, boolean)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":170}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasRootInstance(java.lang.Object,com.oracle.truffle.api.frame.Frame)","anchor":"hasRootInstance(java.lang.Object,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"hasRootInstance","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasRootInstance"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a Node, never "},{"kind":"code","text":"null"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":", can be "},{"kind":"code","text":"null"},{"kind":"text","text":" in case of lexical access, in which case the instance would likely not be available."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":", if a current instance of the guest language representation of the root node (e.g."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":", if a current instance of the guest language representation of the root node (e.g. the enclosing guest language function) is available, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Guest languages will likely require a context lookup to resolve the root instance object. This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#getRootInstance(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"getRootInstance(Object, Frame)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#getRootInstance(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"getRootInstance(Object, Frame)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":189}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#getRootInstance(java.lang.Object,com.oracle.truffle.api.frame.Frame)","anchor":"getRootInstance(java.lang.Object,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"getRootInstance","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getRootInstance"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"params":[{"name":"node","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a Node, never "},{"kind":"code","text":"null"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":", can be "},{"kind":"code","text":"null"},{"kind":"text","text":" in case of lexical access, in which case the instance would likely not be available."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the root instance value which must be an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"interop"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#isExecutable(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executable"}]},{"kind":"text","text":" value."}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasRootInstance(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"hasRootInstance(Object, Frame)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for the same node and frame."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the current instance of guest language representation of the root node (e.g."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current instance of guest language representation of the root node (e.g. the enclosing guest language function), when available."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not cause any observable side-effects. If this method is implemented then also "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasRootInstance(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"hasRootInstance(Object, Frame)"}]},{"kind":"text","text":" must be implemented."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.NodeLibrary#hasRootInstance(java.lang.Object,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"hasRootInstance(Object, Frame)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":211}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#getView(java.lang.Object,com.oracle.truffle.api.frame.Frame,java.lang.Object)","anchor":"getView(java.lang.Object,com.oracle.truffle.api.frame.Frame,java.lang.Object)","kind":"method","name":"getView","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getView"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current source location. Guaranteed to be a node from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" associated with this language. Never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current active frame. Guaranteed to be a frame from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" associated with this language. Never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to provide scope information for. Never "},{"kind":"code","text":"null"},{"kind":"text","text":". Always associated with this language."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Wraps the value to filter or add scoping specific information for values associated with the current language and location in the code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Wraps the value to filter or add scoping specific information for values associated with the current language and location in the code. Allows the language to augment the perspective tools have on values depending on location and frame. This may be useful to apply local specific visibility rules. By default this method does return the passed value, not applying any scope information to the value. If a language does not implement any scoping and/or has not concept of visibility then this method typically can stay without an implementation. A typical implementation of this method may do the following:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Apply visibility and scoping rules to the value hiding or removing members from the object."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Add or remove implicit members that are only available within this source location."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is only invoked with values that are associated with the current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getLanguage(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":". For values without language the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language view"}]},{"kind":"text","text":" is requested first before the scoped view is requested. If this method needs an implementation then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getLanguageView(Object, Object)"}]},{"kind":"text","text":" should be implemented as well."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Scoped views may be implemented in a very similar way to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"language views"}]},{"kind":"text","text":". Please refer to the examples from this method."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getLanguageView(C,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getLanguageView(Object, Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":249}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#getFactory()","anchor":"getFactory()","kind":"method","name":"getFactory","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"NodeLibrary","ref":"com.oracle.truffle.api.interop.NodeLibrary"},{"kind":"punct","text":"> "},{"kind":"name","text":"getFactory"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"NodeLibrary","ref":"com.oracle.truffle.api.interop.NodeLibrary"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the library factory for the node library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the library factory for the node library. Short-cut for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#resolve(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"ResolvedLibrary.resolve(NodeLibrary.class)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#resolve(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.resolve(Class)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":260}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeLibrary","ref":"com.oracle.truffle.api.interop.NodeLibrary"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"NodeLibrary","ref":"com.oracle.truffle.api.interop.NodeLibrary"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached automatically dispatched version of the node library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached automatically dispatched version of the node library. This is a short-cut for calling "},{"kind":"code","text":"NodeLibrary.getFactory().getUncached()"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached()"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.getUncached()"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":271}},{"id":"com.oracle.truffle.api.interop.NodeLibrary#getUncached(java.lang.Object)","anchor":"getUncached(java.lang.Object)","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeLibrary","ref":"com.oracle.truffle.api.interop.NodeLibrary"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"NodeLibrary","ref":"com.oracle.truffle.api.interop.NodeLibrary"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached manually dispatched version of the node library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached manually dispatched version of the node library. This is a short-cut for calling "},{"kind":"code","text":"NodeLibrary.getFactory().getUncached(v)"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.getUncached(Object)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":282}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.library.Library","text":"Library"},"kind":"class","members":[{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)","text":"accepts"}]},{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node Library provides access to guest language information associated with a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node Library provides access to guest language information associated with a particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" location. The receiver of this library must be an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode#isInstrumentable()"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" that has a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()"},"code":true,"children":[{"kind":"text","text":"root node"}]},{"kind":"text","text":"."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/interop/NodeLibrary.java","line":68}},{"id":"com.oracle.truffle.api.interop.StopIterationException","name":"StopIterationException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StopIterationException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"superclass":[{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"ancestors":[{"id":"com.oracle.truffle.api.interop.InteropException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.StopIterationException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/StopIterationException.java","line":77}},{"id":"com.oracle.truffle.api.interop.StopIterationException#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"StopIterationException","ref":"com.oracle.truffle.api.interop.StopIterationException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"StopIterationException","ref":"com.oracle.truffle.api.interop.StopIterationException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.StopIterationException"},"code":true,"children":[{"kind":"text","text":"StopIterationException"}]},{"kind":"text","text":" to indicate that iteration was stopped."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.StopIterationException"},"code":true,"children":[{"kind":"text","text":"StopIterationException"}]},{"kind":"text","text":" to indicate that iteration was stopped."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/StopIterationException.java","line":90}},{"id":"com.oracle.truffle.api.interop.StopIterationException#create(java.lang.Throwable)","anchor":"create(java.lang.Throwable)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"StopIterationException","ref":"com.oracle.truffle.api.interop.StopIterationException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest language exception that caused the error."}]}]}],"returns":{"type":[{"kind":"type","text":"StopIterationException","ref":"com.oracle.truffle.api.interop.StopIterationException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.StopIterationException"},"code":true,"children":[{"kind":"text","text":"StopIterationException"}]},{"kind":"text","text":" to indicate that iteration was stopped."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.StopIterationException"},"code":true,"children":[{"kind":"text","text":"StopIterationException"}]},{"kind":"text","text":" to indicate that iteration was stopped."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is translated to a source language error. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/StopIterationException.java","line":114}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.interop.InteropException","text":"InteropException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","text":"fillInStackTrace"},{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","text":"getCause"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown if an iterator is finished."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown if an iterator is finished."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This exception is thrown by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary#getIteratorNextElement(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getIteratorNextElement"}]},{"kind":"text","text":" when the iterator has no more elements to return."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Interop exceptions are supposed to be caught and converted into a guest language error by the caller."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"InteropLibrary"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/interop/StopIterationException.java","line":58}},{"id":"com.oracle.truffle.api.interop.TruffleObject","name":"TruffleObject","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleObject"}],"doc":{"summary":[{"kind":"text","text":"Interface for any entity of a Truffle guest language implementations that can be shared across other language implementations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Interface for any entity of a Truffle guest language implementations that can be shared across other language implementations."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"to access truffle objects."}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/interop/TruffleObject.java","line":50}},{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException","name":"UnknownIdentifierException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"UnknownIdentifierException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"superclass":[{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"ancestors":[{"id":"com.oracle.truffle.api.interop.InteropException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/UnknownIdentifierException.java","line":76}},{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException#getUnknownIdentifier()","anchor":"getUnknownIdentifier()","kind":"method","name":"getUnknownIdentifier","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getUnknownIdentifier"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unaccessible identifier"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the identifier that could not be accessed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the identifier that could not be accessed."}]}]},"since":"0.11","source":{"path":"com/oracle/truffle/api/interop/UnknownIdentifierException.java","line":88}},{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException#create(java.lang.String)","anchor":"create(java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"unknownIdentifier"},{"kind":"punct","text":")"}],"params":[{"name":"unknownIdentifier","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the identifier that could not be accessed"}]}]}],"returns":{"type":[{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException"},"code":true,"children":[{"kind":"text","text":"UnknownIdentifierException"}]},{"kind":"text","text":" to indicate that an identifier is missing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException"},"code":true,"children":[{"kind":"text","text":"UnknownIdentifierException"}]},{"kind":"text","text":" to indicate that an identifier is missing."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/UnknownIdentifierException.java","line":101}},{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException#create(java.lang.String,java.lang.Throwable)","anchor":"create(java.lang.String,java.lang.Throwable)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"unknownIdentifier"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"unknownIdentifier","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the identifier that could not be accessed"}]}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest language exception that caused the error."}]}]}],"returns":{"type":[{"kind":"type","text":"UnknownIdentifierException","ref":"com.oracle.truffle.api.interop.UnknownIdentifierException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException"},"code":true,"children":[{"kind":"text","text":"UnknownIdentifierException"}]},{"kind":"text","text":" to indicate that an identifier is missing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException"},"code":true,"children":[{"kind":"text","text":"UnknownIdentifierException"}]},{"kind":"text","text":" to indicate that an identifier is missing."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is translated to a source language error. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/UnknownIdentifierException.java","line":126}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.interop.InteropException","text":"InteropException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","text":"fillInStackTrace"},{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","text":"getCause"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown if an object does not contain a member with such an identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown if an object does not contain a member with such an identifier. Interop exceptions are supposed to be caught and converted into a guest language error by the caller."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownIdentifierException#getUnknownIdentifier()"},"code":true,"children":[{"kind":"text","text":"getUnknownIdentifier()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"InteropLibrary"}]}]]},"since":"0.11","source":{"path":"com/oracle/truffle/api/interop/UnknownIdentifierException.java","line":55}},{"id":"com.oracle.truffle.api.interop.UnknownKeyException","name":"UnknownKeyException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"UnknownKeyException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"superclass":[{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"ancestors":[{"id":"com.oracle.truffle.api.interop.InteropException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.UnknownKeyException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"21.1.0","source":{"path":"com/oracle/truffle/api/interop/UnknownKeyException.java","line":77}},{"id":"com.oracle.truffle.api.interop.UnknownKeyException#getUnknownKey()","anchor":"getUnknownKey()","kind":"method","name":"getUnknownKey","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getUnknownKey"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the hash key that could not be accessed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the hash key that could not be accessed."}]}]},"since":"21.1.0","source":{"path":"com/oracle/truffle/api/interop/UnknownKeyException.java","line":93}},{"id":"com.oracle.truffle.api.interop.UnknownKeyException#create(java.lang.Object)","anchor":"create(java.lang.Object)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"unknownKey"},{"kind":"punct","text":")"}],"params":[{"name":"unknownKey","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the key that could not be accessed"}]}]}],"returns":{"type":[{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownKeyException"},"code":true,"children":[{"kind":"text","text":"UnknownKeyException"}]},{"kind":"text","text":" to indicate that a key is missing in the hash object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownKeyException"},"code":true,"children":[{"kind":"text","text":"UnknownKeyException"}]},{"kind":"text","text":" to indicate that a key is missing in the hash object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"21.1.0","source":{"path":"com/oracle/truffle/api/interop/UnknownKeyException.java","line":106}},{"id":"com.oracle.truffle.api.interop.UnknownKeyException#create(java.lang.Object,java.lang.Throwable)","anchor":"create(java.lang.Object,java.lang.Throwable)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"unknownKey"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"unknownKey","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the key that could not be accessed"}]}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest language exception that caused the error"}]}]}],"returns":{"type":[{"kind":"type","text":"UnknownKeyException","ref":"com.oracle.truffle.api.interop.UnknownKeyException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownKeyException"},"code":true,"children":[{"kind":"text","text":"UnknownKeyException"}]},{"kind":"text","text":" to indicate that a key is missing in the hash object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownKeyException"},"code":true,"children":[{"kind":"text","text":"UnknownKeyException"}]},{"kind":"text","text":" to indicate that a key is missing in the hash object."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is translated to a source language error. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"21.1.0","source":{"path":"com/oracle/truffle/api/interop/UnknownKeyException.java","line":131}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.interop.InteropException","text":"InteropException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","text":"fillInStackTrace"},{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","text":"getCause"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown if an object does not contain a hash entry with such a key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown if an object does not contain a hash entry with such a key. Interop exceptions are supposed to be caught and converted into a guest language error by the caller."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnknownKeyException#getUnknownKey()"},"code":true,"children":[{"kind":"text","text":"getUnknownKey()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"InteropLibrary"}]}]]},"since":"21.1.0","source":{"path":"com/oracle/truffle/api/interop/UnknownKeyException.java","line":55}},{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException","name":"UnsupportedMessageException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"UnsupportedMessageException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"superclass":[{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"ancestors":[{"id":"com.oracle.truffle.api.interop.InteropException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/UnsupportedMessageException.java","line":69}},{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":" to indicate that an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"interop"}]},{"kind":"text","text":" message is not supported."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":" to indicate that an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"interop"}]},{"kind":"text","text":" message is not supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/UnsupportedMessageException.java","line":83}},{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException#create(java.lang.Throwable)","anchor":"create(java.lang.Throwable)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest language exception that caused the error."}]}]}],"returns":{"type":[{"kind":"type","text":"UnsupportedMessageException","ref":"com.oracle.truffle.api.interop.UnsupportedMessageException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":" to indicate that an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"interop"}]},{"kind":"text","text":" message is not supported."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedMessageException"},"code":true,"children":[{"kind":"text","text":"UnsupportedMessageException"}]},{"kind":"text","text":" to indicate that an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropLibrary"},"code":true,"children":[{"kind":"text","text":"interop"}]},{"kind":"text","text":" message is not supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is translated to a source language error. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/UnsupportedMessageException.java","line":108}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.interop.InteropException","text":"InteropException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","text":"fillInStackTrace"},{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","text":"getCause"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":" does not support a interop message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":" does not support a interop message. If this exception is thrown then the receiver does not support the message at all and it is not supported for any arguments given to the message."}]}]},"since":"0.11","source":{"path":"com/oracle/truffle/api/interop/UnsupportedMessageException.java","line":52}},{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException","name":"UnsupportedTypeException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"UnsupportedTypeException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"superclass":[{"kind":"type","text":"InteropException","ref":"com.oracle.truffle.api.interop.InteropException"}],"ancestors":[{"id":"com.oracle.truffle.api.interop.InteropException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException#getSuppliedValues()","anchor":"getSuppliedValues()","kind":"method","name":"getSuppliedValues","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getSuppliedValues"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unsupported arguments"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the arguments of the foreign object access that were not supported by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the arguments of the foreign object access that were not supported by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":"."}]}]},"since":"0.11","source":{"path":"com/oracle/truffle/api/interop/UnsupportedTypeException.java","line":77}},{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException#create(java.lang.Object[])","anchor":"create(java.lang.Object[])","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"suppliedValues"},{"kind":"punct","text":")"}],"params":[{"name":"suppliedValues","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException"},"code":true,"children":[{"kind":"text","text":"UnsupportedTypeException"}]},{"kind":"text","text":" to indicate that an argument type is not supported."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException"},"code":true,"children":[{"kind":"text","text":"UnsupportedTypeException"}]},{"kind":"text","text":" to indicate that an argument type is not supported."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/UnsupportedTypeException.java","line":87}},{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException#create(java.lang.Object[],java.lang.String)","anchor":"create(java.lang.Object[],java.lang.String)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"suppliedValues"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"hint"},{"kind":"punct","text":")"}],"params":[{"name":"suppliedValues","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"hint","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException"},"code":true,"children":[{"kind":"text","text":"UnsupportedTypeException"}]},{"kind":"text","text":" to indicate that an argument type is not supported."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException"},"code":true,"children":[{"kind":"text","text":"UnsupportedTypeException"}]},{"kind":"text","text":" to indicate that an argument type is not supported."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/interop/UnsupportedTypeException.java","line":97}},{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException#create(java.lang.Object[],java.lang.String,java.lang.Throwable)","anchor":"create(java.lang.Object[],java.lang.String,java.lang.Throwable)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"suppliedValues"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"hint"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"suppliedValues","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"hint","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the guest language exception that caused the error."}]}]}],"returns":{"type":[{"kind":"type","text":"UnsupportedTypeException","ref":"com.oracle.truffle.api.interop.UnsupportedTypeException"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException"},"code":true,"children":[{"kind":"text","text":"UnsupportedTypeException"}]},{"kind":"text","text":" to indicate that an argument type is not supported."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.UnsupportedTypeException"},"code":true,"children":[{"kind":"text","text":"UnsupportedTypeException"}]},{"kind":"text","text":" to indicate that an argument type is not supported."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is translated to a source language error. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.InteropException"},"code":true,"children":[{"kind":"text","text":"InteropException"}]},{"kind":"text","text":" is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is designed to be used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"compiled"}]},{"kind":"text","text":" code paths."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/interop/UnsupportedTypeException.java","line":122}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.interop.InteropException","text":"InteropException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.interop.InteropException#fillInStackTrace()","text":"fillInStackTrace"},{"id":"com.oracle.truffle.api.interop.InteropException#getCause()","text":"getCause"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":" does not support the type of one or more arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown if a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop.TruffleObject"},"code":true,"children":[{"kind":"text","text":"TruffleObject"}]},{"kind":"text","text":" does not support the type of one or more arguments."}]}]},"since":"0.11","source":{"path":"com/oracle/truffle/api/interop/UnsupportedTypeException.java","line":52}}]},{"id":"com.oracle.truffle.api.io","name":"com.oracle.truffle.api.io","doc":{"summary":[{"kind":"text","text":"This package contains I/O related classes used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleLanguage"}]},{"kind":"text","text":" implementations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This package contains I/O related classes used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleLanguage"}]},{"kind":"text","text":" implementations."}]}]},"since":"19.1.0","types":[{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder","name":"TruffleProcessBuilder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleProcessBuilder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#command(java.util.List)","anchor":"command(java.util.List)","kind":"method","name":"command","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"command"},{"kind":"punct","text":"("},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"command"},{"kind":"punct","text":")"}],"params":[{"name":"command","type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the list containing the executable and its arguments"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the executable and arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the executable and arguments."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":101}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#command(java.lang.String...)","anchor":"command(java.lang.String...)","kind":"method","name":"command","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"command"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"command"},{"kind":"punct","text":")"}],"params":[{"name":"command","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the string array containing the executable and its arguments"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the executable and arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the executable and arguments."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":114}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#directory(com.oracle.truffle.api.TruffleFile)","anchor":"directory(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"directory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"directory"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"currentWorkingDirectory"},{"kind":"punct","text":")"}],"params":[{"name":"currentWorkingDirectory","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new current working directory"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets this process current working directory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets this process current working directory. The "},{"kind":"code","text":"currentWorkingDirectory"},{"kind":"text","text":" may be "},{"kind":"code","text":"null"},{"kind":"text","text":", in this case the subprocess current working directory is set to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#getCurrentWorkingDirectory()"},"code":true,"children":[{"kind":"text","text":"file system current working directory"}]},{"kind":"text","text":"."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":130}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#redirectErrorStream(boolean)","anchor":"redirectErrorStream(boolean)","kind":"method","name":"redirectErrorStream","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"redirectErrorStream"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"enables merging of standard error output into standard output"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" the standard error output is merged into standard output."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" the standard error output is merged into standard output."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":142}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#redirectInput(org.graalvm.polyglot.io.ProcessHandler.Redirect)","anchor":"redirectInput(org.graalvm.polyglot.io.ProcessHandler.Redirect)","kind":"method","name":"redirectInput","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"redirectInput"},{"kind":"punct","text":"("},{"kind":"type","text":"ProcessHandler.Redirect","ref":"org.graalvm.polyglot.io.ProcessHandler$Redirect","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"ProcessHandler.Redirect","ref":"org.graalvm.polyglot.io.ProcessHandler$Redirect","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new standard input source"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the standard input source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the standard input source. Process started by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#start()"},"code":true,"children":[{"kind":"text","text":"start()"}]},{"kind":"text","text":" method obtain its standard input from this source."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the source is "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.ProcessHandler$Redirect#PIPE","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html#PIPE"},"code":true,"children":[{"kind":"text","text":"PIPE"}]},{"kind":"text","text":", the default value, then the standard input of a subprocess can be written to using the output stream returned by "},{"kind":"link","target":{"id":"java.lang.Process#getOutputStream()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html#getOutputStream()"},"code":true,"children":[{"kind":"text","text":"Process.getOutputStream()"}]},{"kind":"text","text":". If the source is set to "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.ProcessHandler$Redirect#INHERIT","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html#INHERIT"},"code":true,"children":[{"kind":"text","text":"INHERIT"}]},{"kind":"text","text":", then the "},{"kind":"link","target":{"id":"java.lang.Process#getOutputStream()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html#getOutputStream()"},"code":true,"children":[{"kind":"text","text":"Process.getOutputStream()"}]},{"kind":"text","text":" returns a closed output stream."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":160}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#redirectOutput(org.graalvm.polyglot.io.ProcessHandler.Redirect)","anchor":"redirectOutput(org.graalvm.polyglot.io.ProcessHandler.Redirect)","kind":"method","name":"redirectOutput","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"redirectOutput"},{"kind":"punct","text":"("},{"kind":"type","text":"ProcessHandler.Redirect","ref":"org.graalvm.polyglot.io.ProcessHandler$Redirect","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html"},{"kind":"punct","text":" "},{"kind":"param","text":"destination"},{"kind":"punct","text":")"}],"params":[{"name":"destination","type":[{"kind":"type","text":"ProcessHandler.Redirect","ref":"org.graalvm.polyglot.io.ProcessHandler$Redirect","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new standard output destination"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the standard output destination."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the standard output destination. Process started by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#start()"},"code":true,"children":[{"kind":"text","text":"start()"}]},{"kind":"text","text":" method send its standard output to this destination."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the destination is "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.ProcessHandler$Redirect#PIPE","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html#PIPE"},"code":true,"children":[{"kind":"text","text":"PIPE"}]},{"kind":"text","text":", the default value, then the standard output of a subprocess can be read using the input stream returned by "},{"kind":"link","target":{"id":"java.lang.Process#getInputStream()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html#getInputStream()"},"code":true,"children":[{"kind":"text","text":"Process.getInputStream()"}]},{"kind":"text","text":". If the destination is set to is set to "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.ProcessHandler$Redirect#INHERIT","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html#INHERIT"},"code":true,"children":[{"kind":"text","text":"INHERIT"}]},{"kind":"text","text":", then "},{"kind":"link","target":{"id":"java.lang.Process#getInputStream()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html#getInputStream()"},"code":true,"children":[{"kind":"text","text":"Process.getInputStream()"}]},{"kind":"text","text":" returns a closed input stream."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":180}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#redirectError(org.graalvm.polyglot.io.ProcessHandler.Redirect)","anchor":"redirectError(org.graalvm.polyglot.io.ProcessHandler.Redirect)","kind":"method","name":"redirectError","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"redirectError"},{"kind":"punct","text":"("},{"kind":"type","text":"ProcessHandler.Redirect","ref":"org.graalvm.polyglot.io.ProcessHandler$Redirect","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html"},{"kind":"punct","text":" "},{"kind":"param","text":"destination"},{"kind":"punct","text":")"}],"params":[{"name":"destination","type":[{"kind":"type","text":"ProcessHandler.Redirect","ref":"org.graalvm.polyglot.io.ProcessHandler$Redirect","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new error output destination"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the standard error output destination."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the standard error output destination. Process started by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#start()"},"code":true,"children":[{"kind":"text","text":"start()"}]},{"kind":"text","text":" method send its error output to this destination."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the destination is "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.ProcessHandler$Redirect#PIPE","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html#PIPE"},"code":true,"children":[{"kind":"text","text":"PIPE"}]},{"kind":"text","text":", the default value, then the standard error of a subprocess can be read using the input stream returned by "},{"kind":"link","target":{"id":"java.lang.Process#getErrorStream()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html#getErrorStream()"},"code":true,"children":[{"kind":"text","text":"Process.getErrorStream()"}]},{"kind":"text","text":". If the destination is set to is set to "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.ProcessHandler$Redirect#INHERIT","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html#INHERIT"},"code":true,"children":[{"kind":"text","text":"INHERIT"}]},{"kind":"text","text":", then "},{"kind":"link","target":{"id":"java.lang.Process#getErrorStream()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html#getErrorStream()"},"code":true,"children":[{"kind":"text","text":"Process.getErrorStream()"}]},{"kind":"text","text":" returns a closed input stream."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":200}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#inheritIO(boolean)","anchor":"inheritIO(boolean)","kind":"method","name":"inheritIO","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"inheritIO"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"enables standard I/O inheritance"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" the subprocess standard input, output and error output are the same as those of the current Java process."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" the subprocess standard input, output and error output are the same as those of the current Java process."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":214}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#clearEnvironment(boolean)","anchor":"clearEnvironment(boolean)","kind":"method","name":"clearEnvironment","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"clearEnvironment"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"clear"},{"kind":"punct","text":")"}],"params":[{"name":"clear","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"disables inheritance of environment variables"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" the environment variables are not inherited by the subprocess."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":" the environment variables are not inherited by the subprocess."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":226}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#environment(java.lang.String,java.lang.String)","anchor":"environment(java.lang.String,java.lang.String)","kind":"method","name":"environment","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"environment"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the variable name"}]}]},{"name":"value","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the subprocess environment variable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the subprocess environment variable."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":239}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#environment(java.util.Map)","anchor":"environment(java.util.Map)","kind":"method","name":"environment","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"environment"},{"kind":"punct","text":"("},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"environment"},{"kind":"punct","text":")"}],"params":[{"name":"environment","type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"environment variables"}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleProcessBuilder","ref":"com.oracle.truffle.api.io.TruffleProcessBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder"},"code":true,"children":[{"kind":"text","text":"builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Shortcut for setting multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#environment(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"environment variables"}]},{"kind":"text","text":" using a map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shortcut for setting multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#environment(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"environment variables"}]},{"kind":"text","text":" using a map. All values of the provided map must be non-null."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#environment(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"To set a single environment variable."}]}]]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":258}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#createRedirectToStream(java.io.OutputStream)","anchor":"createRedirectToStream(java.io.OutputStream)","kind":"method","name":"createRedirectToStream","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ProcessHandler.Redirect","ref":"org.graalvm.polyglot.io.ProcessHandler$Redirect","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createRedirectToStream"},{"kind":"punct","text":"("},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"stream"},{"kind":"punct","text":")"}],"params":[{"name":"stream","type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},"code":true,"children":[{"kind":"text","text":"OutputStream"}]},{"kind":"text","text":" to write into"}]}]}],"returns":{"type":[{"kind":"type","text":"ProcessHandler.Redirect","ref":"org.graalvm.polyglot.io.ProcessHandler$Redirect","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.Redirect.html"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given stream is "},{"kind":"code","text":"null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a redirect to write into the given "},{"kind":"link","target":{"id":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},"code":true,"children":[{"kind":"text","text":"OutputStream"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a redirect to write into the given "},{"kind":"link","target":{"id":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},"code":true,"children":[{"kind":"text","text":"OutputStream"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is guaranteed that the process output (error output) is copied into the given stream before the call to "},{"kind":"link","target":{"id":"java.lang.Process#waitFor()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html#waitFor()"},"code":true,"children":[{"kind":"text","text":"Process.waitFor()"}]},{"kind":"text","text":" method ends."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The stream is not closed when the process terminates."}]}]},"since":"19.2.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":277}},{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#start()","anchor":"start()","kind":"method","name":"start","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Process","ref":"java.lang.Process","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html"},{"kind":"punct","text":" "},{"kind":"name","text":"start"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"type","text":"Process","ref":"java.lang.Process","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new "},{"kind":"link","target":{"id":"java.lang.Process","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html"},"code":true,"children":[{"kind":"text","text":"Process"}]},{"kind":"text","text":" instance"}]}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an element of the command list is null"}]}]},{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the command is an empty list"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"when process creation is forbidden by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.ProcessHandler","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ProcessHandler.html"},"code":true,"children":[{"kind":"text","text":"ProcessHandler"}]}]}]},{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the process fails to execute"}]}]}],"doc":{"summary":[{"kind":"text","text":"Starts a new subprocess using the attributes of this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Starts a new subprocess using the attributes of this builder. The new process invokes the command with arguments given by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#command(java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"command(java.lang.String...)"}]},{"kind":"text","text":", in a working directory given by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#directory(com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"directory(com.oracle.truffle.api.TruffleFile)"}]},{"kind":"text","text":", with a process environment inherited from "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},"code":true,"children":[{"kind":"text","text":"Context"}]},{"kind":"text","text":" and possibly extended by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#environment(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"environment(java.lang.String, java.lang.String)"}]},{"kind":"text","text":"."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":296}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A builder used to create an external subprocess."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A builder used to create an external subprocess. The "},{"kind":"code","text":"TruffleProcessBuilder"},{"kind":"text","text":" instance allows to set subprocess attributes. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#start()"},"code":true,"children":[{"kind":"text","text":"start()"}]},{"kind":"text","text":" method creates a new "},{"kind":"link","target":{"id":"java.lang.Process","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Process.html"},"code":true,"children":[{"kind":"text","text":"Process"}]},{"kind":"text","text":" instance with those attributes. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.io.TruffleProcessBuilder#start()"},"code":true,"children":[{"kind":"text","text":"start()"}]},{"kind":"text","text":" method can be invoked repeatedly from the same instance to create new subprocesses with the same attributes."}]}]},"since":"19.1.0","source":{"path":"com/oracle/truffle/api/io/TruffleProcessBuilder.java","line":68}}]},{"id":"com.oracle.truffle.api.library","name":"com.oracle.truffle.api.library","doc":{"summary":[{"kind":"text","text":"Truffle Libraries allow language implementations to use polymorphic dispatch for receiver types with support for implementation specific caching/profiling and customization of the dispatch."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Truffle Libraries allow language implementations to use polymorphic dispatch for receiver types with support for implementation specific caching/profiling and customization of the dispatch. Libraries enable modularity and encapsulation for representation types in language implementations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Before reading the javadoc make sure you have read the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/TruffleLibraries.md","children":[{"kind":"text","text":"tutorial"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Start learning Truffle Libraries by reading the following articles:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary"},"code":true,"children":[{"kind":"text","text":"Libraries"}]},{"kind":"text","text":" specify the set of available messages i.e. the protocol."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"Exports"}]},{"kind":"text","text":" implement a library for a receiver type."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Automatic dispatching using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"children":[{"kind":"text","text":"@CachedLibrary"}]},{"kind":"text","text":" allows to call library messages with concrete receiver and parameters from nodes using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specialization"}]},{"kind":"text","text":" DSL."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Manual dispatching using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory"},"children":[{"kind":"text","text":"LibraryFactory"}]},{"kind":"text","text":" allows to perform slow-path calls and custom inline cache implementations."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Advanced Features:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.library.ReflectionLibrary"}]},{"kind":"text","text":" allows to reflectively export and call messages without binary dependency to a library. It also allows to implement library agnostic proxies."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.library.DynamicDispatchLibrary"}]},{"kind":"text","text":" allows to implement receivers that dynamically dispatch to exported message implementations."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary"},"code":true,"children":[{"kind":"text","text":"To specify libraries"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"To export libraries"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"To dispatch libraries from nodes"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory"},"code":true,"children":[{"kind":"text","text":"To manually dispatch messages"}]}]]},"since":"19.0","types":[{"id":"com.oracle.truffle.api.library.CachedLibrary","name":"CachedLibrary","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{PARAMETER}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"CachedLibrary"}],"members":[{"id":"com.oracle.truffle.api.library.CachedLibrary#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"value"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Sets the specialized value expression when using specialized libraries."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the specialized value expression when using specialized libraries. The same syntax applies as for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" value expressions."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"for usage examples."}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/CachedLibrary.java","line":139}},{"id":"com.oracle.truffle.api.library.CachedLibrary#limit()","anchor":"limit()","kind":"annotationElement","name":"limit","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"limit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Sets the limit expression when using dispatched libraries."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the limit expression when using dispatched libraries. The limit expression sets the number of internally dispatched specialized libraries until an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached()"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" version of the library will be used."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"for usage examples."}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/CachedLibrary.java","line":149}}],"doc":{"summary":[{"kind":"text","text":"The cached library annotation allows to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library"},"code":true,"children":[{"kind":"text","text":"Truffle Libraries"}]},{"kind":"text","text":" conveniently in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializations"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportMessage"},"code":true,"children":[{"kind":"text","text":"exported messages"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The cached library annotation allows to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library"},"code":true,"children":[{"kind":"text","text":"Truffle Libraries"}]},{"kind":"text","text":" conveniently in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specializations"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportMessage"},"code":true,"children":[{"kind":"text","text":"exported messages"}]},{"kind":"text","text":". It is designed as the primary way of using libraries. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]},{"kind":"text","text":" annotation may be used for any parameters of methods annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"children":[{"kind":"text","text":"@Specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportMessage"},"children":[{"kind":"text","text":"@ExportMessage"}]},{"kind":"text","text":"."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Using Specialized Libraries"}]},{"kind":"paragraph","children":[{"kind":"text","text":"A cached library can be specialized for a value that is referred to with the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary#value()"},"code":true,"children":[{"kind":"text","text":"value expression"}]},{"kind":"text","text":" attribute. A specialized library implicitly prepends a guard for the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"acceptance"}]},{"kind":"text","text":" of a library with the provided value expression. Adding the acceptance guard leads to multiple specialization instances as it binds to the cached library value. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#limit()"},"code":true,"children":[{"kind":"text","text":"specialization"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportMessage#limit()"},"code":true,"children":[{"kind":"text","text":"export"}]},{"kind":"text","text":" limit attribute must therefore be specified. If this limit overflows then the operation will rewrite itself to an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" version of the library. Multiple specialized libraries may be used per export or specialization. The acceptance guards for these libraries will be added in the order of their declaration."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Usage:"}]},{"kind":"code","text":"@NodeChild\n@NodeChild\nabstract static class ArrayReadNode extends ExpressionNode {\n    @Specialization(guards = \"arrays.isArray(array)\", limit = \"2\")\n    int doDefault(Object array, int index,\n                    @CachedLibrary(\"array\") ArrayLibrary arrays) {\n        return arrays.read(array, index);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended to use the plural of the specialized parameter name as naming convention for the library parameter name, e.g. a library for an "},{"kind":"code","text":"array"},{"kind":"text","text":" value is called "},{"kind":"code","text":"arrays"},{"kind":"text","text":". If multiple libraries are specialized for the same specialized expression it is recommended to prepend the library name e.g. "},{"kind":"code","text":"interopArrays"},{"kind":"text","text":"."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Using Dispatched Libraries"}]},{"kind":"paragraph","children":[{"kind":"text","text":"If no specialized value expression can be specified, i.e. if the value is computed as part of the operation, then a dispatched version of a library can be used by omitting the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary#value()"},"code":true,"children":[{"kind":"text","text":"value"}]},{"kind":"text","text":" attribute and specifying the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary#limit()"},"code":true,"children":[{"kind":"text","text":"limit()"}]},{"kind":"text","text":" attribute instead. A dispatched library builds the specialized value inline cache internally for each invocation of a message instead of once per outer specialization or export. An instance of a dispatched library therefore "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"accepts"}]},{"kind":"text","text":" any value as receiver. It is recommended to use the same generic library instance for few message invocations of similar values only, could lead to duplication of inline cache dispatches in the compiled code. The limit of a dispatched library may be set to 0 to directly switch to an uncached version of a library."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Usage:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following example combines the use of specialized and dispatched libraries. In this example the array is read twice. For the first "},{"kind":"emphasis","children":[{"kind":"text","text":"outer"}]},{"kind":"text","text":" read the specializing expression can be used. For the second read the specializing expression cannot be used as it depends on the result of the outer read. We therefore use a dispatched library for the inner array."}]},{"kind":"code","text":"@NodeChild\n@NodeChild\n@NodeChild\nabstract static class TwoDimReadNode extends ExpressionNode {\n    @Specialization(guards = \"outerArrays.isArray(array)\", limit = \"2\")\n    int doDefault(Object array, int outerIndex, int innerIndex,\n                    @CachedLibrary(\"array\") ArrayLibrary outerArrays,\n                    @CachedLibrary(limit = \"2\") ArrayLibrary innerArrays) {\n        return innerArrays.read(outerArrays.read(outerIndex), innerIndex);\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory"},"code":true,"children":[{"kind":"text","text":"for manually instantiating libraries"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library"},"code":true,"children":[{"kind":"text","text":"Truffle Library reference documentation"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/CachedLibrary.java","line":128}},{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary","name":"DynamicDispatchLibrary","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicDispatchLibrary"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"superclass":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"ancestors":[{"id":"com.oracle.truffle.api.library.Library"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#<init>()","anchor":"<init>()","kind":"constructor","name":"DynamicDispatchLibrary","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicDispatchLibrary"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor for generated subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for generated subclasses. Subclasses of this class are generated, do not extend this class directly."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/DynamicDispatchLibrary.java","line":120}},{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#dispatch(java.lang.Object)","anchor":"dispatch(java.lang.Object)","kind":"method","name":"dispatch","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"dispatch"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns a class that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"exports"}]},{"kind":"text","text":" at least one library with an explicit receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a class that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"exports"}]},{"kind":"text","text":" at least one library with an explicit receiver. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate that the default dispatch of the library should be used."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/DynamicDispatchLibrary.java","line":130}},{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#cast(java.lang.Object)","anchor":"cast(java.lang.Object)","kind":"method","name":"cast","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"cast"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Cast the object receiver type to the dispatched type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Cast the object receiver type to the dispatched type. This is not supposed to be implemented by dynamic dispatch implementer but is automatically implemented when implementing dynamic dispatch."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/DynamicDispatchLibrary.java","line":147}},{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#getFactory()","anchor":"getFactory()","kind":"method","name":"getFactory","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},{"kind":"punct","text":"> "},{"kind":"name","text":"getFactory"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"DynamicDispatchLibrary","ref":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the library factory for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicDispatchLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the library factory for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicDispatchLibrary"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/DynamicDispatchLibrary.java","line":156}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.library.Library","text":"Library"},"kind":"class","members":[{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)","text":"accepts"}]},{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A library that allows to dynamically dispatch to export library classes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A library that allows to dynamically dispatch to export library classes. Sometimes the target exports for a receiver type cannot be statically determined by the receiver class with the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":" annotation. To allow such types to dynamically dispatch to exports the dynamic dispatch library can be exported instead. By exporting dynamic dispatch the export target can be chosen dynamically."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The dynamic dispatch library requires to implement the dispatch method. The dispatch method returns the target exports class that this receiver should dispatch to. If it returns "},{"kind":"code","text":"null"},{"kind":"text","text":" then the type will dispatch to the library default exports. The implementation of the dispatch must be stable for a single receiver value. For example it is not allowed to change the dispatch target for a receiver instance. If the dispatch target was changed while the receiver was used by a library then an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" will be thrown."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Full usage example"}]},{"kind":"code","text":"@ExportLibrary(DynamicDispatchLibrary.class)\nstatic final class DispatchObject {\n\n    final Object data;\n    final Class<?> dispatchTarget;\n\n    DispatchObject(Object data, Class<> dispatchTarget) {\n        this.data = data;\n        this.dispatchTarget = dispatchTarget;\n    }\n\n    @ExportMessage\n    Class<?> dispatch() {\n        return dispatchTarget;\n    }\n}\n\n@GenerateLibrary\npublic abstract static class ArrayLibrary extends Library {\n\n    public boolean isArray(Object receiver) {\n        return false;\n    }\n\n    public abstract int read(Object receiver, int index);\n}\n\n@ExportLibrary(value = ArrayLibrary.class, receiverType = DispatchObject.class)\nstatic final class DispatchedBufferArray {\n\n    @ExportMessage\n    static boolean isArray(DispatchObject o) {\n        return true;\n    }\n\n    @ExportMessage\n    static int read(DispatchObject o, int index) {\n        return ((int[]) o.data)[index];\n    }\n}\n\npublic static void main(String[] args) {\n    ArrayLibrary arrays = LibraryFactory.resolve(ArrayLibrary.class).getUncached();\n    assert 42 == arrays.read(new DispatchObject(new int[]{42}, DispatchedBufferArray.class), 0);\n}"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/DynamicDispatchLibrary.java","line":111}},{"id":"com.oracle.truffle.api.library.ExportLibrary","name":"ExportLibrary","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.library.ExportLibrary.Repeat.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExportLibrary"}],"members":[{"id":"com.oracle.truffle.api.library.ExportLibrary#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"The library class that specifies the messages that are exported."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The library class that specifies the messages that are exported."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":173}},{"id":"com.oracle.truffle.api.library.ExportLibrary#receiverType()","anchor":"receiverType()","kind":"annotationElement","name":"receiverType","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"receiverType"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"java.lang.Void.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"defaultValue":"java.lang.Void.class","doc":{"summary":[{"kind":"text","text":"The explicit receiver type to use if specified."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The explicit receiver type to use if specified. This is useful to specifying the receiver type for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport"},"code":true,"children":[{"kind":"text","text":"default exports"}]},{"kind":"text","text":" or types that are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},"code":true,"children":[{"kind":"text","text":"dynamically dispatched"}]},{"kind":"text","text":". If specified, all exported methods need to be declared statically with the receiver type argument as first parameter."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Usage example"}]},{"kind":"code","text":"@ExportLibrary(value = ArrayLibrary.class, receiverType = Integer.class)\nstatic final class ScalarIntegerArray {\n\n    @ExportMessage\n    static boolean isArray(Integer receiver) {\n        return true;\n    }\n\n    @ExportMessage\n    int read(Integer receiver, int index) {\n        if (index == 0) {\n            return receiver;\n        } else {\n            throw new ArrayIndexOutOfBoundsException(index);\n        }\n    }\n}"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":205}},{"id":"com.oracle.truffle.api.library.ExportLibrary#delegateTo()","anchor":"delegateTo()","kind":"annotationElement","name":"delegateTo","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"delegateTo"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Automatically forwards all messages of the library which are not exported to the value of a delegate field."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Automatically forwards all messages of the library which are not exported to the value of a delegate field. This can be used to conveniently build wrapper types that do not delegate all but only some of the messages. To forward messages from unknown libraries, this can be combined with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"reflection proxies"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The specified field name must link to a field in the specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary#receiverType()"},"code":true,"children":[{"kind":"text","text":"receiver type"}]},{"kind":"text","text":", or in the annotated type if no receiver type is specified. The field must have the modifier "},{"kind":"code","text":"final"},{"kind":"text","text":". The specified field must be visible to the generated code and therefore not private. The referenced field must not be static."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Usage example"}]},{"kind":"code","text":"@GenerateLibrary\npublic abstract class ArrayLibrary extends Library {\n    public String toDisplayString(Object receiver) {\n        return receiver.toString();\n    }\n\n    public String otherMessage(Object receiver) {\n        return \"otherResult\";\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In the following wrapper all messages of ArrayLibrary will be forwarded to the value of the delegate field."}]},{"kind":"code","text":"@ExportLibrary(value = ArrayLibrary.class, delegateTo = \"delegate\")\nfinal class ArrayDelegateWrapper {\n\n    final Object delegate;\n\n    ArrayDelegateWrapper(Object delegate) {\n        this.delegate = delegate;\n    }\n\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In the following wrapper the toDisplayString will be re-exported and not delegated to the delegate field. All other messages of the ArrayLibrary are implicitly delegated to the value of the delegate field."}]},{"kind":"code","text":"@ExportLibrary(value = ArrayLibrary.class, delegateTo = \"delegate\")\nfinal class ArrayOverrideWrapper {\n\n    final Object delegate;\n\n    ArrayOverrideWrapper(Object delegate) {\n        this.delegate = delegate;\n    }\n\n    @ExportMessage\n    final String toDisplayString() {\n        return \"Wrapped\";\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In the following wrapper the toDisplayString will be exported but forwards to the delegate manually adding brackets around the delegate value."}]},{"kind":"code","text":"@ExportLibrary(value = ArrayLibrary.class, delegateTo = \"delegate\")\nfinal class ArrayManualDelegateWrapper {\n\n    final Object delegate;\n\n    ArrayManualDelegateWrapper(Object delegate) {\n        this.delegate = delegate;\n    }\n\n    @ExportMessage\n    final String toDisplayString(\n                    @CachedLibrary(\"this.delegate\") ArrayLibrary arrayLibrary) {\n        return \"Wrapped[\" + arrayLibrary.toDisplayString(delegate) + \"]\";\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In the following wrapper the toDisplayString message is re-exported. Other messages of the ArrayLibrary are delegated as well as all messages of any other library that supports reflection."}]},{"kind":"code","text":"@ExportLibrary(value = ArrayLibrary.class, delegateTo = \"delegate\")\n@ExportLibrary(value = ReflectionLibrary.class, delegateTo = \"delegate\")\nfinal class ArrayFullWrapper {\n\n    final Object delegate;\n\n    ArrayFullWrapper(Object delegate) {\n        this.delegate = delegate;\n    }\n\n    @ExportMessage\n    final String toDisplayString() {\n        return \"Wrapped\";\n    }\n}"}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":317}},{"id":"com.oracle.truffle.api.library.ExportLibrary#priority()","anchor":"priority()","kind":"annotationElement","name":"priority","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"priority"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Specifies the priority for service provider lookup based default exports."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the priority for service provider lookup based default exports. Needs to be specified for exports with explicit receiver type, that are not declared as default exports. Positive values indicate a priority higher than library builtin "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport"},"code":true,"children":[{"kind":"text","text":"default exports"}]},{"kind":"text","text":", negative values lower than default exports. A priority equal to 0 is invalid."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":327}},{"id":"com.oracle.truffle.api.library.ExportLibrary#transitionLimit()","anchor":"transitionLimit()","kind":"annotationElement","name":"transitionLimit","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"transitionLimit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"By default export libraries don't allow changes in the behavior of accepts for a receiver instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"By default export libraries don't allow changes in the behavior of accepts for a receiver instance. If this assumption is violated then an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown. If the transition limit is set then the accepts condition is allowed to transition from "},{"kind":"code","text":"true"},{"kind":"text","text":" to "},{"kind":"code","text":"false"},{"kind":"text","text":" for a library created for a receiver instance. The limit expression specifies how many fallback library instances should be created until the library is dispatching to uncached cases of the library. By default accepts transitions are not allowed. Note this option is only relevant if you use a custom accepts implementation in the export. If the receiver transitions in parallel then there are no guarantees provided. The library caller is responsible to provide proper synchronization."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This feature is useful to implement runtime value representations that dynamically transition from one state to the next. With arrays, a common example is the access strategy that changes from sparse or dense arrays. Another use-case is the Truffle object model, where the shape should be used in the accepts condition, to common out the shape check, but at the same time the shape should be able to transition due to a property write."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The transition limit expression is allowed to access visible static fields or methods of the enclosing class. If the limit needs to be looked up from an option it is recommended to extract the option lookup in a static Java method."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Performance note:"}]},{"kind":"text","text":" If any number of transitions is enabled, the accepts guard of this library effectively needs to be repeated on every message invocation of this export. It is therefore recommended to not set this property for performance reasons, if possible. It is also recommended to double check that the duplicated accepts guard for every message is eliminated in the compiler graphs after Partial evaluation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Library.accepts(Object)"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":359}},{"id":"com.oracle.truffle.api.library.ExportLibrary#useForAOT()","anchor":"useForAOT()","kind":"annotationElement","name":"useForAOT","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"useForAOT"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Enables "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.AOTSupport#prepareForAOT(com.oracle.truffle.api.nodes.RootNode)"},"code":true,"children":[{"kind":"text","text":"AOT preparation"}]},{"kind":"text","text":" for this export."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.AOTSupport#prepareForAOT(com.oracle.truffle.api.nodes.RootNode)"},"code":true,"children":[{"kind":"text","text":"AOT preparation"}]},{"kind":"text","text":" for this export. An exported library must use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateAOT"},"code":true,"children":[{"kind":"text","text":"GenerateAOT"}]},{"kind":"text","text":" annotation on the library class to allow exports to enable AOT. Multiple AOT exports may be specified for each library. The library may be used for implicit and explicit receivers, dynamic dispatch and default exports. Merged libraries are currently not supported for AOT enabled exports. A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary#useForAOTPriority()"},"code":true,"children":[{"kind":"text","text":"priority"}]},{"kind":"text","text":" must be set in order to resolve a deterministic order for AOT initialized exports."}]},{"kind":"paragraph","children":[{"kind":"text","text":"All exported libraries with AOT enabled are loaded and initialized eagerly when a library that supports AOT is used for the first time. In order for this to work the exported library automatically generates subclass of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.provider.EagerExportProvider"},"code":true,"children":[{"kind":"text","text":"EagerExportProvider"}]},{"kind":"text","text":", that must be registered in the module descriptor as a provided service. When the language is compiled using native-image then this is not necessary as native-image compilation discovers all AOT exports for a library during native image generation."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":379}},{"id":"com.oracle.truffle.api.library.ExportLibrary#useForAOTPriority()","anchor":"useForAOTPriority()","kind":"annotationElement","name":"useForAOTPriority","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"useForAOTPriority"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"0"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"defaultValue":"0","doc":{"summary":[{"kind":"text","text":"Specifies the priority for the export when used for AOT preparation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the priority for the export when used for AOT preparation. A higher priority indicates that this export should be ordered earlier in the code rather than later. For example if a library has two exports and one has a higher priority then the export with the higher priority with be inserted first in the inline cache. Consequently, the library export accepts method will be invoked earlier for a higher priority."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":390}}],"doc":{"summary":[{"kind":"text","text":"Allows to export messages of Truffle libraries."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows to export messages of Truffle libraries. The exported library "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary#value()"},"code":true,"children":[{"kind":"text","text":"value"}]},{"kind":"text","text":" specifies the library class that is exported. If there are abstract methods specified by a library then those messages need to be implemented. A receiver may export multiple libraries at the same time, by specifying multiple export annotations. Subclasses of the receiver type inherit all exported messages and may also be exported again. In this case the subclass overrides the base class export."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Method Exports"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Messages are exported by specifying methods annotated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportMessage"},"children":[{"kind":"text","text":"@ExportMessage"}]},{"kind":"text","text":" that match the name and signature of a library message. By default the message name is inferred by the method name and the library is automatically detected if it can be unambiguously identified by its simple name. If the receiver type is implicit then the receiver type parameter can be omitted. Exported messages allow the use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"children":[{"kind":"text","text":"CachedLibrary"}]},{"kind":"text","text":" parameters at the end of the method. This allows the use of nodes in implementations."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Usage example"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage with implicit receiver type:"}]},{"kind":"code","text":"@ExportLibrary(ArrayLibrary.class)\nstatic final class BufferArray {\n\n    private int length;\n    private int[] buffer;\n\n    BufferArray(int length) {\n        this.length = length;\n        this.buffer = new int[length];\n    }\n\n    @ExportMessage\n    boolean isArray() {\n        return true;\n    }\n\n    @ExportMessage\n    int read(int index) {\n        return buffer[index];\n    }\n}"},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Class exports"}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a message export requires more than one "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization"},"code":true,"children":[{"kind":"text","text":"specialization"}]},{"kind":"text","text":" then the export must be specified as class. In this case the simple name of the message is resolved by using the class name and turning the first character lower-case. So for an exported class named "},{"kind":"code","text":"Read"},{"kind":"text","text":" the message "},{"kind":"code","text":"read"},{"kind":"text","text":" would be used. It is not allowed to use a method export and a class export for the same message at the same time. Multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportMessage"},"code":true,"children":[{"kind":"text","text":"ExportMessage"}]},{"kind":"text","text":" annotations may be used for the same method or class to export them for multiple messages. In this case the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportMessage#name()"},"code":true,"children":[{"kind":"text","text":"message name"}]},{"kind":"text","text":" needs to be specified explicitly and the target signatures need to match for all exported messages."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Usage example"}]},{"kind":"code","text":"@ExportLibrary(value = ArrayLibrary.class)\nstatic final class SequenceArray {\n\n    final int start;\n    final int stride;\n    final int length;\n\n    SequenceArray(int start, int stride, int length) {\n        this.start = start;\n        this.stride = stride;\n        this.length = length;\n    }\n\n    @ExportMessage\n    boolean isArray() {\n        return true;\n    }\n\n    @ExportMessage\n    static class Read {\n        @Specialization(guards = {\"seq.stride == cachedStride\",\n                        \"seq.start  == cachedStart\"}, limit = \"1\")\n        static int doSequenceCached(SequenceArray seq, int index,\n                        @Cached(\"seq.start\") int cachedStart,\n                        @Cached(\"seq.stride\") int cachedStride) {\n            return cachedStart + cachedStride * index;\n        }\n\n        @Specialization(replaces = \"doSequenceCached\")\n        static int doSequence(SequenceArray seq, int index) {\n            return doSequenceCached(seq, index, seq.start, seq.stride);\n        }\n    }\n}"},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Explicit Receiver Types"}]},{"kind":"paragraph","children":[{"kind":"text","text":"For "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport"},"code":true,"children":[{"kind":"text","text":"default exports"}]},{"kind":"text","text":" or types that support "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},"code":true,"children":[{"kind":"text","text":"dynamic dispatch"}]},{"kind":"text","text":" the export may declare an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary#receiverType()"},"code":true,"children":[{"kind":"text","text":"explicit receiver type"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary"},"code":true,"children":[{"kind":"text","text":"GenerateLibrary"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":163}},{"id":"com.oracle.truffle.api.library.ExportLibrary$Repeat","name":"ExportLibrary.Repeat","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExportLibrary.Repeat"}],"enclosing":"com.oracle.truffle.api.library.ExportLibrary","members":[{"id":"com.oracle.truffle.api.library.ExportLibrary$Repeat#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"ExportLibrary","ref":"com.oracle.truffle.api.library.ExportLibrary"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ExportLibrary","ref":"com.oracle.truffle.api.library.ExportLibrary"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat value for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":405}}],"doc":{"summary":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeat annotation for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportLibrary.java","line":397}},{"id":"com.oracle.truffle.api.library.ExportMessage","name":"ExportMessage","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.library.ExportMessage.Repeat.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExportMessage"}],"members":[{"id":"com.oracle.truffle.api.library.ExportMessage#name()","anchor":"name()","kind":"annotationElement","name":"name","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Returns the message simple name to export."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the message simple name to export. If not specified, the exported message name is inherited from the enclosing method name or class. In case of an exported class the first letter is automatically translated to lower-case. The name attribute should be specified if the exported message does not match the exported method or class name or if multiple messages need to be exported for a method or class."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportMessage.java","line":75}},{"id":"com.oracle.truffle.api.library.ExportMessage#library()","anchor":"library()","kind":"annotationElement","name":"library","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"name","text":"library"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"com.oracle.truffle.api.library.Library.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}]},"defaultValue":"com.oracle.truffle.api.library.Library.class","doc":{"summary":[{"kind":"text","text":"Returns the library to export by this method or class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the library to export by this method or class. Automatically selected if the name of the message is unique. Needs to be specified if the name is not unique when implementing multiple libraries."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportMessage.java","line":84}},{"id":"com.oracle.truffle.api.library.ExportMessage#limit()","anchor":"limit()","kind":"annotationElement","name":"limit","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"limit"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Specifies the limit of an exported message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies the limit of an exported message. The limit specifies the number of specialized instances of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"cached library"}]},{"kind":"text","text":" should be used until the library rewrites itself to an uncached case."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Specialization#limit()"},"code":true,"children":[{"kind":"text","text":"Specialization.limit()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportMessage.java","line":95}}],"doc":{"summary":[{"kind":"text","text":"Exports the annotated method or class as library message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Exports the annotated method or class as library message. The annotation can only be applied to method or classes with an enclosing class annotated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":". Exported messages are inherited to subclasses of the enclosing class. If they are redeclared in the sub-class then the semantics of the overridden message is replaced by the semantics of the sub-class. A class and a method cannot be exported at the same time for a single message and enclosing class."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"For usage examples."}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportMessage.java","line":61}},{"id":"com.oracle.truffle.api.library.ExportMessage$Ignore","name":"ExportMessage.Ignore","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExportMessage.Ignore"}],"enclosing":"com.oracle.truffle.api.library.ExportMessage","doc":{"summary":[{"kind":"text","text":"Explicitly ignores warning messages originating from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":" annotation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Explicitly ignores warning messages originating from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":" annotation."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportMessage.java","line":115}},{"id":"com.oracle.truffle.api.library.ExportMessage$Repeat","name":"ExportMessage.Repeat","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD, TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExportMessage.Repeat"}],"enclosing":"com.oracle.truffle.api.library.ExportMessage","members":[{"id":"com.oracle.truffle.api.library.ExportMessage$Repeat#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"ExportMessage","ref":"com.oracle.truffle.api.library.ExportMessage"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ExportMessage","ref":"com.oracle.truffle.api.library.ExportMessage"},{"kind":"punct","text":"[]"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportMessage.java","line":106}}],"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ExportMessage.java","line":100}},{"id":"com.oracle.truffle.api.library.GenerateLibrary","name":"GenerateLibrary","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateLibrary"}],"members":[{"id":"com.oracle.truffle.api.library.GenerateLibrary#assertions()","anchor":"assertions()","kind":"annotationElement","name":"assertions","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"name","text":"assertions"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"com.oracle.truffle.api.library.Library.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}]},"defaultValue":"com.oracle.truffle.api.library.Library.class","doc":{"summary":[{"kind":"text","text":"Specifies an assertion wrapper class that can be used to verify pre and post conditions of a library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies an assertion wrapper class that can be used to verify pre and post conditions of a library. Assertion wrappers are only inserted when assertions (-ea) are enabled. It is required that assertion wrappers don't introduce additional side-effects and call the delegate methods exactly once. If assertions are disabled no library wrapper will be inserted therefore not performing any checks when library messages are invoked."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example Usage:"}]}]},{"kind":"code","text":"@GenerateLibrary(assertions = ArrayAssertions.class)\npublic abstract class ArrayLibrary extends Library {\n\n    public boolean isArray(Object receiver) {\n        return false;\n    }\n\n    public int read(Object receiver, int index) {\n        throw new UnsupportedOperationException();\n    }\n\n    static class ArrayAssertions extends ArrayLibrary {\n\n        @Child private ArrayLibrary delegate;\n\n        ArrayAssertions(ArrayLibrary delegate) {\n            this.delegate = delegate;\n        }\n\n        @Override\n        public boolean isArray(Object receiver) {\n            return delegate.isArray(receiver);\n        }\n\n        @Override\n        public int read(Object receiver, int index) {\n            int result = super.read(receiver, index);\n            assert delegate.isArray(receiver) : \"if a read was successful the receiver must be an array\";\n            return result;\n        }\n\n        @Override\n        public boolean accepts(Object receiver) {\n            return delegate.accepts(receiver);\n        }\n    }\n}"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":172}},{"id":"com.oracle.truffle.api.library.GenerateLibrary#receiverType()","anchor":"receiverType()","kind":"annotationElement","name":"receiverType","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"receiverType"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"java.lang.Object.class"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"defaultValue":"java.lang.Object.class","doc":{"summary":[{"kind":"text","text":"Restricts the receiver type for exports that implement this library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Restricts the receiver type for exports that implement this library. This allows to have different receiver type in message methods, but require export receiver types to implement or extend a declared class. Default exports are not affected by this restriction and can therefore export the library for any receiver type the message methods first parameter is compatible with."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":183}},{"id":"com.oracle.truffle.api.library.GenerateLibrary#defaultExportLookupEnabled()","anchor":"defaultExportLookupEnabled()","kind":"annotationElement","name":"defaultExportLookupEnabled","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"defaultExportLookupEnabled"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"false"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"false","doc":{"summary":[{"kind":"text","text":"Allows the library to lookup additional default exports using a service provider interface."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows the library to lookup additional default exports using a service provider interface. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"Exports"}]},{"kind":"text","text":" for this library with explicit receiver type will automatically be interpreted as additional default exports. External default exports may specify with the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary#priority()"},"code":true,"children":[{"kind":"text","text":"priority"}]},{"kind":"text","text":" whether they are looked up before or after existing default exports specified for the library. Default exports always have a lower priority than explicit exports on the receiver type or exports that use dynamic dispatch."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary#priority()"},"code":true,"children":[{"kind":"text","text":"ExportLibrary.priority()"}]}]]},"since":"20.1","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":429}},{"id":"com.oracle.truffle.api.library.GenerateLibrary#dynamicDispatchEnabled()","anchor":"dynamicDispatchEnabled()","kind":"annotationElement","name":"dynamicDispatchEnabled","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"dynamicDispatchEnabled"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Allows the use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicDispatchLibrary"}]},{"kind":"text","text":" with this library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows the use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicDispatchLibrary"}]},{"kind":"text","text":" with this library. By default, dynamic dispatch is enabled. If this flag is set to "},{"kind":"code","text":"false"},{"kind":"text","text":" then the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.DynamicDispatchLibrary#dispatch(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"dispatch"}]},{"kind":"text","text":" method will not be used for this library. Only default exports and exports declared with the receiver type will be used instead for this library."}]}]},"since":"20.1","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":440}},{"id":"com.oracle.truffle.api.library.GenerateLibrary#pushEncapsulatingNode()","anchor":"pushEncapsulatingNode()","kind":"annotationElement","name":"pushEncapsulatingNode","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"pushEncapsulatingNode"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"true"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"defaultValue":"true","doc":{"summary":[{"kind":"text","text":"Enables push and pop of the encapsulating node when a library transitions from cached to uncached."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables push and pop of the encapsulating node when a library transitions from cached to uncached. The current encapsulating node is needed for correct stack trace location when library exports perform guest language calls. If a library is known to never need correct stack trace information, e.g. if all exports are known to not perform guest language calls, then pushing and popping of encapsulating nodes can be disabled. By default pushing and popping of encapsulating nodes is enabled."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference"},"code":true,"children":[{"kind":"text","text":"EncapsulatingNodeReference"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":453}}],"doc":{"summary":[{"kind":"text","text":"Libraries are specified with "},{"kind":"code","text":"public"},{"kind":"text","text":" and "},{"kind":"code","text":"abstract"},{"kind":"text","text":" Java classes that extend the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library"},"children":[{"kind":"text","text":"Library"}]},{"kind":"text","text":" class and are annotated by "},{"kind":"code","text":"@GenerateLibrary"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Libraries are specified with "},{"kind":"code","text":"public"},{"kind":"text","text":" and "},{"kind":"code","text":"abstract"},{"kind":"text","text":" Java classes that extend the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library"},"children":[{"kind":"text","text":"Library"}]},{"kind":"text","text":" class and are annotated by "},{"kind":"code","text":"@GenerateLibrary"},{"kind":"text","text":". A library consists of a set of messages, that are specified using public Java methods. The methods may be abstract or use default implementations. The first parameter of every library message is the receiver parameter, which must be a non-primitive type and consistent across all messages of a library. There are no restrictions on the return type or argument types of a message. Every method that specifies a message must have a name that is unique per library. Final or private methods will always be ignored by the generator. Parameter type overloading is currently not supported for messages, therefore every public method must have a unique name per library. Generic type arguments local to messages are generally supported, but generic type arguments on the library type are not yet supported."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Basic Usage"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following example specifies a basic library for arrays:"}]},{"kind":"code","text":"@GenerateLibrary\npublic abstract class ArrayLibrary extends Library {\n\n    public boolean isArray(Object receiver) {\n        return false;\n    }\n\n    public abstract int read(Object receiver, int index);\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Messages that are not implemented and have no default implementation throw an "},{"kind":"link","target":{"id":"java.lang.AbstractMethodError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AbstractMethodError.html"},"code":true,"children":[{"kind":"text","text":"AbstractMethodError"}]},{"kind":"text","text":". The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract"},"code":true,"children":[{"kind":"text","text":"Abstract"}]},{"kind":"text","text":" annotation can be used, to provide a default implementation for receiver types but at the same time make the message abstract."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A library class may also specify "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport"},"code":true,"children":[{"kind":"text","text":"default exports"}]},{"kind":"text","text":" that can be used to dispatch to receiver types that don't export the library. Since the receiver type for default exports can be specified explicitly, it can be used to provide a default implementation for receiver types of third parties or the JDK. For example the Truffle interop library has default exports for most "},{"kind":"link","target":{"id":"java.lang.Number","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Number.html"},"code":true,"children":[{"kind":"text","text":"Number"}]},{"kind":"text","text":" types, "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},"code":true,"children":[{"kind":"text","text":"Boolean"}]},{"kind":"text","text":" type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"In order to enable AOT generation for a library annotate the class with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.GenerateAOT"},"code":true,"children":[{"kind":"text","text":"GenerateAOT"}]},{"kind":"text","text":" and enable exports to be used for AOT by setting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary#useForAOT()"},"code":true,"children":[{"kind":"text","text":"ExportLibrary.useForAOT()"}]},{"kind":"text","text":" to "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Deprecating Messages"}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a library message gets deprecated using the "},{"kind":"link","target":{"id":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},"code":true,"children":[{"kind":"text","text":"Deprecated"}]},{"kind":"text","text":" annotation then all exports will get a deprecation warning. This can be useful to evolve libraries over time in a compatible way."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Sometimes it is needed to remove or modify types of parameters as part of evolution. In this case it is possible to declare multiple overloads of the same library message where all but one method are annotated with "},{"kind":"link","target":{"id":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},"code":true,"children":[{"kind":"text","text":"Deprecated"}]},{"kind":"text","text":". The non-deprecated method must use more generic or the same parameter types. For example, this allows to evolve message with parameter "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" to evolve into "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":". It is also possible to add or remove parameter types in the non-deprecated method. These restrictions are necessary in order to ensure that exports of that message never export the new overload after recompilation unless the parameter types were updated."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport"},"code":true,"children":[{"kind":"text","text":"to specify default exports."}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract"},"code":true,"children":[{"kind":"text","text":"to make messages abstract if they have a default implemetnation"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":115}},{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract","name":"GenerateLibrary.Abstract","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateLibrary.Abstract"}],"enclosing":"com.oracle.truffle.api.library.GenerateLibrary","members":[{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#ifExported()","anchor":"ifExported()","kind":"annotationElement","name":"ifExported","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"ifExported"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Specifies a message to be abstract only if another message is implemented."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a message to be abstract only if another message is implemented. Multiple other messages can be specified. If the list is empty, the message is always abstract unless "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#ifExportedAsWarning()"},"code":true,"children":[{"kind":"text","text":"Abstract.ifExportedAsWarning()"}]},{"kind":"text","text":" is not empty. If the list is not empty it takes precedence over "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#ifExportedAsWarning()"},"code":true,"children":[{"kind":"text","text":"Abstract.ifExportedAsWarning()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"For example:"}]}]},{"kind":"code","text":"@GenerateLibrary\npublic abstract class ArrayLibrary extends Library {\n\n    @Abstract(ifExported = \"read\")\n    public boolean isArray(Object receiver) {\n        return false;\n    }\n\n    @Abstract(ifExported = \"isArray\")\n    public int read(Object receiver, int index) {\n        throw new UnsupportedOperationException();\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In this example the isArray message only needs to be exported if the read message is exported and vice-versa."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":282}},{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#ifExportedAsWarning()","anchor":"ifExportedAsWarning()","kind":"annotationElement","name":"ifExportedAsWarning","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"ifExportedAsWarning"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"{}"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"[]"}]},"defaultValue":"{}","doc":{"summary":[{"kind":"text","text":"Specifies a message to be abstract only if another message is implemented."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a message to be abstract only if another message is implemented. Multiple other messages can be specified. The message is not actually made abstract unless it is in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#ifExported()"},"code":true,"children":[{"kind":"text","text":"Abstract.ifExported()"}]},{"kind":"text","text":" list. Only a warning is produced that prompts the user to implement the message"}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"For example:"}]}]},{"kind":"code","text":"@GenerateLibrary\npublic abstract class MaybeNumberLibrary extends Library {\n\n    public boolean isNumber(Object receiver) {\n        return false;\n    }\n\n    @Abstract(ifExportedAsWarning = \"isNumber\")\n    public Number getNumber(Object receiver) {\n        throw new UnsupportedOperationException();\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In this example, if the isNumber message is exported and the getNumber message is not, the user gets a warning."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":312}},{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#replacementOf()","anchor":"replacementOf()","kind":"annotationElement","name":"replacementOf","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"replacementOf"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"A tool to deprecate and replace messages during library evolution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A tool to deprecate and replace messages during library evolution."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The primary use case is to facilitate transitions from one message to another by designating a new message as a replacement for an older, deprecated message. When this annotation is present, and the deprecated message is not explicitly implemented, a default implementation is generated that delegates from the deprecated message to its designated replacement. The message specification may optionally include argument types in parentheses. When delegation cannot be handled automatically, a custom implementation can be provided using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#replacementMethod()"},"code":true,"children":[{"kind":"text","text":"replacementMethod()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The migration behavior between deprecated and replacement messages depends on whether the exporter (the library implementer) and the client (the library user) have migrated to the new API. The following combinations are supported:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Both exporter and client use the deprecated API:"}]},{"kind":"text","text":" The original deprecated message is used exactly as before deprecation. No delegation or generated replacement is involved."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Exporter uses the deprecated API, client uses the new API:"}]},{"kind":"text","text":" The default implementation of the new message is used. It delegates to the exporter's implementation of the deprecated message."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Exporter uses the new API, client uses the deprecated API:"}]},{"kind":"text","text":" The annotation processor generates an implementation of the deprecated message that delegates to the exporter's new message. When the default delegation is insufficient, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#replacementMethod()"},"code":true,"children":[{"kind":"text","text":"replacementMethod()"}]},{"kind":"text","text":" can be used to provide a custom conversion or adapter."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Both exporter and client use the new API:"}]},{"kind":"text","text":" The generated deprecated message is no longer needed and can be safely removed once all usages have migrated."}]}]]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example:"}]}]},{"kind":"code","text":"@GenerateLibrary\npublic abstract class ArrayLibrary extends Library {\n\n    @Abstract(ifExported = \"isArray\")\n    @Deprecated\n    public int read(Object receiver, int index) {\n        throw new UnsupportedOperationException();\n    }\n\n    @Abstract(ifExported = \"isArray\", replacementOf = \"read(Object, int)\")\n    public int read(Object receiver, long index) {\n        throw new UnsupportedOperationException();\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In this example, the "},{"kind":"code","text":"read(Object, long)"},{"kind":"text","text":" message replaces "},{"kind":"code","text":"read(Object, int)"},{"kind":"text","text":". If only the new message is implemented, the following delegation is generated automatically:"}]},{"kind":"code","text":"public int read(Object receiver, int index) {\n    return read(receiver, (long) index);\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Legacy clients can continue calling the deprecated message, while exporters need only implement the new message signature."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#replacementMethod()"},"code":true,"children":[{"kind":"text","text":"replacementMethod()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":378}},{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#replacementMethod()","anchor":"replacementMethod()","kind":"annotationElement","name":"replacementMethod","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"replacementMethod"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Specifies a custom replacement method to handle delegation for a message declared with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#replacementOf()"},"code":true,"children":[{"kind":"text","text":"replacementOf()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a custom replacement method to handle delegation for a message declared with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#replacementOf()"},"code":true,"children":[{"kind":"text","text":"replacementOf()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This attribute provides a way to manually implement delegation logic when automatic delegation from the deprecated message to its replacement cannot be generated correctly. Typical reasons include differences in argument semantics, necessary type conversions, or behavioral changes that cannot be inferred automatically."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This element is only valid when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#replacementOf()"},"code":true,"children":[{"kind":"text","text":"replacementOf()"}]},{"kind":"text","text":" is also set. Using it without "},{"kind":"code","text":"replacementOf"},{"kind":"text","text":" will result in a compilation error. The specified method must have a compatible signature and be accessible from the annotated message."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Example:"}]}]},{"kind":"code","text":"@Abstract(ifExported = \"isArray\", replacementOf = \"read(Object, int)\", replacementMethod = \"readLegacy\")\npublic int read(Object receiver, long unsignedIndex) {\n    throw new UnsupportedOperationException();\n}\n\nprotected final int readLegacy(Object receiver, int index) {\n    long unsignedIndex = Integer.toUnsignedLong(index);\n    return read(receiver, unsignedIndex);\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In this example, the deprecated "},{"kind":"code","text":"read(Object, int)"},{"kind":"text","text":" message cannot be automatically delegated to "},{"kind":"code","text":"read(Object, long)"},{"kind":"text","text":" because the index must be treated as unsigned. The custom "},{"kind":"code","text":"readLegacy"},{"kind":"text","text":" method therefore provides the correct conversion logic."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#replacementOf()"},"code":true,"children":[{"kind":"text","text":"replacementOf()"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":415}}],"doc":{"summary":[{"kind":"text","text":"Makes a library message abstract, but allows to keep a default implementation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Makes a library message abstract, but allows to keep a default implementation. By default, abstract messages throw an "},{"kind":"link","target":{"id":"java.lang.AbstractMethodError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AbstractMethodError.html"},"code":true,"children":[{"kind":"text","text":"AbstractMethodError"}]},{"kind":"text","text":" if they are not exported for a given receiver type. To customize this behavior the library message can specify a method body and annotate it with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract"},"code":true,"children":[{"kind":"text","text":"Abstract"}]},{"kind":"text","text":" to keep requiring an implementation from exports."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"For example:"}]}]},{"kind":"code","text":"@GenerateLibrary\npublic abstract class ArrayLibrary extends Library {\n\n    @Abstract(ifExported = \"read\")\n    public boolean isArray(Object receiver) {\n        return false;\n    }\n\n    @Abstract(ifExported = \"isArray\")\n    public int read(Object receiver, int index) {\n        throw new UnsupportedOperationException();\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"In this example a receiver that does not export the "},{"kind":"code","text":"ArrayLibrary"},{"kind":"text","text":" will return "},{"kind":"code","text":"false"},{"kind":"text","text":" for "},{"kind":"code","text":"isArray"},{"kind":"text","text":" and throw an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" for "},{"kind":"code","text":"read"},{"kind":"text","text":" calls. A message may be made conditionally abstract by specifying the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#ifExported()"},"code":true,"children":[{"kind":"text","text":"Abstract.ifExported()"}]},{"kind":"text","text":" attribute."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary$Abstract#ifExported()"},"code":true,"children":[{"kind":"text","text":"ifExported()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":249}},{"id":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport","name":"GenerateLibrary.DefaultExport","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Repeatable","ref":"java.lang.annotation.Repeatable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Repeatable.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"com.oracle.truffle.api.library.GenerateLibrary.DefaultExport.Repeat.class"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateLibrary.DefaultExport"}],"enclosing":"com.oracle.truffle.api.library.GenerateLibrary","members":[{"id":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":200}}],"doc":{"summary":[{"kind":"text","text":"Specifies "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary"},"code":true,"children":[{"kind":"text","text":"library"}]},{"kind":"text","text":" implementations provided by default as a fallback."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary"},"code":true,"children":[{"kind":"text","text":"library"}]},{"kind":"text","text":" implementations provided by default as a fallback. May only be used on classes annotated with Library."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":192}},{"id":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport$Repeat","name":"GenerateLibrary.DefaultExport.Repeat","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"CLASS"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"GenerateLibrary.DefaultExport.Repeat"}],"enclosing":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport","members":[{"id":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport$Repeat#value()","anchor":"value()","kind":"annotationElement","name":"value","signature":[{"kind":"type","text":"GenerateLibrary.DefaultExport","ref":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport"},{"kind":"punct","text":"[] "},{"kind":"name","text":"value"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"GenerateLibrary.DefaultExport","ref":"com.oracle.truffle.api.library.GenerateLibrary$DefaultExport"},{"kind":"punct","text":"[]"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":212}}],"since":"19.0","source":{"path":"com/oracle/truffle/api/library/GenerateLibrary.java","line":205}},{"id":"com.oracle.truffle.api.library.Library","name":"Library","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Library"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.library.Library#<init>()","anchor":"<init>()","kind":"constructor","name":"Library","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Library"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Default constructor for sub-classes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Default constructor for sub-classes. Libraries always have a no-arg protected constructor."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Library.java","line":60}},{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)","anchor":"accepts(java.lang.Object)","kind":"method","name":"accepts","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"accepts"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this library instance supports sending messages with the given receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this library instance supports sending messages with the given receiver. If accepts returns "},{"kind":"code","text":"false"},{"kind":"text","text":" and a library message is sent anyway then an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown if assertions are enabled (-ea). Otherwise a "},{"kind":"link","target":{"id":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"},"code":true,"children":[{"kind":"text","text":"NullPointerException"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.lang.ClassCastException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ClassCastException.html"},"code":true,"children":[{"kind":"text","text":"ClassCastException"}]},{"kind":"text","text":" may be thrown by the method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A library that was created using a receiver value i.e. a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#create(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.create(Object)"}]},{"kind":"text","text":" only guarantees to accept the value it was constructed with. For other values, the method may return "},{"kind":"code","text":"false"},{"kind":"text","text":". Such libraries need to check for acceptance before calling a library method with a receiver. If receiver values are not accepted then a new library needs to be created or fetched. Dispatched versions of libraries always return "},{"kind":"code","text":"true"},{"kind":"text","text":" for any value as they take care of dispatching to any receiver type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is not necessary to call accepts manually for most use cases. Instead the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]},{"kind":"text","text":" should be used instead. For slow-paths the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached()"},"code":true,"children":[{"kind":"text","text":"internally dispatched"}]},{"kind":"text","text":" versions of the uncached library should be used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The accepts message may be exported by receiver types. When exported it can only be further restricted in addition to the default accepts implementation."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory"},"code":true,"children":[{"kind":"text","text":"for ways how to dispatch libraries."}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Library.java","line":88}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Base class for all Truffle library specifications."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Base class for all Truffle library specifications. Required base class for classes annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary"},"code":true,"children":[{"kind":"text","text":"GenerateLibrary"}]},{"kind":"text","text":". Implementations for the abstract methods specified in this classes are not supposed to be implemented manually."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.GenerateLibrary"},"code":true,"children":[{"kind":"text","text":"GenerateLibrary"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Library.java","line":53}},{"id":"com.oracle.truffle.api.library.LibraryExport","name":"LibraryExport","kind":"class","language":"java","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LibraryExport"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.library.LibraryExport#<init>(java.lang.Class,java.lang.Class,boolean)","anchor":"<init>(java.lang.Class,java.lang.Class,boolean)","kind":"constructor","name":"LibraryExport","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"LibraryExport"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"library"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"receiverClass"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultExport"},{"kind":"punct","text":")"}],"params":[{"name":"library","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},{"name":"receiverClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},{"name":"defaultExport","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for generated code. Do not call manually."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":78}},{"id":"com.oracle.truffle.api.library.LibraryExport#<init>(java.lang.Class,java.lang.Class,boolean,boolean,int)","anchor":"<init>(java.lang.Class,java.lang.Class,boolean,boolean,int)","kind":"constructor","name":"LibraryExport","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"LibraryExport"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"library"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"receiverClass"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultExport"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"aot"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"aotPriority"},{"kind":"punct","text":")"}],"params":[{"name":"library","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},{"name":"receiverClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},{"name":"defaultExport","type":[{"kind":"keyword","text":"boolean"}]},{"name":"aot","type":[{"kind":"keyword","text":"boolean"}]},{"name":"aotPriority","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Constructor for generated code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for generated code. Do not call manually."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":87}},{"id":"com.oracle.truffle.api.library.LibraryExport#createUncached(java.lang.Object)","anchor":"createUncached(java.lang.Object)","kind":"method","name":"createUncached","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Implemented generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Implemented generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":". Do not implement manually."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":101}},{"id":"com.oracle.truffle.api.library.LibraryExport#createCached(java.lang.Object)","anchor":"createCached(java.lang.Object)","kind":"method","name":"createCached","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createCached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Implemented generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Implemented generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":". Do not implement manually."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":108}},{"id":"com.oracle.truffle.api.library.LibraryExport#assertAdopted(com.oracle.truffle.api.nodes.Node)","anchor":"assertAdopted(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"assertAdopted","modifiers":["protected","static"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"assertAdopted"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Internal method for generated code only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method for generated code only."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":131}},{"id":"com.oracle.truffle.api.library.LibraryExport#createDelegate(com.oracle.truffle.api.library.LibraryFactory,T)","anchor":"createDelegate(com.oracle.truffle.api.library.LibraryFactory,T)","kind":"method","name":"createDelegate","modifiers":["protected","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]]}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createDelegate"},{"kind":"punct","text":"("},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factory"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"delegate"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},{"name":"delegate","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Internal method for generated code only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method for generated code only."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":145}},{"id":"com.oracle.truffle.api.library.LibraryExport#createMessageBitSet(com.oracle.truffle.api.library.LibraryFactory,java.lang.String...)","anchor":"createMessageBitSet(com.oracle.truffle.api.library.LibraryFactory,java.lang.String...)","kind":"method","name":"createMessageBitSet","modifiers":["protected","static"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"},{"kind":"punct","text":" "},{"kind":"name","text":"createMessageBitSet"},{"kind":"punct","text":"("},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"factory"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"messageNames"},{"kind":"punct","text":")"}],"params":[{"name":"factory","type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<?>"}]},{"name":"messageNames","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"}]},"doc":{"summary":[{"kind":"text","text":"Internal method for generated code only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method for generated code only."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":163}},{"id":"com.oracle.truffle.api.library.LibraryExport#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":178}},{"id":"com.oracle.truffle.api.library.LibraryExport#register(java.lang.Class,com.oracle.truffle.api.library.LibraryExport...)","anchor":"register(java.lang.Class,com.oracle.truffle.api.library.LibraryExport...)","kind":"method","name":"register","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"register"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"receiverClass"},{"kind":"punct","text":", "},{"kind":"type","text":"LibraryExport","ref":"com.oracle.truffle.api.library.LibraryExport"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"libs"},{"kind":"punct","text":")"}],"params":[{"name":"receiverClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},{"name":"libs","type":[{"kind":"type","text":"LibraryExport","ref":"com.oracle.truffle.api.library.LibraryExport"},{"kind":"punct","text":"<?>..."}],"varargs":true}],"doc":{"summary":[{"kind":"text","text":"Called only by code generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Called only by code generated by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"ExportLibrary"}]},{"kind":"text","text":". Do not call manually. Multiple calls with the same receiver class will lead to an "},{"kind":"link","target":{"id":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"},"code":true,"children":[{"kind":"text","text":"IllegalStateException"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":189}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Base class for generated export classes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Base class for generated export classes. This class is not intended to be sub-classed or used manually."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ExportLibrary"},"code":true,"children":[{"kind":"text","text":"to implement / export library message."}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":61}},{"id":"com.oracle.truffle.api.library.LibraryExport$DelegateExport","name":"LibraryExport.DelegateExport","kind":"interface","language":"java","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"LibraryExport.DelegateExport"}],"enclosing":"com.oracle.truffle.api.library.LibraryExport","members":[{"id":"com.oracle.truffle.api.library.LibraryExport$DelegateExport#readDelegateExport(java.lang.Object)","anchor":"readDelegateExport(java.lang.Object)","kind":"method","name":"readDelegateExport","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"readDelegateExport"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Internal method for generated code only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method for generated code only."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":205}},{"id":"com.oracle.truffle.api.library.LibraryExport$DelegateExport#getDelegateExportMessages()","anchor":"getDelegateExportMessages()","kind":"method","name":"getDelegateExportMessages","signature":[{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"},{"kind":"punct","text":" "},{"kind":"name","text":"getDelegateExportMessages"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"}]},"doc":{"summary":[{"kind":"text","text":"Internal method for generated code only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method for generated code only."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":212}},{"id":"com.oracle.truffle.api.library.LibraryExport$DelegateExport#getDelegateExportLibrary(java.lang.Object)","anchor":"getDelegateExportLibrary(java.lang.Object)","kind":"method","name":"getDelegateExportLibrary","signature":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":" "},{"kind":"name","text":"getDelegateExportLibrary"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"delegate"},{"kind":"punct","text":")"}],"params":[{"name":"delegate","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]},"doc":{"summary":[{"kind":"text","text":"Internal method for generated code only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method for generated code only."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":219}}],"doc":{"summary":[{"kind":"text","text":"Internal interface for generated code only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal interface for generated code only."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryExport.java","line":198}},{"id":"com.oracle.truffle.api.library.LibraryFactory","name":"LibraryFactory","kind":"class","language":"java","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.library.LibraryFactory#<init>(java.lang.Class,java.util.List)","anchor":"<init>(java.lang.Class,java.util.List)","kind":"constructor","name":"LibraryFactory","modifiers":["protected"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"LibraryFactory"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"libraryClass"},{"kind":"punct","text":", "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":"> "},{"kind":"param","text":"messages"},{"kind":"punct","text":")"}],"params":[{"name":"libraryClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},{"name":"messages","type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Constructor for generated subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for generated subclasses. Do not sub-class "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory"},"code":true,"children":[{"kind":"text","text":"LibraryFactory"}]},{"kind":"text","text":" manually."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"new versions of the library generator won't use this constructor anymore"}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":185}},{"id":"com.oracle.truffle.api.library.LibraryFactory#<init>(java.lang.Class,java.util.List,boolean)","anchor":"<init>(java.lang.Class,java.util.List,boolean)","kind":"constructor","name":"LibraryFactory","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"LibraryFactory"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"libraryClass"},{"kind":"punct","text":", "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":"> "},{"kind":"param","text":"messages"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"dynamicDispatchEnabled"},{"kind":"punct","text":")"}],"params":[{"name":"libraryClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},{"name":"messages","type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":">"}]},{"name":"dynamicDispatchEnabled","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Constructor for generated subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for generated subclasses. Do not sub-class "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory"},"code":true,"children":[{"kind":"text","text":"LibraryFactory"}]},{"kind":"text","text":" manually."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":210}},{"id":"com.oracle.truffle.api.library.LibraryFactory#createDispatched(int)","anchor":"createDispatched(int)","kind":"method","name":"createDispatched","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createDispatched"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"limit"},{"kind":"punct","text":")"}],"params":[{"name":"limit","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new cached and automatically dispatched library given a limit."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new cached and automatically dispatched library given a limit. The limit specifies the number of cached instances that will be automatically dispatched until the dispatched library rewrites itself to an uncached version of the library. If the limit is zero then the library will use an uncached version from the start. Negative values will throw an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":". It is discouraged to use "},{"kind":"link","target":{"id":"java.lang.Integer#MAX_VALUE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html#MAX_VALUE"},"code":true,"children":[{"kind":"text","text":"Integer.MAX_VALUE"}]},{"kind":"text","text":" as parameter to this method. Reasonable values for the limit range from zero to ten."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If possible it is recommended to not use this method manually but to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]},{"kind":"text","text":" instead."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Whenever the limit is reached for a node and the uncached version is in use, the current enclosing node will be available to the uncached library export of the library using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference"},"code":true,"children":[{"kind":"text","text":"EncapsulatingNodeReference"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference"},"code":true,"children":[{"kind":"text","text":"EncapsulatingNodeReference"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":281}},{"id":"com.oracle.truffle.api.library.LibraryFactory#create(java.lang.Object)","anchor":"create(java.lang.Object)","kind":"method","name":"create","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new manually dispatched cached library for a given receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new manually dispatched cached library for a given receiver. The receiver must not be "},{"kind":"code","text":"null"},{"kind":"text","text":". The returned library must be adopted before used. For calling manually dispatched libraries it is recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]},{"kind":"text","text":" instead using the factory manually."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":300}},{"id":"com.oracle.truffle.api.library.LibraryFactory#createAOT(com.oracle.truffle.api.library.LibraryExport)","anchor":"createAOT(com.oracle.truffle.api.library.LibraryExport)","kind":"method","name":"createAOT","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createAOT"},{"kind":"punct","text":"("},{"kind":"type","text":"LibraryExport","ref":"com.oracle.truffle.api.library.LibraryExport"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"lib"},{"kind":"punct","text":")"}],"params":[{"name":"lib","type":[{"kind":"type","text":"LibraryExport","ref":"com.oracle.truffle.api.library.LibraryExport"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Creates an AOT version for a library export."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an AOT version for a library export. Intended to be used by generated code, do not use manually."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":328}},{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns an uncached automatically dispatched version of the library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an uncached automatically dispatched version of the library. This is version of a library is used for slow-path calls."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":367}},{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached(java.lang.Object)","anchor":"getUncached(java.lang.Object)","kind":"method","name":"getUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns an uncached manually dispatched library for a given receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an uncached manually dispatched library for a given receiver. The receiver must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":409}},{"id":"com.oracle.truffle.api.library.LibraryFactory#getMessages()","anchor":"getMessages()","kind":"method","name":"getMessages","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":"> "},{"kind":"name","text":"getMessages"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns an unmodifiable list of messages that this library provides."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an unmodifiable list of messages that this library provides. The returned list is ordered by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#getId()"},"code":true,"children":[{"kind":"text","text":"message ids"}]},{"kind":"text","text":"."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":509}},{"id":"com.oracle.truffle.api.library.LibraryFactory#assertAdopted(com.oracle.truffle.api.nodes.Node)","anchor":"assertAdopted(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"assertAdopted","modifiers":["protected","static"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"assertAdopted"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Internal method for generated code only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal method for generated code only."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":526}},{"id":"com.oracle.truffle.api.library.LibraryFactory#createDispatchImpl(int)","anchor":"createDispatchImpl(int)","kind":"method","name":"createDispatchImpl","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createDispatchImpl"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"limit"},{"kind":"punct","text":")"}],"params":[{"name":"limit","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Creates a cached automatically dispatched version of this library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a cached automatically dispatched version of this library. An implementation for this method is generated, do not implement or call manually."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":577}},{"id":"com.oracle.truffle.api.library.LibraryFactory#getAOTExports()","anchor":"getAOTExports()","kind":"method","name":"getAOTExports","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"LibraryExport","ref":"com.oracle.truffle.api.library.LibraryExport"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">> "},{"kind":"name","text":"getAOTExports"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"LibraryExport","ref":"com.oracle.truffle.api.library.LibraryExport"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">>"}]},"doc":{"summary":[{"kind":"text","text":"Returns a list of ordered exports to be used for AOT preparation if supported."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a list of ordered exports to be used for AOT preparation if supported. Intended to be used by generated code only, do not use manually."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":585}},{"id":"com.oracle.truffle.api.library.LibraryFactory#createUncachedDispatch()","anchor":"createUncachedDispatch()","kind":"method","name":"createUncachedDispatch","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createUncachedDispatch"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Creates a uncached automatically dispatched version of this library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a uncached automatically dispatched version of this library. An implementation for this method is generated, do not implement or call manually."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":595}},{"id":"com.oracle.truffle.api.library.LibraryFactory#createProxy(com.oracle.truffle.api.library.ReflectionLibrary)","anchor":"createProxy(com.oracle.truffle.api.library.ReflectionLibrary)","kind":"method","name":"createProxy","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createProxy"},{"kind":"punct","text":"("},{"kind":"type","text":"ReflectionLibrary","ref":"com.oracle.truffle.api.library.ReflectionLibrary"},{"kind":"punct","text":" "},{"kind":"param","text":"lib"},{"kind":"punct","text":")"}],"params":[{"name":"lib","type":[{"kind":"type","text":"ReflectionLibrary","ref":"com.oracle.truffle.api.library.ReflectionLibrary"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Creates a proxy version of this library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a proxy version of this library. A proxy version is responsible for dispatching to reflective implementations of messages. An implementation for this method is generated, do not implement manually."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":604}},{"id":"com.oracle.truffle.api.library.LibraryFactory#createDelegate(T)","anchor":"createDelegate(T)","kind":"method","name":"createDelegate","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createDelegate"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"original"},{"kind":"punct","text":")"}],"params":[{"name":"original","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Creates a delegate version of a library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a delegate version of a library. May be used for cached or uncached versions of a library. Intended to be used by generated code only, do not use manually."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":612}},{"id":"com.oracle.truffle.api.library.LibraryFactory#createAssertions(T)","anchor":"createAssertions(T)","kind":"method","name":"createAssertions","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"createAssertions"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"delegate"},{"kind":"punct","text":")"}],"params":[{"name":"delegate","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Creates an assertion version of this library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an assertion version of this library. An implementation for this method is generated, do not implement manually."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":622}},{"id":"com.oracle.truffle.api.library.LibraryFactory#getDefaultClass(java.lang.Object)","anchor":"getDefaultClass(java.lang.Object)","kind":"method","name":"getDefaultClass","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getDefaultClass"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns default exported used for a given receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns default exported used for a given receiver. An implementation for this method is generated, do not implement manually."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":632}},{"id":"com.oracle.truffle.api.library.LibraryFactory#getLookup()","anchor":"getLookup()","kind":"method","name":"getLookup","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLookup"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a method handle lookup used to initialize the library class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a method handle lookup used to initialize the library class."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":639}},{"id":"com.oracle.truffle.api.library.LibraryFactory#genericDispatch(com.oracle.truffle.api.library.Library,java.lang.Object,com.oracle.truffle.api.library.Message,java.lang.Object[],int)","anchor":"genericDispatch(com.oracle.truffle.api.library.Library,java.lang.Object,com.oracle.truffle.api.library.Message,java.lang.Object[],int)","kind":"method","name":"genericDispatch","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"genericDispatch"},{"kind":"punct","text":"("},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":" "},{"kind":"param","text":"library"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"parameterOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"params":[{"name":"library","type":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]},{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"message","type":[{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"parameterOffset","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Performs a generic dispatch for this library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Performs a generic dispatch for this library. An implementation for this method is generated, do not implement manually."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":670}},{"id":"com.oracle.truffle.api.library.LibraryFactory#createMessageBitSet(com.oracle.truffle.api.library.Message...)","anchor":"createMessageBitSet(com.oracle.truffle.api.library.Message...)","kind":"method","name":"createMessageBitSet","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"},{"kind":"punct","text":" "},{"kind":"name","text":"createMessageBitSet"},{"kind":"punct","text":"("},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":"... "},{"kind":"param","text":"enabledMessages"},{"kind":"punct","text":")"}],"params":[{"name":"enabledMessages","type":[{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"}]},"doc":{"summary":[{"kind":"text","text":"Creates a final bitset of the given messages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a final bitset of the given messages. Uses an internal index for the messages. An implementation for this method is generated, do not implement manually."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":678}},{"id":"com.oracle.truffle.api.library.LibraryFactory#isDelegated(com.oracle.truffle.api.library.Library,int)","anchor":"isDelegated(com.oracle.truffle.api.library.Library,int)","kind":"method","name":"isDelegated","modifiers":["protected","static"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDelegated"},{"kind":"punct","text":"("},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":" "},{"kind":"param","text":"lib"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"lib","type":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a message is delegated, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if a message is delegated, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":". Intended to be used by generated code only, do not use manually."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":688}},{"id":"com.oracle.truffle.api.library.LibraryFactory#readDelegate(com.oracle.truffle.api.library.Library,java.lang.Object)","anchor":"readDelegate(com.oracle.truffle.api.library.Library,java.lang.Object)","kind":"method","name":"readDelegate","modifiers":["protected","static"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"readDelegate"},{"kind":"punct","text":"("},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":" "},{"kind":"param","text":"lib"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"lib","type":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]},{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Reads the delegate for a receiver."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the delegate for a receiver. Intended to be used by generated code only, do not use manually."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":700}},{"id":"com.oracle.truffle.api.library.LibraryFactory#getDelegateLibrary(T,java.lang.Object)","anchor":"getDelegateLibrary(T,java.lang.Object)","kind":"method","name":"getDelegateLibrary","modifiers":["protected","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]]}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getDelegateLibrary"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"lib"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"delegate"},{"kind":"punct","text":")"}],"params":[{"name":"lib","type":[{"kind":"typeParam","text":"T"}]},{"name":"delegate","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns the delegated library to use when messages are delegated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the delegated library to use when messages are delegated. Intended to be used by generated code only, do not use manually."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":710}},{"id":"com.oracle.truffle.api.library.LibraryFactory#resolve(java.lang.Class)","anchor":"resolve(java.lang.Class)","kind":"method","name":"resolve","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"resolve"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"library"},{"kind":"punct","text":")"}],"params":[{"name":"library","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Looks up the resolved library instance for a library class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Looks up the resolved library instance for a library class. If a library class was not yet loaded it will be initialized automatically. If the passed library class is not a valid library then a "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library"},"code":true,"children":[{"kind":"text","text":"Library"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":761}},{"id":"com.oracle.truffle.api.library.LibraryFactory#register(java.lang.Class,com.oracle.truffle.api.library.LibraryFactory)","anchor":"register(java.lang.Class,com.oracle.truffle.api.library.LibraryFactory)","kind":"method","name":"register","modifiers":["protected","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}]]}],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"register"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"libraryClass"},{"kind":"punct","text":", "},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"library"},{"kind":"punct","text":")"}],"params":[{"name":"libraryClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},{"name":"library","type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":848}},{"id":"com.oracle.truffle.api.library.LibraryFactory#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":860}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Library factories allow to create instances of libraries used to call library messages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Library factories allow to create instances of libraries used to call library messages. A library factory for a library class can be looked up using the static method "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#resolve(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"resolve(Class)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Library instances are either "},{"kind":"emphasis","children":[{"kind":"text","text":"automatically dispatched"}]},{"kind":"text","text":" or "},{"kind":"emphasis","children":[{"kind":"text","text":"manually dispatched"}]},{"kind":"text","text":". Automatically dispatched libraries always return "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Library.accepts(Object)"}]},{"kind":"text","text":" therefore they can be used with changing receiver values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Manually dispatched libraries are created once for a receiver and are only valid as long as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"accepts"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":". Once accepts was checked for an individual value, it is guaranteed that the accepts continues to return true. It is therefore not necessary to call accepts again for multiple message invocations. To create automatically dispatched versions of libraries use either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#createDispatched(int)"},"code":true,"children":[{"kind":"text","text":"createDispatched(int)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached()"},"code":true,"children":[{"kind":"text","text":"getUncached()"}]},{"kind":"text","text":". For calling manually dispatched libraries it is recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]},{"kind":"text","text":" instead using the factory manually."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Library instances are either "},{"kind":"emphasis","children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":" or "},{"kind":"emphasis","children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":". Cached instances are library instances designed to be used in ASTs. Cached instances are typically "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()"},"code":true,"children":[{"kind":"text","text":"adoptable"}]},{"kind":"text","text":" and store additional profiling information for the cached export. This allows to generate call-site specific profiling information for libray calls. Before a cached instance can be used it must be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#insert(T)"},"code":true,"children":[{"kind":"text","text":"adopted"}]},{"kind":"text","text":" by a parent node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Uncached versions are designed to be used from slow-path runtime methods or whenever call-site specific profiling is not desired. All uncached versions of a library are annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"children":[{"kind":"text","text":"@TruffleBoundary"}]},{"kind":"text","text":". Uncached instances always return "},{"kind":"code","text":"false"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()"},"code":true,"children":[{"kind":"text","text":"Node.isAdoptable()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This class is intended to be sub-classed by generated code only. Do not sub-class "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory"},"code":true,"children":[{"kind":"text","text":"LibraryFactory"}]},{"kind":"text","text":" manually."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library"},"code":true,"children":[{"kind":"text","text":"Library"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryExport"},"code":true,"children":[{"kind":"text","text":"LibraryExport"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message"},"code":true,"children":[{"kind":"text","text":"Message"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/LibraryFactory.java","line":105}},{"id":"com.oracle.truffle.api.library.Message","name":"Message","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Message"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.library.Message#<init>(java.lang.Class,java.lang.String,int,java.lang.Class,java.lang.Class...)","anchor":"<init>(java.lang.Class,java.lang.String,int,java.lang.Class,java.lang.Class...)","kind":"constructor","name":"Message","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Message"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"param","text":"libraryClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"messageName"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"id"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"returnType"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"parameterTypes"},{"kind":"punct","text":")"}],"params":[{"name":"libraryClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}]},{"name":"messageName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"id","type":[{"kind":"keyword","text":"int"}]},{"name":"returnType","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},{"name":"parameterTypes","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>..."}],"varargs":true}],"since":"22.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":87}},{"id":"com.oracle.truffle.api.library.Message#<init>(java.lang.Class,java.lang.String,int,boolean,java.lang.Class,java.lang.Class...)","anchor":"<init>(java.lang.Class,java.lang.String,int,boolean,java.lang.Class,java.lang.Class...)","kind":"constructor","name":"Message","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Message"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"param","text":"libraryClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"messageName"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"id"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"deprecated"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"returnType"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"parameterTypes"},{"kind":"punct","text":")"}],"params":[{"name":"libraryClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}]},{"name":"messageName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"id","type":[{"kind":"keyword","text":"int"}]},{"name":"deprecated","type":[{"kind":"keyword","text":"boolean"}]},{"name":"returnType","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},{"name":"parameterTypes","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>..."}],"varargs":true}],"since":"23.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":94}},{"id":"com.oracle.truffle.api.library.Message#getId()","anchor":"getId()","kind":"method","name":"getId","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getId"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non-negative message id or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if the message is not assigned a unique id."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a unique message id within a library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a unique message id within a library."}]}]},"since":"22.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":135}},{"id":"com.oracle.truffle.api.library.Message#getQualifiedName()","anchor":"getQualifiedName()","kind":"method","name":"getQualifiedName","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getQualifiedName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a qualified and unique name of this message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a qualified and unique name of this message. The qualified name is specified as "},{"kind":"code","text":"getLibraryName() + \".\" + getSimpleName()"},{"kind":"text","text":". The returned name is "},{"kind":"link","target":{"id":"java.lang.String#intern()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html#intern()"},"code":true,"children":[{"kind":"text","text":"interned"}]},{"kind":"text","text":" can safely be compared by identity. The returned name is never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#getSimpleName()"},"code":true,"children":[{"kind":"text","text":"getSimpleName()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#getLibraryName()"},"code":true,"children":[{"kind":"text","text":"getLibraryName()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":149}},{"id":"com.oracle.truffle.api.library.Message#getSimpleName()","anchor":"getSimpleName()","kind":"method","name":"getSimpleName","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSimpleName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the simple name of this message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the simple name of this message. The simple name is unique per library and equals the method name of the method in the library specification class. The returned name is "},{"kind":"link","target":{"id":"java.lang.String#intern()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html#intern()"},"code":true,"children":[{"kind":"text","text":"interned"}]},{"kind":"text","text":" can safely be compared by identity. The returned name is never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":165}},{"id":"com.oracle.truffle.api.library.Message#getLibraryName()","anchor":"getLibraryName()","kind":"method","name":"getLibraryName","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLibraryName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the name of the library of this message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name of the library of this message. The name of the library is specified as the "},{"kind":"link","target":{"id":"java.lang.Class#getName()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html#getName()"},"code":true,"children":[{"kind":"text","text":"name"}]},{"kind":"text","text":" of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#getLibraryClass()"},"code":true,"children":[{"kind":"text","text":"library class"}]},{"kind":"text","text":". The returned name is never "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":176}},{"id":"com.oracle.truffle.api.library.Message#getReturnType()","anchor":"getReturnType()","kind":"method","name":"getReturnType","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getReturnType"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns the return type of the message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the return type of the message. The return type can be useful for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"reflective"}]},{"kind":"text","text":" invocations of the message."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":186}},{"id":"com.oracle.truffle.api.library.Message#getReceiverType()","anchor":"getReceiverType()","kind":"method","name":"getReceiverType","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getReceiverType"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns the receiver type of the message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver type of the message. The receiver type is always the same as the first "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#getParameterTypes()"},"code":true,"children":[{"kind":"text","text":"parameter type"}]},{"kind":"text","text":". In many cases the receiver type of a message is "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":". However, it possible for libraries to restrict the receiver type to sub-types. The receiver type may be useful for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"reflective"}]},{"kind":"text","text":" invocations of the message."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":199}},{"id":"com.oracle.truffle.api.library.Message#getParameterTypes()","anchor":"getParameterTypes()","kind":"method","name":"getParameterTypes","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>> "},{"kind":"name","text":"getParameterTypes"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>>"}]},"doc":{"summary":[{"kind":"text","text":"Returns all parameter types including the receiver type of the message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all parameter types including the receiver type of the message. The returned immutable parameter types list corresponds to the "},{"kind":"link","target":{"id":"java.lang.reflect.Method#getParameterTypes()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/reflect/Method.html#getParameterTypes()"},"code":true,"children":[{"kind":"text","text":"Method.getParameterTypes()"}]},{"kind":"text","text":" parameter types of the declared library method. The parameter types may be useful for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"reflective"}]},{"kind":"text","text":" invocations of the message."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":211}},{"id":"com.oracle.truffle.api.library.Message#getParameterType(int)","anchor":"getParameterType(int)","kind":"method","name":"getParameterType","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getParameterType"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"index","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Just like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#getParameterTypes()"},"code":true,"children":[{"kind":"text","text":"getParameterTypes()"}]},{"kind":"text","text":" but returns the parameter of a given index in a partial evaluation safe way."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Just like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#getParameterTypes()"},"code":true,"children":[{"kind":"text","text":"getParameterTypes()"}]},{"kind":"text","text":" but returns the parameter of a given index in a partial evaluation safe way."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/library/Message.java","line":221}},{"id":"com.oracle.truffle.api.library.Message#getParameterCount()","anchor":"getParameterCount()","kind":"method","name":"getParameterCount","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getParameterCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of parameters including the receiver type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of parameters including the receiver type."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":230}},{"id":"com.oracle.truffle.api.library.Message#isDeprecated()","anchor":"isDeprecated()","kind":"method","name":"isDeprecated","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isDeprecated"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if this message is deprecated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if this message is deprecated."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":239}},{"id":"com.oracle.truffle.api.library.Message#getLibraryClass()","anchor":"getLibraryClass()","kind":"method","name":"getLibraryClass","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"name","text":"getLibraryClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the library class of this message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the library class of this message. The library class may be used to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#resolveExact(java.lang.Class,java.lang.String,java.lang.Class...)"},"code":true,"children":[{"kind":"text","text":"resolve"}]},{"kind":"text","text":" other messages of the same library."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":249}},{"id":"com.oracle.truffle.api.library.Message#getFactory()","anchor":"getFactory()","kind":"method","name":"getFactory","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getFactory"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<?>"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":256}},{"id":"com.oracle.truffle.api.library.Message#clone()","anchor":"clone()","kind":"method","name":"clone","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"clone"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"CloneNotSupportedException","ref":"java.lang.CloneNotSupportedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CloneNotSupportedException.html"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"CloneNotSupportedException","ref":"java.lang.CloneNotSupportedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CloneNotSupportedException.html"}],"declared":true}],"overrides":{"id":"java.lang.Object#clone()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":265}},{"id":"com.oracle.truffle.api.library.Message#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":275}},{"id":"com.oracle.truffle.api.library.Message#resolve(java.lang.Class,java.lang.String)","anchor":"resolve(java.lang.Class,java.lang.String)","kind":"method","name":"resolve","modifiers":["public","static"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":" "},{"kind":"name","text":"resolve"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"param","text":"libraryClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"messageName"},{"kind":"punct","text":")"}],"params":[{"name":"libraryClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}]},{"name":"messageName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"since 25.1, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#resolveExact(java.lang.Class,java.lang.String,java.lang.Class...)"},"code":true,"children":[{"kind":"text","text":"resolveExact(Class, String, Class...)"}]},{"kind":"text","text":" instead. Since library messages can now be deprecated and replaced, they need to be resolved with argument types."}]}],"since":"25.1"},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":298}},{"id":"com.oracle.truffle.api.library.Message#resolve(java.lang.Class,java.lang.String,boolean)","anchor":"resolve(java.lang.Class,java.lang.String,boolean)","kind":"method","name":"resolve","modifiers":["public","static"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":" "},{"kind":"name","text":"resolve"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"param","text":"libraryClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"messageName"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"fail"},{"kind":"punct","text":")"}],"params":[{"name":"libraryClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}]},{"name":"messageName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"fail","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"since 25.1, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#resolveExact(java.lang.Class,java.lang.String,boolean,java.lang.Class...)"},"code":true,"children":[{"kind":"text","text":"resolveExact(Class, String, boolean, Class...)"}]},{"kind":"text","text":" instead. Since library messages can now be deprecated and replaced, they need to be resolved with argument types."}]}],"since":"25.1"},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":310}},{"id":"com.oracle.truffle.api.library.Message#resolveExact(java.lang.Class,java.lang.String,java.lang.Class...)","anchor":"resolveExact(java.lang.Class,java.lang.String,java.lang.Class...)","kind":"method","name":"resolveExact","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":" "},{"kind":"name","text":"resolveExact"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"param","text":"libraryClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"messageName"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"argumentTypes"},{"kind":"punct","text":")"}],"params":[{"name":"libraryClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class of the library this message is contained in."}]}]},{"name":"messageName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the simple name of this message."}]}]},{"name":"argumentTypes","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"}]},"doc":{"summary":[{"kind":"text","text":"Resolves a message globally for a given library class, message name and argument types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resolves a message globally for a given library class, message name and argument types. The message name corresponds to the method name of the library message. The returned message always returns the same instance for a combination of library class, message and argument types. The provided library class and message name must not be "},{"kind":"code","text":"null"},{"kind":"text","text":". If the library or message is invalid or not found an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/library/Message.java","line":327}},{"id":"com.oracle.truffle.api.library.Message#resolveExact(java.lang.Class,java.lang.String,boolean,java.lang.Class...)","anchor":"resolveExact(java.lang.Class,java.lang.String,boolean,java.lang.Class...)","kind":"method","name":"resolveExact","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":" "},{"kind":"name","text":"resolveExact"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":"> "},{"kind":"param","text":"libraryClass"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"messageName"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"fail"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>... "},{"kind":"param","text":"argumentTypes"},{"kind":"punct","text":")"}],"params":[{"name":"libraryClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class of the library this message is contained in."}]}]},{"name":"messageName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the simple name of this message."}]}]},{"name":"fail","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to fail with an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" or return "},{"kind":"code","text":"null"},{"kind":"text","text":" if the message was not found."}]}]},{"name":"argumentTypes","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parameter types of the message"}]}]}],"returns":{"type":[{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"}]},"doc":{"summary":[{"kind":"text","text":"Resolves a message globally for a given library class and message name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resolves a message globally for a given library class and message name. The message name corresponds to the method name of the library message. The returned message always returns the same instance for a combination of library class, message and argument types. The provided library class and message name must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/library/Message.java","line":346}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a description of library message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a description of library message. A message description refers to one public method in a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library"},"code":true,"children":[{"kind":"text","text":"library"}]},{"kind":"text","text":" subclass. Messages may be resolved dynamically by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#resolveExact(java.lang.Class,java.lang.String,java.lang.Class...)"},"code":true,"children":[{"kind":"text","text":"resolveExact(Class, String, Class[])"}]},{"kind":"text","text":" with a known library class, message name and parameter types. Message instances provide meta-data about the simple and qualified name of the message, return type, receiver type, parameter types and library name. Message instances are used to invoke library messages or implement library messages reflectively using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"reflection library"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Message instances are globally unique and can safely be compared by identity. In other words, if the same message is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#resolveExact(java.lang.Class,java.lang.String,java.lang.Class...)"},"code":true,"children":[{"kind":"text","text":"resolveExact(Class, String, Class[])"}]},{"kind":"text","text":" resolved} twice the same instance will be returned. Since they are shared message instances must not be used as locks to avoid deadlocks."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: This class is intended to be sub-classed by generated code only and must *not* be sub-classed by user-code."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"ReflectionLibrary"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Library"},"code":true,"children":[{"kind":"text","text":"Library"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/Message.java","line":72}},{"id":"com.oracle.truffle.api.library.ReflectionLibrary","name":"ReflectionLibrary","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ReflectionLibrary"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"superclass":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"ancestors":[{"id":"com.oracle.truffle.api.library.Library"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.library.ReflectionLibrary#<init>()","anchor":"<init>()","kind":"constructor","name":"ReflectionLibrary","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ReflectionLibrary"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor for generated subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for generated subclasses. Subclasses of this class are generated, do not extend this class directly."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ReflectionLibrary.java","line":117}},{"id":"com.oracle.truffle.api.library.ReflectionLibrary#send(java.lang.Object,com.oracle.truffle.api.library.Message,java.lang.Object...)","anchor":"send(java.lang.Object,com.oracle.truffle.api.library.Message,java.lang.Object...)","kind":"method","name":"send","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"send"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"args"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"message","type":[{"kind":"type","text":"Message","ref":"com.oracle.truffle.api.library.Message"}]},{"name":"args","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Sends a given message to the target receiver with the provided arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sends a given message to the target receiver with the provided arguments. The provided receiver and message must not be null. If the argument types don't match the expected message signature then an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" will be thrown."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ReflectionLibrary.java","line":127}},{"id":"com.oracle.truffle.api.library.ReflectionLibrary#getFactory()","anchor":"getFactory()","kind":"method","name":"getFactory","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"ReflectionLibrary","ref":"com.oracle.truffle.api.library.ReflectionLibrary"},{"kind":"punct","text":"> "},{"kind":"name","text":"getFactory"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"ReflectionLibrary","ref":"com.oracle.truffle.api.library.ReflectionLibrary"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the library factory for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"ReflectionLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the library factory for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.ReflectionLibrary"},"code":true,"children":[{"kind":"text","text":"ReflectionLibrary"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ReflectionLibrary.java","line":142}},{"id":"com.oracle.truffle.api.library.ReflectionLibrary#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ReflectionLibrary","ref":"com.oracle.truffle.api.library.ReflectionLibrary"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ReflectionLibrary","ref":"com.oracle.truffle.api.library.ReflectionLibrary"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached automatically dispatched version of the reflection library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached automatically dispatched version of the reflection library. This is a short-cut for calling "},{"kind":"code","text":"ReflectionLibrary.getFactory().getUncached()"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached()"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.getUncached()"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/library/ReflectionLibrary.java","line":153}},{"id":"com.oracle.truffle.api.library.ReflectionLibrary#getUncached(java.lang.Object)","anchor":"getUncached(java.lang.Object)","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ReflectionLibrary","ref":"com.oracle.truffle.api.library.ReflectionLibrary"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"v"},{"kind":"punct","text":")"}],"params":[{"name":"v","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"ReflectionLibrary","ref":"com.oracle.truffle.api.library.ReflectionLibrary"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached manually dispatched version of the reflection library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached manually dispatched version of the reflection library. This is a short-cut for calling "},{"kind":"code","text":"ReflectionLibrary.getFactory().getUncached(v)"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#getUncached(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"LibraryFactory.getUncached(Object)"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/library/ReflectionLibrary.java","line":164}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.library.Library","text":"Library"},"kind":"class","members":[{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)","text":"accepts"}]},{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"The reflection library allows to send to and proxy messages of receivers."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The reflection library allows to send to and proxy messages of receivers. The reflection library may be used for any receiver object. If a sent message is not implemented by the target receiver then the default library export will be used, otherwise it is forwarded to the resolved exported message. If the reflection library is exported by a receiver directly then the reflection behavior can be customized. This allows, for example, to proxy all messages to a delegate instance."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Sending Messages"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Messages can be sent to receivers by first "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.Message#resolveExact(java.lang.Class,java.lang.String,java.lang.Class...)"},"code":true,"children":[{"kind":"text","text":"Message.resolveExact(Class, String, Class[])"}]},{"kind":"text","text":" resolving} a target message. Then the message can be sent to a receiver that may implement that message. The message name and class may be resolved dynamically."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Usage example"}]},{"kind":"code","text":"String messageName = \"isArray\";\nMessage message = Message.resolveExact(ArrayLibrary.class, messageName);\nObject receiver = 42;\ntry {\n    ReflectionLibrary.getFactory().getUncached().send(receiver, message);\n} catch (Exception e) {\n    // handle error\n}"},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Proxies"}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is possible to proxy library messages to a delegate object. To achieve that the reflection library can be exported by a receiver type."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Usage example"}]},{"kind":"code","text":"@ExportLibrary(ReflectionLibrary.class)\nstatic class AgnosticWrapper {\n\n    final Object delegate;\n\n    AgnosticWrapper(Object delegate) {\n        this.delegate = delegate;\n    }\n\n    @ExportMessage\n    final Object send(Message message, Object[] args,\n                    @CachedLibrary(\"this.delegate\") ReflectionLibrary reflection) throws Exception {\n        // do before\n        Object result = reflection.send(delegate, message, args);\n        // do after\n        return result;\n    }\n}"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/library/ReflectionLibrary.java","line":107}}]},{"id":"com.oracle.truffle.api.library.provider","name":"com.oracle.truffle.api.library.provider","doc":{"summary":[{"kind":"text","text":"This package contains service provider interfaces used by Truffle libraries."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This package contains service provider interfaces used by Truffle libraries. The provider interfaces are not intended to be implemented manually but automatically generated by the annotation processor when needed."}]}]},"since":"23.1","types":[{"id":"com.oracle.truffle.api.library.provider.DefaultExportProvider","name":"DefaultExportProvider","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"DefaultExportProvider"}],"members":[{"id":"com.oracle.truffle.api.library.provider.DefaultExportProvider#getLibraryClassName()","anchor":"getLibraryClassName()","kind":"method","name":"getLibraryClassName","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLibraryClassName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.Class#getName()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html#getName()"},"code":true,"children":[{"kind":"text","text":"class name"}]},{"kind":"text","text":" of the library to be used."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.Class#getName()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html#getName()"},"code":true,"children":[{"kind":"text","text":"class name"}]},{"kind":"text","text":" of the library to be used. Uses a string to avoid triggering class loading for all libraries."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/provider/DefaultExportProvider.java","line":58}},{"id":"com.oracle.truffle.api.library.provider.DefaultExportProvider#getDefaultExport()","anchor":"getDefaultExport()","kind":"method","name":"getDefaultExport","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getDefaultExport"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns the default export class to be used for this provider."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the default export class to be used for this provider."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/provider/DefaultExportProvider.java","line":65}},{"id":"com.oracle.truffle.api.library.provider.DefaultExportProvider#getReceiverClass()","anchor":"getReceiverClass()","kind":"method","name":"getReceiverClass","signature":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getReceiverClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns the receiver class of the default export."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the receiver class of the default export."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/provider/DefaultExportProvider.java","line":72}},{"id":"com.oracle.truffle.api.library.provider.DefaultExportProvider#getPriority()","anchor":"getPriority()","kind":"method","name":"getPriority","signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getPriority"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the priority used when multiple default exports would be applicable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the priority used when multiple default exports would be applicable."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/provider/DefaultExportProvider.java","line":79}}],"doc":{"summary":[{"kind":"text","text":"Service provider interface implemented by external default exports of a library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Service provider interface implemented by external default exports of a library. This class is not intended to be implemented manually but automatically generated by the annotation processor when needed."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/provider/DefaultExportProvider.java","line":50}},{"id":"com.oracle.truffle.api.library.provider.EagerExportProvider","name":"EagerExportProvider","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"EagerExportProvider"}],"members":[{"id":"com.oracle.truffle.api.library.provider.EagerExportProvider#ensureRegistered()","anchor":"ensureRegistered()","kind":"method","name":"ensureRegistered","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"ensureRegistered"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Ensures that the export is registered and usable."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures that the export is registered and usable. This method has no effect if already registered."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/provider/EagerExportProvider.java","line":64}},{"id":"com.oracle.truffle.api.library.provider.EagerExportProvider#getLibraryClassName()","anchor":"getLibraryClassName()","kind":"method","name":"getLibraryClassName","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLibraryClassName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.Class#getName()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html#getName()"},"code":true,"children":[{"kind":"text","text":"class name"}]},{"kind":"text","text":" of the library to be used."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.Class#getName()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html#getName()"},"code":true,"children":[{"kind":"text","text":"class name"}]},{"kind":"text","text":" of the library to be used. Uses a string to avoid triggering class loading for all libraries."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/provider/EagerExportProvider.java","line":72}}],"doc":{"summary":[{"kind":"text","text":"Service provider interface implemented by library exports if they needed to be loaded eagerly with a library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Service provider interface implemented by library exports if they needed to be loaded eagerly with a library. For example, this is used for exports that are marked to be "},{"kind":"link","url":"https://www.graalvm.org/truffle/javadoc/com/oracle/truffle/api/library/ExportLibrary.html#useForAOTPriority--","children":[{"kind":"text","text":"used for AOT"}]},{"kind":"text","text":". On SVM we can rely that the closed world analysis registers all exports at image generation time, so there is no need to use these service providers."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Service provider interface implementations and uses are intended to be automatically generated by the Truffle DSL annotation processor. Do not declare custom eager export providers or call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.provider.EagerExportProvider#ensureRegistered()"},"code":true,"children":[{"kind":"text","text":"ensureRegistered()"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/library/provider/EagerExportProvider.java","line":56}}]},{"id":"com.oracle.truffle.api.memory","name":"com.oracle.truffle.api.memory","doc":{"summary":[{"kind":"text","text":"This package contains memory related classes used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleLanguage"}]},{"kind":"text","text":" implementations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This package contains memory related classes used by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleLanguage"}]},{"kind":"text","text":" implementations."}]}]},"since":"20.3","types":[{"id":"com.oracle.truffle.api.memory.ByteArraySupport","name":"ByteArraySupport","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ByteArraySupport"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.memory.ByteArraySupport#littleEndian()","anchor":"littleEndian()","kind":"method","name":"littleEndian","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ByteArraySupport","ref":"com.oracle.truffle.api.memory.ByteArraySupport"},{"kind":"punct","text":" "},{"kind":"name","text":"littleEndian"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ByteArraySupport","ref":"com.oracle.truffle.api.memory.ByteArraySupport"}]},"doc":{"summary":[{"kind":"text","text":"Enables accessing multibyte Java primitives from byte arrays in little-endian order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables accessing multibyte Java primitives from byte arrays in little-endian order."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"byte[] buffer = new byte[]{0, 0, 0, 0};\nByteArraySupport.littleEndian().putShort(buffer, 2, (short) 1);\n// buffer[2] == (byte) 1\n// buffer[3] == (byte) 0\nByteArraySupport.littleEndian().putShort(buffer, 3, (short) 1);\n// throws IndexOutOfBoundsException exception"}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":88}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#bigEndian()","anchor":"bigEndian()","kind":"method","name":"bigEndian","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ByteArraySupport","ref":"com.oracle.truffle.api.memory.ByteArraySupport"},{"kind":"punct","text":" "},{"kind":"name","text":"bigEndian"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ByteArraySupport","ref":"com.oracle.truffle.api.memory.ByteArraySupport"}]},"doc":{"summary":[{"kind":"text","text":"Enables accessing multibyte Java primitives from byte arrays in big-endian order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables accessing multibyte Java primitives from byte arrays in big-endian order."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","text":"byte[] buffer = new byte[]{0, 0, 0, 0};\nByteArraySupport.bigEndian().putShort(buffer, 0, (short) 1);\n// buffer[0] == (byte) 0\n// buffer[1] == (byte) 1"}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":106}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#inBounds(byte[],int,int)","anchor":"inBounds(byte[],int,int)","kind":"method","name":"inBounds","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inBounds"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startByteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array"}]}]},{"name":"startByteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the start byte offset of the access"}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of bytes accessed"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"True if the access is in bounds, false otherwise"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks if an access is in bounds of the given buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if an access is in bounds of the given buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If out-of-bounds accesses are expected to happen frequently, it is faster (~1.2x in interpreter mode) to use this method to check for them than catching "},{"kind":"link","target":{"id":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"},"code":true,"children":[{"kind":"text","text":"IndexOutOfBoundsException"}]},{"kind":"text","text":"s."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":131}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#inBounds(byte[],long,long)","anchor":"inBounds(byte[],long,long)","kind":"method","name":"inBounds","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inBounds"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"startByteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array"}]}]},{"name":"startByteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the start byte offset of the access"}]}]},{"name":"length","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of bytes accessed"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"True if the access is in bounds, false otherwise"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks if an access is in bounds of the given buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if an access is in bounds of the given buffer."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If out-of-bounds accesses are expected to happen frequently, it is faster (~1.2x in interpreter mode) to use this method to check for them than catching "},{"kind":"link","target":{"id":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"},"code":true,"children":[{"kind":"text","text":"IndexOutOfBoundsException"}]},{"kind":"text","text":"s."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":149}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getByte(byte[],int)","anchor":"getByte(byte[],int)","kind":"method","name":"getByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the byte at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the byte at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":164}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getByte(byte[],long)","anchor":"getByte(byte[],long)","kind":"method","name":"getByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the byte at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the byte at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":176}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putByte(byte[],int,byte)","anchor":"putByte(byte[],int,byte)","kind":"method","name":"putByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given byte at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given byte at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":188}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putByte(byte[],long,byte)","anchor":"putByte(byte[],long,byte)","kind":"method","name":"putByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given byte at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given byte at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":200}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getShort(byte[],int)","anchor":"getShort(byte[],int)","kind":"method","name":"getShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the short will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the short at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":212}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getShort(byte[],long)","anchor":"getShort(byte[],long)","kind":"method","name":"getShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the short will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the short at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":224}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putShort(byte[],int,short)","anchor":"putShort(byte[],int,short)","kind":"method","name":"putShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the short will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given short at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":236}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putShort(byte[],long,short)","anchor":"putShort(byte[],long,short)","kind":"method","name":"putShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the short will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given short at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":248}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getInt(byte[],int)","anchor":"getInt(byte[],int)","kind":"method","name":"getInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the int at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":260}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getInt(byte[],long)","anchor":"getInt(byte[],long)","kind":"method","name":"getInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the int at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":272}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putInt(byte[],int,int)","anchor":"putInt(byte[],int,int)","kind":"method","name":"putInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given int at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":284}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putInt(byte[],long,int)","anchor":"putInt(byte[],long,int)","kind":"method","name":"putInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given int at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":296}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getLong(byte[],int)","anchor":"getLong(byte[],int)","kind":"method","name":"getLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the long at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":308}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getLong(byte[],long)","anchor":"getLong(byte[],long)","kind":"method","name":"getLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the long at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":320}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putLong(byte[],int,long)","anchor":"putLong(byte[],int,long)","kind":"method","name":"putLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given long at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":332}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putLong(byte[],long,long)","anchor":"putLong(byte[],long,long)","kind":"method","name":"putLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given long at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":344}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getFloat(byte[],int)","anchor":"getFloat(byte[],int)","kind":"method","name":"getFloat","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getFloat"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the float will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the float at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the float at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the float at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":356}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getFloat(byte[],long)","anchor":"getFloat(byte[],long)","kind":"method","name":"getFloat","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getFloat"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the float will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the float at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the float at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the float at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":368}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putFloat(byte[],int,float)","anchor":"putFloat(byte[],int,float)","kind":"method","name":"putFloat","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putFloat"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the float will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the float value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given float at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given float at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":380}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putFloat(byte[],long,float)","anchor":"putFloat(byte[],long,float)","kind":"method","name":"putFloat","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putFloat"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the float will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the float value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given float at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given float at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":392}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getDouble(byte[],int)","anchor":"getDouble(byte[],int)","kind":"method","name":"getDouble","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the double will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the double at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the double at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the double at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":404}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getDouble(byte[],long)","anchor":"getDouble(byte[],long)","kind":"method","name":"getDouble","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the double will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the double at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the double at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the double at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":416}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putDouble(byte[],int,double)","anchor":"putDouble(byte[],int,double)","kind":"method","name":"putDouble","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the double will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the double value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given double at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given double at the given byte offset from the start of the buffer."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":428}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putDouble(byte[],long,double)","anchor":"putDouble(byte[],long,double)","kind":"method","name":"putDouble","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to write in"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the double will be written"}]}]},{"name":"value","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the double value to be written"}]}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Writes the given double at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes the given double at the given byte offset from the start of the buffer."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":440}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getShortUnaligned(byte[],int)","anchor":"getShortUnaligned(byte[],int)","kind":"method","name":"getShortUnaligned","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getShortUnaligned"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the short will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the short at the given byte offset from the start of the buffer. Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getShort(byte[],int)"},"code":true,"children":[{"kind":"text","text":"getShort(byte[], int)"}]},{"kind":"text","text":", the byte offset does not need to be short-aligned. The platform may not support atomic unaligned reads, so this method should not be used with shared mutable data."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":456}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getShortUnaligned(byte[],long)","anchor":"getShortUnaligned(byte[],long)","kind":"method","name":"getShortUnaligned","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getShortUnaligned"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the short will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the short at the given byte offset from the start of the buffer. Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getShort(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getShort(byte[], long)"}]},{"kind":"text","text":", the byte offset does not need to be short-aligned. The platform may not support atomic unaligned reads, so this method should not be used with shared mutable data."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":472}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getIntUnaligned(byte[],int)","anchor":"getIntUnaligned(byte[],int)","kind":"method","name":"getIntUnaligned","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getIntUnaligned"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the int at the given byte offset from the start of the buffer. Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getInt(byte[],int)"},"code":true,"children":[{"kind":"text","text":"getInt(byte[], int)"}]},{"kind":"text","text":", the byte offset does not need to be int-aligned. The platform may not support atomic unaligned reads, so this method should not be used with shared mutable data."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":488}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getIntUnaligned(byte[],long)","anchor":"getIntUnaligned(byte[],long)","kind":"method","name":"getIntUnaligned","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getIntUnaligned"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the int will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the int at the given byte offset from the start of the buffer. Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getInt(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getInt(byte[], long)"}]},{"kind":"text","text":", the byte offset does not need to be int-aligned. The platform may not support atomic unaligned reads, so this method should not be used with shared mutable data."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":504}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getLongUnaligned(byte[],int)","anchor":"getLongUnaligned(byte[],int)","kind":"method","name":"getLongUnaligned","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLongUnaligned"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the long will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the long at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the long at the given byte offset from the start of the buffer. Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getLong(byte[],int)"},"code":true,"children":[{"kind":"text","text":"getLong(byte[], int)"}]},{"kind":"text","text":", the byte offset does not need to be long-aligned. The platform may not support atomic unaligned reads, so this method should not be used with shared mutable data."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":520}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getLongUnaligned(byte[],long)","anchor":"getLongUnaligned(byte[],long)","kind":"method","name":"getLongUnaligned","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLongUnaligned"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset from which the long will be read"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the long at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reads the long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reads the long at the given byte offset from the start of the buffer. Unlike "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getLong(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getLong(byte[], long)"}]},{"kind":"text","text":", the byte offset does not need to be long-aligned. The platform may not support atomic unaligned reads, so this method should not be used with shared mutable data."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":536}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getByteVolatile(byte[],long)","anchor":"getByteVolatile(byte[],long)","kind":"method","name":"getByteVolatile","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByteVolatile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getByte(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getByte(byte[], long)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getByte(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getByte(byte[], long)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":543}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putByteVolatile(byte[],long,byte)","anchor":"putByteVolatile(byte[],long,byte)","kind":"method","name":"putByteVolatile","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putByteVolatile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putByte(byte[],long,byte)"},"code":true,"children":[{"kind":"text","text":"putByte(byte[], long, byte)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putByte(byte[],long,byte)"},"code":true,"children":[{"kind":"text","text":"putByte(byte[], long, byte)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":550}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getShortVolatile(byte[],long)","anchor":"getShortVolatile(byte[],long)","kind":"method","name":"getShortVolatile","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getShortVolatile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"short"}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getShort(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getShort(byte[], long)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getShort(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getShort(byte[], long)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":557}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putShortVolatile(byte[],long,short)","anchor":"putShortVolatile(byte[],long,short)","kind":"method","name":"putShortVolatile","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putShortVolatile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"short"}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putShort(byte[],long,short)"},"code":true,"children":[{"kind":"text","text":"putShort(byte[], long, short)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putShort(byte[],long,short)"},"code":true,"children":[{"kind":"text","text":"putShort(byte[], long, short)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":564}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getIntVolatile(byte[],long)","anchor":"getIntVolatile(byte[],long)","kind":"method","name":"getIntVolatile","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getIntVolatile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getInt(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getInt(byte[], long)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getInt(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getInt(byte[], long)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":571}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putIntVolatile(byte[],long,int)","anchor":"putIntVolatile(byte[],long,int)","kind":"method","name":"putIntVolatile","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putIntVolatile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putInt(byte[],long,int)"},"code":true,"children":[{"kind":"text","text":"putInt(byte[], long, int)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putInt(byte[],long,int)"},"code":true,"children":[{"kind":"text","text":"putInt(byte[], long, int)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":578}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getLongVolatile(byte[],long)","anchor":"getLongVolatile(byte[],long)","kind":"method","name":"getLongVolatile","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLongVolatile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getLong(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getLong(byte[], long)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getLong(byte[],long)"},"code":true,"children":[{"kind":"text","text":"getLong(byte[], long)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":585}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putLongVolatile(byte[],long,long)","anchor":"putLongVolatile(byte[],long,long)","kind":"method","name":"putLongVolatile","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putLongVolatile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putLong(byte[],long,long)"},"code":true,"children":[{"kind":"text","text":"putLong(byte[], long, long)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Volatile version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#putLong(byte[],long,long)"},"code":true,"children":[{"kind":"text","text":"putLong(byte[], long, long)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":592}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndAddByte(byte[],long,byte)","anchor":"getAndAddByte(byte[],long,byte)","kind":"method","name":"getAndAddByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndAddByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"delta"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be read and written to"}]}]},{"name":"delta","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte value to add"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous byte at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically adds the given byte to the current byte at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically adds the given byte to the current byte at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":606}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndAddShort(byte[],long,short)","anchor":"getAndAddShort(byte[],long,short)","kind":"method","name":"getAndAddShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndAddShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"delta"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the short will be read and written to"}]}]},{"name":"delta","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short value to add"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically adds the given short to the current short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically adds the given short to the current short at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":620}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndAddInt(byte[],long,int)","anchor":"getAndAddInt(byte[],long,int)","kind":"method","name":"getAndAddInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndAddInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"delta"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the int will be read and written to"}]}]},{"name":"delta","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int value to add"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically adds the given int to the current int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically adds the given int to the current int at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":634}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndAddLong(byte[],long,long)","anchor":"getAndAddLong(byte[],long,long)","kind":"method","name":"getAndAddLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndAddLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"delta"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the long will be read and written to"}]}]},{"name":"delta","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the long value to add"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous long at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically adds the given long to the current long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically adds the given long to the current long at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":648}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseAndByte(byte[],long,byte)","anchor":"getAndBitwiseAndByte(byte[],long,byte)","kind":"method","name":"getAndBitwiseAndByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseAndByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte value to bitwise-AND"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous byte at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-ANDs the given byte to the current byte at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-ANDs the given byte to the current byte at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":662}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseAndShort(byte[],long,short)","anchor":"getAndBitwiseAndShort(byte[],long,short)","kind":"method","name":"getAndBitwiseAndShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseAndShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the short will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short value to bitwise-AND"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-ANDs the given short to the current short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-ANDs the given short to the current short at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":676}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseAndInt(byte[],long,int)","anchor":"getAndBitwiseAndInt(byte[],long,int)","kind":"method","name":"getAndBitwiseAndInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseAndInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the int will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int value to bitwise-AND"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-ANDs the given int to the current int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-ANDs the given int to the current int at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":690}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseAndLong(byte[],long,long)","anchor":"getAndBitwiseAndLong(byte[],long,long)","kind":"method","name":"getAndBitwiseAndLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseAndLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the long will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the long value to bitwise-AND"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous long at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-ANDs the given long to the current long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-ANDs the given long to the current long at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":704}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseOrByte(byte[],long,byte)","anchor":"getAndBitwiseOrByte(byte[],long,byte)","kind":"method","name":"getAndBitwiseOrByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseOrByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte value to bitwise-OR"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous byte at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-ORs the given byte to the current byte at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-ORs the given byte to the current byte at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":718}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseOrShort(byte[],long,short)","anchor":"getAndBitwiseOrShort(byte[],long,short)","kind":"method","name":"getAndBitwiseOrShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseOrShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the short will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short value to bitwise-OR"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-ORs the given short to the current short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-ORs the given short to the current short at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":732}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseOrInt(byte[],long,int)","anchor":"getAndBitwiseOrInt(byte[],long,int)","kind":"method","name":"getAndBitwiseOrInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseOrInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the int will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int value to bitwise-OR"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-ORs the given int to the current int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-ORs the given int to the current int at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":746}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseOrLong(byte[],long,long)","anchor":"getAndBitwiseOrLong(byte[],long,long)","kind":"method","name":"getAndBitwiseOrLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseOrLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the long will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the long value to bitwise-OR"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous long at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-ORs the given long to the current long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-ORs the given long to the current long at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":760}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseXorByte(byte[],long,byte)","anchor":"getAndBitwiseXorByte(byte[],long,byte)","kind":"method","name":"getAndBitwiseXorByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseXorByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte value to bitwise-XOR"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous byte at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-XORs the given byte to the current byte at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-XORs the given byte to the current byte at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":774}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseXorShort(byte[],long,short)","anchor":"getAndBitwiseXorShort(byte[],long,short)","kind":"method","name":"getAndBitwiseXorShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseXorShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the short will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short value to bitwise-XOR"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-XORs the given short to the current short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-XORs the given short to the current short at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":788}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseXorInt(byte[],long,int)","anchor":"getAndBitwiseXorInt(byte[],long,int)","kind":"method","name":"getAndBitwiseXorInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseXorInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the int will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the int value to bitwise-XOR"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-XORs the given int to the current int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-XORs the given int to the current int at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":802}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndBitwiseXorLong(byte[],long,long)","anchor":"getAndBitwiseXorLong(byte[],long,long)","kind":"method","name":"getAndBitwiseXorLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndBitwiseXorLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"mask"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the long will be read and written to"}]}]},{"name":"mask","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the long value to bitwise-XOR"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous long at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically bitwise-XORs the given long to the current long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically bitwise-XORs the given long to the current long at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":816}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndSetByte(byte[],long,byte)","anchor":"getAndSetByte(byte[],long,byte)","kind":"method","name":"getAndSetByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndSetByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"newValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be read and written to"}]}]},{"name":"newValue","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new byte value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous byte at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically exchanges the given byte with the current byte at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically exchanges the given byte with the current byte at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":830}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndSetShort(byte[],long,short)","anchor":"getAndSetShort(byte[],long,short)","kind":"method","name":"getAndSetShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndSetShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"newValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the short will be read and written to"}]}]},{"name":"newValue","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new short value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically exchanges the given short with the current short at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically exchanges the given short with the current short at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":844}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndSetInt(byte[],long,int)","anchor":"getAndSetInt(byte[],long,int)","kind":"method","name":"getAndSetInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndSetInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"newValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the int will be read and written to"}]}]},{"name":"newValue","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new int value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically exchanges the given int with the current int at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically exchanges the given int with the current int at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":858}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getAndSetLong(byte[],long,long)","anchor":"getAndSetLong(byte[],long,long)","kind":"method","name":"getAndSetLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndSetLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"newValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the long will be read and written to"}]}]},{"name":"newValue","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new long value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous long at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically exchanges the given long with the current long at the given byte offset from the start of the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically exchanges the given long with the current long at the given byte offset from the start of the buffer."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":872}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#compareAndExchangeByte(byte[],long,byte,byte)","anchor":"compareAndExchangeByte(byte[],long,byte,byte)","kind":"method","name":"compareAndExchangeByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeByte"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"expected"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the byte will be read and written to"}]}]},{"name":"expected","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected byte value"}]}]},{"name":"x","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the replacement byte value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous byte at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically exchanges the given byte with the current byte at the given byte offset from the start of the buffer, if and only if the current byte equals the expected byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically exchanges the given byte with the current byte at the given byte offset from the start of the buffer, if and only if the current byte equals the expected byte."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":887}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#compareAndExchangeShort(byte[],long,short,short)","anchor":"compareAndExchangeShort(byte[],long,short,short)","kind":"method","name":"compareAndExchangeShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeShort"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"expected"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the short will be read and written to"}]}]},{"name":"expected","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected short value"}]}]},{"name":"x","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the replacement short value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous short at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 1"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically exchanges the given short with the current short at the given byte offset from the start of the buffer, if and only if the current short equals the expected short."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically exchanges the given short with the current short at the given byte offset from the start of the buffer, if and only if the current short equals the expected short."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":902}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#compareAndExchangeInt(byte[],long,int,int)","anchor":"compareAndExchangeInt(byte[],long,int,int)","kind":"method","name":"compareAndExchangeInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeInt"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"expected"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the int will be read and written to"}]}]},{"name":"expected","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected int value"}]}]},{"name":"x","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the replacement int value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous int at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 3"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically exchanges the given int with the current int at the given byte offset from the start of the buffer, if and only if the current int equals the expected int."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically exchanges the given int with the current int at the given byte offset from the start of the buffer, if and only if the current int equals the expected int."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":917}},{"id":"com.oracle.truffle.api.memory.ByteArraySupport#compareAndExchangeLong(byte[],long,long,long)","anchor":"compareAndExchangeLong(byte[],long,long,long)","kind":"method","name":"compareAndExchangeLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"buffer"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"expected"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"params":[{"name":"buffer","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte array to read from"}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte offset at which the long will be read and written to"}]}]},{"name":"expected","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected long value"}]}]},{"name":"x","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the replacement long value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous long at the given byte offset from the start of the buffer"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if and only if "},{"kind":"code","text":"byteOffset < 0 || byteOffset >= buffer.length - 7"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically exchanges the given long with the current long at the given byte offset from the start of the buffer, if and only if the current long equals the expected long."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically exchanges the given long with the current long at the given byte offset from the start of the buffer, if and only if the current long equals the expected long."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":932}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Utility methods to write to and read from arrays of bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Utility methods to write to and read from arrays of bytes. Singletons of this class are obtained from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#littleEndian()"},"code":true,"children":[{"kind":"text","text":"littleEndian()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#bigEndian()"},"code":true,"children":[{"kind":"text","text":"bigEndian()"}]},{"kind":"text","text":" respectively to access byte arrays in little-endian or big-endian order."}]},{"kind":"heading","level":2,"children":[{"kind":"text","text":"Thread safety"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The methods of this class are "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" safe for use by multiple concurrent threads, unless otherwise stated. If a byte array is to be used by more than one thread then access to the byte array should be controlled by appropriate synchronization."}]},{"kind":"heading","level":2,"children":[{"kind":"text","text":"Alignment"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unaligned accesses are allowed, but will not constant-fold during partial evaluation. If constant folding is desired, consider using the unaligned methods (e.g., "},{"kind":"link","target":{"id":"com.oracle.truffle.api.memory.ByteArraySupport#getIntUnaligned(byte[],int)"},"code":true,"children":[{"kind":"text","text":"getIntUnaligned"}]},{"kind":"text","text":") to read immutable data from unaligned offsets."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/memory/ByteArraySupport.java","line":63}}]},{"id":"com.oracle.truffle.api.nodes","name":"com.oracle.truffle.api.nodes","doc":{"summary":[{"kind":"text","text":"Abstract syntax tree "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"nodes"}]},{"kind":"text","text":" are the basic building block for your "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleLanguage"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Abstract syntax tree "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"nodes"}]},{"kind":"text","text":" are the basic building block for your "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.TruffleLanguage"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.nodes.BlockNode","name":"BlockNode","kind":"class","language":"java","modifiers":["public","abstract"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the type of the block element node"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BlockNode"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT","anchor":"NO_ARGUMENT","kind":"field","name":"NO_ARGUMENT","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"NO_ARGUMENT"}],"type":[{"kind":"keyword","text":"int"}],"constant":"0","doc":{"summary":[{"kind":"text","text":"Use when no argument is needed for the block node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Use when no argument is needed for the block node."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":95}},{"id":"com.oracle.truffle.api.nodes.BlockNode#<init>(T[])","anchor":"<init>(T[])","kind":"constructor","name":"BlockNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"BlockNode"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"param","text":"elements"},{"kind":"punct","text":")"}],"params":[{"name":"elements","type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]}],"doc":{"summary":[{"kind":"text","text":"Internal constructor for implementations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Internal constructor for implementations. Do not use."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":104}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeVoid(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeVoid","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeVoid"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom argument that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"doc":{"summary":[{"kind":"text","text":"Executes the block and returns no value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns no value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":120}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeGeneric","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"executeGeneric"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom value that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Executes the block and returns a generic value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns a generic value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block except the last element. The last element is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeGeneric(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":133}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeByte(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeByte(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeByte","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"executeByte"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom value that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block and returns a byte value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns a byte value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block except the last element. The last element is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeByte(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeByte(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":146}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeShort(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeShort(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeShort","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"executeShort"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom value that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block and returns a short value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns a short value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block except the last element. The last element is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeShort(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeShort(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":159}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeInt(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeInt(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"executeInt"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom value that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block and returns an int value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns an int value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block except the last element. The last element is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeInt(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeInt(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":172}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeChar(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeChar(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeChar","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"executeChar"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom value that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"returns":{"type":[{"kind":"keyword","text":"char"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block and returns a char value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns a char value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block except the last element. The last element is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeChar(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeChar(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":185}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeFloat(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeFloat(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeFloat","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"executeFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom value that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block and returns a float value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns a float value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block except the last element. The last element is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeFloat(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeFloat(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":198}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeDouble(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeDouble(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeDouble","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"executeDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom value that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block and returns a double value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns a double value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block except the last element. The last element is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeDouble(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeDouble(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":211}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeLong(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeLong(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"executeLong"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom value that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block and returns a long value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns a long value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block except the last element. The last element is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeLong(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeLong(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":224}},{"id":"com.oracle.truffle.api.nodes.BlockNode#executeBoolean(com.oracle.truffle.api.frame.VirtualFrame,int)","anchor":"executeBoolean(com.oracle.truffle.api.frame.VirtualFrame,int)","kind":"method","name":"executeBoolean","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to execute the block in."}]}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a custom value that is forwarded to the executor as is. If no argument is needed then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#NO_ARGUMENT"},"code":true,"children":[{"kind":"text","text":"BlockNode.NO_ARGUMENT"}]},{"kind":"text","text":" should be used."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block and returns a boolean value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block and returns a boolean value. The block implementation calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" for all elements of the block except the last element. The last element is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeBoolean(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"ElementExecutor.executeBoolean(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":237}},{"id":"com.oracle.truffle.api.nodes.BlockNode#getElements()","anchor":"getElements()","kind":"method","name":"getElements","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getElements"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Returns the elements of the block node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the elements of the block node. Elements of block nodes are provided using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#create(T[],com.oracle.truffle.api.nodes.BlockNode.ElementExecutor)"},"code":true,"children":[{"kind":"text","text":"create(Node[], ElementExecutor)"}]},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":245}},{"id":"com.oracle.truffle.api.nodes.BlockNode#create(T[],com.oracle.truffle.api.nodes.BlockNode.ElementExecutor)","anchor":"create(T[],com.oracle.truffle.api.nodes.BlockNode.ElementExecutor)","kind":"method","name":"create","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"type","text":"BlockNode","ref":"com.oracle.truffle.api.nodes.BlockNode"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"param","text":"elements"},{"kind":"punct","text":", "},{"kind":"type","text":"BlockNode.ElementExecutor","ref":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"executor"},{"kind":"punct","text":")"}],"params":[{"name":"elements","type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]},{"name":"executor","type":[{"kind":"type","text":"BlockNode.ElementExecutor","ref":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"BlockNode","ref":"com.oracle.truffle.api.nodes.BlockNode"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new block node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new block node. The elements array of the block node must not be empty or an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown. Elements of a block must at least extend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". An executor must be provided that allows the block node implementation to execute the block elements. The executor must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":257}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a standard node for guest language blocks."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a standard node for guest language blocks. Using standard blocks in a guest language is not strictly necessary, but recommended as it allows the optimizing runtime to split compilation of very big methods into multiple compilation units. Block nodes may be executed with a customizable argument to resume the execution at a particular location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Elements are executed using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor"},"code":true,"children":[{"kind":"text","text":"ElementExecutor"}]},{"kind":"text","text":" provided when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#create(T[],com.oracle.truffle.api.nodes.BlockNode.ElementExecutor)"},"code":true,"children":[{"kind":"text","text":"creating"}]},{"kind":"text","text":" the block node. When a block is executed then all elements are executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeVoid"}]},{"kind":"text","text":" except the last element which will be executed using the typed execute method also used to execute the block node. This allows to implement boxing elimination of the return value of blocks in the interpreter. For example, if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode#executeInt(com.oracle.truffle.api.frame.VirtualFrame,int)"},"code":true,"children":[{"kind":"text","text":"executeInt"}]},{"kind":"text","text":" is invoked on the block , then all elements except the last one is executed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeVoid"}]},{"kind":"text","text":", but the last one with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeInt(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeInt"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The optimizing runtime may decide to group elements of a block into multiple block compilation units. This may happen if the block is too big to be compiled with a single compilation unit. If the compilation final state of an element is changed, or a node is replaced only the compilation unit of the current block is invalidated and not all compilations units of a block. Therefore, no compilation final assumptions must be taken between elements of a block."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Simple Usage:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following example shows how a language with untyped execute methods, but with blocks that return values would use the block node."}]},{"kind":"code","language":"java","text":"// language base node\nabstract class LanguageNode extends Node {\n\n    public abstract Object execute(VirtualFrame frame);\n\n}\n\nfinal class LanguageBlockNode extends LanguageNode\n                implements ElementExecutor<LanguageNode> {\n\n    @Child private BlockNode<LanguageNode> block;\n\n    LanguageBlockNode(LanguageNode[] elements) {\n        this.block = BlockNode.create(elements, this);\n    }\n\n    @Override\n    public void executeVoid(VirtualFrame frame, LanguageNode node,\n                    int index, int arg) {\n        node.execute(frame);\n    }\n\n    @Override\n    public Object executeGeneric(VirtualFrame frame, LanguageNode node,\n                    int index, int arg) {\n        return node.execute(frame);\n    }\n\n    @Override\n    public Object execute(VirtualFrame frame) {\n        return block.executeGeneric(frame, 0);\n    }\n}"},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Resumable Usage:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following example shows how the block node can be used to implement resumable blocks, e.g. for generator implementations:"}]},{"kind":"code","language":"java","text":"final class YieldException extends ControlFlowException {\n\n    final Object result;\n\n    YieldException(Object result) {\n        this.result = result;\n    }\n\n}\n\nfinal class ResumableBlockNode extends LanguageNode\n                implements ElementExecutor<LanguageNode> {\n\n    @CompilationFinal private Integer indexSlot;\n    @Child private BlockNode<LanguageNode> block;\n\n    ResumableBlockNode(LanguageNode[] elements) {\n        this.block = BlockNode.create(elements, this);\n    }\n\n    @Override\n    public Object execute(VirtualFrame frame) {\n        frame.setAuxiliarySlot(getIndexSlot(), 0);\n        return block.executeGeneric(frame, 0);\n    }\n\n    // Called if the resumable block needs to be\n    // resumed later on after a yield.\n    public void resume(VirtualFrame frame) {\n        getIndexSlot();\n        int startIndex = frame.getInt(getIndexSlot());\n        block.executeGeneric(frame, startIndex);\n    }\n\n    @Override\n    public void executeVoid(VirtualFrame frame, LanguageNode node,\n                    int elementIndex, int startIndex) {\n        executeGeneric(frame, node, elementIndex, startIndex);\n    }\n\n    @Override\n    public Object executeGeneric(VirtualFrame frame, LanguageNode node,\n                    int elementIndex, int startIndex) {\n        if (elementIndex >= startIndex) {\n            try {\n                return node.execute(frame);\n            } catch (YieldException e) {\n                // store index to be able to resume later\n                frame.setInt(getIndexSlot(), elementIndex);\n                return e.result;\n            }\n        } else {\n            CompilerDirectives.transferToInterpreterAndInvalidate();\n            throw new AssertionError(\"Invalid start index\");\n        }\n    }\n\n    private int getIndexSlot() {\n        Integer slot = this.indexSlot;\n        if (slot == null) {\n            CompilerDirectives.transferToInterpreterAndInvalidate();\n            FrameDescriptor fd = getRootNode().getFrameDescriptor();\n            this.indexSlot = slot = fd.findOrAddAuxiliarySlot(this);\n        }\n        return slot;\n    }\n\n}"}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":88}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor","name":"BlockNode.ElementExecutor","kind":"interface","language":"java","modifiers":["public"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BlockNode.ElementExecutor"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}],"enclosing":"com.oracle.truffle.api.nodes.BlockNode","members":[{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeVoid","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeVoid"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Executes the block node element without expecting any return value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element without expecting any return value."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":279}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeGeneric","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"executeGeneric"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Executes the block node element and expects a generic value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element and expects a generic value. This method is used for the last element of the block, to provide a value to the block execute method. Forwards to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeVoid(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeVoid(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" by default."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":288}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeBoolean(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeBoolean(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeBoolean","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block node element and expects a boolean value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element and expects a boolean value. This method is used for the last element of the block, to provide a value to the block execute method. Forwards to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeGeneric(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" by default and throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is not a boolean."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":301}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeByte(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeByte(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeByte","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"executeByte"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block node element and expects a byte value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element and expects a byte value. This method is used for the last element of the block, to provide a value to the block execute method. Forwards to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeGeneric(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" by default and throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is not a byte."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":317}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeShort(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeShort(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeShort","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"executeShort"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"short"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block node element and expects a short value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element and expects a short value. This method is used for the last element of the block, to provide a value to the block execute method. Forwards to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeGeneric(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" by default and throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is not a short."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":333}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeChar(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeChar(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeChar","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"executeChar"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"char"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block node element and expects a char value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element and expects a char value. This method is used for the last element of the block, to provide a value to the block execute method. Forwards to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeGeneric(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" by default and throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is not a char."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":349}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeInt(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeInt(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeInt","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"executeInt"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block node element and expects an int value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element and expects an int value. This method is used for the last element of the block, to provide a value to the block execute method. Forwards to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeGeneric(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" by default and throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is not an int."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":365}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeLong(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeLong(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeLong","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"executeLong"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block node element and expects a long value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element and expects a long value. This method is used for the last element of the block, to provide a value to the block execute method. Forwards to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeGeneric(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" by default and throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is not a long."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":381}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeFloat(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeFloat(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeFloat","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"executeFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block node element and expects a float value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element and expects a float value. This method is used for the last element of the block, to provide a value to the block execute method. Forwards to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeGeneric(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" by default and throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is not a float."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":397}},{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeDouble(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","anchor":"executeDouble(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)","kind":"method","name":"executeDouble","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"executeDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"argument"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"node","type":[{"kind":"typeParam","text":"T"}]},{"name":"index","type":[{"kind":"keyword","text":"int"}]},{"name":"argument","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Executes the block node element and expects a double value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes the block node element and expects a double value. This method is used for the last element of the block, to provide a value to the block execute method. Forwards to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode$ElementExecutor#executeGeneric(com.oracle.truffle.api.frame.VirtualFrame,T,int,int)"},"code":true,"children":[{"kind":"text","text":"executeGeneric(VirtualFrame, Node, int, int)"}]},{"kind":"text","text":" by default and throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is not a double."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":413}}],"doc":{"summary":[{"kind":"text","text":"Represents a contract how block element nodes can be executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a contract how block element nodes can be executed. Designed for the block node only."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BlockNode"},"code":true,"children":[{"kind":"text","text":"BlockNode"}]}]]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/BlockNode.java","line":273}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode","name":"BytecodeOSRNode","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"BytecodeOSRNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}],"interfaces":[[{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}]],"members":[{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)","anchor":"executeOSR(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)","kind":"method","name":"executeOSR","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"executeOSR"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"osrFrame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"interpreterState"},{"kind":"punct","text":")"}],"params":[{"name":"osrFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to use for OSR."}]}]},{"name":"target","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the target location to execute from (e.g., bytecode index)."}]}]},{"name":"interpreterState","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"other interpreter state used to resume execution. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, int, Object, Runnable, VirtualFrame)"}]},{"kind":"text","text":" for more details."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of execution."}]}]},"doc":{"summary":[{"kind":"text","text":"Entrypoint to invoke this node through OSR."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Entrypoint to invoke this node through OSR. Implementers must override this method (or its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"long overload"}]},{"kind":"text","text":"). The implementation should execute bytecode starting from the given "},{"kind":"code","text":"target"},{"kind":"text","text":" location (e.g., bytecode index)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"osrFrame"},{"kind":"text","text":" may be the parent frame, but for performance reasons could also be a new frame. In case a new frame is created, the frame's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame#getArguments()"},"code":true,"children":[{"kind":"text","text":"arguments"}]},{"kind":"text","text":" will be provided by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#storeParentFrameInArguments(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"storeParentFrameInArguments"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Typically, a bytecode node's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutableNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"execute(VirtualFrame)"}]},{"kind":"text","text":" method already contains a dispatch loop. This loop can be extracted into a separate method which can also be used by this method. For example:"}]},{"kind":"code","text":"Object execute(VirtualFrame frame) {\n  return dispatchFromBCI(frame, 0);\n}\nObject executeOSR(VirtualFrame osrFrame, int target, Object interpreterState) {\n  return dispatchFromBCI(osrFrame, target);\n}\nObject dispatchFromBCI(VirtualFrame frame, int bci) {\n    // main dispatch loop\n    while(true) {\n        switch(instructions[bci]) {\n            ...\n        }\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeOSR(VirtualFrame, long, Object)"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":130}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)","anchor":"executeOSR(com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)","kind":"method","name":"executeOSR","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"executeOSR"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"osrFrame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"interpreterState"},{"kind":"punct","text":")"}],"params":[{"name":"osrFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"target","type":[{"kind":"keyword","text":"long"}]},{"name":"interpreterState","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeOSR(VirtualFrame, int, Object)"}]},{"kind":"text","text":" with a "},{"kind":"code","text":"long"},{"kind":"text","text":" target."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeOSR(VirtualFrame, int, Object)"}]},{"kind":"text","text":" with a "},{"kind":"code","text":"long"},{"kind":"text","text":" target. An interpreter that uses "},{"kind":"code","text":"long"},{"kind":"text","text":" targets must override this method."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,long,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, long, Object, Runnable, VirtualFrame)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":142}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#getOSRMetadata()","anchor":"getOSRMetadata()","kind":"method","name":"getOSRMetadata","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOSRMetadata"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the OSR metadata."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the OSR metadata for this instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the OSR metadata for this instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The metadata must be stored on a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"@CompilationFinal"}]},{"kind":"text","text":" instance field. Refer to the documentation for this interface for a more complete description."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":160}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#setOSRMetadata(java.lang.Object)","anchor":"setOSRMetadata(java.lang.Object)","kind":"method","name":"setOSRMetadata","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setOSRMetadata"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"osrMetadata"},{"kind":"punct","text":")"}],"params":[{"name":"osrMetadata","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the OSR metadata."}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the OSR metadata for this instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the OSR metadata for this instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The metadata must be stored on a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"@CompilationFinal"}]},{"kind":"text","text":" instance field. Refer to the documentation for this interface for a more complete description."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":172}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)","anchor":"copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)","kind":"method","name":"copyIntoOSRFrame","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyIntoOSRFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"osrFrame"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"parentFrame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"targetMetadata"},{"kind":"punct","text":")"}],"params":[{"name":"osrFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame to use for OSR."}]}]},{"name":"parentFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame used before performing OSR."}]}]},{"name":"target","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the target location OSR will execute from (e.g., bytecode index)."}]}]},{"name":"targetMetadata","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Additional metadata associated with this "},{"kind":"code","text":"target"},{"kind":"text","text":" for the default frame transfer behavior."}]}]}],"doc":{"summary":[{"kind":"text","text":"Copies the contents of the "},{"kind":"code","text":"parentFrame"},{"kind":"text","text":" into the "},{"kind":"code","text":"osrFrame"},{"kind":"text","text":" used to execute OSR."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies the contents of the "},{"kind":"code","text":"parentFrame"},{"kind":"text","text":" into the "},{"kind":"code","text":"osrFrame"},{"kind":"text","text":" used to execute OSR. By default, performs a slot-wise copy of the frame."}]},{"kind":"paragraph","children":[{"kind":"text","text":"NOTE: This method is only used if the Truffle runtime decides to copy the frame. OSR may also reuse the parent frame directly."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"copyIntoOSRFrame(VirtualFrame, VirtualFrame, long, Object)"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":190}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)","anchor":"copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)","kind":"method","name":"copyIntoOSRFrame","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyIntoOSRFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"osrFrame"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"parentFrame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"targetMetadata"},{"kind":"punct","text":")"}],"params":[{"name":"osrFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"parentFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"target","type":[{"kind":"keyword","text":"long"}]},{"name":"targetMetadata","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"copyIntoOSRFrame(VirtualFrame, VirtualFrame, int, Object)"}]},{"kind":"text","text":" with a "},{"kind":"code","text":"long"},{"kind":"text","text":" target."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"copyIntoOSRFrame(VirtualFrame, VirtualFrame, int, Object)"}]},{"kind":"text","text":" with a "},{"kind":"code","text":"long"},{"kind":"text","text":" target. An interpreter that uses "},{"kind":"code","text":"long"},{"kind":"text","text":" targets must override this method."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,long,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, long, Object, Runnable, VirtualFrame)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":201}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#transferOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)","anchor":"transferOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)","kind":"method","name":"transferOSRFrame","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"transferOSRFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"osrFrame"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"parentFrame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"targetMetadata"},{"kind":"punct","text":")"}],"params":[{"name":"osrFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"parentFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]},{"name":"target","type":[{"kind":"keyword","text":"long"}]},{"name":"targetMetadata","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Helper method that can be called by implementations of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"copyIntoOSRFrame(VirtualFrame, VirtualFrame, long, Object)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Helper method that can be called by implementations of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"copyIntoOSRFrame(VirtualFrame, VirtualFrame, long, Object)"}]},{"kind":"text","text":". Should not be overridden."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,long,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, long, Object, Runnable, VirtualFrame)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":217}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#restoreParentFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"restoreParentFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"restoreParentFrame","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"restoreParentFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"osrFrame"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"parentFrame"},{"kind":"punct","text":")"}],"params":[{"name":"osrFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame which was used for OSR."}]}]},{"name":"parentFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame which will be used by the parent after returning from OSR."}]}]}],"doc":{"summary":[{"kind":"text","text":"Restores the contents of the "},{"kind":"code","text":"osrFrame"},{"kind":"text","text":" back into the "},{"kind":"code","text":"parentFrame"},{"kind":"text","text":" after OSR."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Restores the contents of the "},{"kind":"code","text":"osrFrame"},{"kind":"text","text":" back into the "},{"kind":"code","text":"parentFrame"},{"kind":"text","text":" after OSR. By default, performs a slot-wise copy of the frame."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Though a bytecode interpreter might not explicitly use "},{"kind":"code","text":"parentFrame"},{"kind":"text","text":" after OSR, it is necessary to restore the state into "},{"kind":"code","text":"parentFrame"},{"kind":"text","text":" if it may be accessed through instrumentation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"NOTE: This method is only used if the Truffle runtime decided to copy the frame using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.copyIntoOSRFrame(VirtualFrame, VirtualFrame, int, Object)"}]},{"kind":"text","text":"."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":237}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#prepareOSR(int)","anchor":"prepareOSR(int)","kind":"method","name":"prepareOSR","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareOSR"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the target location OSR will execute from (e.g., bytecode index)."}]}]}],"doc":{"summary":[{"kind":"text","text":"Initialization hook which will be invoked before OSR compilation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Initialization hook which will be invoked before OSR compilation. This hook can be used to perform any necessary initialization before compilation happens."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example, consider a field which must be initialized in the interpreter:"}]},{"kind":"code","text":"@CompilationFinal Object field;\nObject getField() {\n    if (field == null) {\n        CompilerDirectives.transferToInterpreterAndInvalidate();\n        field = new Object();\n    }\n    return field;\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"If the field is accessed from compiled OSR code, it may trigger a deoptimization in order to initialize the field. Using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#prepareOSR(int)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.prepareOSR"}]},{"kind":"text","text":" to initialize the field can prevent this."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#prepareOSR(long)"},"code":true,"children":[{"kind":"text","text":"prepareOSR(long)"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":267}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#prepareOSR(long)","anchor":"prepareOSR(long)","kind":"method","name":"prepareOSR","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareOSR"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#prepareOSR(int)"},"code":true,"children":[{"kind":"text","text":"prepareOSR(int)"}]},{"kind":"text","text":" with a "},{"kind":"code","text":"long"},{"kind":"text","text":" target."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#prepareOSR(int)"},"code":true,"children":[{"kind":"text","text":"prepareOSR(int)"}]},{"kind":"text","text":" with a "},{"kind":"code","text":"long"},{"kind":"text","text":" target. An interpreter that uses "},{"kind":"code","text":"long"},{"kind":"text","text":" targets must override this method."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,long,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, long, Object, Runnable, VirtualFrame)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":279}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#pollOSRBackEdge(com.oracle.truffle.api.nodes.BytecodeOSRNode)","anchor":"pollOSRBackEdge(com.oracle.truffle.api.nodes.BytecodeOSRNode)","kind":"method","name":"pollOSRBackEdge","modifiers":["static"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.0\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"pollOSRBackEdge"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeOSRNode","ref":"com.oracle.truffle.api.nodes.BytecodeOSRNode"},{"kind":"punct","text":" "},{"kind":"param","text":"osrNode"},{"kind":"punct","text":")"}],"params":[{"name":"osrNode","type":[{"kind":"type","text":"BytecodeOSRNode","ref":"com.oracle.truffle.api.nodes.BytecodeOSRNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node to report a back-edge for."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to try OSR."}]}]},"doc":{"summary":[{"kind":"text","text":"Reports a back edge, returning whether to try performing OSR."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reports a back edge, returning whether to try performing OSR."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An interpreter must ensure this method returns "},{"kind":"code","text":"true"},{"kind":"text","text":" immediately before calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.tryOSR"}]},{"kind":"text","text":". For example:"}]},{"kind":"code","text":"if (BytecodeOSRNode.pollOSRBackEdge(this)) {\n  Object osrResult = BytecodeOSRNode.tryOSR(...);\n  ...\n}"}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#pollOSRBackEdge(com.oracle.truffle.api.nodes.BytecodeOSRNode,int)"},"code":true,"children":[{"kind":"text","text":"pollOSRBackEdge(BytecodeOSRNode, int)"}]},{"kind":"text","text":" instead. It is recommended to batch up polls in the interpreter implementation. Important note: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#pollOSRBackEdge(com.oracle.truffle.api.nodes.BytecodeOSRNode)"},"code":true,"children":[{"kind":"text","text":"pollOSRBackEdge(BytecodeOSRNode)"}]},{"kind":"text","text":" did implicitly "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"poll"}]},{"kind":"text","text":" Truffle safepoints. The new method is no longer doing that. Make sure your bytecode interpreter contains a call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleSafepoint#poll(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"TruffleSafepoint.poll(Node)"}]},{"kind":"text","text":" on loop back-edges when migrating."}]}],"since":"25.0"},"since":"21.3","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":311}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#pollOSRBackEdge(com.oracle.truffle.api.nodes.BytecodeOSRNode,int)","anchor":"pollOSRBackEdge(com.oracle.truffle.api.nodes.BytecodeOSRNode,int)","kind":"method","name":"pollOSRBackEdge","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"pollOSRBackEdge"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeOSRNode","ref":"com.oracle.truffle.api.nodes.BytecodeOSRNode"},{"kind":"punct","text":" "},{"kind":"param","text":"osrNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"loopCountIncrement"},{"kind":"punct","text":")"}],"params":[{"name":"osrNode","type":[{"kind":"type","text":"BytecodeOSRNode","ref":"com.oracle.truffle.api.nodes.BytecodeOSRNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node to report a back-edge for."}]}]},{"name":"loopCountIncrement","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number iterations incremented. Value must be > 0."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to try OSR."}]}]},"doc":{"summary":[{"kind":"text","text":"Reports a back edge, returning whether to try performing OSR."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reports a back edge, returning whether to try performing OSR."}]},{"kind":"paragraph","children":[{"kind":"text","text":"An interpreter must ensure this method returns "},{"kind":"code","text":"true"},{"kind":"text","text":" immediately before calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.tryOSR"}]},{"kind":"text","text":". For example:"}]},{"kind":"code","text":"if (BytecodeOSRNode.pollOSRBackEdge(this, 1)) {\n  Object osrResult = BytecodeOSRNode.tryOSR(...);\n  ...\n}"}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":339}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"tryOSR","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"tryOSR"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeOSRNode","ref":"com.oracle.truffle.api.nodes.BytecodeOSRNode"},{"kind":"punct","text":" "},{"kind":"param","text":"osrNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"interpreterState"},{"kind":"punct","text":", "},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"beforeTransfer"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"parentFrame"},{"kind":"punct","text":")"}],"params":[{"name":"osrNode","type":[{"kind":"type","text":"BytecodeOSRNode","ref":"com.oracle.truffle.api.nodes.BytecodeOSRNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node to try OSR for."}]}]},{"name":"target","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the target location OSR will execute from (e.g., bytecode index)."}]}]},{"name":"interpreterState","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"other interpreter state used to resume execution."}]}]},{"name":"beforeTransfer","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a callback invoked before OSR. Can be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},{"name":"parentFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"frame at the current point of execution."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result if OSR was performed, or "},{"kind":"code","text":"null"},{"kind":"text","text":" otherwise."}]}]},"doc":{"summary":[{"kind":"text","text":"Tries to perform OSR."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tries to perform OSR. This method must only be called immediately after a "},{"kind":"code","text":"true"},{"kind":"text","text":" result from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#pollOSRBackEdge(com.oracle.truffle.api.nodes.BytecodeOSRNode)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.pollOSRBackEdge"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Depending on the Truffle runtime, this method can trigger OSR compilation and then (typically in a subsequent call) transfer to OSR code. If OSR occurs, this method returns the result of OSR execution. The caller of this method can forward the result back to its caller rather than continuing execution from the "},{"kind":"code","text":"target"},{"kind":"text","text":". For example:"}]},{"kind":"code","text":"if (BytecodeOSRNode.pollOSRBackEdge(this)) {\n  Object osrResult = BytecodeOSRNode.tryOSR(...);\n  if (osrResult != null) return osrResult;\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The optional "},{"kind":"code","text":"interpreterState"},{"kind":"text","text":" parameter will be forwarded to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.executeOSR"}]},{"kind":"text","text":" when OSR is performed. It should consist of additional interpreter state (e.g., data pointers) needed to resume execution from "},{"kind":"code","text":"target"},{"kind":"text","text":". The state should be fixed (i.e., final) for the given "},{"kind":"code","text":"target"},{"kind":"text","text":". For example:"}]},{"kind":"code","text":"// class definition\nclass InterpreterState {\n    final int dataPtr;\n    InterpreterState(int dataPtr) { ... }\n}\n\n// call site\nObject osrResult = BytecodeOSRNode.tryOSR(this, target, new InterpreterState(dataPtr), ...);\n\n// executeOSR\nObject executeOSR(VirtualFrame osrFrame, int target, Object interpreterState) {\n    InterpreterState state = (InterpreterState) interpreterState;\n    return dispatchFromBCI(osrFrame, target, interpreterState.dataPtr);\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The optional "},{"kind":"code","text":"beforeTransfer"},{"kind":"text","text":" callback will be called before transferring control to the OSR target. Since this method may or may not perform a transfer, it is a way to ensure certain actions (e.g., instrumentation events) occur before transferring to OSR code. For example:"}]},{"kind":"code","text":"// call site\nObject osrResult = BytecodeNode.tryOSR(this, target, ..., () -> {\n   instrument.notify(current, target);\n});"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,long,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, long, Object, Runnable, VirtualFrame)"}]}]]},"since":"21.3","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":408}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,long,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)","anchor":"tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,long,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"tryOSR","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"tryOSR"},{"kind":"punct","text":"("},{"kind":"type","text":"BytecodeOSRNode","ref":"com.oracle.truffle.api.nodes.BytecodeOSRNode"},{"kind":"punct","text":" "},{"kind":"param","text":"osrNode"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"interpreterState"},{"kind":"punct","text":", "},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"beforeTransfer"},{"kind":"punct","text":", "},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"parentFrame"},{"kind":"punct","text":")"}],"params":[{"name":"osrNode","type":[{"kind":"type","text":"BytecodeOSRNode","ref":"com.oracle.truffle.api.nodes.BytecodeOSRNode"}]},{"name":"target","type":[{"kind":"keyword","text":"long"}]},{"name":"interpreterState","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"beforeTransfer","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]},{"name":"parentFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, int, Object, Runnable, VirtualFrame)"}]},{"kind":"text","text":" with a "},{"kind":"code","text":"long"},{"kind":"text","text":" target."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, int, Object, Runnable, VirtualFrame)"}]},{"kind":"text","text":" with a "},{"kind":"code","text":"long"},{"kind":"text","text":" target. An interpreter that uses "},{"kind":"code","text":"long"},{"kind":"text","text":" targets should call this method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If an interpreter uses a "},{"kind":"code","text":"long"},{"kind":"text","text":" representation, it "},{"kind":"strong","children":[{"kind":"text","text":"must"}]},{"kind":"text","text":" override the hooks that define "},{"kind":"code","text":"long"},{"kind":"text","text":" overloads, namely "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeOSR(VirtualFrame, long, Object)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"copyIntoOSRFrame(VirtualFrame, VirtualFrame, long, Object)"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#prepareOSR(long)"},"code":true,"children":[{"kind":"text","text":"prepareOSR(long)"}]},{"kind":"text","text":". Overriding is necessary because the default "},{"kind":"code","text":"long"},{"kind":"text","text":" overloads call their "},{"kind":"code","text":"int"},{"kind":"text","text":" overloads for backwards compatibility, and these calls will fail for "},{"kind":"code","text":"long"},{"kind":"text","text":"-sized targets."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, int, Object, Runnable, VirtualFrame)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeOSR(VirtualFrame, long, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"copyIntoOSRFrame(VirtualFrame, VirtualFrame, long, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#prepareOSR(long)"},"code":true,"children":[{"kind":"text","text":"prepareOSR(long)"}]}]]},"since":"24.2","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":431}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#storeParentFrameInArguments(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"storeParentFrameInArguments(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"storeParentFrameInArguments","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"storeParentFrameInArguments"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"parentFrame"},{"kind":"punct","text":")"}],"params":[{"name":"parentFrame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame object to be stored in the resulting arguments array"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"arguments array containing "},{"kind":"code","text":"parentFrame"}]}]},"doc":{"summary":[{"kind":"text","text":"Produce the arguments that will be used to perform the call to the new OSR root."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Produce the arguments that will be used to perform the call to the new OSR root. It will become the arguments array of the frame passed into "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeOSR"}]},{"kind":"text","text":" in case a new frame is generated for the call for performance reasons. The contents are up to language, Truffle only requires that a subsequent call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#restoreParentFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"restoreParentFrame"}]},{"kind":"text","text":" with the arguments array will return the same object as was passed into the "},{"kind":"code","text":"parentFrame"},{"kind":"text","text":" argument. By default, this method creates a new one-element array, which discards the original frame arguments. Override this method to be able to preserve a subset of the original frame arguments. It is permitted to modify arguments array of "},{"kind":"code","text":"parentFrame"},{"kind":"text","text":" and return it. This is called only in the interpreter, therefore the frame is not virtual and it is safe to store it into the arguments array."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":452}},{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#restoreParentFrameFromArguments(java.lang.Object[])","anchor":"restoreParentFrameFromArguments(java.lang.Object[])","kind":"method","name":"restoreParentFrameFromArguments","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"name","text":"restoreParentFrameFromArguments"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"frame arguments originally produced by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#storeParentFrameInArguments(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"storeParentFrameInArguments"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"stored parent frame"}]}]},"doc":{"summary":[{"kind":"text","text":"Return the parent frame that was stored in an arguments array by a previous call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#storeParentFrameInArguments(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"storeParentFrameInArguments"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return the parent frame that was stored in an arguments array by a previous call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#storeParentFrameInArguments(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"storeParentFrameInArguments"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":465}}],"doc":{"summary":[{"kind":"text","text":"Interface for Truffle bytecode nodes which can be on-stack replaced (OSR)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Interface for Truffle bytecode nodes which can be on-stack replaced (OSR)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"There are a few restrictions Bytecode OSR nodes must satisfy in order for OSR to work correctly:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"The node must extend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" or a subclass of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The node must provide storage for the OSR metadata maintained by the runtime using an instance field. The field must be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"@CompilationFinal"}]},{"kind":"text","text":", and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#getOSRMetadata()"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.getOSRMetadata"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#setOSRMetadata(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.setOSRMetadata"}]},{"kind":"text","text":" methods must proxy accesses to it."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The node should call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#pollOSRBackEdge(com.oracle.truffle.api.nodes.BytecodeOSRNode)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.pollOSRBackEdge"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.tryOSR"}]},{"kind":"text","text":" as described by their documentation."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The node should implement either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeOSR(VirtualFrame, int, Object)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#executeOSR(com.oracle.truffle.api.frame.VirtualFrame,long,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeOSR(VirtualFrame, long, Object)"}]},{"kind":"text","text":" (see note below)."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"For performance reasons, the parent frame may be copied into a new frame used for OSR. If this happens, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#copyIntoOSRFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame,int,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.copyIntoOSRFrame(VirtualFrame, VirtualFrame, int, Object)"}]},{"kind":"text","text":" is used to perform the copy, and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#restoreParentFrame(com.oracle.truffle.api.frame.VirtualFrame,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.restoreParentFrame"}]},{"kind":"text","text":" is used to copy the OSR frame contents back into the parent frame after OSR. A node may override these methods; by default, they perform slot-wise copies."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A node may also wish to override "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#prepareOSR(int)"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode.prepareOSR"}]},{"kind":"text","text":" to perform initialization. This method will be called before compilation, and can be useful to avoid deoptimizing inside compiled code."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Starting in 24.2, Bytecode OSR supports "},{"kind":"code","text":"long"},{"kind":"text","text":" values for "},{"kind":"code","text":"target"},{"kind":"text","text":" dispatch locations. An interpreter can use "},{"kind":"code","text":"long"},{"kind":"text","text":" targets by invoking "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,long,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, long, Object, Runnable, VirtualFrame)"}]},{"kind":"text","text":" (instead of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode#tryOSR(com.oracle.truffle.api.nodes.BytecodeOSRNode,int,java.lang.Object,java.lang.Runnable,com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"tryOSR(BytecodeOSRNode, int, Object, Runnable, VirtualFrame)"}]},{"kind":"text","text":"). Refer to the documentation for the "},{"kind":"code","text":"long"},{"kind":"text","text":" overload for more details."}]}]},"since":"21.3","source":{"path":"com/oracle/truffle/api/nodes/BytecodeOSRNode.java","line":87}},{"id":"com.oracle.truffle.api.nodes.ControlFlowException","name":"ControlFlowException","kind":"class","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ControlFlowException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"superclass":[{"kind":"type","text":"RuntimeException","ref":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"}],"ancestors":[{"id":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.ControlFlowException#<init>()","anchor":"<init>()","kind":"constructor","name":"ControlFlowException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"ControlFlowException"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Creates an exception thrown to model control flow."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an exception thrown to model control flow."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/ControlFlowException.java","line":58}},{"id":"com.oracle.truffle.api.nodes.ControlFlowException#fillInStackTrace()","anchor":"fillInStackTrace()","kind":"method","name":"fillInStackTrace","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"fillInStackTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},"overrides":{"id":"java.lang.Throwable#fillInStackTrace()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},"doc":{"summary":[{"kind":"text","text":"For performance reasons, this exception does not record any stack trace information."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"For performance reasons, this exception does not record any stack trace information."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/ControlFlowException.java","line":73}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown to model control flow in a Truffle interpreter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown to model control flow in a Truffle interpreter. The Truffle optimizer has special knowledge of this exception class for performance optimizations."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/ControlFlowException.java","line":49}},{"id":"com.oracle.truffle.api.nodes.DenyReplace","name":"DenyReplace","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"DenyReplace"}],"doc":{"summary":[{"kind":"text","text":"If a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" subtype is annotated with this annotation then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T)"},"code":true,"children":[{"kind":"text","text":"replacement"}]},{"kind":"text","text":" is denied."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" subtype is annotated with this annotation then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T)"},"code":true,"children":[{"kind":"text","text":"replacement"}]},{"kind":"text","text":" is denied. When replacement is denied an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" will be thrown on replace. Only final subtypes of type "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" may be annotated."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DenyReplace"},"code":true,"children":[{"kind":"text","text":"DenyReplace"}]},{"kind":"text","text":" is recommended for uncached or not adoptable nodes that should never be replaceable. Truffle DSL automatically applies this annotation to all uncached versions of specialized nodes and libraries."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/nodes/DenyReplace.java","line":59}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode","name":"DirectCallNode","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DirectCallNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.DirectCallNode#callTarget","anchor":"callTarget","kind":"field","name":"callTarget","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"callTarget"}],"type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":70}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#<init>(com.oracle.truffle.api.CallTarget)","anchor":"<init>(com.oracle.truffle.api.CallTarget)","kind":"constructor","name":"DirectCallNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"DirectCallNode"},{"kind":"punct","text":"("},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"callTarget"},{"kind":"punct","text":")"}],"params":[{"name":"callTarget","type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":73}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#call(java.lang.Object...)","anchor":"call(java.lang.Object...)","kind":"method","name":"call","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments that should be passed to the callee"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return result of the call"}]}]},"doc":{"summary":[{"kind":"text","text":"Calls the inner "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCurrentCallTarget()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Calls the inner "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCurrentCallTarget()"}]},{"kind":"text","text":"."}]}]},"since":"0.23","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":85}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#call(int,java.lang.Object[])","anchor":"call(int,java.lang.Object[])","kind":"method","name":"call","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index associated with this call, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if no explicit bytecode index is available"}]}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments that should be passed to the callee"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return result of the call"}]}]},"doc":{"summary":[{"kind":"text","text":"Calls the inner "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCurrentCallTarget()"}]},{"kind":"text","text":" with an explicit bytecode index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Calls the inner "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCurrentCallTarget()"}]},{"kind":"text","text":" with an explicit bytecode index."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This call node identifies the location of the call. Callers that do not have an explicit bytecode index should pass "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":100}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#call(java.lang.Class,int,java.lang.Object[])","anchor":"call(java.lang.Class,int,java.lang.Object[])","kind":"method","name":"call","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":"> "},{"kind":"param","text":"rootType"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"rootType","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected type of the current root node"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index associated with this call, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if no explicit bytecode index is available"}]}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments that should be passed to the callee"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return result of the call"}]}]},"doc":{"summary":[{"kind":"text","text":"Calls the current root node with an explicit root type, bytecode index, and arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Calls the current root node with an explicit root type, bytecode index, and arguments."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A concrete "},{"kind":"code","text":"rootType"},{"kind":"text","text":" allows the host compiler to optimize the call boundary further, including inlining into "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"RootNode.execute"}]},{"kind":"text","text":". Pass a compile-time-constant class literal assignable from the current root node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This call node identifies the location of the call. Callers that do not have an explicit bytecode index should pass "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":119}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCallTarget()","anchor":"getCallTarget()","kind":"method","name":"getCallTarget","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"getCallTarget"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" provided."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the originally supplied "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" when this call node was created."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the originally supplied "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" when this call node was created. Please note that the returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" is not necessarily the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" that is called. For that use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCurrentCallTarget()"}]},{"kind":"text","text":" instead."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":129}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#isInlinable()","anchor":"isInlinable()","kind":"method","name":"isInlinable","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInlinable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if inlining is supported."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the underlying runtime system supports inlining for the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" in this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the underlying runtime system supports inlining for the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" in this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":140}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#isInliningForced()","anchor":"isInliningForced()","kind":"method","name":"isInliningForced","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInliningForced"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if this method was inlined else false."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" is forced to be inlined."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" is forced to be inlined. A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":" can either be inlined manually by invoking "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#forceInlining()"},"code":true,"children":[{"kind":"text","text":"forceInlining()"}]},{"kind":"text","text":" or by the runtime system which may at any point decide to inline."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":150}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#forceInlining()","anchor":"forceInlining()","kind":"method","name":"forceInlining","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"forceInlining"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Enforces the runtime system to inline the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" at this call site."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enforces the runtime system to inline the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" at this call site. If the runtime system does not support inlining or it is already inlined this method has no effect. The runtime system may decide to not inline calls which were forced to inline."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":159}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#isCallTargetCloningAllowed()","anchor":"isCallTargetCloningAllowed()","kind":"method","name":"isCallTargetCloningAllowed","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCallTargetCloningAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the target is allowed to be cloned."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the runtime system supports cloning and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCloningAllowed()"},"code":true,"children":[{"kind":"text","text":"RootNode.isCloningAllowed()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the runtime system supports cloning and the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":" in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCloningAllowed()"},"code":true,"children":[{"kind":"text","text":"RootNode.isCloningAllowed()"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":168}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#cloneCallTarget()","anchor":"cloneCallTarget()","kind":"method","name":"cloneCallTarget","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"cloneCallTarget"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Clones the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" instance returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCallTarget()"}]},{"kind":"text","text":" in an uninitialized state for this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Clones the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" instance returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCallTarget()"}]},{"kind":"text","text":" in an uninitialized state for this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":". This can be sensible to gather call site sensitive profiling information for this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":". If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#isCallTargetCloningAllowed()"},"code":true,"children":[{"kind":"text","text":"isCallTargetCloningAllowed()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":" this method has no effect and returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":179}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#isCallTargetCloned()","anchor":"isCallTargetCloned()","kind":"method","name":"isCallTargetCloned","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCallTargetCloned"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the target was split"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the target of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":" was cloned by the runtime system or by the guest language implementation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the target of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":" was cloned by the runtime system or by the guest language implementation."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":188}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getClonedCallTarget()","anchor":"getClonedCallTarget()","kind":"method","name":"getClonedCallTarget","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"getClonedCallTarget"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the split "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the split "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" if this call site's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" is cloned."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the split "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" if this call site's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" is cloned."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":198}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentCallTarget()","anchor":"getCurrentCallTarget()","kind":"method","name":"getCurrentCallTarget","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"getCurrentCallTarget"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the used "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" when node is called"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the used call target when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"call(java.lang.Object[])"}]},{"kind":"text","text":" is invoked."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the used call target when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"call(java.lang.Object[])"}]},{"kind":"text","text":" is invoked. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" was split this method returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getClonedCallTarget()"},"code":true,"children":[{"kind":"text","text":"getClonedCallTarget()"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":208}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentRootNode()","anchor":"getCurrentRootNode()","kind":"method","name":"getCurrentRootNode","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getCurrentRootNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the root node of the used call target"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" associated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCurrentCallTarget()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" associated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCurrentCallTarget()"}]},{"kind":"text","text":". If the stored "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" does not contain a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" this method returns "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#getCurrentCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCurrentCallTarget()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":226}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.nodes.Node#toString()"},"doc":{"summary":[{"kind":"text","text":"Converts this node to a textual representation useful for debugging."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this node to a textual representation useful for debugging."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":235}},{"id":"com.oracle.truffle.api.nodes.DirectCallNode#create(com.oracle.truffle.api.CallTarget)","anchor":"create(com.oracle.truffle.api.CallTarget)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DirectCallNode","ref":"com.oracle.truffle.api.nodes.DirectCallNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}]}],"returns":{"type":[{"kind":"type","text":"DirectCallNode","ref":"com.oracle.truffle.api.nodes.DirectCallNode"}]},"doc":{"summary":[{"kind":"text","text":"Creates cached direct call node using bytecode index "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates cached direct call node using bytecode index "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":245}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a direct call to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a direct call to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":". Direct calls are calls for which the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" remains the same for each consecutive call. This part of the Truffle API enables the runtime system to perform additional optimizations on direct calls. Optimizations that can be applied to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":" are inlining and call site sensitive AST duplication. Inlining inlines this call site into the call graph of the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":". Call site sensitive AST duplication duplicates the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" in an uninitialized state to collect call site sensitive profiling information. Please note: This class is not intended to be subclassed by guest language implementations."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.IndirectCallNode"},"code":true,"children":[{"kind":"text","text":"for calls with a non-constant target"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#createDirectCallNode(com.oracle.truffle.api.CallTarget)"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.createDirectCallNode(CallTarget)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#forceInlining()"},"code":true,"children":[{"kind":"text","text":"forceInlining()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#cloneCallTarget()"},"code":true,"children":[{"kind":"text","text":"cloneCallTarget()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/DirectCallNode.java","line":67}},{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference","name":"EncapsulatingNodeReference","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"EncapsulatingNodeReference"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference#set(com.oracle.truffle.api.nodes.Node)","anchor":"set(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Sets the current encapsulating node for the current thread and returns its previous value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the current encapsulating node for the current thread and returns its previous value. The passed node may be "},{"kind":"code","text":"null"},{"kind":"text","text":". The set node must be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()"},"code":true,"children":[{"kind":"text","text":"adoptable"}]},{"kind":"text","text":" and be adopted by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" otherwise an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" is thrown. This method must only be used from the thread it was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference#getCurrent()"},"code":true,"children":[{"kind":"text","text":"requested"}]},{"kind":"text","text":" for. This method is safe to be called from compiled code paths."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/nodes/EncapsulatingNodeReference.java","line":133}},{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference#get()","anchor":"get()","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current encapsulating node for the current thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current encapsulating node for the current thread. Returned node may be "},{"kind":"code","text":"null"},{"kind":"text","text":". If the returned node is non-null then it is guaranteed to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()"},"code":true,"children":[{"kind":"text","text":"adoptable"}]},{"kind":"text","text":" and adopted by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":". This method must only be used from the thread it was "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference#getCurrent()"},"code":true,"children":[{"kind":"text","text":"requested"}]},{"kind":"text","text":" for. This method is safe to be called from compiled code paths."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/nodes/EncapsulatingNodeReference.java","line":151}},{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference#getCurrent()","anchor":"getCurrent()","kind":"method","name":"getCurrent","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"EncapsulatingNodeReference","ref":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference"},{"kind":"punct","text":" "},{"kind":"name","text":"getCurrent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"EncapsulatingNodeReference","ref":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference"}]},"doc":{"summary":[{"kind":"text","text":"Returns the encapsulating node reference of the "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"current"}]},{"kind":"text","text":" thread."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the encapsulating node reference of the "},{"kind":"link","target":{"id":"java.lang.Thread#currentThread()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html#currentThread()"},"code":true,"children":[{"kind":"text","text":"current"}]},{"kind":"text","text":" thread. The returned value is never "},{"kind":"code","text":"null"},{"kind":"text","text":". This method is safe to be called from compiled code paths."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/nodes/EncapsulatingNodeReference.java","line":163}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Thread local reference class to remember the current encapsulating node of an interpreter on the stack."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Thread local reference class to remember the current encapsulating node of an interpreter on the stack. The current encapsulating node is used whenever the code transitions from cached to uncached cases. This typically happens when the maximum limit for an inline cache was reached and the uncached version of a node will be used behind a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"TruffleBoundary"}]},{"kind":"text","text":". To correctly produce exception stack traces it is necessary to remember the node that transitioned to the uncached case. Uncached calls to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" will automatically use the value of the encapsulating node. Truffle DSL produces such transitions automatically if Truffle libraries are used and they transition to uncached."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example for pushing and restoring the current node to the stack."}]},{"kind":"code","text":"EncapsulatingNodeReference encapsulating = EncapsulatingNodeReference.getCurrent();\nNode encapsulatingNode = encapsulating.set(currentNode);\ntry {\n    // follow uncached path\n} finally {\n    encapsulating.set(encapsulatingNode);\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The current encapsulating node can also be useful when constructing guest exceptions in slow-paths and the location of the error needs to be found out reliably. Usage example:"}]},{"kind":"code","text":"final class LanguageException extends AbstractTruffleException {\n\n    private LanguageException(Node locationNode) {\n        super(locationNode);\n    }\n\n    static LanguageException create(Node locationNode) {\n        CompilerAsserts.partialEvaluationConstant(locationNode);\n        if (locationNode == null || !locationNode.isAdoptable()) {\n            return new LanguageException(EncapsulatingNodeReference.getCurrent().get());\n        } else {\n            return new LanguageException(locationNode);\n        }\n    }\n\n    // ...\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Note that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()"},"code":true,"children":[{"kind":"text","text":"Node.isAdoptable()"}]},{"kind":"text","text":" is a way to find out whether a node was used in an uncached scenario or not."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/nodes/EncapsulatingNodeReference.java","line":101}},{"id":"com.oracle.truffle.api.nodes.ExecutableNode","name":"ExecutableNode","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecutableNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.ExecutableNode#<init>(com.oracle.truffle.api.TruffleLanguage)","anchor":"<init>(com.oracle.truffle.api.TruffleLanguage)","kind":"constructor","name":"ExecutableNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecutableNode"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language this executable node is associated with"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates new executable node with a given language instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates new executable node with a given language instance. The language instance is obtainable while "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.InlineParsingRequest)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.parse(InlineParsingRequest)"}]},{"kind":"text","text":" is executed."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/nodes/ExecutableNode.java","line":76}},{"id":"com.oracle.truffle.api.nodes.ExecutableNode#execute(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"execute(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the actual frame valid at the parsed location"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of the execution, must be an interop type (i.e. either implementing TruffleObject or be a primitive value), or "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Execute this fragment at the place where it was parsed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Execute this fragment at the place where it was parsed."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/nodes/ExecutableNode.java","line":127}},{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguageInfo()","anchor":"getLanguageInfo()","kind":"method","name":"getLanguageInfo","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguageInfo"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LanguageInfo","ref":"com.oracle.truffle.api.nodes.LanguageInfo"}]},"doc":{"summary":[{"kind":"text","text":"Returns public information about the language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns public information about the language. The language can be assumed equal if the instances of the language info instance are the same. To access internal details of the language within the language implementation use a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference"},"code":true,"children":[{"kind":"text","text":"LanguageReference"}]},{"kind":"text","text":"."}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/nodes/ExecutableNode.java","line":136}},{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguage(java.lang.Class)","anchor":"getLanguage(java.lang.Class)","kind":"method","name":"getLanguage","modifiers":["public","final"],"typeParams":[{"name":"C","bounds":[[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"C"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguage"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":"> "},{"kind":"param","text":"languageClass"},{"kind":"punct","text":")"}],"params":[{"name":"languageClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"C"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"C"}]},"doc":{"summary":[{"kind":"text","text":"Returns the language instance associated with this executable node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the language instance associated with this executable node. The language instance is intended for internal use in languages and is only accessible if the concrete type of the language is known. Public information about the language can be accessed using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguageInfo()"},"code":true,"children":[{"kind":"text","text":"getLanguageInfo()"}]},{"kind":"text","text":". The language is "},{"kind":"code","text":"null"},{"kind":"text","text":" if the executable node is not associated with a language. This method is guaranteed to return a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#isPartialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"PE constant"}]},{"kind":"text","text":" if the root node is also a PE constant."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguageInfo()"},"code":true,"children":[{"kind":"text","text":"getLanguageInfo()"}]}]]},"since":"0.31","source":{"path":"com/oracle/truffle/api/nodes/ExecutableNode.java","line":157}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents an executable node in a Truffle AST."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an executable node in a Truffle AST. The executable node represents an AST fragment that can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutableNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"executed"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.VirtualFrame"},"code":true,"children":[{"kind":"text","text":"frame"}]},{"kind":"text","text":" instance created by the framework."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.InlineParsingRequest)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.parse(com.oracle.truffle.api.TruffleLanguage.InlineParsingRequest)"}]}]]},"since":"0.31","source":{"path":"com/oracle/truffle/api/nodes/ExecutableNode.java","line":62}},{"id":"com.oracle.truffle.api.nodes.ExecutionSignature","name":"ExecutionSignature","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ExecutionSignature"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.ExecutionSignature#GENERIC","anchor":"GENERIC","kind":"field","name":"GENERIC","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionSignature","ref":"com.oracle.truffle.api.nodes.ExecutionSignature"},{"kind":"punct","text":" "},{"kind":"name","text":"GENERIC"}],"type":[{"kind":"type","text":"ExecutionSignature","ref":"com.oracle.truffle.api.nodes.ExecutionSignature"}],"doc":{"summary":[{"kind":"text","text":"Returns a generic return profile where return and argument types are unknown."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a generic return profile where return and argument types are unknown."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/nodes/ExecutionSignature.java","line":57}},{"id":"com.oracle.truffle.api.nodes.ExecutionSignature#getArgumentTypes()","anchor":"getArgumentTypes()","kind":"method","name":"getArgumentTypes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[] "},{"kind":"name","text":"getArgumentTypes"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[]"}]},"doc":{"summary":[{"kind":"text","text":"Returns the argument types of the execution signature."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the argument types of the execution signature. The returned types may be "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate that nothing is known about argument types. If the argument returns a non-null value then the length of the array will be used for the number of expected arguments. Each value of the return array specifies the expected argument type of the execution. If an argument type is "},{"kind":"code","text":"null"},{"kind":"text","text":" then this indicates that the argument type is unknown."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/nodes/ExecutionSignature.java","line":77}},{"id":"com.oracle.truffle.api.nodes.ExecutionSignature#getReturnType()","anchor":"getReturnType()","kind":"method","name":"getReturnType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getReturnType"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Returns the return type of the execution signature."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the return type of the execution signature. The return type may be "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate that the type is unknown."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/nodes/ExecutionSignature.java","line":87}},{"id":"com.oracle.truffle.api.nodes.ExecutionSignature#create(java.lang.Class,java.lang.Class[])","anchor":"create(java.lang.Class,java.lang.Class[])","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionSignature","ref":"com.oracle.truffle.api.nodes.ExecutionSignature"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"returnType"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[] "},{"kind":"param","text":"argumentTypes"},{"kind":"punct","text":")"}],"params":[{"name":"returnType","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},{"name":"argumentTypes","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>[]"}]}],"returns":{"type":[{"kind":"type","text":"ExecutionSignature","ref":"com.oracle.truffle.api.nodes.ExecutionSignature"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new execution signature of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new execution signature of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":". The return type or the argument types may be null to indicate that they are unknown. Individual argument type array values may also be null to indicate they are unknown."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/nodes/ExecutionSignature.java","line":98}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents an execution signature of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an execution signature of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":". This is used to represent AOT signatures."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForAOT()"},"code":true,"children":[{"kind":"text","text":"RootNode.prepareForAOT()"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/nodes/ExecutionSignature.java","line":50}},{"id":"com.oracle.truffle.api.nodes.ExplodeLoop","name":"ExplodeLoop","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{METHOD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ExplodeLoop"}],"members":[{"id":"com.oracle.truffle.api.nodes.ExplodeLoop#kind()","anchor":"kind()","kind":"annotationElement","name":"kind","signature":[{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"},{"kind":"punct","text":" "},{"kind":"name","text":"kind"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"FULL_UNROLL_UNTIL_RETURN"}],"returns":{"type":[{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"}]},"defaultValue":"FULL_UNROLL_UNTIL_RETURN","doc":{"summary":[{"kind":"text","text":"The loop explosion kind."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The loop explosion kind."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/nodes/ExplodeLoop.java","line":179}}],"doc":{"summary":[{"kind":"text","text":"Specifies that loops originating from within this method should be fully unrolled."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies that loops originating from within this method should be fully unrolled. This is only compatible with loops that have a partial-evaluation-constant number of iterations - loops without a constant number of iterations will cause the compiler to bailout due to the graph exceeding maximum size. The annotation does not apply to loops from within other methods that are inlined into this method."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/ExplodeLoop.java","line":57}},{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind","name":"ExplodeLoop.LoopExplosionKind","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"ExplodeLoop.LoopExplosionKind"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.nodes.ExplodeLoop","members":[{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_UNROLL","anchor":"FULL_UNROLL","kind":"enumConstant","name":"FULL_UNROLL","signature":[{"kind":"name","text":"FULL_UNROLL"}],"type":[{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"}],"doc":{"summary":[{"kind":"text","text":"Fully unroll all loops."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Fully unroll all loops. The loops must have a known finite number of iterations. If a loop has multiple loop ends, they are merged so that the subsequent loop iteration is processed only once. For example, a loop with 4 iterations and 2 loop ends leads to 1+1+1+1 = 4 copies of the loop body."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/nodes/ExplodeLoop.java","line":131}},{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_UNROLL_UNTIL_RETURN","anchor":"FULL_UNROLL_UNTIL_RETURN","kind":"enumConstant","name":"FULL_UNROLL_UNTIL_RETURN","signature":[{"kind":"name","text":"FULL_UNROLL_UNTIL_RETURN"}],"type":[{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_UNROLL"},"code":true,"children":[{"kind":"text","text":"FULL_UNROLL"}]},{"kind":"text","text":", but in addition loop unrolling duplicates loop exits in every iteration instead of merging them."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_UNROLL"},"code":true,"children":[{"kind":"text","text":"FULL_UNROLL"}]},{"kind":"text","text":", but in addition loop unrolling duplicates loop exits in every iteration instead of merging them. Code after a loop exit is duplicated for every loop exit and every loop iteration. For example, a loop with 4 iterations and 2 loop exits (exit1 and exit2, where exit1 is an early return inside a loop, such as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"},"code":true,"children":[{"kind":"text","text":"untilReturnLoop()"}]},{"kind":"text","text":") leads to 4 copies of the loop body and 4 copies of exit1 and 1 copy of exit2. After each exit all code until a return is duplicated per iteration. Beware of break statements inside loops since they cause additional loop exits leading to code duplication along exit2."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/nodes/ExplodeLoop.java","line":144}},{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_EXPLODE","anchor":"FULL_EXPLODE","kind":"enumConstant","name":"FULL_EXPLODE","signature":[{"kind":"name","text":"FULL_EXPLODE"}],"type":[{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"}],"doc":{"summary":[{"kind":"text","text":"Fully explode all loops."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Fully explode all loops. The loops must have a known finite number of iterations. If a loop has multiple loop ends, they are not merged so that subsequent loop iterations are processed multiple times. For example, a loop with 4 iterations and 2 loop ends leads to 1+2+4+8 = 15 copies of the loop body."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/nodes/ExplodeLoop.java","line":153}},{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_EXPLODE_UNTIL_RETURN","anchor":"FULL_EXPLODE_UNTIL_RETURN","kind":"enumConstant","name":"FULL_EXPLODE_UNTIL_RETURN","signature":[{"kind":"name","text":"FULL_EXPLODE_UNTIL_RETURN"}],"type":[{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_EXPLODE"},"code":true,"children":[{"kind":"text","text":"FULL_EXPLODE"}]},{"kind":"text","text":", but in addition explosion does not stop at loop exits."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_EXPLODE"},"code":true,"children":[{"kind":"text","text":"FULL_EXPLODE"}]},{"kind":"text","text":", but in addition explosion does not stop at loop exits. Code after the loop is duplicated for every loop exit of every loop iteration. For example, a loop with 4 iterations and 2 loop exits leads to 4 * 2 = 8 copies of the code after the loop."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/nodes/ExplodeLoop.java","line":162}},{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#MERGE_EXPLODE","anchor":"MERGE_EXPLODE","kind":"enumConstant","name":"MERGE_EXPLODE","signature":[{"kind":"name","text":"MERGE_EXPLODE"}],"type":[{"kind":"type","text":"ExplodeLoop.LoopExplosionKind","ref":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind"}],"doc":{"summary":[{"kind":"text","text":"like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_EXPLODE"},"code":true,"children":[{"kind":"text","text":"FULL_EXPLODE"}]},{"kind":"text","text":", but copies of the loop body that have the exact same state (all local variables have the same value) are merged."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop$LoopExplosionKind#FULL_EXPLODE"},"code":true,"children":[{"kind":"text","text":"FULL_EXPLODE"}]},{"kind":"text","text":", but copies of the loop body that have the exact same state (all local variables have the same value) are merged. This reduces the number of copies necessary, but can introduce loops again. This kind is useful for bytecode interpreter loops."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/nodes/ExplodeLoop.java","line":171}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Controls the behavior of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop"},"code":true,"children":[{"kind":"text","text":"ExplodeLoop"}]},{"kind":"text","text":" annotation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Controls the behavior of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExplodeLoop"},"code":true,"children":[{"kind":"text","text":"ExplodeLoop"}]},{"kind":"text","text":" annotation."}]},{"kind":"heading","level":2,"children":[{"kind":"text","text":"Terminology"}]},{"kind":"paragraph","children":[{"kind":"text","text":"In the explanations below, the term "},{"kind":"emphasis","children":[{"kind":"text","text":"loop end"}]},{"kind":"text","text":" refers to control flow reaching the end of the loop body such as "},{"kind":"code","text":"continue"},{"kind":"text","text":" or a statement at the end of the loop body. The term "},{"kind":"emphasis","children":[{"kind":"text","text":"loop exit"}]},{"kind":"text","text":" refers to control flow exiting the loop, such as "},{"kind":"code","text":"return"},{"kind":"text","text":" or "},{"kind":"code","text":"break"},{"kind":"text","text":". Example:"}]},{"kind":"code","language":"java","text":"int loopEndExits() {\n    int state = -1;\n    for (int i = 0; i < 4; i++) {\n        if (condition(i)) {\n            continue; // loop end\n        } else if (condition1(i)) {\n            // loop exit (break)\n            state = 2;\n            break;\n        } else if (condition2(i)) {\n            // loop exit (return)\n            state = 3;\n            return state;\n        } else {\n            state = i;\n            // loop end\n        }\n    }\n    // loop exit (after last iteration)\n    return state;\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"There are 4 loop explosion kinds (plus "},{"kind":"code","text":"MERGE_EXPLODE"},{"kind":"text","text":", which is meant for bytecode interpreters), configurable by 2 parameters: UNROLL vs EXPLODE and UNTIL_RETURN vs not."}]},{"kind":"heading","level":2,"children":[{"kind":"text","text":"UNROLL vs EXPLODE"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The first parameter specifies whether the partial evaluator should duplicate loop ends. UNROLL merges after each loop end and EXPLODE keeps exploding nested iterations like a tree."}]},{"kind":"code","language":"java","text":"@ExplodeLoop\nvoid unrollVsExplodeLoop() {\n    int state = 1;\n    for (int i = 0; i < 2; i++) {\n        if (c(i, state)) {\n            state = 2;\n        } else {\n            state = 3;\n        }\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"gets unrolled with "},{"kind":"code","text":"FULL_UNROLL"},{"kind":"text","text":" to:"}]},{"kind":"code","language":"java","text":"void unrollVsExplodeLoopUnrolled() {\n    int state = 1;\n    if (c(0, 1)) {\n        state = 2;\n    } else {\n        state = 3;\n    }\n\n    if (c(1, state)) {\n        state = 2;\n    } else {\n        state = 3;\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"and exploded with "},{"kind":"code","text":"FULL_EXPLODE"},{"kind":"text","text":" to:"}]},{"kind":"code","language":"java","text":"void unrollVsExplodeLoopExploded() {\n    int state = 1;\n    if (c(0, 1)) {\n        if (c(1, 2)) {\n            state = 2;\n        } else {\n            state = 3;\n        }\n    } else {\n        if (c(1, 3)) {\n            state = 2;\n        } else {\n            state = 3;\n        }\n    }\n}"},{"kind":"heading","level":2,"children":[{"kind":"text","text":"UNTIL_RETURN"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The second parameter specifies whether the partial evaluator should duplicate loop exits. UNTIL_RETURN duplicates them, otherwise control flow is merged."}]},{"kind":"code","language":"java","text":"@ExplodeLoop\nint untilReturnLoop() {\n    for (int i = 0; i < 2; i++) {\n        if (condition(i)) {\n            // exit1\n            return f(i);\n        }\n    }\n    // exit2\n    return fallback();\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"is expanded with "},{"kind":"code","text":"FULL_UNROLL_UNTIL_RETURN"},{"kind":"text","text":" to:"}]},{"kind":"code","language":"java","text":"int untilReturn() {\n    if (condition(0)) {\n        return f(0);\n    }\n\n    if (condition(1)) {\n        return f(1);\n    }\n\n    return fallback();\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"while "},{"kind":"code","text":"FULL_UNROLL"},{"kind":"text","text":" merges loop exits:"}]},{"kind":"code","language":"java","text":"int notUntilReturn() {\n    int i;\n    for (;;) {\n        if (condition(0)) {\n            i = 0;\n            break;\n        }\n\n        if (condition(1)) {\n            i = 1;\n            break;\n        }\n\n        return fallback();\n    }\n\n    return f(i);\n}"},{"kind":"heading","level":3,"children":[{"kind":"text","text":"break"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that "},{"kind":"code","text":"break"},{"kind":"text","text":" statements inside the loop will duplicate code after the loop since they add new loop exits:"}]},{"kind":"code","language":"java","text":"@ExplodeLoop\nint breaksLoop() {\n    int state = -1;\n\n    for (int i = 0; i < 2; i++) {\n        if (condition1(i)) {\n            return f(i);\n        } else if (condition2(i)) {\n            state = i;\n            break;\n        }\n    }\n\n    return fallback(state);\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"is expanded with "},{"kind":"code","text":"FULL_UNROLL_UNTIL_RETURN"},{"kind":"text","text":" to:"}]},{"kind":"code","language":"java","text":"int breaksLoopUnrollUntilReturn() {\n    if (condition1(0)) {\n        return f(0);\n    } else if (condition2(0)) {\n        return fallback(0);\n    }\n\n    if (condition1(1)) {\n        return f(1);\n    } else if (condition2(1)) {\n        return fallback(1);\n    }\n\n    return fallback(-1);\n}"}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/nodes/ExplodeLoop.java","line":122}},{"id":"com.oracle.truffle.api.nodes.IndirectCallNode","name":"IndirectCallNode","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"IndirectCallNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.IndirectCallNode#<init>()","anchor":"<init>()","kind":"constructor","name":"IndirectCallNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"IndirectCallNode"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor for implementation subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for implementation subclasses."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/IndirectCallNode.java","line":64}},{"id":"com.oracle.truffle.api.nodes.IndirectCallNode#call(com.oracle.truffle.api.CallTarget,java.lang.Object...)","anchor":"call(com.oracle.truffle.api.CallTarget,java.lang.Object...)","kind":"method","name":"call","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"... "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" to call"}]}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments to provide"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return value of the call"}]}]},"doc":{"summary":[{"kind":"text","text":"Performs an indirect call to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" target with the provided arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Performs an indirect call to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" target with the provided arguments."}]}]},"since":"0.23","source":{"path":"com/oracle/truffle/api/nodes/IndirectCallNode.java","line":76}},{"id":"com.oracle.truffle.api.nodes.IndirectCallNode#call(com.oracle.truffle.api.CallTarget,int,java.lang.Object[])","anchor":"call(com.oracle.truffle.api.CallTarget,int,java.lang.Object[])","kind":"method","name":"call","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"CallTarget","ref":"com.oracle.truffle.api.CallTarget"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" to call"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index associated with this call, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if no explicit bytecode index is available"}]}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments to provide"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return value of the call"}]}]},"doc":{"summary":[{"kind":"text","text":"Performs an indirect call to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" target with an explicit bytecode index and the provided arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Performs an indirect call to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" target with an explicit bytecode index and the provided arguments."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Callers that do not have an explicit bytecode index should pass "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/nodes/IndirectCallNode.java","line":91}},{"id":"com.oracle.truffle.api.nodes.IndirectCallNode#call(com.oracle.truffle.api.nodes.RootNode,int,java.lang.Object[])","anchor":"call(com.oracle.truffle.api.nodes.RootNode,int,java.lang.Object[])","kind":"method","name":"call","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"root","type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the root node to call"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index associated with this call, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if no explicit bytecode index is available"}]}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments to provide"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return value of the call"}]}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"root"},{"kind":"text","text":" is "},{"kind":"code","text":"null"}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the root node's call target has not been initialized"}]}]}],"doc":{"summary":[{"kind":"text","text":"Calls the given root node with an explicit bytecode index and arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Calls the given root node with an explicit bytecode index and arguments."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A concrete root-node type allows the host compiler to optimize the call boundary further, including inlining into "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"RootNode.execute"}]},{"kind":"text","text":". Cast "},{"kind":"code","text":"root"},{"kind":"text","text":" to its concrete type before calling this method, even if the root instance changes between calls."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This call node identifies the location of the call. Callers that do not have an explicit bytecode index should pass "},{"kind":"code","text":"-1"},{"kind":"text","text":". The root node's call target must already be initialized using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#initializeCallTarget()"},"code":true,"children":[{"kind":"text","text":"RootNode.initializeCallTarget()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"RootNode.getCallTarget()"}]},{"kind":"text","text":"."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/nodes/IndirectCallNode.java","line":113}},{"id":"com.oracle.truffle.api.nodes.IndirectCallNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"IndirectCallNode","ref":"com.oracle.truffle.api.nodes.IndirectCallNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"IndirectCallNode","ref":"com.oracle.truffle.api.nodes.IndirectCallNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new call node"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a cached indirect call node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a cached indirect call node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/IndirectCallNode.java","line":123}},{"id":"com.oracle.truffle.api.nodes.IndirectCallNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"IndirectCallNode","ref":"com.oracle.truffle.api.nodes.IndirectCallNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"IndirectCallNode","ref":"com.oracle.truffle.api.nodes.IndirectCallNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns an uncached version of an indirect call node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an uncached version of an indirect call node. Uncached versions of an indirect call node use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.EncapsulatingNodeReference#get()"},"code":true,"children":[{"kind":"text","text":"current encapsulating node"}]},{"kind":"text","text":" as source location."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/nodes/IndirectCallNode.java","line":171}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents an indirect call to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an indirect call to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":". Indirect calls are calls for which the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" may change dynamically for each consecutive call. This part of the Truffle API enables the runtime system to perform additional optimizations on indirect calls."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Please note: This class is not intended to be sub classed by guest language implementations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":" for faster calls with a constantly known "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/IndirectCallNode.java","line":57}},{"id":"com.oracle.truffle.api.nodes.InvalidAssumptionException","name":"InvalidAssumptionException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InvalidAssumptionException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"SlowPathException","ref":"com.oracle.truffle.api.nodes.SlowPathException"}],"superclass":[{"kind":"type","text":"SlowPathException","ref":"com.oracle.truffle.api.nodes.SlowPathException"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.SlowPathException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.InvalidAssumptionException#<init>()","anchor":"<init>()","kind":"constructor","name":"InvalidAssumptionException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"InvalidAssumptionException"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Default constructor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Default constructor."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/InvalidAssumptionException.java","line":59}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.SlowPathException","text":"SlowPathException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.SlowPathException#fillInStackTrace()","text":"fillInStackTrace"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception that should be thrown if an assumption is checked and the check fails."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception that should be thrown if an assumption is checked and the check fails. The Truffle optimizer has special knowledge of this exception class and will never compile a catch block that catches this exception type."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/InvalidAssumptionException.java","line":50}},{"id":"com.oracle.truffle.api.nodes.LanguageInfo","name":"LanguageInfo","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LanguageInfo"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getId()","anchor":"getId()","kind":"method","name":"getId","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getId"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the unique id of the language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the unique id of the language. This id is equivalent to the id returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#id()"},"code":true,"children":[{"kind":"text","text":"Registration.id()"}]},{"kind":"text","text":"."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/nodes/LanguageInfo.java","line":81}},{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the unique name of the language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the unique name of the language. This name is equivalent to the name returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#name()"},"code":true,"children":[{"kind":"text","text":"Registration.name()"}]},{"kind":"text","text":"."}]}]},"since":"0.25","source":{"path":"com/oracle/truffle/api/nodes/LanguageInfo.java","line":91}},{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getVersion()","anchor":"getVersion()","kind":"method","name":"getVersion","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getVersion"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the version of the language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the version of the language. This version is equivalent to the name returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#version()"},"code":true,"children":[{"kind":"text","text":"Registration.version()"}]},{"kind":"text","text":"."}]}]},"since":"0.25","source":{"path":"com/oracle/truffle/api/nodes/LanguageInfo.java","line":101}},{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getDefaultMimeType()","anchor":"getDefaultMimeType()","kind":"method","name":"getDefaultMimeType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getDefaultMimeType"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the default MIME type of a language or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no default mime-type is set."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the default MIME type of a language or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no default mime-type is set. The default MIME type specifies whether a source is loaded as character or binary based source by default. If no default MIME type is set all sources evaluated with that language will be interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"character based"}]},{"kind":"text","text":" sources. This set is equivalent to the set provided by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#defaultMimeType()"},"code":true,"children":[{"kind":"text","text":"Registration.defaultMimeType()"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/nodes/LanguageInfo.java","line":114}},{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getMimeTypes()","anchor":"getMimeTypes()","kind":"method","name":"getMimeTypes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getMimeTypes"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the MIME types supported by this language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the MIME types supported by this language. This set is equivalent to the set provided by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#characterMimeTypes()"},"code":true,"children":[{"kind":"text","text":"Registration.characterMimeTypes()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#byteMimeTypes()"},"code":true,"children":[{"kind":"text","text":"Registration.byteMimeTypes()"}]},{"kind":"text","text":"."}]}]},"since":"0.25","source":{"path":"com/oracle/truffle/api/nodes/LanguageInfo.java","line":124}},{"id":"com.oracle.truffle.api.nodes.LanguageInfo#isInternal()","anchor":"isInternal()","kind":"method","name":"isInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInternal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the language is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#internal()"},"code":true,"children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":", "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise"}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/nodes/LanguageInfo.java","line":133}},{"id":"com.oracle.truffle.api.nodes.LanguageInfo#isInteractive()","anchor":"isInteractive()","kind":"method","name":"isInteractive","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInteractive"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the language is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#interactive()"},"code":true,"children":[{"kind":"text","text":"interactive"}]},{"kind":"text","text":", "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise"}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/nodes/LanguageInfo.java","line":142}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents public information about a language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents public information about a language."}]}]},"since":"0.25","source":{"path":"com/oracle/truffle/api/nodes/LanguageInfo.java","line":53}},{"id":"com.oracle.truffle.api.nodes.LoopNode","name":"LoopNode","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LoopNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.LoopNode#<init>()","anchor":"<init>()","kind":"constructor","name":"LoopNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"LoopNode"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor for subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for subclasses."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/LoopNode.java","line":135}},{"id":"com.oracle.truffle.api.nodes.LoopNode#execute(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"execute(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"execute","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current execution frame or null if the repeating node does not require a frame"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a value "},{"kind":"code","text":"v"},{"kind":"text","text":" returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeating(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"execute"}]},{"kind":"text","text":" satisfying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#shouldContinue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"shouldContinue(v)"}]},{"kind":"code","text":" == false"},{"kind":"text","text":", which can be used in a language-specific way (for example, to encode structured jumps)"}]}]},"doc":{"summary":[{"kind":"text","text":"Invokes one loop invocation by repeatedly calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeating(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"execute)"}]},{"kind":"text","text":" on the repeating node the loop was initialized with."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invokes one loop invocation by repeatedly calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeating(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"execute)"}]},{"kind":"text","text":" on the repeating node the loop was initialized with. Any exceptions that occur in the execution of the repeating node will just be forwarded to this method and will cancel the current loop invocation."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/LoopNode.java","line":152}},{"id":"com.oracle.truffle.api.nodes.LoopNode#getRepeatingNode()","anchor":"getRepeatingNode()","kind":"method","name":"getRepeatingNode","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"RepeatingNode","ref":"com.oracle.truffle.api.nodes.RepeatingNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getRepeatingNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RepeatingNode","ref":"com.oracle.truffle.api.nodes.RepeatingNode"}]},"doc":{"summary":[{"kind":"text","text":"Returns the repeating node the loop node was created with."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the repeating node the loop node was created with."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/LoopNode.java","line":161}},{"id":"com.oracle.truffle.api.nodes.LoopNode#reportLoopCount(com.oracle.truffle.api.nodes.Node,int)","anchor":"reportLoopCount(com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"reportLoopCount","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reportLoopCount"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"iterations"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Node which invoked the loop."}]}]},{"name":"iterations","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number iterations to report to the runtime system, must be >= 0"}]}]}],"doc":{"summary":[{"kind":"text","text":"Reports the execution count of a loop for which no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"LoopNode"}]},{"kind":"text","text":" was used."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reports the execution count of a loop for which no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"LoopNode"}]},{"kind":"text","text":" was used. The optimization heuristics can use the loop count from non Truffle loops to guide compilation and inlining better. Do not use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"LoopNode"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode#reportLoopCount(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"reportLoopCount(Node, int)"}]},{"kind":"text","text":" at the same time for one loop. If the number of iterations needs to be counted and can overflow, only count if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#hasNextTier()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.hasNextTier()"}]},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":" (reporting will have no effect in the last tier) and consider reporting "},{"kind":"link","target":{"id":"java.lang.Integer#MAX_VALUE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html#MAX_VALUE"},"code":true,"children":[{"kind":"text","text":"Integer.MAX_VALUE"}]},{"kind":"text","text":" in case of overflows. If the number is often zero and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode#reportLoopCount(com.oracle.truffle.api.nodes.Node,int)"},"code":true,"children":[{"kind":"text","text":"reportLoopCount(Node, int)"}]},{"kind":"text","text":" is called frequently (e.g. in a loop), consider adding a check to avoid the overhead of redundant calls with an "},{"kind":"code","text":"iterations"},{"kind":"text","text":" argument of zero in the interpreter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage for a custom loop iterating over an array: "},{"kind":"code","text":"\n"},{"kind":"code","text":"\npublic int executeCustomLoopSum(int[] data) {\n    int sum = 0;\n    for (int i = 0; i "},{"kind":"code","text":"<"},{"kind":"code","text":" data.length; i++) {\n        sum += data[i];\n    }\n    LoopNode.reportLoopCount(this, data.length);\n    return sum;\n}\n"},{"kind":"code","text":"\n"},{"kind":"text","text":" Example usage for a custom loop with an unknown number of iterations and a potential "},{"kind":"code","text":"int"},{"kind":"text","text":" overflow: "},{"kind":"code","text":"\n"},{"kind":"code","text":"\npublic Object executeCustomLoopWithUnknownIterations(int[] data) {\n    Object result;\n    int counter = 0;\n    while(true) {\n        if (isResultAvailable()) {\n            result = getResult();\n            break;\n        }\n        // do some work to calculate result\n        if (CompilerDirectives.hasNextTier()) {\n            counter++;\n        }\n    }\n    if (counter != 0) {\n        LoopNode.reportLoopCount(this, counter > 0 ? counter : Integer.MAX_VALUE);\n    }\n    return result;\n}\n"},{"kind":"code","text":"\n"}]}]},"since":"0.12","source":{"path":"com/oracle/truffle/api/nodes/LoopNode.java","line":218}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A loop node calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeating(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"repeating nodes"}]},{"kind":"text","text":" as long as it returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A loop node calls "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeating(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"repeating nodes"}]},{"kind":"text","text":" as long as it returns "},{"kind":"code","text":"true"},{"kind":"text","text":". Using the loop node in a guest language implementation allows the Truffle runtime to optimize loops in a better way. For example a Truffle runtime implementation might decide to optimize loop already during its first execution (also called on stack replacement OSR). Loop nodes are intended to be implemented by Truffle runtime implementations and not by guest language implementations. Note: The loop condition is automatically profiled by the loop node, so the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode"},"code":true,"children":[{"kind":"text","text":"repeating node"}]},{"kind":"text","text":" should not use a loop condition profile."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Full usage example for guest language while node:"}]},{"kind":"code","text":"\npublic class WhileNode extends GuestLanguageNode {\n\n    @Node.Child private LoopNode loop;\n\n    public WhileNode(GuestLanguageNode conditionNode, GuestLanguageNode bodyNode) {\n        loop = Truffle.getRuntime().createLoopNode(new WhileRepeatingNode(conditionNode, bodyNode));\n    }\n\n    @Override\n    public Object execute(VirtualFrame frame) {\n        loop.executeLoop(frame);\n        return null;\n    }\n\n    private static class WhileRepeatingNode extends Node implements RepeatingNode {\n\n        @Node.Child private GuestLanguageNode conditionNode;\n        @Node.Child private GuestLanguageNode bodyNode;\n\n        public WhileRepeatingNode(GuestLanguageNode conditionNode, GuestLanguageNode bodyNode) {\n            this.conditionNode = conditionNode;\n            this.bodyNode = bodyNode;\n        }\n\n        public boolean executeRepeating(VirtualFrame frame) {\n            if ((boolean) conditionNode.execute(frame)) {\n                try {\n                    bodyNode.execute(frame);\n                } catch (ContinueException ex) {\n                    // the body might throw a continue control-flow exception\n                    // continue loop invocation\n                } catch (BreakException ex) {\n                    // the body might throw a break control-flow exception\n                    // break loop invocation by returning false\n                    return false;\n                }\n                return true;\n            } else {\n                return false;\n            }\n        }\n    }\n\n}\n\n// substitute with a guest language node type\npublic abstract class GuestLanguageNode extends Node {\n\n    public abstract Object execute(VirtualFrame frame);\n\n}\n// thrown by guest language continue statements\npublic final class ContinueException extends ControlFlowException {}\n// thrown by guest language break statements\npublic final class BreakException extends ControlFlowException {}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode"},"code":true,"children":[{"kind":"text","text":"RepeatingNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#createLoopNode(com.oracle.truffle.api.nodes.RepeatingNode)"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.createLoopNode(RepeatingNode)"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/LoopNode.java","line":129}},{"id":"com.oracle.truffle.api.nodes.Node","name":"Node","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"},{"kind":"punct","text":", "},{"kind":"type","text":"Cloneable","ref":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}],[{"kind":"type","text":"Cloneable","ref":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.Node#<init>()","anchor":"<init>()","kind":"constructor","name":"Node","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"Node"},{"kind":"punct","text":"()"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":142}},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","anchor":"getCost()","kind":"method","name":"getCost","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"},{"kind":"punct","text":" "},{"kind":"name","text":"getCost"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}]},"doc":{"summary":[{"kind":"text","text":"Returns a rough estimate for the cost of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a rough estimate for the cost of this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". This estimate can be used by runtime systems or guest languages to implement heuristics based on Truffle ASTs. This method is intended to be overridden by subclasses. The default implementation returns the value of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInfo#cost()"},"code":true,"children":[{"kind":"text","text":"NodeInfo.cost()"}]},{"kind":"text","text":" of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInfo"},"code":true,"children":[{"kind":"text","text":"NodeInfo"}]},{"kind":"text","text":" annotation declared at the subclass. If no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInfo"},"code":true,"children":[{"kind":"text","text":"NodeInfo"}]},{"kind":"text","text":" annotation is declared the method returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeCost#MONOMORPHIC"},"code":true,"children":[{"kind":"text","text":"NodeCost.MONOMORPHIC"}]},{"kind":"text","text":" as a default value."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 24.1 without replacement"}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":196}},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","anchor":"getSourceSection()","kind":"method","name":"getSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source code represented by this Node"}]}]},"doc":{"summary":[{"kind":"text","text":"Retrieves the segment of guest language source code that is represented by this Node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Retrieves the segment of guest language source code that is represented by this Node. The default implementation of this method returns "},{"kind":"code","text":"null"},{"kind":"text","text":". If your node represents a segment of the source code, override this method and return a eagerly or lazily computed source section value. This method is not designed to be invoked on compiled code paths. May be called on any thread and without a language context being active."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Simple example implementation using a simple implementation using a field:"}]},{"kind":"code","language":"java","text":"abstract class SimpleNode extends Node {\n\n    private SourceSection sourceSection;\n\n    void setSourceSection(SourceSection sourceSection) {\n        this.sourceSection = sourceSection;\n    }\n\n    @Override\n    public SourceSection getSourceSection() {\n        return sourceSection;\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Recommended implementation computing the source section lazily from primitive fields:"}]},{"kind":"code","language":"java","text":"abstract class RecommendedNode extends Node {\n\n    private static final int NO_SOURCE = -1;\n\n    private int sourceCharIndex = NO_SOURCE;\n    private int sourceLength;\n\n    public abstract Object execute(VirtualFrame frame);\n\n    // invoked by the parser to set the source\n    void setSourceSection(int charIndex, int length) {\n        assert sourceCharIndex == NO_SOURCE : \"source should only be set once\";\n        this.sourceCharIndex = charIndex;\n        this.sourceLength = length;\n    }\n\n    @Override\n    public final SourceSection getSourceSection() {\n        if (sourceCharIndex == NO_SOURCE) {\n            // AST node without source\n            return null;\n        }\n        RootNode rootNode = getRootNode();\n        if (rootNode == null) {\n            // not yet adopted yet\n            return null;\n        }\n        Source source = rootNode.getSourceSection().getSource();\n        return source.createSection(sourceCharIndex, sourceLength);\n    }\n\n}"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":226}},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","anchor":"getEncapsulatingSourceSection()","kind":"method","name":"getEncapsulatingSourceSection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"getEncapsulatingSourceSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an approximation of the source code represented by this Node"}]}]},"doc":{"summary":[{"kind":"text","text":"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 information."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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 information. Can be called on any thread and without a language context."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":238}},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","anchor":"isAdoptable()","kind":"method","name":"isAdoptable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isAdoptable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this node can be adopted by a parent."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this node can be adopted by a parent. This method is intended to be overriden by subclasses. If nodes need to be statically shared that they must not be adoptable, because otherwise the parent reference might cause a memory leak. If a node is not adoptable then then it is guaranteed that the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" pointer remains "},{"kind":"code","text":"null"},{"kind":"text","text":" at all times, even if the node is tried to be adopted by a parent."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the result of this method is statically known then it is recommended to make the node implement "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnadoptableNode"},"code":true,"children":[{"kind":"text","text":"UnadoptableNode"}]},{"kind":"text","text":" instead."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Implementations of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()"},"code":true,"children":[{"kind":"text","text":"isAdoptable()"}]},{"kind":"text","text":" are required to fold to a constant result when compiled with a constant receiver."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":266}},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","anchor":"insert(T[])","kind":"method","name":"insert","modifiers":["public","final"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"name","text":"insert"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"param","text":"newChildren"},{"kind":"punct","text":")"}],"params":[{"name":"newChildren","type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the array of new children whose parent should be updated"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the array of new children"}]}]},"doc":{"summary":[{"kind":"text","text":"Inserts new node children into an AST that was already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()"},"code":true,"children":[{"kind":"text","text":"adopted"}]},{"kind":"text","text":" by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Inserts new node children into an AST that was already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()"},"code":true,"children":[{"kind":"text","text":"adopted"}]},{"kind":"text","text":" by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":". The new children need to be assigned to its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Children"},"code":true,"children":[{"kind":"text","text":"children"}]},{"kind":"text","text":" field after insert was called."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":279}},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","anchor":"insert(T)","kind":"method","name":"insert","modifiers":["public","final"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"insert"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"newChild"},{"kind":"punct","text":")"}],"params":[{"name":"newChild","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new child whose parent should be updated"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new child"}]}]},"doc":{"summary":[{"kind":"text","text":"Inserts an new node into an AST that was already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()"},"code":true,"children":[{"kind":"text","text":"adopted"}]},{"kind":"text","text":" by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Inserts an new node into an AST that was already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()"},"code":true,"children":[{"kind":"text","text":"adopted"}]},{"kind":"text","text":" by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":". The new child needs to be assigned to its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Child"},"code":true,"children":[{"kind":"text","text":"child"}]},{"kind":"text","text":" field after insert was called."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":299}},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","anchor":"notifyInserted(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"notifyInserted","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"notifyInserted"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node tree that got inserted."}]}]}],"doc":{"summary":[{"kind":"text","text":"Notifies the framework about the insertion of one or more nodes during execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies the framework about the insertion of one or more nodes during execution. Otherwise, the framework assumes that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":" nodes remain unchanged after their root node is first "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"executed"}]},{"kind":"text","text":". Insertions don't need to be notified if it is known that none of the inserted nodes are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"instrumentable"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The provided "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" and its children must be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()"},"code":true,"children":[{"kind":"text","text":"adopted"}]},{"kind":"text","text":" in the AST before invoking this method. The caller must ensure that this method is invoked only once for a given node and its children."}]},{"kind":"code","language":"java","text":"class MyRootNode extends RootNode {\n\n    protected MyRootNode(MyLanguage language) {\n        super(language);\n    }\n\n    @Child InstrumentableLanguageNode child;\n\n    @Override\n    public Object execute(VirtualFrame frame) {\n        if (child == null) {\n            CompilerDirectives.transferToInterpreterAndInvalidate();\n            child = insert(new InstrumentableLanguageNode());\n            notifyInserted(child);\n        }\n        return child.execute(frame);\n    }\n\n}"}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":330}},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","anchor":"adoptChildren()","kind":"method","name":"adoptChildren","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"adoptChildren"},{"kind":"punct","text":"()"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":342}},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","anchor":"getDebugProperties()","kind":"method","name":"getDebugProperties","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getDebugProperties"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the properties as a key/value hash map"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns properties of this node interesting for debugging and can be overwritten by subclasses to add their own custom properties."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns properties of this node interesting for debugging and can be overwritten by subclasses to add their own custom properties. This method may be called on a compiler thread without an entered guest context. Implementations must not execute guest code or rely on a guest context being entered."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Debug property values should be strings, boxed primitive values, classes, or enums. Other values may be represented using an opaque identity string; their "},{"kind":"link","target":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"code":true,"children":[{"kind":"text","text":"Object.toString()"}]},{"kind":"text","text":" method is not invoked implicitly."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":466}},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","anchor":"getParent()","kind":"method","name":"getParent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getParent"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parent node"}]}]},"doc":{"summary":[{"kind":"text","text":"The current parent node of this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The current parent node of this node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":477}},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","anchor":"replace(T,java.lang.CharSequence)","kind":"method","name":"replace","modifiers":["public","final"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"replace"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"newNode"},{"kind":"punct","text":", "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"reason"},{"kind":"punct","text":")"}],"params":[{"name":"newNode","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new node that is the replacement"}]}]},{"name":"reason","type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a description of the reason for the replacement"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new node"}]}]},"doc":{"summary":[{"kind":"text","text":"Replaces this node with another node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Replaces this node with another node. If there is a source section (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"getSourceSection()"}]},{"kind":"text","text":") associated with this node, it is transferred to the new node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":490}},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","anchor":"replace(T)","kind":"method","name":"replace","modifiers":["public","final"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"replace"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"newNode"},{"kind":"punct","text":")"}],"params":[{"name":"newNode","type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new node that is the replacement"}]}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new node"}]}]},"doc":{"summary":[{"kind":"text","text":"Replaces this node with another node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Replaces this node with another node. If there is a source section (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"getSourceSection()"}]},{"kind":"text","text":") associated with this node, it is transferred to the new node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":508}},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","anchor":"isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"isSafelyReplaceableBy","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isSafelyReplaceableBy"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"newNode"},{"kind":"punct","text":")"}],"params":[{"name":"newNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks if this node can be replaced by another node: tree structure & type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if this node can be replaced by another node: tree structure & type."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":535}},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","anchor":"reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","kind":"method","name":"reportReplace","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reportReplace"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"oldNode"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"newNode"},{"kind":"punct","text":", "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"reason"},{"kind":"punct","text":")"}],"params":[{"name":"oldNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"newNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"reason","type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}]}],"doc":{"summary":[{"kind":"text","text":"Reports that "},{"kind":"code","text":"oldNode"},{"kind":"text","text":" was replaced with "},{"kind":"code","text":"newNode"},{"kind":"text","text":", notifying any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ReplaceObserver"},"code":true,"children":[{"kind":"text","text":"replace observers"}]},{"kind":"text","text":" and invalidating any compiled call targets."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Reports that "},{"kind":"code","text":"oldNode"},{"kind":"text","text":" was replaced with "},{"kind":"code","text":"newNode"},{"kind":"text","text":", notifying any "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ReplaceObserver"},"code":true,"children":[{"kind":"text","text":"replace observers"}]},{"kind":"text","text":" and invalidating any compiled call targets."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method does not actually replace the nodes. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)"},"code":true,"children":[{"kind":"text","text":"Node.replace(Node, CharSequence)"}]},{"kind":"text","text":" to replace nodes."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":548}},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","anchor":"onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","kind":"method","name":"onReplace","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"onReplace"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"newNode"},{"kind":"punct","text":", "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"reason"},{"kind":"punct","text":")"}],"params":[{"name":"newNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the replacement node"}]}]},{"name":"reason","type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the reason the replace supplied"}]}]}],"doc":{"summary":[{"kind":"text","text":"Intended to be implemented by subclasses of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" to receive a notification when the node is rewritten."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Intended to be implemented by subclasses of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" to receive a notification when the node is rewritten. This method is invoked before the actual replace has happened."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":585}},{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","anchor":"accept(com.oracle.truffle.api.nodes.NodeVisitor)","kind":"method","name":"accept","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"accept"},{"kind":"punct","text":"("},{"kind":"type","text":"NodeVisitor","ref":"com.oracle.truffle.api.nodes.NodeVisitor"},{"kind":"punct","text":" "},{"kind":"param","text":"nodeVisitor"},{"kind":"punct","text":")"}],"params":[{"name":"nodeVisitor","type":[{"kind":"type","text":"NodeVisitor","ref":"com.oracle.truffle.api.nodes.NodeVisitor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the visitor"}]}]}],"doc":{"summary":[{"kind":"text","text":"Invokes the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeVisitor#visit(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"NodeVisitor.visit(Node)"}]},{"kind":"text","text":" method for this node and recursively also for all child nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Invokes the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeVisitor#visit(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"NodeVisitor.visit(Node)"}]},{"kind":"text","text":" method for this node and recursively also for all child nodes."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":596}},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","anchor":"getChildren()","kind":"method","name":"getChildren","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"name","text":"getChildren"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the iterator"}]}]},"doc":{"summary":[{"kind":"text","text":"Iterator over the children of this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Iterator over the children of this node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":608}},{"id":"com.oracle.truffle.api.nodes.Node#copy()","anchor":"copy()","kind":"method","name":"copy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"copy"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new copy"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a shallow copy of this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a shallow copy of this node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":622}},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","anchor":"deepCopy()","kind":"method","name":"deepCopy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"deepCopy"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new deep copy"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a deep copy of this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a deep copy of this node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":638}},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","anchor":"getRootNode()","kind":"method","name":"getRootNode","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getRootNode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" or "},{"kind":"code","text":"null"},{"kind":"text","text":" if there is none."}]}]},"doc":{"summary":[{"kind":"text","text":"Get the root node of the tree a node belongs to."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the root node of the tree a node belongs to."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":648}},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","anchor":"reportPolymorphicSpecialize()","kind":"method","name":"reportPolymorphicSpecialize","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reportPolymorphicSpecialize"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Notifies the runtime that this node specialized to a polymorphic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notifies the runtime that this node specialized to a polymorphic state. This includes specializations that increase \"level\" of polymorphism (e.g. Adding another element to an existing inline cache). The runtime can use this information to, if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCloningAllowed()"},"code":true,"children":[{"kind":"text","text":"allowed"}]},{"kind":"text","text":", create a deep copy of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" hosting this node and gather context sensitive profiling feedback."}]}]},"since":"0.33","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":696}},{"id":"com.oracle.truffle.api.nodes.Node#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Converts this node to a textual representation useful for debugging."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Converts this node to a textual representation useful for debugging."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":706}},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","anchor":"atomic(java.lang.Runnable)","kind":"method","name":"atomic","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"atomic"},{"kind":"punct","text":"("},{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"closure"},{"kind":"punct","text":")"}],"params":[{"name":"closure","type":[{"kind":"type","text":"Runnable","ref":"java.lang.Runnable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Runnable.html"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":731}},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","anchor":"atomic(java.util.concurrent.Callable)","kind":"method","name":"atomic","modifiers":["public","final"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"atomic"},{"kind":"punct","text":"("},{"kind":"type","text":"Callable","ref":"java.util.concurrent.Callable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Callable.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"closure"},{"kind":"punct","text":")"}],"params":[{"name":"closure","type":[{"kind":"type","text":"Callable","ref":"java.util.concurrent.Callable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/Callable.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":744}},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","anchor":"getLock()","kind":"method","name":"getLock","modifiers":["protected","final"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Lock","ref":"java.util.concurrent.locks.Lock","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/locks/Lock.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLock"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Lock","ref":"java.util.concurrent.locks.Lock","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/locks/Lock.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a lock object that can be used to synchronize modifications to the AST."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a lock object that can be used to synchronize modifications to the AST. Don't lock if you call into foreign code with potential recursions to avoid deadlocks. Use responsibly."}]}]},"since":"0.19","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":764}},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","anchor":"getDescription()","kind":"method","name":"getDescription","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getDescription"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a user-readable description of the purpose of the Node, or \"\" if no description is available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a user-readable description of the purpose of the Node, or \"\" if no description is available. Can be called on any thread and without a language context."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":782}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Abstract base class for all nodes in the Truffle Abstract Syntax Tree (AST)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Abstract base class for all nodes in the Truffle Abstract Syntax Tree (AST)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"Node"},{"kind":"text","text":" class serves as the foundational class for all nodes within the Truffle framework. It provides the core functionality required to build interpreters for guest languages by allowing language implementers to define custom nodes representing language constructs."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Key responsibilities and features of the "},{"kind":"code","text":"Node"},{"kind":"text","text":" class include:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Managing the parent-child relationships between nodes, ensuring the integrity of the AST."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Providing mechanisms for adopting and replacing child nodes within the AST, facilitating dynamic language features and optimizations."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Handling source code associations, allowing nodes to represent specific segments of the guest language source code via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"getSourceSection()"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Supporting node cloning and deep copying, enabling the creation of modified copies of node trees."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Facilitating node visitation patterns through the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)"},"code":true,"children":[{"kind":"text","text":"accept(NodeVisitor)"}]},{"kind":"text","text":" method and providing iteration over child nodes via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getChildren()"},"code":true,"children":[{"kind":"text","text":"getChildren()"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Ensuring thread safety and synchronization for modifications to the AST with atomic operations and locks via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)"},"code":true,"children":[{"kind":"text","text":"atomic(Runnable)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getLock()"},"code":true,"children":[{"kind":"text","text":"getLock()"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Integrating with Truffle's instrumentation and debugging facilities, allowing for runtime observation and modification of AST nodes."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Reporting polymorphic specializations through "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()"},"code":true,"children":[{"kind":"text","text":"reportPolymorphicSpecialize()"}]},{"kind":"text","text":", aiding in the optimization processes of the Truffle framework."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Language implementers typically create subclasses of "},{"kind":"code","text":"Node"},{"kind":"text","text":" to represent specific language constructs and operations. Subclasses can use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Child"},"code":true,"children":[{"kind":"text","text":"Child"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Children"},"code":true,"children":[{"kind":"text","text":"Children"}]},{"kind":"text","text":" annotations to declare child nodes, which the Truffle framework manages automatically."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"Node"},{"kind":"text","text":" class also provides important methods such as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T)"},"code":true,"children":[{"kind":"text","text":"replace(Node)"}]},{"kind":"text","text":" for replacing nodes in the AST, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"getParent()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()"},"code":true,"children":[{"kind":"text","text":"getRootNode()"}]},{"kind":"text","text":" for navigating the tree, and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getDescription()"},"code":true,"children":[{"kind":"text","text":"getDescription()"}]},{"kind":"text","text":" for obtaining a user-readable description of the node."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeVisitor"},"code":true,"children":[{"kind":"text","text":"NodeVisitor"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeInterface"},"code":true,"children":[{"kind":"text","text":"NodeInterface"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":111}},{"id":"com.oracle.truffle.api.nodes.Node$Child","name":"Node.Child","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{FIELD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Node.Child"}],"enclosing":"com.oracle.truffle.api.nodes.Node","doc":{"summary":[{"kind":"text","text":"Marks fields that represent child nodes of this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks fields that represent child nodes of this node. This annotation implies the semantics of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":135}},{"id":"com.oracle.truffle.api.nodes.Node$Children","name":"Node.Children","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{FIELD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"Node.Children"}],"enclosing":"com.oracle.truffle.api.nodes.Node","doc":{"summary":[{"kind":"text","text":"Marks array fields that are children of this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks array fields that are children of this node. This annotation implies the semantics of @"},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"CompilationFinal"}]},{"kind":"text","text":"(dimensions = 1)."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/Node.java","line":122}},{"id":"com.oracle.truffle.api.nodes.NodeClass","name":"NodeClass","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeClass"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.NodeClass#get(java.lang.Class)","anchor":"get(java.lang.Class)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeClass","ref":"com.oracle.truffle.api.nodes.NodeClass"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"NodeClass","ref":"com.oracle.truffle.api.nodes.NodeClass"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":67}},{"id":"com.oracle.truffle.api.nodes.NodeClass#get(com.oracle.truffle.api.nodes.Node)","anchor":"get(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"get","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeClass","ref":"com.oracle.truffle.api.nodes.NodeClass"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"NodeClass","ref":"com.oracle.truffle.api.nodes.NodeClass"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":72}},{"id":"com.oracle.truffle.api.nodes.NodeClass#<init>(java.lang.Class)","anchor":"<init>(java.lang.Class)","kind":"constructor","name":"NodeClass","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeClass"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":77}},{"id":"com.oracle.truffle.api.nodes.NodeClass#makeIterator(com.oracle.truffle.api.nodes.Node)","anchor":"makeIterator(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"makeIterator","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Iterator","ref":"java.util.Iterator","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Iterator.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"name","text":"makeIterator"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"Iterator","ref":"java.util.Iterator","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Iterator.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":88}},{"id":"com.oracle.truffle.api.nodes.NodeClass#isReplaceAllowed()","anchor":"isReplaceAllowed()","kind":"method","name":"isReplaceAllowed","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isReplaceAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DenyReplace"},"code":true,"children":[{"kind":"text","text":"DenyReplace"}]},{"kind":"text","text":" was not set for this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DenyReplace"},"code":true,"children":[{"kind":"text","text":"DenyReplace"}]},{"kind":"text","text":" was not set for this node."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":97}},{"id":"com.oracle.truffle.api.nodes.NodeClass#getType()","anchor":"getType()","kind":"method","name":"getType","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"name","text":"getType"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the clazz of node this "},{"kind":"code","text":"NodeClass"},{"kind":"text","text":" describes"}]}]},"doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},"code":true,"children":[{"kind":"text","text":"Class"}]},{"kind":"text","text":" this "},{"kind":"code","text":"NodeClass"},{"kind":"text","text":" has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeClass#<init>(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"created for"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},"code":true,"children":[{"kind":"text","text":"Class"}]},{"kind":"text","text":" this "},{"kind":"code","text":"NodeClass"},{"kind":"text","text":" has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeClass#<init>(java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"created for"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":106}},{"id":"com.oracle.truffle.api.nodes.NodeClass#getNodeFieldArray()","anchor":"getNodeFieldArray()","kind":"method","name":"getNodeFieldArray","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getNodeFieldArray"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":109}},{"id":"com.oracle.truffle.api.nodes.NodeClass#putFieldObject(java.lang.Object,com.oracle.truffle.api.nodes.Node,java.lang.Object)","anchor":"putFieldObject(java.lang.Object,com.oracle.truffle.api.nodes.Node,java.lang.Object)","kind":"method","name":"putFieldObject","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putFieldObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"field","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"receiver","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"since":"0.14","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":112}},{"id":"com.oracle.truffle.api.nodes.NodeClass#getFieldObject(java.lang.Object,com.oracle.truffle.api.nodes.Node)","anchor":"getFieldObject(java.lang.Object,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getFieldObject","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getFieldObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"field","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"receiver","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":115}},{"id":"com.oracle.truffle.api.nodes.NodeClass#getFieldValue(java.lang.Object,com.oracle.truffle.api.nodes.Node)","anchor":"getFieldValue(java.lang.Object,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"getFieldValue","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getFieldValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"field","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"receiver","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":118}},{"id":"com.oracle.truffle.api.nodes.NodeClass#getFieldType(java.lang.Object)","anchor":"getFieldType(java.lang.Object)","kind":"method","name":"getFieldType","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"getFieldType"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"field","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":121}},{"id":"com.oracle.truffle.api.nodes.NodeClass#getFieldName(java.lang.Object)","anchor":"getFieldName(java.lang.Object)","kind":"method","name":"getFieldName","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getFieldName"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"field","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":124}},{"id":"com.oracle.truffle.api.nodes.NodeClass#isChildField(java.lang.Object)","anchor":"isChildField(java.lang.Object)","kind":"method","name":"isChildField","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isChildField"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"field","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":127}},{"id":"com.oracle.truffle.api.nodes.NodeClass#isChildrenField(java.lang.Object)","anchor":"isChildrenField(java.lang.Object)","kind":"method","name":"isChildrenField","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isChildrenField"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"field","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":130}},{"id":"com.oracle.truffle.api.nodes.NodeClass#isCloneableField(java.lang.Object)","anchor":"isCloneableField(java.lang.Object)","kind":"method","name":"isCloneableField","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCloneableField"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"field"},{"kind":"punct","text":")"}],"params":[{"name":"field","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":133}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Information about a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Information about a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" class. A single instance of this class is allocated for every subclass of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" that is used."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeClass.java","line":53}},{"id":"com.oracle.truffle.api.nodes.NodeCloneable","name":"NodeCloneable","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeCloneable"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"Cloneable","ref":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"Cloneable","ref":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#<init>()","anchor":"<init>()","kind":"constructor","name":"NodeCloneable","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeCloneable"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor for subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for subclasses."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCloneable.java","line":54}},{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","anchor":"clone()","kind":"method","name":"clone","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"clone"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"overrides":{"id":"java.lang.Object#clone()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCloneable.java","line":58}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Declarative base class for node fields that are to be cloned together with the containing node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Declarative base class for node fields that are to be cloned together with the containing node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCloneable.java","line":48}},{"id":"com.oracle.truffle.api.nodes.NodeCost","name":"NodeCost","kind":"enum","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeCost"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.NodeCost#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.nodes.NodeCost#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.nodes.NodeCost#NONE","anchor":"NONE","kind":"enumConstant","name":"NONE","signature":[{"kind":"name","text":"NONE"}],"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}],"doc":{"summary":[{"kind":"text","text":"This node has literally no costs and should be ignored for heuristics."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This node has literally no costs and should be ignored for heuristics. This is particularly useful for wrapper and profiling nodes which should not influence the heuristics."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCost.java","line":62}},{"id":"com.oracle.truffle.api.nodes.NodeCost#UNINITIALIZED","anchor":"UNINITIALIZED","kind":"enumConstant","name":"UNINITIALIZED","signature":[{"kind":"name","text":"UNINITIALIZED"}],"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}],"doc":{"summary":[{"kind":"text","text":"This node has a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreter()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.transferToInterpreter()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.transferToInterpreterAndInvalidate()"}]},{"kind":"text","text":" as its first unconditional statement."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This node has a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreter()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.transferToInterpreter()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.transferToInterpreterAndInvalidate()"}]},{"kind":"text","text":" as its first unconditional statement."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCost.java","line":71}},{"id":"com.oracle.truffle.api.nodes.NodeCost#MONOMORPHIC","anchor":"MONOMORPHIC","kind":"enumConstant","name":"MONOMORPHIC","signature":[{"kind":"name","text":"MONOMORPHIC"}],"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}],"doc":{"summary":[{"kind":"text","text":"This node represents a specialized monomorphic version of an operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This node represents a specialized monomorphic version of an operation."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCost.java","line":78}},{"id":"com.oracle.truffle.api.nodes.NodeCost#POLYMORPHIC","anchor":"POLYMORPHIC","kind":"enumConstant","name":"POLYMORPHIC","signature":[{"kind":"name","text":"POLYMORPHIC"}],"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}],"doc":{"summary":[{"kind":"text","text":"This node represents a polymorphic version of an operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This node represents a polymorphic version of an operation. For multiple chained polymorphic nodes the first may return "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeCost#MONOMORPHIC"},"code":true,"children":[{"kind":"text","text":"MONOMORPHIC"}]},{"kind":"text","text":" and all additional nodes should return "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeCost#POLYMORPHIC"},"code":true,"children":[{"kind":"text","text":"POLYMORPHIC"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCost.java","line":87}},{"id":"com.oracle.truffle.api.nodes.NodeCost#MEGAMORPHIC","anchor":"MEGAMORPHIC","kind":"enumConstant","name":"MEGAMORPHIC","signature":[{"kind":"name","text":"MEGAMORPHIC"}],"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}],"doc":{"summary":[{"kind":"text","text":"This node represents a megamorphic version of an operation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This node represents a megamorphic version of an operation. This value should only be used if the operation implementation supports monomorphism and polymorphism otherwise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeCost#MONOMORPHIC"},"code":true,"children":[{"kind":"text","text":"MONOMORPHIC"}]},{"kind":"text","text":" should be used instead."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCost.java","line":96}},{"id":"com.oracle.truffle.api.nodes.NodeCost#isTrivial()","anchor":"isTrivial()","kind":"method","name":"isTrivial","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isTrivial"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCost.java","line":99}},{"id":"com.oracle.truffle.api.nodes.NodeCost#fromCount(int)","anchor":"fromCount(int)","kind":"method","name":"fromCount","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"},{"kind":"punct","text":" "},{"kind":"name","text":"fromCount"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"nodeCount"},{"kind":"punct","text":")"}],"params":[{"name":"nodeCount","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}]},"doc":{"summary":[{"kind":"text","text":"Finds the node cost for an associated node count."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds the node cost for an associated node count. Returns "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeCost#UNINITIALIZED"},"code":true,"children":[{"kind":"text","text":"NodeCost.UNINITIALIZED"}]},{"kind":"text","text":" for 0, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeCost#MONOMORPHIC"},"code":true,"children":[{"kind":"text","text":"NodeCost.MONOMORPHIC"}]},{"kind":"text","text":" for 1 and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeCost#POLYMORPHIC"},"code":true,"children":[{"kind":"text","text":"NodeCost.POLYMORPHIC"}]},{"kind":"text","text":" for any other value."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/nodes/NodeCost.java","line":109}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a rough estimate for the cost of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a rough estimate for the cost of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". This estimate can be used by runtime systems or guest languages to implement heuristics based on Truffle ASTs."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getCost()"},"code":true,"children":[{"kind":"text","text":"Node.getCost()"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 24.1 without replacement"}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeCost.java","line":53}},{"id":"com.oracle.truffle.api.nodes.NodeInfo","name":"NodeInfo","kind":"annotation","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{TYPE}"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Inherited","ref":"java.lang.annotation.Inherited","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Inherited.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeInfo"}],"members":[{"id":"com.oracle.truffle.api.nodes.NodeInfo#shortName()","anchor":"shortName()","kind":"annotationElement","name":"shortName","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"shortName"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the short name"}]}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"Short name representing the node that can be used for debugging."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Short name representing the node that can be used for debugging."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeInfo.java","line":65}},{"id":"com.oracle.truffle.api.nodes.NodeInfo#cost()","anchor":"cost()","kind":"annotationElement","name":"cost","annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"},{"kind":"punct","text":" "},{"kind":"name","text":"cost"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"MONOMORPHIC"}],"returns":{"type":[{"kind":"type","text":"NodeCost","ref":"com.oracle.truffle.api.nodes.NodeCost"}]},"defaultValue":"MONOMORPHIC","doc":{"summary":[{"kind":"text","text":"Provides a rough estimate for the cost of the annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides a rough estimate for the cost of the annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". This estimate can be used by runtime systems or guest languages to implement heuristics based on Truffle ASTs."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getCost()"},"code":true,"children":[{"kind":"text","text":"Node.getCost()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.NodeCost"},"code":true,"children":[{"kind":"text","text":"NodeCost"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 24.1 without replacement"}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeInfo.java","line":76}},{"id":"com.oracle.truffle.api.nodes.NodeInfo#description()","anchor":"description()","kind":"annotationElement","name":"description","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"description"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the description"}]}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"A human readable explanation of the purpose of the annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A human readable explanation of the purpose of the annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". Can be used e.g. for debugging or visualization purposes."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeInfo.java","line":87}},{"id":"com.oracle.truffle.api.nodes.NodeInfo#language()","anchor":"language()","kind":"annotationElement","name":"language","signature":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"language"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"literal","text":"\"\""}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the description"}]}]},"defaultValue":"\"\"","doc":{"summary":[{"kind":"text","text":"A description, providing a user-readable explanation of the source language of the annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A description, providing a user-readable explanation of the source language of the annotated "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". Can be used e.g. for debugging or visualization purposes. Typically this information is set only in an abstract base node for the language implementation."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeInfo.java","line":97}}],"doc":{"summary":[{"kind":"text","text":"Annotation for providing additional information on nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Annotation for providing additional information on nodes."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeInfo.java","line":54}},{"id":"com.oracle.truffle.api.nodes.NodeInterface","name":"NodeInterface","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeInterface"}],"doc":{"summary":[{"kind":"text","text":"Common base interface for all Truffle nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Common base interface for all Truffle nodes."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeInterface.java","line":49}},{"id":"com.oracle.truffle.api.nodes.NodeUtil","name":"NodeUtil","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeUtil"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.NodeUtil#cloneNode(T)","anchor":"cloneNode(T)","kind":"method","name":"cloneNode","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"cloneNode"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"orig"},{"kind":"punct","text":")"}],"params":[{"name":"orig","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":76}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#assertAdopted(com.oracle.truffle.api.nodes.Node)","anchor":"assertAdopted(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"assertAdopted","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"assertAdopted"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Asserts that a node is adopted by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" and prints a formatted error message with the error path if it is not adopted."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Asserts that a node is adopted by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" and prints a formatted error message with the error path if it is not adopted. Provided node must be not "},{"kind":"code","text":"null"},{"kind":"text","text":". Throws an "},{"kind":"link","target":{"id":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"},"code":true,"children":[{"kind":"text","text":"AssertionError"}]},{"kind":"text","text":" if it fails and always returns "},{"kind":"code","text":"true"},{"kind":"text","text":" otherwise for convenient usage with the "},{"kind":"code","text":"assert"},{"kind":"text","text":" statement."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":160}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#findNodeChildren(com.oracle.truffle.api.nodes.Node)","anchor":"findNodeChildren(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"findNodeChildren","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"name","text":"findNodeChildren"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":210}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#nonAtomicReplace(com.oracle.truffle.api.nodes.Node,T,java.lang.CharSequence)","anchor":"nonAtomicReplace(com.oracle.truffle.api.nodes.Node,T,java.lang.CharSequence)","kind":"method","name":"nonAtomicReplace","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"nonAtomicReplace"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"oldNode"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"newNode"},{"kind":"punct","text":", "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"reason"},{"kind":"punct","text":")"}],"params":[{"name":"oldNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"newNode","type":[{"kind":"typeParam","text":"T"}]},{"name":"reason","type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":238}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#replaceChild(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","anchor":"replaceChild(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"replaceChild","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"replaceChild"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"parent"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"oldChild"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"newChild"},{"kind":"punct","text":")"}],"params":[{"name":"parent","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"oldChild","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"newChild","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":244}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#findChildFieldName(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","anchor":"findChildFieldName(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"findChildFieldName","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"findChildFieldName"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"parent"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"child"},{"kind":"punct","text":")"}],"params":[{"name":"parent","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"child","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Finds the field in a parent node and returns its name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds the field in a parent node and returns its name. Utility for debugging and tracing purposes."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":379}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#collectFieldNames(java.lang.Class)","anchor":"collectFieldNames(java.lang.Class)","kind":"method","name":"collectFieldNames","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"collectFieldNames"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Finds and retrieves all field names of a node class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds and retrieves all field names of a node class. This is a utility intended for debugging and tracing purposes."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":389}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#collectNodeChildren(com.oracle.truffle.api.nodes.Node)","anchor":"collectNodeChildren(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"collectNodeChildren","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"name","text":"collectNodeChildren"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Finds and retrieves all "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Child"},"code":true,"children":[{"kind":"text","text":"Child"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Children"},"code":true,"children":[{"kind":"text","text":"Children"}]},{"kind":"text","text":" annotated field names and values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds and retrieves all "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Child"},"code":true,"children":[{"kind":"text","text":"Child"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Children"},"code":true,"children":[{"kind":"text","text":"Children"}]},{"kind":"text","text":" annotated field names and values. This is a utility intended for debugging and tracing purposes."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":405}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#collectNodeProperties(com.oracle.truffle.api.nodes.Node)","anchor":"collectNodeProperties(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"collectNodeProperties","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"collectNodeProperties"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Finds and retrieves all properties of a node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Finds and retrieves all properties of a node. Properties of a node are all fields not annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Child"},"code":true,"children":[{"kind":"text","text":"Child"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node$Children"},"code":true,"children":[{"kind":"text","text":"Children"}]},{"kind":"text","text":". This is a utility intended for debugging and tracing purposes."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":437}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#isReplacementSafe(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","anchor":"isReplacementSafe(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"isReplacementSafe","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isReplacementSafe"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"parent"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"oldChild"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"newChild"},{"kind":"punct","text":")"}],"params":[{"name":"parent","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"oldChild","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"newChild","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Determines whether a proposed child replacement would be safe: structurally and type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Determines whether a proposed child replacement would be safe: structurally and type."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":481}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#forEachChild(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.NodeVisitor)","anchor":"forEachChild(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.NodeVisitor)","kind":"method","name":"forEachChild","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"forEachChild"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"parent"},{"kind":"punct","text":", "},{"kind":"type","text":"NodeVisitor","ref":"com.oracle.truffle.api.nodes.NodeVisitor"},{"kind":"punct","text":" "},{"kind":"param","text":"visitor"},{"kind":"punct","text":")"}],"params":[{"name":"parent","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"visitor","type":[{"kind":"type","text":"NodeVisitor","ref":"com.oracle.truffle.api.nodes.NodeVisitor"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if all children were visited, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise"}]}]},"doc":{"summary":[{"kind":"text","text":"Executes a closure for every non-null child of the parent node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes a closure for every non-null child of the parent node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":524}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#concat(T[],T[])","anchor":"concat(T[],T[])","kind":"method","name":"concat","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"name","text":"concat"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"param","text":"first"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[] "},{"kind":"param","text":"second"},{"kind":"punct","text":")"}],"params":[{"name":"first","type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]},{"name":"second","type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"},{"kind":"punct","text":"[]"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":599}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#getNthParent(com.oracle.truffle.api.nodes.Node,int)","anchor":"getNthParent(com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"getNthParent","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getNthParent"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"n"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"n","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the nth parent of a node, where the 0th parent is the node itself."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the nth parent of a node, where the 0th parent is the node itself. Returns null if there are less than n ancestors."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":611}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#findAnnotation(java.lang.Class,java.lang.Class)","anchor":"findAnnotation(java.lang.Class,java.lang.Class)","kind":"method","name":"findAnnotation","modifiers":["public","static"],"typeParams":[{"name":"T","bounds":[[{"kind":"type","text":"Annotation","ref":"java.lang.annotation.Annotation","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Annotation.html"}]]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Annotation","ref":"java.lang.annotation.Annotation","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Annotation.html"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"findAnnotation"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"annotationClass"},{"kind":"punct","text":")"}],"params":[{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}]},{"name":"annotationClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Find annotation in class/interface hierarchy."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Find annotation in class/interface hierarchy."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":630}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#findParent(com.oracle.truffle.api.nodes.Node,java.lang.Class)","anchor":"findParent(com.oracle.truffle.api.nodes.Node,java.lang.Class)","kind":"method","name":"findParent","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"findParent"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"start"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"start","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":649}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#findAllParents(com.oracle.truffle.api.nodes.Node,java.lang.Class)","anchor":"findAllParents(com.oracle.truffle.api.nodes.Node,java.lang.Class)","kind":"method","name":"findAllParents","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"findAllParents"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"start"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"start","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":661}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#collectNodes(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","anchor":"collectNodes(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"collectNodes","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":"> "},{"kind":"name","text":"collectNodes"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"parent"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"child"},{"kind":"punct","text":")"}],"params":[{"name":"parent","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"child","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":">"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":672}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#findFirstNodeInstance(com.oracle.truffle.api.nodes.Node,java.lang.Class)","anchor":"findFirstNodeInstance(com.oracle.truffle.api.nodes.Node,java.lang.Class)","kind":"method","name":"findFirstNodeInstance","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"findFirstNodeInstance"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"root","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":686}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#findAllNodeInstances(com.oracle.truffle.api.nodes.Node,java.lang.Class)","anchor":"findAllNodeInstances(com.oracle.truffle.api.nodes.Node,java.lang.Class)","kind":"method","name":"findAllNodeInstances","modifiers":["public","static"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"findAllNodeInstances"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"clazz"},{"kind":"punct","text":")"}],"params":[{"name":"root","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"clazz","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":700}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#countNodes(com.oracle.truffle.api.nodes.Node)","anchor":"countNodes(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"countNodes","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"countNodes"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":")"}],"params":[{"name":"root","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":714}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#countNodes(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.NodeUtil.NodeCountFilter)","anchor":"countNodes(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.NodeUtil.NodeCountFilter)","kind":"method","name":"countNodes","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"countNodes"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":", "},{"kind":"type","text":"NodeUtil.NodeCountFilter","ref":"com.oracle.truffle.api.nodes.NodeUtil$NodeCountFilter"},{"kind":"punct","text":" "},{"kind":"param","text":"filter"},{"kind":"punct","text":")"}],"params":[{"name":"root","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"filter","type":[{"kind":"type","text":"NodeUtil.NodeCountFilter","ref":"com.oracle.truffle.api.nodes.NodeUtil$NodeCountFilter"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":719}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#printCompactTreeToString(com.oracle.truffle.api.nodes.Node)","anchor":"printCompactTreeToString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"printCompactTreeToString","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"printCompactTreeToString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":741}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#printCompactTree(java.io.OutputStream,com.oracle.truffle.api.nodes.Node)","anchor":"printCompactTree(java.io.OutputStream,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"printCompactTree","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printCompactTree"},{"kind":"punct","text":"("},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"out"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"out","type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":748}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#printSourceAttributionTree(com.oracle.truffle.api.nodes.Node)","anchor":"printSourceAttributionTree(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"printSourceAttributionTree","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"printSourceAttributionTree"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":774}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#printSourceAttributionTree(java.io.OutputStream,com.oracle.truffle.api.nodes.Node)","anchor":"printSourceAttributionTree(java.io.OutputStream,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"printSourceAttributionTree","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printSourceAttributionTree"},{"kind":"punct","text":"("},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"out"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"out","type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":781}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#printSourceAttributionTree(java.io.PrintWriter,com.oracle.truffle.api.nodes.Node)","anchor":"printSourceAttributionTree(java.io.PrintWriter,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"printSourceAttributionTree","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printSourceAttributionTree"},{"kind":"punct","text":"("},{"kind":"type","text":"PrintWriter","ref":"java.io.PrintWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintWriter.html"},{"kind":"punct","text":" "},{"kind":"param","text":"out"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"out","type":[{"kind":"type","text":"PrintWriter","ref":"java.io.PrintWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintWriter.html"}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":786}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#printSyntaxTags(java.lang.Object)","anchor":"printSyntaxTags(java.lang.Object)","kind":"method","name":"printSyntaxTags","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"printSyntaxTags"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Originally returned the "},{"kind":"emphasis","children":[{"kind":"text","text":"tags"}]},{"kind":"text","text":" if any, associated with a node; now unsupported."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Originally returned the "},{"kind":"emphasis","children":[{"kind":"text","text":"tags"}]},{"kind":"text","text":" if any, associated with a node; now unsupported."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":855}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#printTree(java.io.OutputStream,com.oracle.truffle.api.nodes.Node)","anchor":"printTree(java.io.OutputStream,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"printTree","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printTree"},{"kind":"punct","text":"("},{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"},{"kind":"punct","text":" "},{"kind":"param","text":"out"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"out","type":[{"kind":"type","text":"OutputStream","ref":"java.io.OutputStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/OutputStream.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the stream to print to."}]}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the root node to write"}]}]}],"doc":{"summary":[{"kind":"text","text":"Prints a human readable form of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" AST to the given "},{"kind":"link","target":{"id":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},"code":true,"children":[{"kind":"text","text":"PrintStream"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a human readable form of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" AST to the given "},{"kind":"link","target":{"id":"java.io.PrintStream","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintStream.html"},"code":true,"children":[{"kind":"text","text":"PrintStream"}]},{"kind":"text","text":". This print method does not check for cycles in the node structure."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":870}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#printTreeToString(com.oracle.truffle.api.nodes.Node)","anchor":"printTreeToString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"printTreeToString","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"printTreeToString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":875}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#printTree(java.io.PrintWriter,com.oracle.truffle.api.nodes.Node)","anchor":"printTree(java.io.PrintWriter,com.oracle.truffle.api.nodes.Node)","kind":"method","name":"printTree","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"printTree"},{"kind":"punct","text":"("},{"kind":"type","text":"PrintWriter","ref":"java.io.PrintWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintWriter.html"},{"kind":"punct","text":" "},{"kind":"param","text":"p"},{"kind":"punct","text":", "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"p","type":[{"kind":"type","text":"PrintWriter","ref":"java.io.PrintWriter","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/PrintWriter.html"}]},{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":882}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#verify(com.oracle.truffle.api.nodes.Node)","anchor":"verify(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"verify","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"verify"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"root"},{"kind":"punct","text":")"}],"params":[{"name":"root","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":986}},{"id":"com.oracle.truffle.api.nodes.NodeUtil#assertRecursion(com.oracle.truffle.api.nodes.Node,int)","anchor":"assertRecursion(com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"assertRecursion","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"assertRecursion"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxRecursion"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"maxRecursion","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Fails with an assertion if the exact "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"node type"}]},{"kind":"text","text":" is used as a parent."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Fails with an assertion if the exact "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"node type"}]},{"kind":"text","text":" is used as a parent. Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the node is "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":1092}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Utility class that manages the special access methods for node instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Utility class that manages the special access methods for node instances."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":70}},{"id":"com.oracle.truffle.api.nodes.NodeUtil$NodeCountFilter","name":"NodeUtil.NodeCountFilter","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeUtil.NodeCountFilter"}],"enclosing":"com.oracle.truffle.api.nodes.NodeUtil","members":[{"id":"com.oracle.truffle.api.nodes.NodeUtil$NodeCountFilter#NO_FILTER","anchor":"NO_FILTER","kind":"field","name":"NO_FILTER","signature":[{"kind":"type","text":"NodeUtil.NodeCountFilter","ref":"com.oracle.truffle.api.nodes.NodeUtil$NodeCountFilter"},{"kind":"punct","text":" "},{"kind":"name","text":"NO_FILTER"}],"type":[{"kind":"type","text":"NodeUtil.NodeCountFilter","ref":"com.oracle.truffle.api.nodes.NodeUtil$NodeCountFilter"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":728}},{"id":"com.oracle.truffle.api.nodes.NodeUtil$NodeCountFilter#isCounted(com.oracle.truffle.api.nodes.Node)","anchor":"isCounted(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"isCounted","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCounted"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":736}}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeUtil.java","line":726}},{"id":"com.oracle.truffle.api.nodes.NodeVisitor","name":"NodeVisitor","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NodeVisitor"}],"members":[{"id":"com.oracle.truffle.api.nodes.NodeVisitor#visit(com.oracle.truffle.api.nodes.Node)","anchor":"visit(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"visit","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"visit"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the node that is currently visited"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the visitation should continue, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise"}]}]},"doc":{"summary":[{"kind":"text","text":"This visitor method is called for every node in the tree."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This visitor method is called for every node in the tree. Its return value determines if the visitation continues i.e. As long as the return value is "},{"kind":"code","text":"true"},{"kind":"text","text":" the visitation continues."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeVisitor.java","line":59}}],"doc":{"summary":[{"kind":"text","text":"Visitor for trees of nodes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Visitor for trees of nodes."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/NodeVisitor.java","line":48}},{"id":"com.oracle.truffle.api.nodes.RepeatingNode","name":"RepeatingNode","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"RepeatingNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}],"interfaces":[[{"kind":"type","text":"NodeInterface","ref":"com.oracle.truffle.api.nodes.NodeInterface"}]],"members":[{"id":"com.oracle.truffle.api.nodes.RepeatingNode#CONTINUE_LOOP_STATUS","anchor":"CONTINUE_LOOP_STATUS","kind":"field","name":"CONTINUE_LOOP_STATUS","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"CONTINUE_LOOP_STATUS"}],"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":{"summary":[{"kind":"text","text":"A value indicating that the loop should be repeated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A value indicating that the loop should be repeated."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/RepeatingNode.java","line":68}},{"id":"com.oracle.truffle.api.nodes.RepeatingNode#BREAK_LOOP_STATUS","anchor":"BREAK_LOOP_STATUS","kind":"field","name":"BREAK_LOOP_STATUS","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"BREAK_LOOP_STATUS"}],"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":{"summary":[{"kind":"text","text":"A value indicating that the loop should not be repeated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A value indicating that the loop should not be repeated. Any other value different than "},{"kind":"code","text":"CONTINUE_LOOP_STATUS"},{"kind":"text","text":" can also be used to indicate that the loop should not be repeated."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/RepeatingNode.java","line":82}},{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeating(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"executeRepeating(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"executeRepeating","signature":[{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeRepeating"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current execution frame passed through the interpreter"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the method should be executed again to complete the loop and "},{"kind":"code","text":"false"},{"kind":"text","text":" if it must not."}]}]},"doc":{"summary":[{"kind":"text","text":"Repeatedly invoked by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"loop node"}]},{"kind":"text","text":" implementation until the method returns "},{"kind":"code","text":"false"},{"kind":"text","text":" or throws an exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeatedly invoked by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"loop node"}]},{"kind":"text","text":" implementation until the method returns "},{"kind":"code","text":"false"},{"kind":"text","text":" or throws an exception."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RepeatingNode.java","line":98}},{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeatingWithValue(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"executeRepeatingWithValue(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"executeRepeatingWithValue","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"executeRepeatingWithValue"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current execution frame passed through the interpreter"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a value "},{"kind":"code","text":"v"},{"kind":"text","text":" satisfying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#shouldContinue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"shouldContinue(v)"}]},{"kind":"code","text":" == true"},{"kind":"text","text":" if the method should be executed again to complete the loop and any other value if it must not."}]}]},"doc":{"summary":[{"kind":"text","text":"Repeatedly invoked by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"loop node"}]},{"kind":"text","text":" implementation, but allows returning a language-specific loop exit status."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Repeatedly invoked by a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"loop node"}]},{"kind":"text","text":" implementation, but allows returning a language-specific loop exit status. Only languages that need to return custom loop statuses should override this method."}]}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/nodes/RepeatingNode.java","line":111}},{"id":"com.oracle.truffle.api.nodes.RepeatingNode#initialLoopStatus()","anchor":"initialLoopStatus()","kind":"method","name":"initialLoopStatus","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"initialLoopStatus"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a value satisfying "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#shouldContinue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"shouldContinue"}]},{"kind":"code","text":"("},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#initialLoopStatus()"},"code":true,"children":[{"kind":"text","text":"initialLoopStatus"}]},{"kind":"code","text":"(v)) == true"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a placeholder loop status used internally before the first iteration."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a placeholder loop status used internally before the first iteration."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/nodes/RepeatingNode.java","line":126}},{"id":"com.oracle.truffle.api.nodes.RepeatingNode#shouldContinue(java.lang.Object)","anchor":"shouldContinue(java.lang.Object)","kind":"method","name":"shouldContinue","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"shouldContinue"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"returnValue"},{"kind":"punct","text":")"}],"params":[{"name":"returnValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a value returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeatingWithValue(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"executeRepeatingWithValue()"}]}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if the loop should continue executing or false otherwise"}]}]},"doc":{"summary":[{"kind":"text","text":"Predicate called on values returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeatingWithValue(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"executeRepeatingWithValue()"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Predicate called on values returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeatingWithValue(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"executeRepeatingWithValue()"}]},{"kind":"text","text":"."}]}]},"since":"20.3","source":{"path":"com/oracle/truffle/api/nodes/RepeatingNode.java","line":140}}],"doc":{"summary":[{"kind":"text","text":"A node that is repeatedly invoked as part of a Truffle loop control structure."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A node that is repeatedly invoked as part of a Truffle loop control structure. Repeating nodes must extend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" or a subclass of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":". Repeating nodes are intended to be implemented by guest language implementations. For a full usage example please see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"LoopNode"}]},{"kind":"text","text":". Note: The result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#shouldContinue(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"shouldContinue"}]},{"kind":"code","text":"(\n"},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode#executeRepeatingWithValue(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"executeRepeatingWithValue"}]},{"kind":"code","text":"())"},{"kind":"text","text":" is automatically profiled by the loop node, so the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RepeatingNode"},"code":true,"children":[{"kind":"text","text":"repeating node"}]},{"kind":"text","text":" should not use a loop condition profile."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"LoopNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#createLoopNode(com.oracle.truffle.api.nodes.RepeatingNode)"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.createLoopNode(RepeatingNode)"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RepeatingNode.java","line":62}},{"id":"com.oracle.truffle.api.nodes.RootNode","name":"RootNode","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"RootNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutableNode","ref":"com.oracle.truffle.api.nodes.ExecutableNode"}],"superclass":[{"kind":"type","text":"ExecutableNode","ref":"com.oracle.truffle.api.nodes.ExecutableNode"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.ExecutableNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.RootNode#<init>(com.oracle.truffle.api.TruffleLanguage)","anchor":"<init>(com.oracle.truffle.api.TruffleLanguage)","kind":"constructor","name":"RootNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"RootNode"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language this root node is associated with"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates new root node with a given language instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates new root node with a given language instance. The language instance is obtainable while "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.createContext(Env)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.parse(ParsingRequest)"}]},{"kind":"text","text":" is executed. If no language environment is available, then "},{"kind":"code","text":"null"},{"kind":"text","text":" can be passed. Please note that root nodes with "},{"kind":"code","text":"null"},{"kind":"text","text":" language are considered not instrumentable and don't have access to its public "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguageInfo()"},"code":true,"children":[{"kind":"text","text":"language information"}]},{"kind":"text","text":"."}]}]},"since":"0.25","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":154}},{"id":"com.oracle.truffle.api.nodes.RootNode#<init>(com.oracle.truffle.api.TruffleLanguage,com.oracle.truffle.api.frame.FrameDescriptor)","anchor":"<init>(com.oracle.truffle.api.TruffleLanguage,com.oracle.truffle.api.frame.FrameDescriptor)","kind":"constructor","name":"RootNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"RootNode"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"frameDescriptor"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language this root node is associated with"}]}]},{"name":"frameDescriptor","type":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"}]}],"doc":{"summary":[{"kind":"text","text":"Creates new root node given an language environment and frame descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates new root node given an language environment and frame descriptor. The language instance is obtainable while "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.createContext(Env)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.parse(ParsingRequest)"}]},{"kind":"text","text":" is executed. If no language environment is available, then "},{"kind":"code","text":"null"},{"kind":"text","text":" can be passed. Please note that root nodes with "},{"kind":"code","text":"null"},{"kind":"text","text":" language are considered not instrumentable and don't have access to its public "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguageInfo()"},"code":true,"children":[{"kind":"text","text":"language information"}]},{"kind":"text","text":"."}]}]},"since":"0.25","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":169}},{"id":"com.oracle.truffle.api.nodes.RootNode#copy()","anchor":"copy()","kind":"method","name":"copy","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"copy"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new copy"}]}]},"overrides":{"id":"com.oracle.truffle.api.nodes.Node#copy()"},"doc":{"summary":[{"kind":"text","text":"Creates a shallow copy of this node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a shallow copy of this node."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":176}},{"id":"com.oracle.truffle.api.nodes.RootNode#getQualifiedName()","anchor":"getQualifiedName()","kind":"method","name":"getQualifiedName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getQualifiedName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns a qualified name of the AST that in the best case uniquely identifiers the method."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a qualified name of the AST that in the best case uniquely identifiers the method. If the qualified name is not specified by the root, then the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getName()"},"code":true,"children":[{"kind":"text","text":"name"}]},{"kind":"text","text":" is used by default. A root node that represents a Java method could consist of the package name, the class name and the method name. E.g. "},{"kind":"code","text":"mypackage.MyClass.myMethod"}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":198}},{"id":"com.oracle.truffle.api.nodes.RootNode#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a name that helps guest language programmers identify code corresponding to the AST, possibly "},{"kind":"code","text":"null"},{"kind":"text","text":" if the language implementation is unable to provide any useful information."}]}]},"doc":{"summary":[{"kind":"text","text":"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 the context of a stack dump or trace and is not expected to be called often."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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 the context of a stack dump or trace and is not expected to be called often. Can be called on any thread and without a language context. The name of a root node that represents a Java method could consist of the method name. E.g. "},{"kind":"code","text":"myMethod"}]},{"kind":"paragraph","children":[{"kind":"text","text":"In some languages AST \"compilation units\" may have no intrinsic names. When no information is available, language implementations might simply use the first few characters of the code, followed by \""},{"kind":"code","text":"..."},{"kind":"text","text":"\". Language implementations should assign a more helpful name whenever it becomes possible, for example when a functional value is assigned. This means that the name might not be stable over time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Language execution semantics should not depend on either this name or the way that it is formatted. The name should be presented in the way expected to be most useful for programmers."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":225}},{"id":"com.oracle.truffle.api.nodes.RootNode#isInternal()","anchor":"isInternal()","kind":"method","name":"isInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInternal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this root node should be considered internal and not be shown to a guest language programmer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this root node should be considered internal and not be shown to a guest language programmer. This method has effect on tools and guest language stack traces. By default a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" is internal if no language was passed in the constructor or if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"root source section"}]},{"kind":"text","text":" is set and points to an internal source. This method is intended to be overwritten by guest languages, when the node's source is internal, the implementation should respect that. Can be called on any thread and without a language context."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method may be invoked on compiled code paths. It is recommended to implement this method such that it returns a compilation final constant."}]}]},"since":"0.27","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":243}},{"id":"com.oracle.truffle.api.nodes.RootNode#countsTowardsStackTraceLimit()","anchor":"countsTowardsStackTraceLimit()","kind":"method","name":"countsTowardsStackTraceLimit","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"countsTowardsStackTraceLimit"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this root node should count towards "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getStackTraceElementLimit()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException.getStackTraceElementLimit"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this root node should count towards "},{"kind":"link","target":{"id":"com.oracle.truffle.api.exception.AbstractTruffleException#getStackTraceElementLimit()"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.exception.AbstractTruffleException.getStackTraceElementLimit"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"By default, returns the negation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isInternal()"},"code":true,"children":[{"kind":"text","text":"isInternal()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method may be invoked on compiled code paths. It is recommended to implement this method or #isInternal() such that it returns a partial evaluation constant."}]}]},"since":"21.2.0","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":265}},{"id":"com.oracle.truffle.api.nodes.RootNode#findBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame)","anchor":"findBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"findBytecodeIndex","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"findBytecodeIndex"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the top-most node of the activation or "},{"kind":"code","text":"null"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame of the activation or "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the current byte code index of the root node using a given node location and a frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the current byte code index of the root node using a given node location and a frame. Depending on the strategy (see below) either the node or the frame may be used to find the bytecode index."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is called by Truffle to determine the bytecode index when constructing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":" objects. There are two common strategies to implement this method:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"If the bytecode index is stored in the frame, then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(boolean)"},"code":true,"children":[{"kind":"text","text":"isCaptureFramesForTrace(boolean)"}]},{"kind":"text","text":" should be overridden and return "},{"kind":"code","text":"true"},{"kind":"text","text":". Next use the frame argument and read the bytecode index from the frame. Note that the provided frame may be "},{"kind":"code","text":"null"},{"kind":"text","text":" even if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(boolean)"},"code":true,"children":[{"kind":"text","text":"isCaptureFramesForTrace(boolean)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If the bytecode index is stored in the call node, then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" nodes should be walked to find the node containing the bytecode index."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should return a negative bytecode index if it is unavailable or invalid. A language implementation may assign additional semantics for individual negative byte code indices, other languages will interpret any negative index as if the index is unavailable."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getBytecodeIndex()"},"code":true,"children":[{"kind":"text","text":"to access byte code indices"}]}]]},"since":"24.1","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":296}},{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(com.oracle.truffle.api.nodes.Node)","anchor":"isCaptureFramesForTrace(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"isCaptureFramesForTrace","modifiers":["protected"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCaptureFramesForTrace"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"compiledFrame"},{"kind":"punct","text":")"}],"params":[{"name":"compiledFrame","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 24.1, implement and use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(boolean)"},"code":true,"children":[{"kind":"text","text":"isCaptureFramesForTrace(boolean)"}]},{"kind":"text","text":" instead"}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":309}},{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(boolean)","anchor":"isCaptureFramesForTrace(boolean)","kind":"method","name":"isCaptureFramesForTrace","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCaptureFramesForTrace"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"compiledFrame"},{"kind":"punct","text":")"}],"params":[{"name":"compiledFrame","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether the frame would be from a compiled execution."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if an AbstractTruffleException leaving this node should capture "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":" objects in its stack trace in addition to the default information."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if an AbstractTruffleException leaving this node should capture "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"Frame"}]},{"kind":"text","text":" objects in its stack trace in addition to the default information. This is "},{"kind":"code","text":"false"},{"kind":"text","text":" by default to avoid the attached overhead. The captured frames are then accessible through "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getFrame()"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement.getFrame()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Using the compiledFrame argument can be useful to capture the frame only for interpreted frames. This way it is possible to store the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"bytecode index"}]},{"kind":"text","text":" in the frame only in the interpreter, but never in compiled code. This is more efficient, because capturing the frame is a fast operation in the interpreter, but a slow operation for compiled frames."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":329}},{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace()","anchor":"isCaptureFramesForTrace()","kind":"method","name":"isCaptureFramesForTrace","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCaptureFramesForTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"in 24.1, implement and use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(boolean)"},"code":true,"children":[{"kind":"text","text":"isCaptureFramesForTrace(boolean)"}]},{"kind":"text","text":" instead"}]}]},"since":"0.31","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":337}},{"id":"com.oracle.truffle.api.nodes.RootNode#isCloningAllowed()","anchor":"isCloningAllowed()","kind":"method","name":"isCloningAllowed","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCloningAllowed"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if cloning is allowed else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" is allowed to be cloned."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" is allowed to be cloned. The runtime system might decide to create deep copies of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" in order to gather context sensitive profiling feedback. The default implementation returns "},{"kind":"code","text":"false"},{"kind":"text","text":". Guest language specific implementations may want to return "},{"kind":"code","text":"true"},{"kind":"text","text":" here to indicate that gathering call site specific profiling information might make sense for this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" ."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":353}},{"id":"com.oracle.truffle.api.nodes.RootNode#isCloneUninitializedSupported()","anchor":"isCloneUninitializedSupported()","kind":"method","name":"isCloneUninitializedSupported","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCloneUninitializedSupported"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if calls to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#cloneUninitialized()"},"code":true,"children":[{"kind":"text","text":"uninitialized copies"}]},{"kind":"text","text":" are supported."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#cloneUninitialized()"},"code":true,"children":[{"kind":"text","text":"cloneUninitialized()"}]},{"kind":"text","text":" can be used to create uninitialized copies of an already initialized / executed root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#cloneUninitialized()"},"code":true,"children":[{"kind":"text","text":"cloneUninitialized()"}]},{"kind":"text","text":" can be used to create uninitialized copies of an already initialized / executed root node. By default, or if this method returns "},{"kind":"code","text":"false"},{"kind":"text","text":", an optimizing Truffle runtime might need to copy the AST before it is executed for the first time to ensure it is able to create new uninitialized copies when needed. By returning "},{"kind":"code","text":"true"},{"kind":"text","text":" and therefore supporting uninitialized copies an optimizing runtime does not need to keep a reference to an uninitialized copy on its own and might therefore be able to save memory. The returned boolean needs to be immutable for a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" instance."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#cloneUninitialized()"},"code":true,"children":[{"kind":"text","text":"cloneUninitialized()"}]}]]},"since":"0.24","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":372}},{"id":"com.oracle.truffle.api.nodes.RootNode#cloneUninitialized()","anchor":"cloneUninitialized()","kind":"method","name":"cloneUninitialized","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"name","text":"cloneUninitialized"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an uninitialized copy of this root node if supported."}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if not supported"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates an uninitialized copy of an already initialized/executed root node if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCloneUninitializedSupported()"},"code":true,"children":[{"kind":"text","text":"supported"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an uninitialized copy of an already initialized/executed root node if it is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCloneUninitializedSupported()"},"code":true,"children":[{"kind":"text","text":"supported"}]},{"kind":"text","text":". Throws an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" exception by default. By default, or if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCloneUninitializedSupported()"},"code":true,"children":[{"kind":"text","text":"isCloneUninitializedSupported()"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":", an optimizing Truffle runtime might need to copy the root node before it is executed for the first time to ensure it is able to create new uninitialized copies when needed. By supporting uninitialized copies an optimizing runtime does not need to keep a reference to an uninitialized copy on its own and might therefore be able to save memory."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Two common strategies to implement "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#cloneUninitialized()"},"code":true,"children":[{"kind":"text","text":"cloneUninitialized()"}]},{"kind":"text","text":" are:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Reparsing:"}]},{"kind":"text","text":" Support it by keeping a reference to the original source code including the lexical scope and create the uninitialized copy of the root node by reparsing the source."}]}],[{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Resetting:"}]},{"kind":"text","text":" Support it by traversing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" tree and derive an uninitialized copy from each initialized node."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCloneUninitializedSupported()"},"code":true,"children":[{"kind":"text","text":"isCloneUninitializedSupported()"}]}]]},"since":"0.24","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":400}},{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)","anchor":"execute(com.oracle.truffle.api.frame.VirtualFrame)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"VirtualFrame","ref":"com.oracle.truffle.api.frame.VirtualFrame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the frame of the currently executing guest language method"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the execution"}]}]},"overrides":{"id":"com.oracle.truffle.api.nodes.ExecutableNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"doc":{"summary":[{"kind":"text","text":"Executes this function using the specified frame and returns the result value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Executes this function using the specified frame and returns the result value."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":443}},{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()","anchor":"getCallTarget()","kind":"method","name":"getCallTarget","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"},{"kind":"punct","text":" "},{"kind":"name","text":"getCallTarget"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"RootCallTarget","ref":"com.oracle.truffle.api.RootCallTarget"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":447}},{"id":"com.oracle.truffle.api.nodes.RootNode#initializeCallTarget()","anchor":"initializeCallTarget()","kind":"method","name":"initializeCallTarget","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"initializeCallTarget"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Initializes this root node's call target without executing the root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Initializes this root node's call target without executing the root node."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method has the same initialization effects as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCallTarget()"}]},{"kind":"text","text":", including invoking "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForCall()"},"code":true,"children":[{"kind":"text","text":"prepareForCall()"}]},{"kind":"text","text":" when the call target is first created. Repeated calls reuse the existing call target. Call this method after configuring the root node and before using it in the application through "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"call(Node, int, Object[])"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.IndirectCallNode#call(com.oracle.truffle.api.nodes.RootNode,int,java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"IndirectCallNode.call(RootNode, int, Object[])"}]},{"kind":"text","text":". These root-based call methods require an initialized call target and do not initialize it implicitly."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":463}},{"id":"com.oracle.truffle.api.nodes.RootNode#getFrameDescriptor()","anchor":"getFrameDescriptor()","kind":"method","name":"getFrameDescriptor","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"getFrameDescriptor"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":531}},{"id":"com.oracle.truffle.api.nodes.RootNode#isInstrumentable()","anchor":"isInstrumentable()","kind":"method","name":"isInstrumentable","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInstrumentable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Does this contain AST content that it is possible to instrument."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Does this contain AST content that it is possible to instrument. Can be called on any thread and without a language context."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":541}},{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForCall()","anchor":"prepareForCall()","kind":"method","name":"prepareForCall","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareForCall"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Prepares this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" to be called with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepares this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" to be called with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":". This method will be called exactly once when a call target is first created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCallTarget()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#initializeCallTarget()"},"code":true,"children":[{"kind":"text","text":"initializeCallTarget()"}]},{"kind":"text","text":". This method can be used to lazily initialize parts of a root node, or to validate that a root node can be used as a call target."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":553}},{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForCompilation(boolean,int,boolean)","anchor":"prepareForCompilation(boolean,int,boolean)","kind":"method","name":"prepareForCompilation","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareForCompilation"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"rootCompilation"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"compilationTier"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lastTier"},{"kind":"punct","text":")"}],"params":[{"name":"rootCompilation","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if this is a root compilation; "},{"kind":"code","text":"false"},{"kind":"text","text":" if inlining this root."}]}]},{"name":"compilationTier","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current compilation tier, as per "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getCompilationTier()"},"code":true,"children":[{"kind":"text","text":"FrameInstance.getCompilationTier()"}]},{"kind":"text","text":"."}]}]},{"name":"lastTier","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if this is the last compilation tier for which this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" is prepared; "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise. Useful for performing preparation only at the highest tier."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the method is sufficiently profiled; "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}]}]},"doc":{"summary":[{"kind":"text","text":"Prepares this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" for compilation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepares this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" for compilation. This method is guaranteed to be called at least once before any code paths are executed as compiled code (see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#inCompiledCode()"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.inCompiledCode()"}]},{"kind":"text","text":") for a given compilation tier. It may be called multiple times per compilation and can be invoked concurrently by multiple compiler threads without synchronization; therefore, it must be thread-safe. By default, this method returns "},{"kind":"code","text":"true"},{"kind":"text","text":" to indicate sufficient profiling for compilation, but implementations can return "},{"kind":"code","text":"false"},{"kind":"text","text":" if not. Returning "},{"kind":"code","text":"false"},{"kind":"text","text":" for root compilations will defer the compilation to allow for additional profiling, whereas otherwise returning "},{"kind":"code","text":"false"},{"kind":"text","text":" during inlining will disable inlining for this call site. Any exception thrown will fail the compilation for this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" permanently. Compilations are initiated by the runtime for optimization through partial evaluation and compilation. The timing and threading of compilations are runtime-specific and should not be relied upon. This method is not called for Truffle runtimes that do not support compilation, such as the fallback runtime. Compilations may be initiated for the following reasons:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" for this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" has been invoked frequently enough to trigger compilation."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LoopNode"},"code":true,"children":[{"kind":"text","text":"LoopNode"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.BytecodeOSRNode"},"code":true,"children":[{"kind":"text","text":"BytecodeOSRNode"}]},{"kind":"text","text":" has executed frequently enough to trigger OSR compilation."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The compiler is exploring inlining during compilation, preparing to inline a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"DirectCallNode"}]},{"kind":"text","text":" or an indirect call with a partially evaluated constant "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Work performed in this method counts towards compilation time, not interpretation time. Implementing this method can help offload expensive computations to compiler threads. Cache any preparation work to avoid repeating it for every compilation and inlining. To prevent deadlocks when using synchronization, adhere to the following guidelines:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Do not execute guest code or invoke "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(Object...)"}]},{"kind":"text","text":" within this method."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Avoid acquiring locks shared with execution threads, especially across call boundaries or loop back-edges when OSR compilation is enabled."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"java.util.concurrent.atomic.AtomicReferenceFieldUpdater","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.html"},"code":true,"children":[{"kind":"text","text":"AtomicReferenceFieldUpdater"}]},{"kind":"text","text":" CAS-locking for caching non-expensive preparation work to minimize contention."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Ensure all synchronization primitives are released upon method exit; use finally blocks for safety."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"During the execution of this method, if this root node is associated with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":", that language is entered, but no language context is entered. In that case, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference"},"code":true,"children":[{"kind":"text","text":"LanguageReference"}]},{"kind":"text","text":" can be used, but "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextThreadLocal"},"code":true,"children":[{"kind":"text","text":"ContextThreadLocal"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.ContextLocal"},"code":true,"children":[{"kind":"text","text":"ContextLocal"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference"},"code":true,"children":[{"kind":"text","text":"ContextReference"}]},{"kind":"text","text":" cannot be used."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":619}},{"id":"com.oracle.truffle.api.nodes.RootNode#visitCloneableNodes(com.oracle.truffle.api.nodes.NodeVisitor)","anchor":"visitCloneableNodes(com.oracle.truffle.api.nodes.NodeVisitor)","kind":"method","name":"visitCloneableNodes","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"visitCloneableNodes"},{"kind":"punct","text":"("},{"kind":"type","text":"NodeVisitor","ref":"com.oracle.truffle.api.nodes.NodeVisitor"},{"kind":"punct","text":" "},{"kind":"param","text":"visitor"},{"kind":"punct","text":")"}],"params":[{"name":"visitor","type":[{"kind":"type","text":"NodeVisitor","ref":"com.oracle.truffle.api.nodes.NodeVisitor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the visitor invoked for each node"}]}]}],"doc":{"summary":[{"kind":"text","text":"Visits nodes that may be cloned with this root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Visits nodes that may be cloned with this root node. The default implementation visits this root and its ordinary children. Overrides must invoke the superclass implementation before visiting additional node trees stored outside of ordinary child fields. Additional node trees must be visited at most once and must not be reachable through ordinary child fields."}]}]},"since":"25.6","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":632}},{"id":"com.oracle.truffle.api.nodes.RootNode#isTrivial()","anchor":"isTrivial()","kind":"method","name":"isTrivial","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isTrivial"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true "},{"kind":"text","text":"if this root node should be considered trivial by the runtime. "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}]}]},"doc":{"summary":[{"kind":"text","text":"Is this root node to be considered trivial by the runtime."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Is this root node to be considered trivial by the runtime. A trivial root node is defined as a root node that:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Never increases code size when inlined, i.e. is always less complex then the call."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Never performs guest language calls."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Never contains loops."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Is small (for a language-specific definition of small)."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"An good example of trivial root nodes would be getters and setters in java."}]}]},"since":"20.3.0","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":653}},{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForInstrumentation(java.util.Set)","anchor":"prepareForInstrumentation(java.util.Set)","kind":"method","name":"prepareForInstrumentation","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareForInstrumentation"},{"kind":"punct","text":"("},{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>> "},{"kind":"param","text":"tags"},{"kind":"punct","text":")"}],"params":[{"name":"tags","type":[{"kind":"type","text":"Set","ref":"java.util.Set","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>>"}]}],"doc":{"summary":[{"kind":"text","text":"Prepares a root node for use with the Truffle instrumentation framework."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prepares a root node for use with the Truffle instrumentation framework. This is similar to materialization of syntax nodes in an InstrumentableNode, but this method should be preferred if the root node is updated as a whole and the individual materialization of nodes is not needed. Another advantage of this method is that it is always invoked before "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"getSourceSection()"}]},{"kind":"text","text":" by the instrumentation framework. This allows to perform the materialization of sources and tags in one operation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is invoked repeatedly and should not perform any operation if a set of tags was already prepared before. In other words, this method should stabilize and eventually not perform any operation if the same tags were observed before."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":671}},{"id":"com.oracle.truffle.api.nodes.RootNode#findInstrumentableCallNode(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame,int)","anchor":"findInstrumentableCallNode(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame,int)","kind":"method","name":"findInstrumentableCallNode","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"name","text":"findInstrumentableCallNode"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"callNode"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":")"}],"params":[{"name":"callNode","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the top-most node of the activation or "},{"kind":"code","text":"null"}]}]},{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current frame of the activation or "},{"kind":"code","text":"null"}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current bytecode index of the activation or a negative number"}]}]}],"returns":{"type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},"doc":{"summary":[{"kind":"text","text":"Returns an instrumentable call node from a node and frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an instrumentable call node from a node and frame. By default, returns the given "},{"kind":"code","text":"callNode"},{"kind":"text","text":". If the returned node is not instrumentable, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" chain of the node may be traversed until an instrumentable node is found (thus, the returned node should be adopted)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method should be implemented if the instrumentable call node is not reachable through the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" chain of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameInstance#getCallNode()"},"code":true,"children":[{"kind":"text","text":"call node"}]},{"kind":"text","text":". For example, in bytecode interpreters instrumentable nodes may be stored in a side data structure and the instrumentable node must be looked up using the bytecode index. This method is intended to be overridden to implement specify such behavior."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.Frame"},"code":true,"children":[{"kind":"text","text":"frame"}]},{"kind":"text","text":" parameter is only provided if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isCaptureFramesForTrace(boolean)"},"code":true,"children":[{"kind":"text","text":"isCaptureFramesForTrace(boolean)"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":". If the frame is not captured then the frame parameter is "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"code","text":"bytecodeIndex"},{"kind":"text","text":" parameter takes on the value produced by calling "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#findBytecodeIndex(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.frame.Frame)"},"code":true,"children":[{"kind":"text","text":"findBytecodeIndex(Node, Frame)"}]},{"kind":"text","text":" ("},{"kind":"code","text":"-1"},{"kind":"text","text":" unless overridden)."}]}]},"since":"24.2","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":699}},{"id":"com.oracle.truffle.api.nodes.RootNode#findAsynchronousFrames(com.oracle.truffle.api.frame.Frame)","anchor":"findAsynchronousFrames(com.oracle.truffle.api.frame.Frame)","kind":"method","name":"findAsynchronousFrames","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":"> "},{"kind":"name","text":"findAsynchronousFrames"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame"},{"kind":"punct","text":")"}],"params":[{"name":"frame","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"A frame, never "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":" when no asynchronous stack is available."}]}]},"doc":{"summary":[{"kind":"text","text":"Provide a list of stack frames that led to a schedule of asynchronous execution of this root node on the provided frame."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provide a list of stack frames that led to a schedule of asynchronous execution of this root node on the provided frame. The asynchronous frames are expected to be found here when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getAsynchronousStackDepth()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getAsynchronousStackDepth()"}]},{"kind":"text","text":" is positive. The language is free to provide asynchronous frames or longer list of frames when it's of no performance penalty, or if requested by other options. This method is invoked on slow-paths only and with a context entered."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getAsynchronousStackDepth()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getAsynchronousStackDepth()"}]}]]},"since":"20.1.0","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":717}},{"id":"com.oracle.truffle.api.nodes.RootNode#translateStackTraceElement(com.oracle.truffle.api.TruffleStackTraceElement)","anchor":"translateStackTraceElement(com.oracle.truffle.api.TruffleStackTraceElement)","kind":"method","name":"translateStackTraceElement","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"translateStackTraceElement"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"},{"kind":"punct","text":" "},{"kind":"param","text":"element"},{"kind":"punct","text":")"}],"params":[{"name":"element","type":[{"kind":"type","text":"TruffleStackTraceElement","ref":"com.oracle.truffle.api.TruffleStackTraceElement"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Translates the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":" into an interop object supporting the "},{"kind":"code","text":"hasExecutableName"},{"kind":"text","text":" and potentially "},{"kind":"code","text":"hasDeclaringMetaObject"},{"kind":"text","text":" and "},{"kind":"code","text":"hasSourceLocation"},{"kind":"text","text":" messages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Translates the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement"},"code":true,"children":[{"kind":"text","text":"TruffleStackTraceElement"}]},{"kind":"text","text":" into an interop object supporting the "},{"kind":"code","text":"hasExecutableName"},{"kind":"text","text":" and potentially "},{"kind":"code","text":"hasDeclaringMetaObject"},{"kind":"text","text":" and "},{"kind":"code","text":"hasSourceLocation"},{"kind":"text","text":" messages. An executable name must be provided, whereas the declaring meta object and source location is optional. Guest languages may typically return their function objects that typically already implement the required contracts."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The intention of this method is to provide a guest language object for other languages that they can inspect using interop. An implementation of this method is expected to not fail with a guest error. Implementations are allowed to do "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ContextReference#get(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"context reference lookups"}]},{"kind":"text","text":" in the implementation of the method. This may be useful to access the function objects needed to resolve the stack trace element."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleStackTraceElement#getGuestObject()"},"code":true,"children":[{"kind":"text","text":"to access the guest object of a stack trace element."}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":738}},{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForAOT()","anchor":"prepareForAOT()","kind":"method","name":"prepareForAOT","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"ExecutionSignature","ref":"com.oracle.truffle.api.nodes.ExecutionSignature"},{"kind":"punct","text":" "},{"kind":"name","text":"prepareForAOT"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ExecutionSignature","ref":"com.oracle.truffle.api.nodes.ExecutionSignature"}]},"doc":{"summary":[{"kind":"text","text":"Allows languages to perform actions before a root node is attempted to be compiled without prior call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"execute(VirtualFrame)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows languages to perform actions before a root node is attempted to be compiled without prior call to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"execute(VirtualFrame)"}]},{"kind":"text","text":". By default this method returns "},{"kind":"code","text":"null"},{"kind":"text","text":" to indicate that AOT compilation is not supported. Any non-null value indicates that compilation without execution is supported for this root node. This method is guaranteed to not be invoked prior to any calls to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"execute"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Common tasks that need to be performed by this method:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Initialize local variable types in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"FrameDescriptor"}]},{"kind":"text","text":" of the root node. Without that any access to the frame will invalidate the code on first execute."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Initialize specializing nodes with profiles that do not invalidate on first execution. For initialization of Truffle DSL nodes see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.AOTSupport"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.dsl.AOTSupport"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Compute the expected execution signature of a root node and return it."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If possible an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutionSignature"},"code":true,"children":[{"kind":"text","text":"execution signature"}]},{"kind":"text","text":" should be returned for better call efficiency. If the argument and return profile is not available or cannot be derived the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutionSignature#GENERIC"},"code":true,"children":[{"kind":"text","text":"ExecutionSignature.GENERIC"}]},{"kind":"text","text":" can be used to indicate that any value needs to be expected for as argument from or as return value of the method. To indicate that a type is unknown a "},{"kind":"code","text":"null"},{"kind":"text","text":" return or argument type should be used. The type "},{"kind":"code","text":"Object"},{"kind":"text","text":" type should not be used in that case."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is invoked when no context is currently "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleContext#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"entered"}]},{"kind":"text","text":" therefore no guest application code must be executed. The execution might happen on any thread, even threads unknown to the guest language implementation. It is allowed to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"call targets"}]},{"kind":"text","text":" during preparation of the root node or perform modifications to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" of this root node."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#prepareForCompilation(boolean,int,boolean)"},"code":true,"children":[{"kind":"text","text":"prepareForCompilation(boolean, int, boolean)"}]}]]},"since":"20.3","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":778}},{"id":"com.oracle.truffle.api.nodes.RootNode#createConstantNode(java.lang.Object)","anchor":"createConstantNode(java.lang.Object)","kind":"method","name":"createConstantNode","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"},{"kind":"punct","text":" "},{"kind":"name","text":"createConstantNode"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"constant"},{"kind":"punct","text":")"}],"params":[{"name":"constant","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the constant to return"}]}]}],"returns":{"type":[{"kind":"type","text":"RootNode","ref":"com.oracle.truffle.api.nodes.RootNode"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"root node returning the constant"}]}]},"doc":{"summary":[{"kind":"text","text":"Helper method to create a root node that always returns the same value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Helper method to create a root node that always returns the same value. Certain operations (especially "},{"kind":"link","target":{"id":"com.oracle.truffle.api.interop"},"code":true,"children":[{"kind":"text","text":"inter-operability"}]},{"kind":"text","text":" API) require return of stable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"root nodes"}]},{"kind":"text","text":". To simplify creation of such nodes, here is a factory method that can create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" that returns always the same value."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":792}},{"id":"com.oracle.truffle.api.nodes.RootNode#getParentFrameDescriptor()","anchor":"getParentFrameDescriptor()","kind":"method","name":"getParentFrameDescriptor","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"getParentFrameDescriptor"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FrameDescriptor","ref":"com.oracle.truffle.api.frame.FrameDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The frame descriptor of the lexical parent scope if it exists. "},{"kind":"code","text":"null"},{"kind":"text","text":" otherwise."}]}]},"doc":{"summary":[{"kind":"text","text":"If this root node has a lexical scope parent, this method returns its frame descriptor."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If this root node has a lexical scope parent, this method returns its frame descriptor. As an example, consider the following pseudocode:"}]},{"kind":"code","text":"def m {\n  # For the \"m\" root node:\n  # getFrameDescriptor       returns FrameDescriptor(m)\n  # getParentFrameDescriptor returns null\n  var_method = 0\n  a = () -> {\n    # For the \"a lambda\" root node:\n    # getFrameDescriptor       returns FrameDescriptor(a)\n    # getParentFrameDescriptor returns FrameDescriptor(m)\n    var_lambda1 = 1\n    b = () -> {\n      # For the \"b lambda\" root node:\n      # getFrameDescriptor       returns FrameDescriptor(b)\n      # getParentFrameDescriptor returns FrameDescriptor(a)\n      var_method + var_lambda1\n    }\n    b.call\n  }\n  a.call\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"This info is used by the runtime to optimize compilation order by giving more priority to lexical parents which are likely to inline the child thus resulting in better performance sooner rather than waiting for the lexical parent to get hot on its own."}]}]},"since":"22.3.0","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":832}},{"id":"com.oracle.truffle.api.nodes.RootNode#isSameFrame(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)","anchor":"isSameFrame(com.oracle.truffle.api.frame.Frame,com.oracle.truffle.api.frame.Frame)","kind":"method","name":"isSameFrame","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isSameFrame"},{"kind":"punct","text":"("},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame1"},{"kind":"punct","text":", "},{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"},{"kind":"punct","text":" "},{"kind":"param","text":"frame2"},{"kind":"punct","text":")"}],"params":[{"name":"frame1","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]},{"name":"frame2","type":[{"kind":"type","text":"Frame","ref":"com.oracle.truffle.api.frame.Frame"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Tests if two frames are the same."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if two frames are the same. This method is mainly used by instruments in case of "},{"kind":"code","text":"yield"},{"kind":"text","text":" of the execution and later resume. Frame comparison is used to match the particular yielded and resumed execution."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The default implementation compares the frames identity."}]}]},"since":"24.0","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":845}},{"id":"com.oracle.truffle.api.nodes.RootNode#computeSize()","anchor":"computeSize()","kind":"method","name":"computeSize","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"computeSize"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Computes a size estimate of this root node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Computes a size estimate of this root node. This is intended to be overwritten if the size of the root node cannot be estimated from the natural AST size. For example, in case the root node is represented by a bytecode interpreter. If "},{"kind":"code","text":"-1"},{"kind":"text","text":" is returned, the regular AST size estimate is going to be used. By default this method returns "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The size estimate is guaranteed to be invoked only once when the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" is created by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCallTarget()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#initializeCallTarget()"},"code":true,"children":[{"kind":"text","text":"initializeCallTarget()"}]},{"kind":"text","text":". This method will never be invoked after the root node was already executed."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":878}},{"id":"com.oracle.truffle.api.nodes.RootNode#call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])","anchor":"call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])","kind":"method","name":"call","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"call"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"location"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bytecodeIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"arguments"},{"kind":"punct","text":")"}],"params":[{"name":"location","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"Node"}]},{"kind":"text","text":" that identifies the location of this call. The location may be "},{"kind":"code","text":"null"},{"kind":"text","text":" if no location is available."}]}]},{"name":"bytecodeIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bytecode index associated with this call, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if no explicit bytecode index is available."}]}]},{"name":"arguments","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments passed to the call, as an object array."}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of the call."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the call target has not been initialized"}]}]}],"doc":{"summary":[{"kind":"text","text":"Calls this root node with an explicit call location, bytecode index, and arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Calls this root node with an explicit call location, bytecode index, and arguments."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Unlike a generic "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" call, a call specialized to a concrete "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" class exposes its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"execute"}]},{"kind":"text","text":" implementation to the host compiler. This may allow the host compiler to inline further across the call boundary, including into "},{"kind":"code","text":"execute"},{"kind":"text","text":". Callers that do not have an explicit bytecode index should pass "},{"kind":"code","text":"-1"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The call target must already be initialized using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#initializeCallTarget()"},"code":true,"children":[{"kind":"text","text":"initializeCallTarget()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"getCallTarget()"}]},{"kind":"text","text":". This method does not initialize the call target."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(com.oracle.truffle.api.nodes.Node,int,java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(Node, int, Object[])"}]}]]},"since":"25.6","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":903}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.ExecutableNode","text":"ExecutableNode"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguage(java.lang.Class)","text":"getLanguage"},{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguageInfo()","text":"getLanguageInfo"}]},{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents the root node in a Truffle AST."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents the root node in a Truffle AST. The root node is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" that allows to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)"},"code":true,"children":[{"kind":"text","text":"executed"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.VirtualFrame"},"code":true,"children":[{"kind":"text","text":"frame"}]},{"kind":"text","text":" instance created by the framework. Please note that the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"RootNode"}]},{"kind":"text","text":" should not be executed directly but using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"CallTarget.call(Object...)"}]},{"kind":"text","text":". The structure of the frame is provided by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.frame.FrameDescriptor"},"code":true,"children":[{"kind":"text","text":"frame descriptor"}]},{"kind":"text","text":" passed in the constructor. A root node has always a "},{"kind":"code","text":"null"},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" and cannot be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#replace(T)"},"code":true,"children":[{"kind":"text","text":"replaced"}]},{"kind":"text","text":"."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Construction"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The root node can be constructed with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language implementation"}]},{"kind":"text","text":" if it is available. The language implementation instance is obtainable while "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.createContext(Env)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#parse(com.oracle.truffle.api.TruffleLanguage.ParsingRequest)"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.parse(ParsingRequest)"}]},{"kind":"text","text":" is executed. If no language environment is available, then "},{"kind":"code","text":"null"},{"kind":"text","text":" can be passed. Please note that root nodes with "},{"kind":"code","text":"null"},{"kind":"text","text":" language are considered not instrumentable and don't have access to its public "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.ExecutableNode#getLanguageInfo()"},"code":true,"children":[{"kind":"text","text":"language information"}]},{"kind":"text","text":"."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Execution"}]},{"kind":"paragraph","children":[{"kind":"text","text":"In order to execute a root node, its call target is lazily created and can be accessed via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#getCallTarget()"},"code":true,"children":[{"kind":"text","text":"RootNode.getCallTarget()"}]},{"kind":"text","text":". This allows the runtime system to optimize the execution of the AST. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"CallTarget"}]},{"kind":"text","text":" can either be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"called"}]},{"kind":"text","text":" directly from runtime code or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode"},"code":true,"children":[{"kind":"text","text":"direct"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.IndirectCallNode"},"code":true,"children":[{"kind":"text","text":"indirect"}]},{"kind":"text","text":" call nodes can be created, inserted in a child field and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DirectCallNode#call(java.lang.Object...)"},"code":true,"children":[{"kind":"text","text":"called"}]},{"kind":"text","text":". The use of direct call nodes allows the framework to automatically inline and further optimize call sites based on heuristics."}]},{"kind":"paragraph","children":[{"kind":"text","text":"After several calls to a call target or call node, the root node might get compiled using partial evaluation. The details of the compilation heuristic are unspecified, therefore the Truffle runtime system might decide to not compile at all."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Cardinalities"}]},{"kind":"paragraph","children":[{"kind":"emphasis","children":[{"kind":"text","text":"One"}]},{"kind":"text","text":" root node instance refers to other classes using the following cardinalities:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"emphasis","children":[{"kind":"text","text":"one"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]}]}],[{"kind":"paragraph","children":[{"kind":"emphasis","children":[{"kind":"text","text":"one"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CallTarget"},"code":true,"children":[{"kind":"text","text":"call target"}]}]}],[{"kind":"paragraph","children":[{"kind":"emphasis","children":[{"kind":"text","text":"many"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#createContext(com.oracle.truffle.api.TruffleLanguage.Env)"},"code":true,"children":[{"kind":"text","text":"created"}]},{"kind":"text","text":" language contexts"}]}]]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Instrumentation"}]},{"kind":"paragraph","children":[{"kind":"text","text":"A root node can be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation"},"children":[{"kind":"text","text":"instrumented"}]},{"kind":"text","text":" if the following conditions apply:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"A non-null "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"language"}]},{"kind":"text","text":" is passed in the root node constructor."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode#isInstrumentable()"},"code":true,"children":[{"kind":"text","text":"isInstrumentable()"}]},{"kind":"text","text":" is overridden and returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"getSourceSection()"}]},{"kind":"text","text":" is overridden and returns a non-null value."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"The AST contains at least one node that implements "},{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.InstrumentableNode"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.instrumentation.InstrumentableNode"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended that children of instrumentable root nodes are tagged with "},{"kind":"code","text":"StandardTags"},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Note:"}]},{"kind":"text","text":" It is recommended to override "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()"},"code":true,"children":[{"kind":"text","text":"getSourceSection()"}]},{"kind":"text","text":" and provide a source section if available. This allows for better testing/tracing/tooling. If no concrete source section is available please consider using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createUnavailableSection()"},"code":true,"children":[{"kind":"text","text":"Source.createUnavailableSection()"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/RootNode.java","line":133}},{"id":"com.oracle.truffle.api.nodes.SlowPathException","name":"SlowPathException","kind":"class","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SlowPathException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"superclass":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"ancestors":[{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.SlowPathException#<init>()","anchor":"<init>()","kind":"constructor","name":"SlowPathException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"SlowPathException"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Creates an exception thrown to enter a slow path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an exception thrown to enter a slow path."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/SlowPathException.java","line":60}},{"id":"com.oracle.truffle.api.nodes.SlowPathException#<init>(java.lang.String,java.lang.Throwable)","anchor":"<init>(java.lang.String,java.lang.Throwable)","kind":"constructor","name":"SlowPathException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"SlowPathException"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":", "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]}],"doc":{"summary":[{"kind":"text","text":"Creates an exception thrown to enter a slow path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an exception thrown to enter a slow path."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/SlowPathException.java","line":69}},{"id":"com.oracle.truffle.api.nodes.SlowPathException#<init>(java.lang.String)","anchor":"<init>(java.lang.String)","kind":"constructor","name":"SlowPathException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"SlowPathException"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"doc":{"summary":[{"kind":"text","text":"Creates an exception thrown to enter a slow path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an exception thrown to enter a slow path."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/SlowPathException.java","line":79}},{"id":"com.oracle.truffle.api.nodes.SlowPathException#<init>(java.lang.Throwable)","anchor":"<init>(java.lang.Throwable)","kind":"constructor","name":"SlowPathException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"SlowPathException"},{"kind":"punct","text":"("},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"param","text":"cause"},{"kind":"punct","text":")"}],"params":[{"name":"cause","type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]}],"doc":{"summary":[{"kind":"text","text":"Creates an exception thrown to enter a slow path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an exception thrown to enter a slow path."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/SlowPathException.java","line":89}},{"id":"com.oracle.truffle.api.nodes.SlowPathException#fillInStackTrace()","anchor":"fillInStackTrace()","kind":"method","name":"fillInStackTrace","modifiers":["public","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"19.0\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"fillInStackTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},"overrides":{"id":"java.lang.Throwable#fillInStackTrace()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},"doc":{"summary":[{"kind":"text","text":"For performance reasons, this exception does not record any stack trace information."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"For performance reasons, this exception does not record any stack trace information."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the method will become final in future releases."}]}],"since":"19.0"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/SlowPathException.java","line":101}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception thrown to enter a slow path."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception thrown to enter a slow path. The Truffle optimizer has special knowledge of this exception class and will never compile a catch block that catches this exception type."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/SlowPathException.java","line":51}},{"id":"com.oracle.truffle.api.nodes.UnadoptableNode","name":"UnadoptableNode","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"UnadoptableNode"}],"doc":{"summary":[{"kind":"text","text":"Marks a node unadoptable, this means that the parent pointer will never be written by the Truffle framework."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks a node unadoptable, this means that the parent pointer will never be written by the Truffle framework. If nodes need to be statically shared then they must not be adoptable, because otherwise the parent reference might cause a memory leak. If a node is not adoptable then then it is guaranteed that the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getParent()"},"code":true,"children":[{"kind":"text","text":"parent"}]},{"kind":"text","text":" pointer remains "},{"kind":"code","text":"null"},{"kind":"text","text":" at all times, even if the node is tried to be adopted by a parent."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Node that unadoptable nodes should usually also be annotated with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DenyReplace"},"code":true,"children":[{"kind":"text","text":"DenyReplace"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()"},"code":true,"children":[{"kind":"text","text":"Node.isAdoptable()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.DenyReplace"},"code":true,"children":[{"kind":"text","text":"DenyReplace"}]}]]},"since":"24.1","source":{"path":"com/oracle/truffle/api/nodes/UnadoptableNode.java","line":56}},{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException","name":"UnexpectedResultException","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"UnexpectedResultException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"SlowPathException","ref":"com.oracle.truffle.api.nodes.SlowPathException"}],"superclass":[{"kind":"type","text":"SlowPathException","ref":"com.oracle.truffle.api.nodes.SlowPathException"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.SlowPathException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException#<init>(java.lang.Object)","anchor":"<init>(java.lang.Object)","kind":"constructor","name":"UnexpectedResultException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"UnexpectedResultException"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"result","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the alternative result"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates the exception with the alternative result that cannot be represented as a value of the return type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates the exception with the alternative result that cannot be represented as a value of the return type."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/UnexpectedResultException.java","line":65}},{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException#getResult()","anchor":"getResult()","kind":"method","name":"getResult","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getResult"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the unexpected result"}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/UnexpectedResultException.java","line":74}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.SlowPathException","text":"SlowPathException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.SlowPathException#fillInStackTrace()","text":"fillInStackTrace"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An exception that should be thrown if the return value cannot be represented as a value of the return type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An exception that should be thrown if the return value cannot be represented as a value of the return type. The Truffle optimizer has special knowledge of this exception class and will never compile a catch block that catches this exception type."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/nodes/UnexpectedResultException.java","line":52}}]},{"id":"com.oracle.truffle.api.object","name":"com.oracle.truffle.api.object","doc":{"summary":[{"kind":"text","text":"Dynamic object storage model."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Dynamic object storage model."}]}]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.object.DoubleLocation","name":"DoubleLocation","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"DoubleLocation"}],"members":[{"id":"com.oracle.truffle.api.object.DoubleLocation#getDouble(com.oracle.truffle.api.object.DynamicObject,boolean)","anchor":"getDouble(com.oracle.truffle.api.object.DynamicObject,boolean)","kind":"method","name":"getDouble","annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"condition"},{"kind":"punct","text":")"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"condition","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"doc":{"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#get(com.oracle.truffle.api.object.DynamicObject,boolean)"},"code":true,"children":[{"kind":"text","text":"Location.get(DynamicObject, boolean)"}]}]]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/DoubleLocation.java","line":57}},{"id":"com.oracle.truffle.api.object.DoubleLocation#setDouble(com.oracle.truffle.api.object.DynamicObject,double,com.oracle.truffle.api.object.Shape)","anchor":"setDouble(com.oracle.truffle.api.object.DynamicObject,double,com.oracle.truffle.api.object.Shape)","kind":"method","name":"setDouble","annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"param","text":"shape"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FinalLocationException","ref":"com.oracle.truffle.api.object.FinalLocationException"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]},{"name":"shape","type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]}],"throws":[{"type":[{"kind":"type","text":"FinalLocationException","ref":"com.oracle.truffle.api.object.FinalLocationException"}],"declared":true}],"doc":{"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#set(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,com.oracle.truffle.api.object.Shape)"},"code":true,"children":[{"kind":"text","text":"Location.set(DynamicObject, Object, Shape)"}]}]]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/DoubleLocation.java","line":64}}],"doc":{"summary":[{"kind":"text","text":"Double-typed storage location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Double-typed storage location."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location"},"code":true,"children":[{"kind":"text","text":"Location"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getDoubleOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.getDoubleOrDefault"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putDouble(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,double)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.putDouble"}]}]]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/DoubleLocation.java","line":51}},{"id":"com.oracle.truffle.api.object.DynamicObject","name":"DynamicObject","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleObject","ref":"com.oracle.truffle.api.interop.TruffleObject"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"TruffleObject","ref":"com.oracle.truffle.api.interop.TruffleObject"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.object.DynamicObject#<init>(com.oracle.truffle.api.object.Shape)","anchor":"<init>(com.oracle.truffle.api.object.Shape)","kind":"constructor","name":"DynamicObject","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"param","text":"shape"},{"kind":"punct","text":")"}],"params":[{"name":"shape","type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the initial shape of this object"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if called with an illegal (incompatible) shape"}]}]}],"doc":{"summary":[{"kind":"text","text":"Constructor for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" subclasses. Initializes the object with the provided shape. The shape must have been constructed with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#layout(java.lang.Class,java.lang.invoke.MethodHandles.Lookup)"},"children":[{"kind":"text","text":"layout class"}]},{"kind":"text","text":" assignable from this class (i.e., the concrete subclass, a superclass thereof, including "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":") and must not have any instance properties (but may have constant properties)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Examples:"}]},{"kind":"code","text":"Shape shape = Shape.newBuilder().build();\nDynamicObject myObject = new MyObject(shape);"},{"kind":"code","text":"Shape shape = Shape.newBuilder().layout(MyObject.class, MethodHandles.lookup()).build();\nDynamicObject myObject = new MyObject(shape);"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":216}},{"id":"com.oracle.truffle.api.object.DynamicObject#getShape()","anchor":"getShape()","kind":"method","name":"getShape","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"getShape"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]},"doc":{"summary":[{"kind":"text","text":"Get the object's current shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the object's current shape."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":256}},{"id":"com.oracle.truffle.api.object.DynamicObject#clone()","anchor":"clone()","kind":"method","name":"clone","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"clone"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"CloneNotSupportedException","ref":"java.lang.CloneNotSupportedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CloneNotSupportedException.html"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"CloneNotSupportedException","ref":"java.lang.CloneNotSupportedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CloneNotSupportedException.html"}],"declared":true}],"overrides":{"id":"java.lang.Object#clone()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},"doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject#clone()"},"code":true,"children":[{"kind":"text","text":"clone()"}]},{"kind":"text","text":" method is not supported by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" at this point in time, so it always throws "},{"kind":"link","target":{"id":"java.lang.CloneNotSupportedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CloneNotSupportedException.html"},"code":true,"children":[{"kind":"text","text":"CloneNotSupportedException"}]},{"kind":"text","text":", even if the "},{"kind":"link","target":{"id":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"},"code":true,"children":[{"kind":"text","text":"Cloneable"}]},{"kind":"text","text":" interface is implemented in a subclass."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject#clone()"},"code":true,"children":[{"kind":"text","text":"clone()"}]},{"kind":"text","text":" method is not supported by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" at this point in time, so it always throws "},{"kind":"link","target":{"id":"java.lang.CloneNotSupportedException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CloneNotSupportedException.html"},"code":true,"children":[{"kind":"text","text":"CloneNotSupportedException"}]},{"kind":"text","text":", even if the "},{"kind":"link","target":{"id":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"},"code":true,"children":[{"kind":"text","text":"Cloneable"}]},{"kind":"text","text":" interface is implemented in a subclass. Subclasses may however override this method and create a copy of this object by constructing a new object and copying any properties over manually."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":302}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a dynamic object, members of which can be dynamically added and removed at run time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a dynamic object, members of which can be dynamically added and removed at run time. To use it, extend "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" and use nodes nested under DynamicObject such as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetNode"}]},{"kind":"text","text":" for object accesses. When "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject#<init>(com.oracle.truffle.api.object.Shape)"},"children":[{"kind":"text","text":"constructing"}]},{"kind":"text","text":" a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":", it has to be initialized with an empty initial shape. Initial shapes are created using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#newBuilder()"},"code":true,"children":[{"kind":"text","text":"Shape.newBuilder()"}]},{"kind":"text","text":" and should ideally be shared per "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" instance to allow shape caches to be shared across contexts. Subclasses can provide in-object dynamic field slots using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$DynamicField"},"code":true,"children":[{"kind":"text","text":"DynamicField"}]},{"kind":"text","text":" annotation and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#layout(java.lang.Class,java.lang.invoke.MethodHandles.Lookup)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.layout"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example:"}]},{"kind":"code","language":"java","text":"public class MyObject extends DynamicObject implements TruffleObject {\n    MyObject(Shape shape) {\n        super(shape);\n    }\n\n    static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup();\n}\n\npublic abstract class MyTruffleLanguage extends TruffleLanguage<MyContext> {\n    final Shape initialShape = Shape.newBuilder().build();\n\n    public MyObject newObject() {\n        return new MyObject(initialShape);\n    }\n}"},{"kind":"heading","level":2,"children":[{"kind":"text","text":"Using DynamicObject nodes"}]},{"kind":"paragraph","children":[{"kind":"text","text":"DynamicObject nodes is the central interface for accessing and mutating properties and other state (flags, dynamic type) of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":"s. All nodes provide cached and uncached variants."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: Property keys are always compared using object identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), never with "},{"kind":"code","text":"\nequals"},{"kind":"text","text":", for efficiency reasons. If the node is not used with a fixed key, and some keys might be "},{"kind":"code","text":"equals"},{"kind":"text","text":" but not have the same identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), you must either intern the keys first, or cache the key by equality using an inline cache and use the cached key with the DynamicObject node to ensure equal keys with different identity will use the same cache entry and not overflow the cache:"}]},{"kind":"code","language":"java","text":"abstract static class GetStringKeyNode extends Node {\n    abstract Object execute(DynamicObject receiver, Object key);\n\n    @Specialization(guards = \"equalNode.execute(key, cachedKey, UTF_16)\", limit = \"3\")\n    static Object doCached(MyDynamicObjectSubclass receiver, TruffleString key,\n                    @Cached(\"key\") TruffleString cachedKey,\n                    @Cached TruffleString.EqualNode equalNode,\n                    @Cached DynamicObject.GetNode getNode) {\n        return getNode.execute(receiver, cachedKey, NULL_VALUE);\n    }\n}"},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage examples:"}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Simple use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode"},"code":true,"children":[{"kind":"text","text":"GetNode"}]},{"kind":"text","text":" with a pre-interned symbol key."}]},{"kind":"code","language":"java","text":"abstract static class GetSimpleNode extends Node {\n    abstract Object execute(DynamicObject receiver, Object key);\n\n    @Specialization\n    static Object doCached(MyDynamicObjectSubclass receiver, Symbol key,\n                    @Cached DynamicObject.GetNode getNode) {\n        return getNode.execute(receiver, key, NULL_VALUE);\n    }\n}"},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Implementing InteropLibrary messages using DynamicObject access nodes:"}]},{"kind":"code","language":"java","text":"@ExportLibrary(InteropLibrary.class)\nstatic class MyDynamicObjectSubclass extends DynamicObject {\n    MyDynamicObjectSubclass(Shape shape) {\n        super(shape);\n    }\n\n    @ExportMessage\n    Object readMember(String member,\n                    @Cached DynamicObject.GetNode getNode) throws UnknownIdentifierException {\n        Object result = getNode.execute(this, member, null);\n        if (result == null) {\n            throw UnknownIdentifierException.create(member);\n        }\n        return result;\n    }"},{"kind":"paragraph","children":[{"kind":"text","text":"Member name equality check omitted for brevity."}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Adding extra dynamic fields to a DynamicObject subclass:"}]},{"kind":"code","language":"java","text":"public class MyObjectWithFields extends DynamicObject implements TruffleObject {\n    @DynamicField private Object extra1;\n    @DynamicField private Object extra2;\n    @DynamicField private long extraLong1;\n    @DynamicField private long extraLong2;\n\n    MyObjectWithFields(Shape shape) {\n        super(shape);\n    }\n\n    static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup();\n}\n\nShape initialShape = Shape.newBuilder().layout(MyObject.class, MyObject.LOOKUP).build();\n\nMyObject obj = new MyObject(initialShape);"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject#<init>(com.oracle.truffle.api.object.Shape)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.DynamicObject(Shape)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#newBuilder()"},"code":true,"children":[{"kind":"text","text":"Shape.newBuilder()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.ContainsKeyNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.PutNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetPropertyNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetPropertyFlagsNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.SetPropertyFlagsNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.CopyPropertiesNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetKeyArrayNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetPropertyArrayNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.RemoveKeyNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.PutConstantNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetDynamicTypeNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.SetDynamicTypeNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetShapeFlagsNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.SetShapeFlagsNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.UpdateShapeNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.ResetShapeNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.IsSharedNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.MarkSharedNode"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":163}},{"id":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode","name":"DynamicObject.ContainsKeyNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.ContainsKeyNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object contains a property with this key, else "},{"kind":"code","text":"false"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object contains a property with the given key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object contains a property with the given key."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","language":"java","text":"@ExportMessage(name = \"isMemberReadable\")\n@ExportMessage(name = \"isMemberRemovable\")\nboolean isMemberReadable(String member,\n                @Cached @Shared DynamicObject.ContainsKeyNode containsKeyNode) {\n    return containsKeyNode.execute(this, member);\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Member name equality check omitted for brevity."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1100}},{"id":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.ContainsKeyNode","ref":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.ContainsKeyNode","ref":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1121}},{"id":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.ContainsKeyNode","ref":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.ContainsKeyNode","ref":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1129}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Checks if this object contains a property with the given key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if this object contains a property with the given key."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1077}},{"id":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode","name":"DynamicObject.CopyPropertiesNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.CopyPropertiesNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode#execute(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.DynamicObject)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"from"},{"kind":"punct","text":", "},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"to"},{"kind":"punct","text":")"}],"params":[{"name":"from","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"to","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"doc":{"summary":[{"kind":"text","text":"Copies all properties of a DynamicObject to another, preserving property flags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies all properties of a DynamicObject to another, preserving property flags. Does not copy hidden properties."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":994}},{"id":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.CopyPropertiesNode","ref":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.CopyPropertiesNode","ref":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1048}},{"id":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.CopyPropertiesNode","ref":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.CopyPropertiesNode","ref":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1056}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Copies all properties of a DynamicObject to another, preserving property flags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copies all properties of a DynamicObject to another, preserving property flags. Does not copy hidden properties."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$CopyPropertiesNode#execute(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, DynamicObject)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":979}},{"id":"com.oracle.truffle.api.object.DynamicObject$DynamicField","name":"DynamicObject.DynamicField","kind":"annotation","language":"java","modifiers":["protected"],"annotations":[[{"kind":"annotation","text":"@Retention","ref":"java.lang.annotation.Retention","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"RUNTIME"},{"kind":"punct","text":")"}],[{"kind":"annotation","text":"@Target","ref":"java.lang.annotation.Target","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html"},{"kind":"punct","text":"("},{"kind":"literal","text":"{FIELD}"},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"@interface"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.DynamicField"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","doc":{"summary":[{"kind":"text","text":"Using this annotation, subclasses can define additional dynamic fields to be used by the object layout."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Using this annotation, subclasses can define additional dynamic fields to be used by the object layout. Annotated field must be of type "},{"kind":"code","text":"Object"},{"kind":"text","text":" or "},{"kind":"code","text":"long"},{"kind":"text","text":", must not be final, and must not have any direct usages."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#layout(java.lang.Class,java.lang.invoke.MethodHandles.Lookup)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.layout(Class, Lookup)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":179}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode","name":"DynamicObject.GetDynamicTypeNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.GetDynamicTypeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode#execute(com.oracle.truffle.api.object.DynamicObject)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the object type"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the dynamic type identifier currently associated with this object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the dynamic type identifier currently associated with this object. What this type represents is completely up to the language. For example, it could be a guest-language class."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.SetDynamicTypeNode"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1626}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetDynamicTypeNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetDynamicTypeNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1644}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetDynamicTypeNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetDynamicTypeNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1652}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Gets the language-specific dynamic type identifier currently associated with this object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the language-specific dynamic type identifier currently associated with this object."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode#execute(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1609}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode","name":"DynamicObject.GetKeyArrayNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.GetKeyArrayNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode#execute(com.oracle.truffle.api.object.DynamicObject)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a read-only array of the object's property keys. Do not modify."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets a snapshot of the object's property keys, in insertion order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets a snapshot of the object's property keys, in insertion order. The returned array may have been cached and must not be mutated. Properties with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.HiddenKey"},"code":true,"children":[{"kind":"text","text":"HiddenKey"}]},{"kind":"text","text":" are not included."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The example below shows how the returned keys array could be translated to an interop array for use with InteropLibrary."}]},{"kind":"code","language":"java","text":"@ExportMessage\nObject getMembers(boolean includeInternal,\n                @Cached DynamicObject.GetKeyArrayNode getKeyArrayNode) {\n    return new Keys(getKeyArrayNode.execute(this));\n}\n\n@ExportLibrary(InteropLibrary.class)\nstatic final class Keys implements TruffleObject {\n\n    @CompilationFinal(dimensions = 1) final Object[] keys;\n\n    Keys(Object[] keys) {\n        this.keys = keys;\n    }\n\n    @ExportMessage\n    boolean hasArrayElements() {\n        return true;\n    }\n\n    @ExportMessage\n    Object readArrayElement(long index) throws InvalidArrayIndexException {\n        if (!isArrayElementReadable(index)) {\n            throw InvalidArrayIndexException.create(index);\n        }\n        return keys[(int) index];\n    }\n\n    @ExportMessage\n    long getArraySize() {\n        return keys.length;\n    }\n\n    @ExportMessage\n    boolean isArrayElementReadable(long index) {\n        return index >= 0 && index < keys.length;\n    }\n}"}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2206}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetKeyArrayNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetKeyArrayNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2228}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetKeyArrayNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetKeyArrayNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2236}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Gets a snapshot of the object's property keys, in insertion order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets a snapshot of the object's property keys, in insertion order."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode#execute(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2181}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode","name":"DynamicObject.GetNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.GetNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]},{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value to be returned if the property does not exist"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value if it exists, else "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage examples:"}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Simple use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode"},"code":true,"children":[{"kind":"text","text":"GetNode"}]},{"kind":"text","text":" with a pre-interned symbol key."}]},{"kind":"code","language":"java","text":"abstract static class GetSimpleNode extends Node {\n    abstract Object execute(DynamicObject receiver, Object key);\n\n    @Specialization\n    static Object doCached(MyDynamicObjectSubclass receiver, Symbol key,\n                    @Cached DynamicObject.GetNode getNode) {\n        return getNode.execute(receiver, key, NULL_VALUE);\n    }\n}"},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Simple use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode"},"code":true,"children":[{"kind":"text","text":"GetNode"}]},{"kind":"text","text":" with a string key cached by equality."}]},{"kind":"code","language":"java","text":"abstract static class GetStringKeyNode extends Node {\n    abstract Object execute(DynamicObject receiver, Object key);\n\n    @Specialization(guards = \"equalNode.execute(key, cachedKey, UTF_16)\", limit = \"3\")\n    static Object doCached(MyDynamicObjectSubclass receiver, TruffleString key,\n                    @Cached(\"key\") TruffleString cachedKey,\n                    @Cached TruffleString.EqualNode equalNode,\n                    @Cached DynamicObject.GetNode getNode) {\n        return getNode.execute(receiver, cachedKey, NULL_VALUE);\n    }\n}"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":383}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#executeInt(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"executeInt(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"executeInt","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"executeInt"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]},{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to be returned if the property does not exist"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value if it exists, else "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":"."}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the value (or default value if the property is missing) is not an "},{"kind":"code","text":"int"}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":398}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#executeLong(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"executeLong(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"executeLong","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"executeLong"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]},{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to be returned if the property does not exist"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value if it exists, else "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":"."}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the value (or default value if the property is missing) is not an "},{"kind":"code","text":"long"}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":413}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#executeDouble(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"executeDouble(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"executeDouble","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"executeDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]},{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to be returned if the property does not exist"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value if it exists, else "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":"."}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the value (or default value if the property is missing) is not an "},{"kind":"code","text":"double"}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":428}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":547}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":555}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Gets the value of a property or returns a default value if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the value of a property or returns a default value if no such property exists."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Specialized return type variants are available for when a primitive result is expected."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#executeInt(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeInt(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#executeLong(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeLong(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#executeDouble(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeDouble(DynamicObject, Object, Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":351}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode","name":"DynamicObject.GetPropertyArrayNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.GetPropertyArrayNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode#execute(com.oracle.truffle.api.object.DynamicObject)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":"[] "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a read-only array of the object's properties. Do not modify."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets an array snapshot of the object's properties, in insertion order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets an array snapshot of the object's properties, in insertion order. The returned array may have been cached and must not be mutated. Properties with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.HiddenKey"},"code":true,"children":[{"kind":"text","text":"HiddenKey"}]},{"kind":"text","text":" are not included. Similar to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode"},"code":true,"children":[{"kind":"text","text":"GetKeyArrayNode"}]},{"kind":"text","text":" but allows the properties' flags to be queried simultaneously which may be relevant for quick filtering."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode"},"code":true,"children":[{"kind":"text","text":"GetKeyArrayNode"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2269}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetPropertyArrayNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetPropertyArrayNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2287}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetPropertyArrayNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetPropertyArrayNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2295}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Gets a snapshot of the object's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"properties"}]},{"kind":"text","text":", in insertion order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets a snapshot of the object's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"properties"}]},{"kind":"text","text":", in insertion order."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode#execute(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2248}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode","name":"DynamicObject.GetPropertyFlagsNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.GetPropertyFlagsNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]},{"name":"defaultValue","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value to return if no such property exists"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property flags if the property exists, else "},{"kind":"code","text":"defaultValue"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the property flags associated with the requested property key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the property flags associated with the requested property key. Returns the "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":" if the object contains no such property. If the property exists but no flags were explicitly set, returns the default of 0."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Convenience method equivalent to:"}]},{"kind":"code","language":"java","text":"abstract static class GetPropertyEquivalentNode extends Node {\n    abstract void execute(DynamicObject receiver, Object key);\n\n    @Specialization\n    int doGeneric(MyDynamicObjectSubclass receiver, Symbol key, int defaultValue,\n                    @Cached DynamicObject.GetPropertyNode getPropertyNode) {\n        Property property = getPropertyNode.execute(receiver, key);\n        return property != null ? property.getFlags() : defaultValue;\n    }\n}"},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Implementing read-only property check in writeMember:"}]},{"kind":"code","language":"java","text":"static final int READ_ONLY = 1;\nstatic final int MISSING = -1;\nstatic final int FROZEN = 1;\n\n@ExportMessage\nvoid writeMember(String member, Object value,\n                @Cached @Shared DynamicObject.GetShapeFlagsNode getShapeFlagsNode,\n                @Cached @Shared DynamicObject.GetPropertyFlagsNode getPropertyFlagsNode,\n                @Cached DynamicObject.PutNode putNode) throws UnknownIdentifierException, UnsupportedMessageException {\n    if ((getShapeFlagsNode.execute(this) & FROZEN) == FROZEN) {\n        throw UnsupportedMessageException.create();\n    }\n    int flags = getPropertyFlagsNode.execute(this, member, MISSING);\n    if (flags == MISSING) {\n        throw UnknownIdentifierException.create(member);\n    } else if ((flags & READ_ONLY) == READ_ONLY) {\n        throw UnsupportedMessageException.create();\n    }\n    putNode.execute(this, member, value);\n}\n\n@ExportMessage\nboolean isMemberModifiable(String member,\n                @Cached @Shared DynamicObject.GetShapeFlagsNode getShapeFlagsNode,\n                @Cached @Shared DynamicObject.GetPropertyFlagsNode getPropertyFlagsNode) {\n    if ((getShapeFlagsNode.execute(this) & FROZEN) == FROZEN) {\n        return false;\n    }\n    int flags = getPropertyFlagsNode.execute(this, member, MISSING);\n    return flags != MISSING && (flags & READ_ONLY) == 0;\n}\n\n@ExportMessage\nboolean isMemberInsertable(String member,\n                @Cached @Shared DynamicObject.GetShapeFlagsNode getShapeFlagsNode,\n                @Cached @Shared DynamicObject.GetPropertyFlagsNode getPropertyFlagsNode) {\n    if ((getShapeFlagsNode.execute(this) & FROZEN) == FROZEN) {\n        return false;\n    }\n    return getPropertyFlagsNode.execute(this, member, MISSING) == MISSING;\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Member name equality check omitted for brevity."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode"},"code":true,"children":[{"kind":"text","text":"GetPropertyNode"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1776}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1798}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1806}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Gets the property flags associated with the requested property key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the property flags associated with the requested property key."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1741}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode","name":"DynamicObject.GetPropertyNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.GetPropertyNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"code":true,"children":[{"kind":"text","text":"Property"}]},{"kind":"text","text":" if the property exists, else "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"property descriptor"}]},{"kind":"text","text":" for the requested property key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"property descriptor"}]},{"kind":"text","text":" for the requested property key. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the object contains no such property."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2142}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetPropertyNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetPropertyNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2161}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetPropertyNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetPropertyNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2169}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Gets a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"property descriptor"}]},{"kind":"text","text":" for the requested property key or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"property descriptor"}]},{"kind":"text","text":" for the requested property key or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no such property exists."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2127}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode","name":"DynamicObject.GetShapeFlagsNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.GetShapeFlagsNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"shape flags"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the language-specific object shape flags previously set using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode"},"code":true,"children":[{"kind":"text","text":"SetShapeFlagsNode"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the language-specific object shape flags previously set using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode"},"code":true,"children":[{"kind":"text","text":"SetShapeFlagsNode"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]},{"kind":"text","text":". If no shape flags were explicitly set, the default of 0 is returned. These flags may be used to tag objects that possess characteristics that need to be queried efficiently on fast and slow paths. For example, they can be used to mark objects as frozen."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Implementing frozen object check in writeMember:"}]},{"kind":"code","language":"java","text":"static final int READ_ONLY = 1;\nstatic final int MISSING = -1;\nstatic final int FROZEN = 1;\n\n@ExportMessage\nvoid writeMember(String member, Object value,\n                @Cached @Shared DynamicObject.GetShapeFlagsNode getShapeFlagsNode,\n                @Cached @Shared DynamicObject.GetPropertyFlagsNode getPropertyFlagsNode,\n                @Cached DynamicObject.PutNode putNode) throws UnknownIdentifierException, UnsupportedMessageException {\n    if ((getShapeFlagsNode.execute(this) & FROZEN) == FROZEN) {\n        throw UnsupportedMessageException.create();\n    }\n    int flags = getPropertyFlagsNode.execute(this, member, MISSING);\n    if (flags == MISSING) {\n        throw UnknownIdentifierException.create(member);\n    } else if ((flags & READ_ONLY) == READ_ONLY) {\n        throw UnsupportedMessageException.create();\n    }\n    putNode.execute(this, member, value);\n}\n\n@ExportMessage\nboolean isMemberModifiable(String member,\n                @Cached @Shared DynamicObject.GetShapeFlagsNode getShapeFlagsNode,\n                @Cached @Shared DynamicObject.GetPropertyFlagsNode getPropertyFlagsNode) {\n    if ((getShapeFlagsNode.execute(this) & FROZEN) == FROZEN) {\n        return false;\n    }\n    int flags = getPropertyFlagsNode.execute(this, member, MISSING);\n    return flags != MISSING && (flags & READ_ONLY) == 0;\n}\n\n@ExportMessage\nboolean isMemberInsertable(String member,\n                @Cached @Shared DynamicObject.GetShapeFlagsNode getShapeFlagsNode,\n                @Cached @Shared DynamicObject.GetPropertyFlagsNode getPropertyFlagsNode) {\n    if ((getShapeFlagsNode.execute(this) & FROZEN) == FROZEN) {\n        return false;\n    }\n    return getPropertyFlagsNode.execute(this, member, MISSING) == MISSING;\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Member name equality check omitted for brevity."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode"},"code":true,"children":[{"kind":"text","text":"SetShapeFlagsNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getFlags()"},"code":true,"children":[{"kind":"text","text":"Shape.getFlags()"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1303}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetShapeFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetShapeFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1321}},{"id":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.GetShapeFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.GetShapeFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1329}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Gets the language-specific object shape flags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the language-specific object shape flags."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1271}},{"id":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode","name":"DynamicObject.IsSharedNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.IsSharedNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode#execute(com.oracle.truffle.api.object.DynamicObject)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object is shared"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks whether this object is marked as shared."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether this object is marked as shared."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode"},"code":true,"children":[{"kind":"text","text":"MarkSharedNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#isShared()"},"code":true,"children":[{"kind":"text","text":"Shape.isShared()"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1499}},{"id":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.IsSharedNode","ref":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.IsSharedNode","ref":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1517}},{"id":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.IsSharedNode","ref":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.IsSharedNode","ref":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1525}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Checks whether this object is marked as shared."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether this object is marked as shared."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode#execute(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1483}},{"id":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode","name":"DynamicObject.MarkSharedNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.MarkSharedNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode#execute(com.oracle.truffle.api.object.DynamicObject)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the object is already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode"},"code":true,"children":[{"kind":"text","text":"shared"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Marks this object as shared."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks this object as shared."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Makes the object use a shared variant of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":", to allow safe usage of this object between threads. Objects with a shared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":" will not reuse storage locations for other fields. In combination with careful synchronization on writes, this can prevent reading out-of-thin-air values."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode"},"code":true,"children":[{"kind":"text","text":"IsSharedNode"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1558}},{"id":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.MarkSharedNode","ref":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.MarkSharedNode","ref":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1589}},{"id":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.MarkSharedNode","ref":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.MarkSharedNode","ref":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1597}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Marks this object as shared."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks this object as shared."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode#execute(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1537}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode","name":"DynamicObject.PutAllNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.PutAllNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#<init>()","anchor":"<init>()","kind":"constructor","name":"PutAllNode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"PutAllNode"},{"kind":"punct","text":"()"}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new PutAllNode instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new PutAllNode instance."}]}]}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property keys, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]},{"name":"values","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the values to be set; needs to be the same length as "},{"kind":"code","text":"keys"}]}]}],"doc":{"summary":[{"kind":"text","text":"Adds multiple properties or sets the values of multiple existing properties at once."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds multiple properties or sets the values of multiple existing properties at once."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Newly added properties will have flags 0; flags of existing properties will not be changed. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])"},"code":true,"children":[{"kind":"text","text":"executeWithFlags"}]},{"kind":"text","text":" to set property flags as well."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Cached property keys are compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":")."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Simple use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode"},"code":true,"children":[{"kind":"text","text":"PutAllNode"}]},{"kind":"text","text":" to allocate and fill an object with properties."}]},{"kind":"code","language":"java","text":"abstract static class ObjectInitializerNode extends Node {\n    @CompilationFinal private Shape initialShape;\n    @CompilationFinal(dimensions = 1) private Object[] keys;\n    @Children private ExprNode[] valueNodes;\n\n    abstract void execute();\n\n    @ExplodeLoop\n    @Specialization\n    void doDefault(@Cached DynamicObject.PutAllNode putAllNode) {\n        var receiver = new MyDynamicObjectSubclass(initialShape);\n        var values = new Object[keys.length];\n        for (int i = 0; i < keys.length; i++) {\n            values[i] = valueNodes[i].execute();\n        }\n        putAllNode.execute(receiver, keys, values);\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"executeIfPresent(DynamicObject, Object[], Object[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object[], Object[], int[])"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2555}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])","anchor":"executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])","kind":"method","name":"executeIfPresent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeIfPresent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"values","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but only sets properties that are already present."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but only sets properties that are already present."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object[], Object[])"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2566}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])","anchor":"executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])","kind":"method","name":"executeIfAbsent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeIfAbsent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"values","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but only adds properties that are absent."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but only adds properties that are absent."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object[], Object[])"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2577}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])","anchor":"executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])","kind":"method","name":"executeWithFlags","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeWithFlags"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property keys, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]},{"name":"values","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the values to be set; needs to be the same length as "},{"kind":"code","text":"keys"}]}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property flags to be set; needs to be the same length as keys"}]}]}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but additionally sets property flags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but additionally sets property flags. If a property already exists, its flags will be updated before the value is set."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2591}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlagsIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])","anchor":"executeWithFlagsIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])","kind":"method","name":"executeWithFlagsIfPresent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeWithFlagsIfPresent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"values","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"executeIfPresent(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but also sets property flags when a property is present."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"executeIfPresent(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but also sets property flags when a property is present."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object[], Object[], int[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"executeIfPresent(DynamicObject, Object[], Object[])"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2603}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlagsIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])","anchor":"executeWithFlagsIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])","kind":"method","name":"executeWithFlagsIfAbsent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeWithFlagsIfAbsent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"values","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"executeIfAbsent(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but also sets property flags when adding a property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"executeIfAbsent(DynamicObject, Object[], Object[])"}]},{"kind":"text","text":" but also sets property flags when adding a property."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object[], Object[], int[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"executeIfAbsent(DynamicObject, Object[], Object[])"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2615}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.PutAllNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutAllNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.PutAllNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutAllNode"}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2949}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.PutAllNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutAllNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.PutAllNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutAllNode"}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2954}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Adds or sets multiple properties in bulk."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds or sets multiple properties in bulk. Behaves like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode"},"code":true,"children":[{"kind":"text","text":"PutNode"}]},{"kind":"text","text":", but is usually more efficient for cases like object initialization where more than a few properties are added at once."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Cached nodes may retain the supplied keys array. Its elements must not be modified after being passed to a cached node, including between executions. Use a new array for different keys. Values and property flags arrays are not retained and may be modified between executions. No input array may be modified during execution."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object[], Object[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"executeIfAbsent(DynamicObject, Object[], Object[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[])"},"code":true,"children":[{"kind":"text","text":"executeIfPresent(DynamicObject, Object[], Object[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object[], Object[], int[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlagsIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])"},"code":true,"children":[{"kind":"text","text":"executeWithFlagsIfAbsent(DynamicObject, Object[], Object[], int[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutAllNode#executeWithFlagsIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],java.lang.Object[],int[])"},"code":true,"children":[{"kind":"text","text":"executeWithFlagsIfPresent(DynamicObject, Object[], Object[], int[])"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode"},"code":true,"children":[{"kind":"text","text":"PutNode"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2526}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode","name":"DynamicObject.PutConstantNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.PutConstantNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"doc":{"summary":[{"kind":"text","text":"Same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlags"}]},{"kind":"text","text":", except the property is added with 0 flags, and if the property already exists, its flags will "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" be updated."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlags"}]},{"kind":"text","text":", except the property is added with 0 flags, and if the property already exists, its flags will "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" be updated."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":773}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"executeIfPresent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeIfPresent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]},{"kind":"text","text":" but only if the property is present."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]},{"kind":"text","text":" but only if the property is present."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":781}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"executeIfAbsent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeIfAbsent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]},{"kind":"text","text":" but only if the property is absent."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]},{"kind":"text","text":" but only if the property is absent."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":789}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","anchor":"executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","kind":"method","name":"executeWithFlags","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeWithFlags"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"property identifier"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the constant value to be set"}]}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"property flags or 0"}]}]}],"doc":{"summary":[{"kind":"text","text":"Adds a property with a constant value or replaces an existing one."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a property with a constant value or replaces an existing one. If the property already exists, its flags will be updated. The constant value is stored in the shape rather than the object instance and a new shape will be allocated if it does not already exist. A typical use case for this method is setting the initial default value of a declared, but yet uninitialized, property. This defers storage allocation and type speculation until the first actual value is set."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Warning: this method will lead to a shape transition every time a new value is set and should be used sparingly (with at most one constant value per property) since it could cause an excessive amount of shapes to be created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: the value is strongly referenced from the shape property map. It should ideally be a value type or light-weight object without any references to guest language objects in order to prevent potential memory leaks from holding onto the Shape in inline caches. The Shape transition itself is weak, so the previous shapes will not hold strongly on the value."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","language":"java","text":"abstract static class DeclarePropertyNode extends Node {\n    abstract void execute(DynamicObject receiver, Object key);\n\n    @Specialization\n    static void doCached(MyDynamicObjectSubclass receiver, Symbol key,\n                    @Cached DynamicObject.PutConstantNode putConstantNode) {\n        // declare property\n        putConstantNode.execute(receiver, key, NULL_VALUE);\n    }\n}"},{"kind":"code","language":"java","text":"abstract static class InitializePropertyNode extends Node {\n    abstract void execute(DynamicObject receiver, Object key, Object value);\n\n    @Specialization\n    static void doCached(MyDynamicObjectSubclass receiver, Symbol key, Object value,\n                    @Cached DynamicObject.PutNode putNode) {\n        // initialize property\n        putNode.execute(receiver, key, value);\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"(DynamicObject, Object, Object)"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":829}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlagsIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","anchor":"executeWithFlagsIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","kind":"method","name":"executeWithFlagsIfPresent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeWithFlagsIfPresent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object, Object, int)"}]},{"kind":"text","text":" but only if the property is present."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object, Object, int)"}]},{"kind":"text","text":" but only if the property is present."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":838}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlagsIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","anchor":"executeWithFlagsIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","kind":"method","name":"executeWithFlagsIfAbsent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeWithFlagsIfAbsent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object, Object, int)"}]},{"kind":"text","text":" but only if the property is absent."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object, Object, int)"}]},{"kind":"text","text":" but only if the property is absent."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":847}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.PutConstantNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.PutConstantNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":905}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.PutConstantNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.PutConstantNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":913}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Sets the value of an existing property or adds a new property if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the value of an existing property or adds a new property if no such property exists. Additional variants allow setting property flags, only setting the property if it's either absent or present, and setting constant properties stored in the shape."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeIfAbsent(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeIfPresent(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlagsIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlagsIfAbsent(DynamicObject, Object, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#executeWithFlagsIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlagsIfPresent(DynamicObject, Object, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode"},"code":true,"children":[{"kind":"text","text":"PutNode"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":759}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode","name":"DynamicObject.PutNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.PutNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to be set"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the value of an existing property or adds a new property if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the value of an existing property or adds a new property if no such property exists. A newly added property will have flags 0; flags of existing properties will not be changed. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlags"}]},{"kind":"text","text":" to set property flags as well."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage examples:"}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Simple use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode"},"code":true,"children":[{"kind":"text","text":"PutNode"}]},{"kind":"text","text":" with a pre-interned symbol key."}]},{"kind":"code","language":"java","text":"abstract static class SetSimpleNode extends Node {\n    abstract Object execute(DynamicObject receiver, Object key, Object value);\n\n    @Specialization\n    static Object doCached(MyDynamicObjectSubclass receiver, Symbol key, Object value,\n                    @Cached DynamicObject.PutNode putNode) {\n        putNode.execute(receiver, key, value);\n        return value;\n    }\n}"},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Simple use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode"},"code":true,"children":[{"kind":"text","text":"PutNode"}]},{"kind":"text","text":" with a string key cached by equality."}]},{"kind":"code","language":"java","text":"abstract static class SetStringKeyNode extends Node {\n    abstract Object execute(DynamicObject receiver, Object key, Object value);\n\n    @Specialization(guards = \"equalNode.execute(key, cachedKey, UTF_16)\", limit = \"3\")\n    static Object doCached(MyDynamicObjectSubclass receiver, TruffleString key, Object value,\n                    @Cached(\"key\") TruffleString cachedKey,\n                    @Cached TruffleString.EqualNode equalNode,\n                    @Cached DynamicObject.PutNode putNode) {\n        putNode.execute(receiver, cachedKey, value);\n        return value;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"(DynamicObject, Object, Object, int)"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":609}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"executeIfPresent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeIfPresent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"property identifier"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value to be set"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the property was present and the value set, otherwise "},{"kind":"code","text":"false"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the value of the property if present, otherwise returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the value of the property if present, otherwise returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":623}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"executeIfAbsent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeIfAbsent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"property identifier"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value to be set"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the property was absent and the value set, otherwise "},{"kind":"code","text":"false"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the value of the property if absent, otherwise returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the value of the property if absent, otherwise returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":637}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","anchor":"executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","kind":"method","name":"executeWithFlags","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeWithFlags"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"property identifier"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value to be set"}]}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"flags to be set"}]}]}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]},{"kind":"text","text":", but additionally assigns flags to the property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]},{"kind":"text","text":", but additionally assigns flags to the property. If the property already exists, its flags will be updated before the value is set."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":652}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeWithFlagsIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","anchor":"executeWithFlagsIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","kind":"method","name":"executeWithFlagsIfPresent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeWithFlagsIfPresent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeIfPresent(DynamicObject, Object, Object)"}]},{"kind":"text","text":" but also sets property flags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeIfPresent(DynamicObject, Object, Object)"}]},{"kind":"text","text":" but also sets property flags."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":661}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeWithFlagsIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","anchor":"executeWithFlagsIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","kind":"method","name":"executeWithFlagsIfAbsent","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeWithFlagsIfAbsent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeIfAbsent(DynamicObject, Object, Object)"}]},{"kind":"text","text":" but also sets property flags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeIfAbsent(DynamicObject, Object, Object)"}]},{"kind":"text","text":" but also sets property flags."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":670}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.PutNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.PutNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":731}},{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.PutNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.PutNode","ref":"com.oracle.truffle.api.object.DynamicObject$PutNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":739}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Sets the value of an existing property or adds a new property if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the value of an existing property or adds a new property if no such property exists. Additional variants allow setting property flags, only setting the property if it's either absent or present, and setting constant properties stored in the shape."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeIfAbsent(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"executeIfPresent(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlags(DynamicObject, Object, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeWithFlagsIfAbsent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlagsIfAbsent(DynamicObject, Object, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeWithFlagsIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeWithFlagsIfPresent(DynamicObject, Object, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode"},"code":true,"children":[{"kind":"text","text":"PutConstantNode"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":575}},{"id":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode","name":"DynamicObject.RemoveKeyNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.RemoveKeyNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the property was removed or "},{"kind":"code","text":"false"},{"kind":"text","text":" if property was not found"}]}]},"doc":{"summary":[{"kind":"text","text":"Removes the property with the given key from the object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes the property with the given key from the object."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","language":"java","text":"@ExportMessage\nvoid removeMember(String member,\n                @Cached @Shared DynamicObject.GetShapeFlagsNode getShapeFlagsNode,\n                @Cached DynamicObject.RemoveKeyNode removeKeyNode) throws UnknownIdentifierException, UnsupportedMessageException {\n    if ((getShapeFlagsNode.execute(this) & FROZEN) == FROZEN) {\n        throw UnsupportedMessageException.create();\n    }\n    if (!removeKeyNode.execute(this, member)) {\n        throw UnknownIdentifierException.create(member);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Member name equality check omitted for brevity."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1165}},{"id":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.RemoveKeyNode","ref":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.RemoveKeyNode","ref":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1251}},{"id":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.RemoveKeyNode","ref":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.RemoveKeyNode","ref":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1259}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Removes the property with the given key from the object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes the property with the given key from the object."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1141}},{"id":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode","name":"DynamicObject.ResetShapeNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.ResetShapeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode#execute(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"param","text":"newShape"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"newShape","type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the desired shape"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object's shape was changed"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the shape contains instance properties"}]}]}],"doc":{"summary":[{"kind":"text","text":"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)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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)."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2069}},{"id":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.ResetShapeNode","ref":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.ResetShapeNode","ref":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2106}},{"id":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.ResetShapeNode","ref":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.ResetShapeNode","ref":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2114}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Empties and resets the object to the given root shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Empties and resets the object to the given root shape."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode#execute(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Shape)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2052}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode","name":"DynamicObject.SetAllPropertyFlagsNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.SetAllPropertyFlagsNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"flags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"flags","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Sets the flags of every supplied, existing key to "},{"kind":"code","text":"flags"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the flags of every supplied, existing key to "},{"kind":"code","text":"flags"},{"kind":"text","text":"."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2331}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int[])","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int[])","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"flags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"flags","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the keys and flags array lengths differ"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets each supplied, existing key's flags to the corresponding array element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets each supplied, existing key's flags to the corresponding array element."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2341}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode#executeAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int)","anchor":"executeAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int)","kind":"method","name":"executeAdd","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeAdd"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"addedFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"addedFlags","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Adds the given flags to each supplied, existing property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds the given flags to each supplied, existing property."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2354}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode#executeRemove(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int)","anchor":"executeRemove(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int)","kind":"method","name":"executeRemove","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeRemove"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"removedFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"removedFlags","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Removes the given flags from each supplied, existing property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes the given flags from each supplied, existing property."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2363}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode#executeRemoveAndAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int,int)","anchor":"executeRemoveAndAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object[],int,int)","kind":"method","name":"executeRemoveAndAdd","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"executeRemoveAndAdd"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"param","text":"keys"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"removedFlags"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"addedFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"keys","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}]},{"name":"removedFlags","type":[{"kind":"keyword","text":"int"}]},{"name":"addedFlags","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Removes, then adds flags to each supplied, existing property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes, then adds flags to each supplied, existing property. Addition wins when masks overlap."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2373}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.SetAllPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.SetAllPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode"}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2493}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.SetAllPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.SetAllPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetAllPropertyFlagsNode"}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2501}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Sets or updates the flags of multiple existing properties."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets or updates the flags of multiple existing properties. Missing keys are ignored; no properties are created and no property values are assigned. \"All\" refers to the supplied keys, not all properties of the receiver."}]},{"kind":"code","language":"java","text":"static final class SetAllPropertyFlagsNode extends Node {\n    @Child private DynamicObject.SetAllPropertyFlagsNode setFlags = DynamicObject.SetAllPropertyFlagsNode.create();\n\n    void execute(DynamicObject receiver, Object[] keys, int[] flags) {\n        setFlags.execute(receiver, keys, flags);\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Keys follow the identity-based caching contract of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode"},"code":true,"children":[{"kind":"text","text":"SetPropertyFlagsNode"}]},{"kind":"text","text":". Duplicate keys are processed in input order, as separate calls to that node would be. Cached nodes may retain the supplied keys and per-key flags arrays. These arrays must not be modified after being passed to a cached node, including between executions. Use new arrays for different keys or flags. No input array may be modified during execution."}]}]},"since":"25.5","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2317}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode","name":"DynamicObject.SetDynamicTypeNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.SetDynamicTypeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"type"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"type","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non-null type identifier defined by the guest language."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the type (and the object's shape) changed"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the object's dynamic type identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the object's dynamic type identifier. What this type represents is completely up to the language. For example, it could be a guest-language class. The type object is strongly referenced from the shape. It should ideally be a singleton or light-weight object without any references to guest language objects in order to keep the memory footprint low and prevent potential memory leaks from holding onto the Shape in inline caches. The Shape transition itself is weak, so the previous shapes will not hold strongly on the type object. Type objects are always compared by object identity, never "},{"kind":"code","text":"equals"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetDynamicTypeNode"}]}]]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1689}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.SetDynamicTypeNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.SetDynamicTypeNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1721}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.SetDynamicTypeNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.SetDynamicTypeNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1729}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Sets the language-specific dynamic type identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the language-specific dynamic type identifier."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1664}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode","name":"DynamicObject.SetPropertyFlagsNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.SetPropertyFlagsNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key, compared by identity ("},{"kind":"code","text":"=="},{"kind":"text","text":"), not equality ("},{"kind":"code","text":"equals"},{"kind":"text","text":"). See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for more information."}]}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the property was found and its flags were changed, else "},{"kind":"code","text":"false"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the property flags associated with the requested property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the property flags associated with the requested property."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1839}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#executeAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","anchor":"executeAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","kind":"method","name":"executeAdd","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeAdd"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"addedFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"addedFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Adds property flags associated with the requested property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds property flags associated with the requested property."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1849}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#executeRemove(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","anchor":"executeRemove(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","kind":"method","name":"executeRemove","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeRemove"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"removedFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"removedFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Removes (clears) property flags associated with the requested property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes (clears) property flags associated with the requested property."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1859}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#executeRemoveAndAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int,int)","anchor":"executeRemoveAndAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int,int)","kind":"method","name":"executeRemoveAndAdd","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeRemoveAndAdd"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"removedFlags"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"addedFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"removedFlags","type":[{"kind":"keyword","text":"int"}]},{"name":"addedFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Removes, then adds property flags associated with the requested property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes, then adds property flags associated with the requested property."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1869}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.SetPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.SetPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1951}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.SetPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.SetPropertyFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1959}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Sets or updates property flags associated with the requested property key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets or updates property flags associated with the requested property key."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#executeAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeAdd(DynamicObject, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#executeRemove(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"executeRemove(DynamicObject, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode#executeRemoveAndAdd(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int,int)"},"code":true,"children":[{"kind":"text","text":"executeRemoveAndAdd(DynamicObject, Object, int, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1821}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode","name":"DynamicObject.SetShapeFlagsNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.SetShapeFlagsNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,int)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"newFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"newFlags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the flags to set; must be in the range from 0 to 65535 (inclusive)."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object's shape changed, "},{"kind":"code","text":"false"},{"kind":"text","text":" if no change was made."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the flags are not in the allowed range."}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets language-specific object shape flags, changing the object's shape if need be."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets language-specific object shape flags, changing the object's shape if need be. These flags may be used to tag objects that possess characteristics that need to be queried efficiently on fast and slow paths. For example, they can be used to mark objects as frozen. Only the lowest 16 bits (i.e. values in the range 0 to 65535) are allowed, the remaining bits are currently reserved."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Implementing a freeze object operation:"}]},{"kind":"code","language":"java","text":"abstract static class FreezeObjectNode extends Node {\n    static final int FROZEN = 1;\n\n    abstract void execute(DynamicObject receiver);\n\n    @Specialization\n    static void freeze(DynamicObject receiver,\n                    @Cached DynamicObject.GetShapeFlagsNode getShapeFlagsNode,\n                    @Cached DynamicObject.SetShapeFlagsNode setShapeFlagsNode) {\n        int oldFlags = getShapeFlagsNode.execute(receiver);\n        int newFlags = oldFlags | FROZEN;\n        if (newFlags != oldFlags) {\n            setShapeFlagsNode.execute(receiver, newFlags);\n        }\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Note that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#executeAdd(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"executeAdd(DynamicObject, int)"}]},{"kind":"text","text":" is more efficient and convenient for that particular pattern."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode"},"code":true,"children":[{"kind":"text","text":"GetShapeFlagsNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#executeAdd(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"executeAdd(DynamicObject, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1381}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#executeAdd(com.oracle.truffle.api.object.DynamicObject,int)","anchor":"executeAdd(com.oracle.truffle.api.object.DynamicObject,int)","kind":"method","name":"executeAdd","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeAdd"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"addedFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"addedFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Adds language-specific object shape flags, changing the object's shape if need be."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds language-specific object shape flags, changing the object's shape if need be."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"heading","level":4,"children":[{"kind":"text","text":"Implementing a freeze object operation:"}]},{"kind":"code","language":"java","text":"abstract static class FreezeNode extends Node {\n    static final int FROZEN = 1;\n\n    abstract void execute(DynamicObject receiver);\n\n    @Specialization\n    static void freeze(DynamicObject receiver,\n                    @Cached DynamicObject.SetShapeFlagsNode setShapeFlagsNode) {\n        setShapeFlagsNode.executeAdd(receiver, FROZEN);\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1398}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#executeRemove(com.oracle.truffle.api.object.DynamicObject,int)","anchor":"executeRemove(com.oracle.truffle.api.object.DynamicObject,int)","kind":"method","name":"executeRemove","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeRemove"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"removedFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"removedFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Removes language-specific object shape flags, changing the object's shape if need be."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes language-specific object shape flags, changing the object's shape if need be."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1408}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#executeRemoveAndAdd(com.oracle.truffle.api.object.DynamicObject,int,int)","anchor":"executeRemoveAndAdd(com.oracle.truffle.api.object.DynamicObject,int,int)","kind":"method","name":"executeRemoveAndAdd","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"executeRemoveAndAdd"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"removedFlags"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"addedFlags"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"removedFlags","type":[{"kind":"keyword","text":"int"}]},{"name":"addedFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Removes, then adds language-specific object shape flags, changing the object's shape if need be."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes, then adds language-specific object shape flags, changing the object's shape if need be."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1419}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.SetShapeFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.SetShapeFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1463}},{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.SetShapeFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.SetShapeFlagsNode","ref":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1471}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Sets or updates language-specific object shape flags."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets or updates language-specific object shape flags."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#execute(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#executeAdd(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"executeAdd(DynamicObject, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#executeRemove(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"executeRemove(DynamicObject, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode#executeRemoveAndAdd(com.oracle.truffle.api.object.DynamicObject,int,int)"},"code":true,"children":[{"kind":"text","text":"executeRemoveAndAdd(DynamicObject, int, int)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1344}},{"id":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode","name":"DynamicObject.UpdateShapeNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObject.UpdateShapeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"superclass":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.DynamicObject","members":[{"id":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode#execute(com.oracle.truffle.api.object.DynamicObject)","anchor":"execute(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object's shape was changed, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Ensures the object's shape is up-to-date."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures the object's shape is up-to-date. If the object's shape has been marked as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#isValid()"},"code":true,"children":[{"kind":"text","text":"invalid"}]},{"kind":"text","text":", this method will attempt to bring the object into a valid shape again. If the object's shape is already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#isValid()"},"code":true,"children":[{"kind":"text","text":"valid"}]},{"kind":"text","text":", this method will have no effect."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method does not need to be called normally; all the messages in this library will work on invalid shapes as well, but it can be useful in some cases to avoid such shapes being cached which can cause unnecessary cache polymorphism and invalidations."}]}]},"source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2007}},{"id":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.UpdateShapeNode","ref":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.UpdateShapeNode","ref":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2032}},{"id":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject.UpdateShapeNode","ref":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObject.UpdateShapeNode","ref":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":2040}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Ensures the object's shape is up-to-date."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures the object's shape is up-to-date."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode#execute(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"execute(DynamicObject)"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/DynamicObject.java","line":1986}},{"id":"com.oracle.truffle.api.object.DynamicObjectFactory","name":"DynamicObjectFactory","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObjectFactory"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.object.DynamicObjectFactory#<init>()","anchor":"<init>()","kind":"constructor","name":"DynamicObjectFactory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObjectFactory"},{"kind":"punct","text":"()"}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new DynamicObjectFactory instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new DynamicObjectFactory instance."}]}]}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/object/DynamicObjectFactory.java","line":50}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary","name":"DynamicObjectLibrary","kind":"class","language":"java","modifiers":["public","abstract"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DynamicObjectLibrary"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"superclass":[{"kind":"type","text":"Library","ref":"com.oracle.truffle.api.library.Library"}],"ancestors":[{"id":"com.oracle.truffle.api.library.Library"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getFactory()","anchor":"getFactory()","kind":"method","name":"getFactory","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"DynamicObjectLibrary","ref":"com.oracle.truffle.api.object.DynamicObjectLibrary"},{"kind":"punct","text":"> "},{"kind":"name","text":"getFactory"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LibraryFactory","ref":"com.oracle.truffle.api.library.LibraryFactory"},{"kind":"punct","text":"<"},{"kind":"type","text":"DynamicObjectLibrary","ref":"com.oracle.truffle.api.object.DynamicObjectLibrary"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the library factory for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the library factory for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary"}]},{"kind":"text","text":"."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":123}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObjectLibrary","ref":"com.oracle.truffle.api.object.DynamicObjectLibrary"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DynamicObjectLibrary","ref":"com.oracle.truffle.api.object.DynamicObjectLibrary"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an uncached automatically dispatched version of the library"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the shared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary"}]},{"kind":"text","text":" instance for uncached accesses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the shared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary"}]},{"kind":"text","text":" instance for uncached accesses. Equivalent to "},{"kind":"code","text":"DynamicObjectLibrary.getFactory().getUncached()"},{"kind":"text","text":"."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":134}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getShape(com.oracle.truffle.api.object.DynamicObject)","anchor":"getShape(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"getShape","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"getShape"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the object's current "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"shape"}]},{"kind":"text","text":" of the object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"shape"}]},{"kind":"text","text":" of the object. Returns the cached shape if the library is a cached library instance."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject#getShape()"},"code":true,"children":[{"kind":"text","text":"DynamicObject.getShape()"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":146}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"getOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"getOrDefault","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOrDefault"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key"}]}]},{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value to be returned if the property does not exist"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value if it exists, else "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@Specialization(limit = \"3\")\nstatic Object read(DynamicObject receiver, Object key,\n                @CachedLibrary(\"receiver\") DynamicObjectLibrary objLib) {\n    return objLib.getOrDefault(receiver, key, NULL_VALUE);\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetNode.execute(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":168}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getIntOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"getIntOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"getIntOrDefault","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getIntOrDefault"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key"}]}]},{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to be returned if the property does not exist"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value if it exists, else "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":"."}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the (default) value is not an "},{"kind":"code","text":"int"}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getOrDefault(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#executeInt(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetNode.executeInt(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":182}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getDoubleOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"getDoubleOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"getDoubleOrDefault","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDoubleOrDefault"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key"}]}]},{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to be returned if the property does not exist"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value if it exists, else "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":"."}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the (default) value is not a "},{"kind":"code","text":"double"}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getOrDefault(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#executeDouble(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetNode.executeDouble(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":203}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getLongOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"getLongOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"getLongOrDefault","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLongOrDefault"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key"}]}]},{"name":"defaultValue","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to be returned if the property does not exist"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value if it exists, else "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":"."}]}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the (default) value is not a "},{"kind":"code","text":"long"}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the value of an existing property or returns the provided default value if no such property exists."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getOrDefault(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetNode#executeLong(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetNode.executeLong(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":224}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"put","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"put"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to be set"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the value of an existing property or adds a new property if no such property exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the value of an existing property or adds a new property if no such property exists. A newly added property will have flags 0; flags of existing properties will not be changed. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"putWithFlags"}]},{"kind":"text","text":" to set property flags as well."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@ExportMessage\nObject writeMember(String member, Object value,\n                @CachedLibrary(\"this\") DynamicObjectLibrary objLib) {\n    objLib.put(this, member, value);\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putInt(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"putInt(DynamicObject, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putDouble(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,double)"},"code":true,"children":[{"kind":"text","text":"putDouble(DynamicObject, Object, double)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putLong(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,long)"},"code":true,"children":[{"kind":"text","text":"putLong(DynamicObject, Object, long)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"putIfPresent(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"putWithFlags(DynamicObject, Object, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.PutNode.execute(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":259}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putInt(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","anchor":"putInt(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","kind":"method","name":"putInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putInt"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Int-typed variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Int-typed variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.PutNode.execute(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":268}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putDouble(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,double)","anchor":"putDouble(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,double)","kind":"method","name":"putDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"doc":{"summary":[{"kind":"text","text":"Double-typed variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Double-typed variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.PutNode.execute(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":279}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putLong(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,long)","anchor":"putLong(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,long)","kind":"method","name":"putLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putLong"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Long-typed variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Long-typed variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.PutNode.execute(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":290}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","anchor":"putIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)","kind":"method","name":"putIfPresent","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"putIfPresent"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"property identifier"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value to be set"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the property was present and the value set, otherwise "},{"kind":"code","text":"false"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the value of the property if present, otherwise returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the value of the property if present, otherwise returns "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeIfPresent(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.PutNode.executeIfPresent(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":304}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","anchor":"putWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","kind":"method","name":"putWithFlags","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putWithFlags"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"flags"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"property identifier"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value to be set"}]}]},{"name":"flags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"flags to be set"}]}]}],"doc":{"summary":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put"}]},{"kind":"text","text":", but additionally assigns flags to the property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put"}]},{"kind":"text","text":", but additionally assigns flags to the property. If the property already exists, its flags will be updated before the value is set."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setPropertyFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"setPropertyFlags(DynamicObject, Object, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutNode#executeWithFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.PutNode.executeWithFlags(DynamicObject, Object, Object, int)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":318}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putConstant(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","anchor":"putConstant(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)","kind":"method","name":"putConstant","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"putConstant"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"flags"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"property identifier"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the constant value to be set"}]}]},{"name":"flags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"property flags or 0"}]}]}],"doc":{"summary":[{"kind":"text","text":"Adds a property with a constant value or replaces an existing one."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a property with a constant value or replaces an existing one. If the property already exists, its flags will be updated. The constant value is stored in the shape rather than the object instance and a new shape will be allocated if it does not already exist. A typical use case for this method is setting the initial default value of a declared, but yet uninitialized, property. This defers storage allocation and type speculation until the first actual value is set."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Warning: this method will lead to a shape transition every time a new value is set and should be used sparingly (with at most one constant value per property) since it could cause an excessive amount of shapes to be created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: the value is strongly referenced from the shape property map. It should ideally be a value type or light-weight object without any references to guest language objects in order to prevent potential memory leaks from holding onto the Shape in inline caches. The Shape transition itself is weak, so the previous shapes will not hold strongly on the value."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"// declare property\nobjLib.putConstant(receiver, key, NULL_VALUE, 0);\n\n// initialize property\nobjLib.put(receiver, key, value);"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#put(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"put(DynamicObject, Object, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$PutConstantNode#execute(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObject.PutConstantNode.execute(DynamicObject, Object, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":358}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#removeKey(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","anchor":"removeKey(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","kind":"method","name":"removeKey","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"removeKey"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the property was removed or "},{"kind":"code","text":"false"},{"kind":"text","text":" if property was not found"}]}]},"doc":{"summary":[{"kind":"text","text":"Removes the property with the given key from the object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Removes the property with the given key from the object."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$RemoveKeyNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.RemoveKeyNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":368}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setDynamicType(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","anchor":"setDynamicType(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","kind":"method","name":"setDynamicType","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"setDynamicType"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"type"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"type","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non-null type identifier defined by the guest language."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the type (and the object's shape) changed"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the object's dynamic type identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the object's dynamic type identifier. What this type represents is completely up to the language. For example, it could be a guest-language class. The type object is strongly referenced from the shape. It should ideally be a singleton or light-weight object without any references to guest language objects in order to keep the memory footprint low and prevent potential memory leaks from holding onto the Shape in inline caches. The Shape transition itself is weak, so the previous shapes will not hold strongly on the type object. Type objects are always compared by object identity, never "},{"kind":"code","text":"equals"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getDynamicType(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"getDynamicType(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetDynamicTypeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.SetDynamicTypeNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":388}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getDynamicType(com.oracle.truffle.api.object.DynamicObject)","anchor":"getDynamicType(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"getDynamicType","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getDynamicType"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the object type"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the dynamic type identifier currently associated with this object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the dynamic type identifier currently associated with this object. What this type represents is completely up to the language. For example, it could be a guest-language class."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setDynamicType(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"setDynamicType(DynamicObject, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getDynamicType()"},"code":true,"children":[{"kind":"text","text":"Shape.getDynamicType()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetDynamicTypeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetDynamicTypeNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":400}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#containsKey(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","anchor":"containsKey(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","kind":"method","name":"containsKey","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"containsKey"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object contains a property with this key, else "},{"kind":"code","text":"false"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object contains a property with the given key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this object contains a property with the given key."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@ExportMessage\nboolean isMemberReadable(String name,\n                @CachedLibrary(\"this\") DynamicObjectLibrary objLib) {\n    return objLib.containsKey(this, name);\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$ContainsKeyNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.ContainsKeyNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":420}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getShapeFlags(com.oracle.truffle.api.object.DynamicObject)","anchor":"getShapeFlags(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"getShapeFlags","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getShapeFlags"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"shape flags"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the language-specific object shape flags previously set using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setShapeFlags(DynamicObject, int)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the language-specific object shape flags previously set using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setShapeFlags(DynamicObject, int)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]},{"kind":"text","text":". If no shape flags were explicitly set, the default of 0 is returned. These flags may be used to tag objects that possess characteristics that need to be queried efficiently on fast and slow paths. For example, they can be used to mark objects as frozen."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@ExportMessage\nObject writeMember(String member, Object value,\n                @CachedLibrary(\"this\") DynamicObjectLibrary objLib)\n                throws UnsupportedMessageException {\n    if ((objLib.getShapeFlags(receiver) & FROZEN) != 0) {\n        throw UnsupportedMessageException.create();\n    }\n    objLib.put(this, member, value);\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"setShapeFlags(DynamicObject, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getFlags()"},"code":true,"children":[{"kind":"text","text":"Shape.getFlags()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetShapeFlagsNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetShapeFlagsNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":452}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)","anchor":"setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)","kind":"method","name":"setShapeFlags","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"setShapeFlags"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"flags"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"flags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the flags to set; must be in the range from 0 to 255 (inclusive)."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object's shape changed, "},{"kind":"code","text":"false"},{"kind":"text","text":" if no change was made."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the flags are not in the allowed range."}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets language-specific object shape flags, changing the object's shape if need be."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets language-specific object shape flags, changing the object's shape if need be. These flags may be used to tag objects that possess characteristics that need to be queried efficiently on fast and slow paths. For example, they can be used to mark objects as frozen. Only the lowest 16 bits (i.e. values in the range 0 to 65535) are allowed, the remaining bits are currently reserved."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"code","text":"@Specialization(limit = \"3\")\nstatic void preventExtensions(DynamicObject receiver,\n                @CachedLibrary(\"receiver\") DynamicObjectLibrary objLib) {\n    objLib.setShapeFlags(receiver, objLib.getShapeFlags(receiver) | FROZEN);\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getShapeFlags(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"getShapeFlags(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetShapeFlagsNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.SetShapeFlagsNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":481}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getProperty(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","anchor":"getProperty(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)","kind":"method","name":"getProperty","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":" "},{"kind":"name","text":"getProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"}],"doc":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"code":true,"children":[{"kind":"text","text":"Property"}]},{"kind":"text","text":" if the property exists, else "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"property descriptor"}]},{"kind":"text","text":" for the requested property key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"property descriptor"}]},{"kind":"text","text":" for the requested property key. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the object contains no such property."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetPropertyNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":491}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getPropertyFlagsOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","anchor":"getPropertyFlagsOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","kind":"method","name":"getPropertyFlagsOrDefault","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getPropertyFlagsOrDefault"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"defaultValue"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key"}]}]},{"name":"defaultValue","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"value to return if no such property exists"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property flags if the property exists, else "},{"kind":"code","text":"defaultValue"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the property flags associated with the requested property key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the property flags associated with the requested property key. Returns the "},{"kind":"code","text":"defaultValue"},{"kind":"text","text":" if the object contains no such property. If the property exists but no flags were explicitly set, returns the default of 0."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Convenience method equivalent to:"}]},{"kind":"code","text":"Property property = getProperty(object, key);\nreturn property != null ? property.getFlags() : defaultValue;"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getProperty(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"getProperty(DynamicObject, Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyFlagsNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetPropertyFlagsNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":513}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setPropertyFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","anchor":"setPropertyFlags(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)","kind":"method","name":"setPropertyFlags","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"setPropertyFlags"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key"}]}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the property was found and its flags were changed, else "},{"kind":"code","text":"false"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the property flags associated with the requested property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the property flags associated with the requested property."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$SetPropertyFlagsNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.SetPropertyFlagsNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":526}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#markShared(com.oracle.truffle.api.object.DynamicObject)","anchor":"markShared(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"markShared","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"markShared"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the object is already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#isShared(com.oracle.truffle.api.object.DynamicObject)"},"children":[{"kind":"text","text":"shared"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Marks this object as shared."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks this object as shared. Makes the object use a shared variant of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":", to allow safe usage of this object between threads. Objects with a shared "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":" will not reuse storage locations for other fields. In combination with careful synchronization on writes, this can prevent reading out-of-thin-air values."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#isShared(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"isShared(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$MarkSharedNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.MarkSharedNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":541}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#isShared(com.oracle.truffle.api.object.DynamicObject)","anchor":"isShared(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"isShared","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isShared"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object is shared"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks whether this object is marked as shared."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether this object is marked as shared."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#markShared(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"markShared(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#isShared()"},"code":true,"children":[{"kind":"text","text":"Shape.isShared()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$IsSharedNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.IsSharedNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":552}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#updateShape(com.oracle.truffle.api.object.DynamicObject)","anchor":"updateShape(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"updateShape","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"updateShape"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object's shape was changed, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Ensures the object's shape is up-to-date."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Ensures the object's shape is up-to-date. If the object's shape has been marked as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#isValid()"},"children":[{"kind":"text","text":"invalid"}]},{"kind":"text","text":", this method will attempt to bring the object into a valid shape again. If the object's shape is already "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#isValid()"},"children":[{"kind":"text","text":"valid"}]},{"kind":"text","text":", this method will have no effect. This method does not need to be called normally; all the messages in this library will work on invalid shapes as well, but it can be useful in some cases to avoid such shapes being cached which can cause unnecessary cache polymorphism and invalidations."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$UpdateShapeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.UpdateShapeNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":568}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#resetShape(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)","anchor":"resetShape(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)","kind":"method","name":"resetShape","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"resetShape"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":", "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"param","text":"otherShape"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"otherShape","type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the desired shape"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the object's shape was changed"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the shape contains instance properties"}]}]}],"doc":{"summary":[{"kind":"text","text":"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)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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)."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$ResetShapeNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.ResetShapeNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":580}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getKeyArray(com.oracle.truffle.api.object.DynamicObject)","anchor":"getKeyArray(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"getKeyArray","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getKeyArray"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a read-only array of the object's property keys."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets a snapshot of the object's property keys, in insertion order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets a snapshot of the object's property keys, in insertion order. The returned array may have been cached and must not be mutated. Properties with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.HiddenKey"},"code":true,"children":[{"kind":"text","text":"HiddenKey"}]},{"kind":"text","text":" are not included."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage example:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The example below shows how the returned keys array could be translated to an interop array for use with InteropLibrary."}]},{"kind":"code","text":"@ExportMessage\nObject getMembers(\n                @CachedLibrary(\"this\") DynamicObjectLibrary objLib) {\n    return new Keys(objLib.getKeyArray(this));\n}\n\n@ExportLibrary(InteropLibrary.class)\nstatic final class Keys implements TruffleObject {\n\n    @CompilationFinal(dimensions = 1) final Object[] keys;\n\n    Keys(Object[] keys) {\n        this.keys = keys;\n    }\n\n    @ExportMessage\n    boolean hasArrayElements() {\n        return true;\n    }\n\n    @ExportMessage\n    Object readArrayElement(long index) throws InvalidArrayIndexException {\n        if (!isArrayElementReadable(index)) {\n            throw InvalidArrayIndexException.create(index);\n        }\n        return keys[(int) index];\n    }\n\n    @ExportMessage\n    long getArraySize() {\n        return keys.length;\n    }\n\n    @ExportMessage\n    boolean isArrayElementReadable(long index) {\n        return index >= 0 && index < keys.length;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetKeyArrayNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetKeyArrayNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":638}},{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getPropertyArray(com.oracle.truffle.api.object.DynamicObject)","anchor":"getPropertyArray(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"getPropertyArray","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getPropertyArray"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"object"},{"kind":"punct","text":")"}],"params":[{"name":"object","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a read-only array of the object's properties."}]}]},"doc":{"summary":[{"kind":"text","text":"Gets an array snapshot of the object's properties, in insertion order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets an array snapshot of the object's properties, in insertion order. The returned array may have been cached and must not be mutated. Properties with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.HiddenKey"},"code":true,"children":[{"kind":"text","text":"HiddenKey"}]},{"kind":"text","text":" are not included. Similar to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getKeyArray(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"getKeyArray"}]},{"kind":"text","text":" but allows the properties' flags to be queried simultaneously which may be relevant for quick filtering."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getKeyArray(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"getKeyArray(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject$GetPropertyArrayNode"},"code":true,"children":[{"kind":"text","text":"DynamicObject.GetPropertyArrayNode"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":654}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.library.Library","text":"Library"},"kind":"class","members":[{"id":"com.oracle.truffle.api.library.Library#accepts(java.lang.Object)","text":"accepts"}]},{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" access library."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" access library. This is the central interface for accessing and mutating properties and other state (flags, dynamic type) of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":"s."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It is recommended that you use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.CachedLibrary"},"code":true,"children":[{"kind":"text","text":"CachedLibrary"}]},{"kind":"text","text":" annotation in Truffle DSL nodes. You can also use the library either "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getUncached()"},"children":[{"kind":"text","text":"without caching"}]},{"kind":"text","text":" or create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#create(java.lang.Object)"},"children":[{"kind":"text","text":"manually"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.library.LibraryFactory#createDispatched(int)"},"children":[{"kind":"text","text":"automatically"}]},{"kind":"text","text":" dispatched cached library. Cached libraries must be adopted before use. The cached library instances dispatch by object "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"children":[{"kind":"text","text":"shape"}]},{"kind":"text","text":" and, if applicable, automatically by property key."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Property keys are compared using object identity ("},{"kind":"code","text":"=="},{"kind":"text","text":") first and then "},{"kind":"link","target":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Object.equals(Object)"}]},{"kind":"text","text":". It is therefore recommended to use the same string/key instances for each access of the property in order to avoid pulling in "},{"kind":"code","text":"equals"},{"kind":"text","text":". Keys must not be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: cached library nodes may not profile the class of the object parameter; it is therefore the caller's responsibility to do any desired profiling and ensure accurate type information."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Usage examples:"}]},{"kind":"code","text":"@Specialization(limit = \"3\")\nstatic Object read(DynamicObject receiver, Object key,\n                @CachedLibrary(\"receiver\") DynamicObjectLibrary objLib) {\n    return objLib.getOrDefault(receiver, key, NULL_VALUE);\n}"},{"kind":"code","text":"@ExportMessage\nObject readMember(String name,\n                @CachedLibrary(\"this\") DynamicObjectLibrary objLib) throws UnknownIdentifierException {\n    Object result = objLib.getOrDefault(this, name, null);\n    if (result == null) {\n        throw UnknownIdentifierException.create(name);\n    }\n    return result;\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"DynamicObjectLibrary has been replaced by more lightweight DynamicObject nodes. Consult the javadoc of the individual messages for the corresponding API replacement, or see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" for a list of new node-based APIs. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary"}]},{"kind":"text","text":" will be removed in a future release."}]}],"since":"25.1"},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/DynamicObjectLibrary.java","line":104}},{"id":"com.oracle.truffle.api.object.FinalLocationException","name":"FinalLocationException","kind":"class","language":"java","modifiers":["public","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"FinalLocationException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"SlowPathException","ref":"com.oracle.truffle.api.nodes.SlowPathException"}],"superclass":[{"kind":"type","text":"SlowPathException","ref":"com.oracle.truffle.api.nodes.SlowPathException"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.SlowPathException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.SlowPathException","text":"SlowPathException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.SlowPathException#fillInStackTrace()","text":"fillInStackTrace"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"This exception is thrown on an attempt to assign a value to a final location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This exception is thrown on an attempt to assign a value to a final location."}]}]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/FinalLocationException.java","line":50}},{"id":"com.oracle.truffle.api.object.HiddenKey","name":"HiddenKey","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"HiddenKey"},{"kind":"punct","text":" "},{"kind":"keyword","text":"implements"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleObject","ref":"com.oracle.truffle.api.interop.TruffleObject"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"interfaces":[[{"kind":"type","text":"TruffleObject","ref":"com.oracle.truffle.api.interop.TruffleObject"}]],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.object.HiddenKey#<init>(java.lang.String)","anchor":"<init>(java.lang.String)","kind":"constructor","name":"HiddenKey","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"HiddenKey"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/HiddenKey.java","line":60}},{"id":"com.oracle.truffle.api.object.HiddenKey#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/HiddenKey.java","line":65}},{"id":"com.oracle.truffle.api.object.HiddenKey#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/HiddenKey.java","line":70}},{"id":"com.oracle.truffle.api.object.HiddenKey#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"0.27","source":{"path":"com/oracle/truffle/api/object/HiddenKey.java","line":76}},{"id":"com.oracle.truffle.api.object.HiddenKey#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"0.27","source":{"path":"com/oracle/truffle/api/object/HiddenKey.java","line":82}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A unique key to be used for private object fields; excluded from enumeration and compared by object identity."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A unique key to be used for private object fields; excluded from enumeration and compared by object identity."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/HiddenKey.java","line":55}},{"id":"com.oracle.truffle.api.object.IncompatibleLocationException","name":"IncompatibleLocationException","kind":"class","language":"java","modifiers":["public","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"IncompatibleLocationException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"SlowPathException","ref":"com.oracle.truffle.api.nodes.SlowPathException"}],"superclass":[{"kind":"type","text":"SlowPathException","ref":"com.oracle.truffle.api.nodes.SlowPathException"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.SlowPathException"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.SlowPathException","text":"SlowPathException"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.SlowPathException#fillInStackTrace()","text":"fillInStackTrace"}]},{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"This exception is thrown on an attempt to assign an incompatible value to a location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This exception is thrown on an attempt to assign an incompatible value to a location."}]}]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/IncompatibleLocationException.java","line":50}},{"id":"com.oracle.truffle.api.object.IntLocation","name":"IntLocation","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"IntLocation"}],"members":[{"id":"com.oracle.truffle.api.object.IntLocation#getInt(com.oracle.truffle.api.object.DynamicObject,boolean)","anchor":"getInt(com.oracle.truffle.api.object.DynamicObject,boolean)","kind":"method","name":"getInt","annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"condition"},{"kind":"punct","text":")"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"condition","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#get(com.oracle.truffle.api.object.DynamicObject,boolean)"},"code":true,"children":[{"kind":"text","text":"Location.get(DynamicObject, boolean)"}]}]]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/IntLocation.java","line":57}},{"id":"com.oracle.truffle.api.object.IntLocation#setInt(com.oracle.truffle.api.object.DynamicObject,int,com.oracle.truffle.api.object.Shape)","anchor":"setInt(com.oracle.truffle.api.object.DynamicObject,int,com.oracle.truffle.api.object.Shape)","kind":"method","name":"setInt","annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setInt"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"param","text":"shape"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"FinalLocationException","ref":"com.oracle.truffle.api.object.FinalLocationException"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]},{"name":"shape","type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]}],"throws":[{"type":[{"kind":"type","text":"FinalLocationException","ref":"com.oracle.truffle.api.object.FinalLocationException"}],"declared":true}],"doc":{"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#set(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,com.oracle.truffle.api.object.Shape)"},"code":true,"children":[{"kind":"text","text":"Location.set(DynamicObject, Object, Shape)"}]}]]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/IntLocation.java","line":64}}],"doc":{"summary":[{"kind":"text","text":"Int-typed storage location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Int-typed storage location."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location"},"code":true,"children":[{"kind":"text","text":"Location"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getIntOrDefault(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.getIntOrDefault"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putInt(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.putInt"}]}]]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/IntLocation.java","line":51}},{"id":"com.oracle.truffle.api.object.Location","name":"Location","kind":"class","language":"java","modifiers":["public","abstract","sealed"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"sealed"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Location"},{"kind":"punct","text":" "},{"kind":"keyword","text":"permits"},{"kind":"punct","text":" "},{"kind":"type","text":"ExtLocations.InstanceLocation","ref":"com.oracle.truffle.api.object.ExtLocations$InstanceLocation"},{"kind":"punct","text":", "},{"kind":"type","text":"ExtLocations.ValueLocation","ref":"com.oracle.truffle.api.object.ExtLocations$ValueLocation"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"permits":[{"id":"com.oracle.truffle.api.object.ExtLocations$InstanceLocation"},{"id":"com.oracle.truffle.api.object.ExtLocations$ValueLocation"}],"members":[{"id":"com.oracle.truffle.api.object.Location#get(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)","anchor":"get(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)","kind":"method","name":"get","modifiers":["public","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"param","text":"shape"},{"kind":"punct","text":")"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]},{"name":"shape","type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current shape of the object, which must contain this location"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Get object value as object at this location in store."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get object value as object at this location in store."}]}]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":125}},{"id":"com.oracle.truffle.api.object.Location#get(com.oracle.truffle.api.object.DynamicObject,boolean)","anchor":"get(com.oracle.truffle.api.object.DynamicObject,boolean)","kind":"method","name":"get","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"condition"},{"kind":"punct","text":")"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"storage object"}]}]},{"name":"condition","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of a shape check or "},{"kind":"code","text":"false"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Get object value as object at this location in store."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get object value as object at this location in store. For internal use only and subject to change, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#get(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)"},"code":true,"children":[{"kind":"text","text":"get(DynamicObject, Shape)"}]},{"kind":"text","text":" instead."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#get(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)"},"code":true,"children":[{"kind":"text","text":"get(DynamicObject, Shape)"}]}]]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":139}},{"id":"com.oracle.truffle.api.object.Location#get(com.oracle.truffle.api.object.DynamicObject)","anchor":"get(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"get","modifiers":["public","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":")"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Get object value as object at this location in store."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get object value as object at this location in store."}]}]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":149}},{"id":"com.oracle.truffle.api.object.Location#getInt(com.oracle.truffle.api.object.DynamicObject,boolean)","anchor":"getInt(com.oracle.truffle.api.object.DynamicObject,boolean)","kind":"method","name":"getInt","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"guard"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"storage object"}]}]},{"name":"guard","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of a shape check or "},{"kind":"code","text":"false"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the location does not contain an int value."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets this location's value as int."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets this location's value as int."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/Location.java","line":162}},{"id":"com.oracle.truffle.api.object.Location#getLong(com.oracle.truffle.api.object.DynamicObject,boolean)","anchor":"getLong(com.oracle.truffle.api.object.DynamicObject,boolean)","kind":"method","name":"getLong","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLong"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"guard"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"storage object"}]}]},{"name":"guard","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of a shape check or "},{"kind":"code","text":"false"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the location does not contain a long value."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets this location's value as long."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets this location's value as long."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/Location.java","line":174}},{"id":"com.oracle.truffle.api.object.Location#getDouble(com.oracle.truffle.api.object.DynamicObject,boolean)","anchor":"getDouble(com.oracle.truffle.api.object.DynamicObject,boolean)","kind":"method","name":"getDouble","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"guard"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"storage object"}]}]},{"name":"guard","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of a shape check or "},{"kind":"code","text":"false"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the location does not contain a double value."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets this location's value as double."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets this location's value as double."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/Location.java","line":186}},{"id":"com.oracle.truffle.api.object.Location#set(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,com.oracle.truffle.api.object.Shape)","anchor":"set(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,com.oracle.truffle.api.object.Shape)","kind":"method","name":"set","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"22.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"store"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"param","text":"shape"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IncompatibleLocationException","ref":"com.oracle.truffle.api.object.IncompatibleLocationException"},{"kind":"punct","text":", "},{"kind":"type","text":"FinalLocationException","ref":"com.oracle.truffle.api.object.FinalLocationException"}],"params":[{"name":"store","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"storage object"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to set"}]}]},{"name":"shape","type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the current shape of the storage object"}]}]}],"throws":[{"type":[{"kind":"type","text":"IncompatibleLocationException","ref":"com.oracle.truffle.api.object.IncompatibleLocationException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"for storage type invalidations"}]}]},{"type":[{"kind":"type","text":"FinalLocationException","ref":"com.oracle.truffle.api.object.FinalLocationException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"for effectively final fields"}]}]}],"doc":{"summary":[{"kind":"text","text":"Set object value at this location in store."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set object value at this location in store."}]}]},"deprecated":{"since":"22.2"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":345}},{"id":"com.oracle.truffle.api.object.Location#canStore(java.lang.Object)","anchor":"canStore(java.lang.Object)","kind":"method","name":"canStore","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"canStore"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value in question"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the location is compatible with the type of the value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the location is compatible with the type of the value."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":557}},{"id":"com.oracle.truffle.api.object.Location#isFinal()","anchor":"isFinal()","kind":"method","name":"isFinal","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isFinal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this is a final location, i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this is a final location, i.e. readonly once set."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#isAssumedFinal()"},"code":true,"children":[{"kind":"text","text":"isAssumedFinal()"}]}]]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#isAssumedFinal()"},"code":true,"children":[{"kind":"text","text":"isAssumedFinal()"}]},{"kind":"text","text":" instead or replace by "},{"kind":"code","text":"false"},{"kind":"text","text":"."}]}],"since":"25.1"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":568}},{"id":"com.oracle.truffle.api.object.Location#isConstant()","anchor":"isConstant()","kind":"method","name":"isConstant","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isConstant"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this is a constant value location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this is a constant value location."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":578}},{"id":"com.oracle.truffle.api.object.Location#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"doc":{"summary":[{"kind":"text","text":"Must be overridden in subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Must be overridden in subclasses."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":587}},{"id":"com.oracle.truffle.api.object.Location#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Must be overridden in subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Must be overridden in subclasses."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":601}},{"id":"com.oracle.truffle.api.object.Location#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":617}},{"id":"com.oracle.truffle.api.object.Location#isValue()","anchor":"isValue()","kind":"method","name":"isValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isValue"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this is a value location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this is a value location."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#isConstant()"},"code":true,"children":[{"kind":"text","text":"isConstant()"}]}]]},"since":"0.18","source":{"path":"com/oracle/truffle/api/object/Location.java","line":786}},{"id":"com.oracle.truffle.api.object.Location#isAssumedFinal()","anchor":"isAssumedFinal()","kind":"method","name":"isAssumedFinal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isAssumedFinal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this location is assumed to be final."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this location is assumed to be final."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#getFinalAssumption()"},"code":true,"children":[{"kind":"text","text":"getFinalAssumption()"}]}]]},"since":"0.18","source":{"path":"com/oracle/truffle/api/object/Location.java","line":796}},{"id":"com.oracle.truffle.api.object.Location#getFinalAssumption()","anchor":"getFinalAssumption()","kind":"method","name":"getFinalAssumption","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"getFinalAssumption"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}]},"doc":{"summary":[{"kind":"text","text":"Returns the assumption that this location is final."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the assumption that this location is final."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Location#isAssumedFinal()"},"code":true,"children":[{"kind":"text","text":"isAssumedFinal()"}]}]]},"since":"0.18","source":{"path":"com/oracle/truffle/api/object/Location.java","line":807}},{"id":"com.oracle.truffle.api.object.Location#isPrimitive()","anchor":"isPrimitive()","kind":"method","name":"isPrimitive","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isPrimitive"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this location can only store primitive types and cannot contain any object references."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this location can only store primitive types and cannot contain any object references."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/Location.java","line":817}},{"id":"com.oracle.truffle.api.object.Location#getConstantValue()","anchor":"getConstantValue()","kind":"method","name":"getConstantValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getConstantValue"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"If this is a constant location, returns the constant value bound to this location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If this is a constant location, returns the constant value bound to this location. Otherwise, returns null."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/Location.java","line":828}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Property location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Property location. Planned to be deprecated."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"code":true,"children":[{"kind":"text","text":"Property"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Location.java","line":75}},{"id":"com.oracle.truffle.api.object.Property","name":"Property","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Property"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.object.Property#getKey()","anchor":"getKey()","kind":"method","name":"getKey","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getKey"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Get property identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get property identifier."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Property.java","line":75}},{"id":"com.oracle.truffle.api.object.Property#getFlags()","anchor":"getFlags()","kind":"method","name":"getFlags","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getFlags"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get property flags, which are free for language-specific use."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get property flags, which are free for language-specific use."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Property.java","line":84}},{"id":"com.oracle.truffle.api.object.Property#getLocation()","anchor":"getLocation()","kind":"method","name":"getLocation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Location","ref":"com.oracle.truffle.api.object.Location"},{"kind":"punct","text":" "},{"kind":"name","text":"getLocation"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Location","ref":"com.oracle.truffle.api.object.Location"}]},"doc":{"summary":[{"kind":"text","text":"Get the property location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the property location. Planned to be deprecated."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Property.java","line":95}},{"id":"com.oracle.truffle.api.object.Property#isHidden()","anchor":"isHidden()","kind":"method","name":"isHidden","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isHidden"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Is this property hidden from iteration."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Is this property hidden from iteration."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.HiddenKey"},"code":true,"children":[{"kind":"text","text":"HiddenKey"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Property.java","line":105}},{"id":"com.oracle.truffle.api.object.Property#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Property.java","line":123}},{"id":"com.oracle.truffle.api.object.Property#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Property.java","line":144}},{"id":"com.oracle.truffle.api.object.Property#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Property.java","line":157}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Property objects represent the mapping between property identifiers (keys) and storage locations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Property objects represent the mapping between property identifiers (keys) and storage locations. Optionally, properties may have metadata attached to them."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Property.java","line":51}},{"id":"com.oracle.truffle.api.object.PropertyGetter","name":"PropertyGetter","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"PropertyGetter"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.object.PropertyGetter#accepts(com.oracle.truffle.api.object.DynamicObject)","anchor":"accepts(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"accepts","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"accepts"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the receiver object"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the shape of the receiver object is supported by this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter"},"code":true,"children":[{"kind":"text","text":"PropertyGetter"}]},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter"},"code":true,"children":[{"kind":"text","text":"PropertyGetter"}]},{"kind":"text","text":" can be used with the given receiver object to get the property's value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter"},"code":true,"children":[{"kind":"text","text":"PropertyGetter"}]},{"kind":"text","text":" can be used with the given receiver object to get the property's value."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter#get(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"get(DynamicObject)"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/PropertyGetter.java","line":78}},{"id":"com.oracle.truffle.api.object.PropertyGetter#get(com.oracle.truffle.api.object.DynamicObject)","anchor":"get(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":")"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the receiver object"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the object does not have the expected shape."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the property's value from the given receiver object if the object has the supported "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":", i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the property's value from the given receiver object if the object has the supported "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":", i.e. the shape this property getter was created with. Otherwise, throws an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/PropertyGetter.java","line":92}},{"id":"com.oracle.truffle.api.object.PropertyGetter#getInt(com.oracle.truffle.api.object.DynamicObject)","anchor":"getInt(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"getInt","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the receiver object"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the object does not have the expected shape."}]}]},{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the location does not contain an int value."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the property's value from the given receiver object if the object has the supported "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the property's value from the given receiver object if the object has the supported "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":". Expects an "},{"kind":"code","text":"int"},{"kind":"text","text":" value or throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is of a different type. If the object's shape is not supported, throws an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter#get(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"get(DynamicObject)"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/PropertyGetter.java","line":115}},{"id":"com.oracle.truffle.api.object.PropertyGetter#getLong(com.oracle.truffle.api.object.DynamicObject)","anchor":"getLong(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"getLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLong"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the receiver object"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the object does not have the expected shape."}]}]},{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the location does not contain a long value."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the property's value from the given receiver object if the object has the supported "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the property's value from the given receiver object if the object has the supported "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":". Expects a "},{"kind":"code","text":"long"},{"kind":"text","text":" value or throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is of a different type. If the object's shape is not supported, throws an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter#get(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"get(DynamicObject)"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/PropertyGetter.java","line":137}},{"id":"com.oracle.truffle.api.object.PropertyGetter#getDouble(com.oracle.truffle.api.object.DynamicObject)","anchor":"getDouble(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"getDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"receiver"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"params":[{"name":"receiver","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the receiver object"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the object does not have the expected shape."}]}]},{"type":[{"kind":"type","text":"UnexpectedResultException","ref":"com.oracle.truffle.api.nodes.UnexpectedResultException"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the location does not contain a double value."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the property's value from the given receiver object if the object has the supported "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the property's value from the given receiver object if the object has the supported "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":". Expects a "},{"kind":"code","text":"double"},{"kind":"text","text":" value or throws an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.UnexpectedResultException"},"code":true,"children":[{"kind":"text","text":"UnexpectedResultException"}]},{"kind":"text","text":" if the value is of a different type. If the object's shape is not supported, throws an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter#get(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"get(DynamicObject)"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/PropertyGetter.java","line":159}},{"id":"com.oracle.truffle.api.object.PropertyGetter#getKey()","anchor":"getKey()","kind":"method","name":"getKey","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getKey"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the key of the property represented by this getter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the key of the property represented by this getter."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property#getKey()"},"code":true,"children":[{"kind":"text","text":"Property.getKey()"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/PropertyGetter.java","line":174}},{"id":"com.oracle.truffle.api.object.PropertyGetter#getFlags()","anchor":"getFlags()","kind":"method","name":"getFlags","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getFlags"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the flags associated with the property represented by this getter."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the flags associated with the property represented by this getter."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property#getFlags()"},"code":true,"children":[{"kind":"text","text":"Property.getFlags()"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/PropertyGetter.java","line":184}},{"id":"com.oracle.truffle.api.object.PropertyGetter#getShape()","anchor":"getShape()","kind":"method","name":"getShape","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"getShape"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the accepted shape"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the shape this property getter was created with."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the shape this property getter was created with. Only objects of this exact shape are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter#accepts(com.oracle.truffle.api.object.DynamicObject)"},"children":[{"kind":"text","text":"accepted"}]},{"kind":"text","text":" by this property getter."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This allows the property getter's shape to be used in a specialization without occupying another cached field, for example, to perform its own shape-based guards:"}]},{"kind":"code","text":"@Specialization(guards = {\"getter != null\",\n                \"getter.accepts(receiver)\",\n                \"!hasDict(getter.getShape())\"}, limit = \"3\")\nstatic Object doGet(Object key, DynamicObject receiver,\n                @Cached(\"receiver.getShape().makePropertyGetter(key)\") PropertyGetter getter) {\n    return getter.get(receiver);\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter#accepts(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"accepts(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#makePropertyGetter(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Shape.makePropertyGetter(Object)"}]}]]},"since":"25.5","source":{"path":"com/oracle/truffle/api/object/PropertyGetter.java","line":212}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A lightweight property getter that allows getting the value of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"property"}]},{"kind":"text","text":" without any lookup or cache dispatch."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A lightweight property getter that allows getting the value of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"property"}]},{"kind":"text","text":" without any lookup or cache dispatch. Only objects of a specific "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":" are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter#accepts(com.oracle.truffle.api.object.DynamicObject)"},"children":[{"kind":"text","text":"accepted"}]},{"kind":"text","text":". Therefore, it should only be used where the object is already known to have the supported shape."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#makePropertyGetter(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Shape.makePropertyGetter(Object)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]}]]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/PropertyGetter.java","line":56}},{"id":"com.oracle.truffle.api.object.Shape","name":"Shape","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Shape"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.object.Shape#newBuilder()","anchor":"newBuilder()","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new initial shape builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new initial shape builder. The builder instance is not thread-safe and must not be used from multiple threads at the same time."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":192}},{"id":"com.oracle.truffle.api.object.Shape#newBuilder(com.oracle.truffle.api.object.Shape)","anchor":"newBuilder(com.oracle.truffle.api.object.Shape)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"param","text":"baseShape"},{"kind":"punct","text":")"}],"params":[{"name":"baseShape","type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the shape to be modified"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new derived shape builder that allows changing a root shape's flags and dynamic type and adding constant properties."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new derived shape builder that allows changing a root shape's flags and dynamic type and adding constant properties. The builder instance is not thread-safe and must not be used from multiple threads at the same time."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#newBuilder()"},"code":true,"children":[{"kind":"text","text":"Shape.newBuilder()"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":585}},{"id":"com.oracle.truffle.api.object.Shape#getProperty(java.lang.Object)","anchor":"getProperty(java.lang.Object)","kind":"method","name":"getProperty","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":" "},{"kind":"name","text":"getProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the identifier to look up"}]}]}],"returns":{"type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a Property object, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if not found"}]}]},"doc":{"summary":[{"kind":"text","text":"Get a property entry by key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a property entry by key."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":698}},{"id":"com.oracle.truffle.api.object.Shape#addProperty(com.oracle.truffle.api.object.Property)","anchor":"addProperty(com.oracle.truffle.api.object.Property)","kind":"method","name":"addProperty","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"addProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":" "},{"kind":"param","text":"property"},{"kind":"punct","text":")"}],"params":[{"name":"property","type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property to add"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new Shape"}]}]},"doc":{"summary":[{"kind":"text","text":"Add a new property in the map, yielding a new or cached Shape object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add a new property in the map, yielding a new or cached Shape object."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":716}},{"id":"com.oracle.truffle.api.object.Shape#defineProperty(java.lang.Object,java.lang.Object,int,int)","anchor":"defineProperty(java.lang.Object,java.lang.Object,int,int)","kind":"method","name":"defineProperty","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"defineProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"propertyFlags"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"putFlags"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"propertyFlags","type":[{"kind":"keyword","text":"int"}]},{"name":"putFlags","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the shape after defining the property"}]}]},"doc":{"summary":[{"kind":"text","text":"Add or change property in the map, yielding a new or cached Shape object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Add or change property in the map, yielding a new or cached Shape object."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":727}},{"id":"com.oracle.truffle.api.object.Shape#getProperties()","anchor":"getProperties()","kind":"method","name":"getProperties","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":"> "},{"kind":"name","text":"getProperties"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"An "},{"kind":"link","target":{"id":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},"code":true,"children":[{"kind":"text","text":"Iterable"}]},{"kind":"text","text":" over the shape's properties in insertion order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An "},{"kind":"link","target":{"id":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},"code":true,"children":[{"kind":"text","text":"Iterable"}]},{"kind":"text","text":" over the shape's properties in insertion order."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":751}},{"id":"com.oracle.truffle.api.object.Shape#getPropertyList()","anchor":"getPropertyList()","kind":"method","name":"getPropertyList","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":"> "},{"kind":"name","text":"getPropertyList"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"list of properties"}]}]},"doc":{"summary":[{"kind":"text","text":"Get a list of all properties that this Shape stores."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a list of all properties that this Shape stores. Properties with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.HiddenKey"},"code":true,"children":[{"kind":"text","text":"HiddenKey"}]},{"kind":"text","text":" are not included."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":763}},{"id":"com.oracle.truffle.api.object.Shape#getPropertyListInternal(boolean)","anchor":"getPropertyListInternal(boolean)","kind":"method","name":"getPropertyListInternal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":"> "},{"kind":"name","text":"getPropertyListInternal"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"ascending"},{"kind":"punct","text":")"}],"params":[{"name":"ascending","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"desired order ("},{"kind":"code","text":"true"},{"kind":"text","text":" for insertion order, "},{"kind":"code","text":"false"},{"kind":"text","text":" for reverse insertion order)"}]}]}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns all (also hidden) property objects in this shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all (also hidden) property objects in this shape."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":788}},{"id":"com.oracle.truffle.api.object.Shape#getKeyList()","anchor":"getKeyList()","kind":"method","name":"getKeyList","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getKeyList"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Get a list of all property keys in insertion order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get a list of all property keys in insertion order. Properties with a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.HiddenKey"},"code":true,"children":[{"kind":"text","text":"HiddenKey"}]},{"kind":"text","text":" are not included."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":810}},{"id":"com.oracle.truffle.api.object.Shape#getKeys()","anchor":"getKeys()","kind":"method","name":"getKeys","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getKeys"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Iterable","ref":"java.lang.Iterable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Get all property keys in insertion order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get all property keys in insertion order."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":833}},{"id":"com.oracle.truffle.api.object.Shape#getValidAssumption()","anchor":"getValidAssumption()","kind":"method","name":"getValidAssumption","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"getValidAssumption"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}]},"doc":{"summary":[{"kind":"text","text":"Get an assumption that the shape is valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get an assumption that the shape is valid."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":842}},{"id":"com.oracle.truffle.api.object.Shape#isValid()","anchor":"isValid()","kind":"method","name":"isValid","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isValid"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether this shape is valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether this shape is valid."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":857}},{"id":"com.oracle.truffle.api.object.Shape#getLeafAssumption()","anchor":"getLeafAssumption()","kind":"method","name":"getLeafAssumption","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"getLeafAssumption"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}]},"doc":{"summary":[{"kind":"text","text":"Get an assumption that the shape is a leaf."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get an assumption that the shape is a leaf."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":867}},{"id":"com.oracle.truffle.api.object.Shape#isLeaf()","anchor":"isLeaf()","kind":"method","name":"isLeaf","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isLeaf"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether this shape is a leaf in the transition graph, i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether this shape is a leaf in the transition graph, i.e. transitionless."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":894}},{"id":"com.oracle.truffle.api.object.Shape#hasProperty(java.lang.Object)","anchor":"hasProperty(java.lang.Object)","kind":"method","name":"hasProperty","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Check whether the shape has a property with the given key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether the shape has a property with the given key."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":906}},{"id":"com.oracle.truffle.api.object.Shape#removeProperty(com.oracle.truffle.api.object.Property)","anchor":"removeProperty(com.oracle.truffle.api.object.Property)","kind":"method","name":"removeProperty","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"removeProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":" "},{"kind":"param","text":"property"},{"kind":"punct","text":")"}],"params":[{"name":"property","type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"}]}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]},"doc":{"summary":[{"kind":"text","text":"Remove the given property from the shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Remove the given property from the shape."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":915}},{"id":"com.oracle.truffle.api.object.Shape#replaceProperty(com.oracle.truffle.api.object.Property,com.oracle.truffle.api.object.Property)","anchor":"replaceProperty(com.oracle.truffle.api.object.Property,com.oracle.truffle.api.object.Property)","kind":"method","name":"replaceProperty","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"replaceProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":" "},{"kind":"param","text":"oldProperty"},{"kind":"punct","text":", "},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":" "},{"kind":"param","text":"newProperty"},{"kind":"punct","text":")"}],"params":[{"name":"oldProperty","type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"}]},{"name":"newProperty","type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"}]}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]},"doc":{"summary":[{"kind":"text","text":"Replace a property in the shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Replace a property in the shape."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":925}},{"id":"com.oracle.truffle.api.object.Shape#getLastProperty()","anchor":"getLastProperty()","kind":"method","name":"getLastProperty","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":" "},{"kind":"name","text":"getLastProperty"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the last property in the shape or "},{"kind":"code","text":"null"},{"kind":"text","text":" if empty"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the last property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the last property."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":944}},{"id":"com.oracle.truffle.api.object.Shape#getFirstProperty()","anchor":"getFirstProperty()","kind":"method","name":"getFirstProperty","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":" "},{"kind":"name","text":"getFirstProperty"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the first property in the shape or "},{"kind":"code","text":"null"},{"kind":"text","text":" if empty"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets the first property."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the first property."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":954}},{"id":"com.oracle.truffle.api.object.Shape#getFlags()","anchor":"getFlags()","kind":"method","name":"getFlags","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getFlags"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the language-specific shape flags previously set using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setShapeFlags(DynamicObject, int)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the language-specific shape flags previously set using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setShapeFlags(DynamicObject, int)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]},{"kind":"text","text":". If no shape flags were explicitly set, the default of 0 is returned. These flags may be used to tag objects that possess characteristics that need to be queried efficiently on fast and slow paths. For example, they can be used to mark objects as frozen."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getShapeFlags(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.getShapeFlags(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setShapeFlags(DynamicObject, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":972}},{"id":"com.oracle.truffle.api.object.Shape#setFlags(int)","anchor":"setFlags(int)","kind":"method","name":"setFlags","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"setFlags"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"objectFlags"},{"kind":"punct","text":")"}],"params":[{"name":"objectFlags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new shape flags; an int value in the range from 0 to 65535 (inclusive)"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the flags value is not in the supported range"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a copy of the shape, with the shape flags set to "},{"kind":"code","text":"newFlags"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a copy of the shape, with the shape flags set to "},{"kind":"code","text":"newFlags"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shapeFlags(int)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":989}},{"id":"com.oracle.truffle.api.object.Shape#getPropertyCount()","anchor":"getPropertyCount()","kind":"method","name":"getPropertyCount","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getPropertyCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of properties in this shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of properties in this shape."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1012}},{"id":"com.oracle.truffle.api.object.Shape#getDynamicType()","anchor":"getDynamicType()","kind":"method","name":"getDynamicType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getDynamicType"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Get the shape's dynamic object type identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the shape's dynamic object type identifier."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1021}},{"id":"com.oracle.truffle.api.object.Shape#setDynamicType(java.lang.Object)","anchor":"setDynamicType(java.lang.Object)","kind":"method","name":"setDynamicType","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"setDynamicType"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"dynamicType"},{"kind":"punct","text":")"}],"params":[{"name":"dynamicType","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new dynamic object type identifier"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the argument is null."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns a copy of the shape, with the dynamic object type identifier set to "},{"kind":"code","text":"dynamicType"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a copy of the shape, with the dynamic object type identifier set to "},{"kind":"code","text":"dynamicType"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#dynamicType(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.dynamicType(Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1034}},{"id":"com.oracle.truffle.api.object.Shape#getRoot()","anchor":"getRoot()","kind":"method","name":"getRoot","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"getRoot"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]},"doc":{"summary":[{"kind":"text","text":"Get the root shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the root shape. Planned to be deprecated."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1057}},{"id":"com.oracle.truffle.api.object.Shape#check(com.oracle.truffle.api.object.DynamicObject)","anchor":"check(com.oracle.truffle.api.object.DynamicObject)","kind":"method","name":"check","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"check"},{"kind":"punct","text":"("},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":" "},{"kind":"param","text":"subject"},{"kind":"punct","text":")"}],"params":[{"name":"subject","type":[{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks whether the given object's shape is identical to this shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks whether the given object's shape is identical to this shape."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1066}},{"id":"com.oracle.truffle.api.object.Shape#getLayoutClass()","anchor":"getLayoutClass()","kind":"method","name":"getLayoutClass","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":"> "},{"kind":"name","text":"getLayoutClass"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Get the shape's layout class."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the shape's layout class."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#layout(java.lang.Class,java.lang.invoke.MethodHandles.Lookup)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.layout(Class, Lookup)"}]}]]},"since":"21.1","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1076}},{"id":"com.oracle.truffle.api.object.Shape#getSharedData()","anchor":"getSharedData()","kind":"method","name":"getSharedData","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getSharedData"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Get the shape's shared data."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the shape's shared data."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#sharedData(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.sharedData(Object)"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1086}},{"id":"com.oracle.truffle.api.object.Shape#tryMerge(com.oracle.truffle.api.object.Shape)","anchor":"tryMerge(com.oracle.truffle.api.object.Shape)","kind":"method","name":"tryMerge","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"tryMerge"},{"kind":"punct","text":"("},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this, other, or a new shape that is compatible with both shapes"}]}]},"doc":{"summary":[{"kind":"text","text":"Try to merge two related shapes to a more general shape that has the same properties and can store at least the values of both shapes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Try to merge two related shapes to a more general shape that has the same properties and can store at least the values of both shapes."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1097}},{"id":"com.oracle.truffle.api.object.Shape#isShared()","anchor":"isShared()","kind":"method","name":"isShared","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isShared"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this shape is marked as shared."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this shape is marked as shared."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#isShared(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.isShared(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#markShared(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.markShared(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#shared(boolean)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.shared(boolean)"}]}]]},"since":"0.18","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1114}},{"id":"com.oracle.truffle.api.object.Shape#makeSharedShape()","anchor":"makeSharedShape()","kind":"method","name":"makeSharedShape","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"makeSharedShape"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a cached and shared variant of this shape"}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this shape is already shared"}]}]}],"doc":{"summary":[{"kind":"text","text":"Make a shared variant of this shape, to allow safe usage of this object between threads."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Make a shared variant of this shape, to allow safe usage of this object between threads. Shared shapes will not reuse storage locations for other fields. In combination with careful synchronization on writes, this can prevent reading out-of-thin-air values."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note: Where possible, avoid using this method and use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#markShared(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.markShared(DynamicObject)"}]},{"kind":"text","text":" instead."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#isShared()"},"code":true,"children":[{"kind":"text","text":"isShared()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#markShared(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.markShared(DynamicObject)"}]}]]},"since":"0.18","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1133}},{"id":"com.oracle.truffle.api.object.Shape#hasInstanceProperties()","anchor":"hasInstanceProperties()","kind":"method","name":"hasInstanceProperties","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasInstanceProperties"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this shape has instance properties (i.e., stored in the object)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this shape has instance properties (i.e., stored in the object)."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1154}},{"id":"com.oracle.truffle.api.object.Shape#getPropertyAssumption(java.lang.Object)","anchor":"getPropertyAssumption(java.lang.Object)","kind":"method","name":"getPropertyAssumption","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"getPropertyAssumption"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property key of interest"}]}]}],"returns":{"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an assumption that the property is stable or an invalid assumption"}]}]},"doc":{"summary":[{"kind":"text","text":"Gets a stable property assumption for the given property key."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets a stable property assumption for the given property key. May be invalid. If a valid assumption is returned, it may be used to assume this particular property is still absent or present at the current storage location in objects of this shape. The assumption is invalidated if a shape change is triggered because of a property with the given key was added, removed, or changed, or a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#resetShape(com.oracle.truffle.api.object.DynamicObject,com.oracle.truffle.api.object.Shape)"},"code":true,"children":[{"kind":"text","text":"resetShape"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Only applicable if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#propertyAssumptions(boolean)"},"children":[{"kind":"text","text":"property assumptions"}]},{"kind":"text","text":" are enabled for this shape, otherwise always returns an invalid assumption."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#propertyAssumptions(boolean)"},"code":true,"children":[{"kind":"text","text":"Shape.Builder.propertyAssumptions(boolean)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1175}},{"id":"com.oracle.truffle.api.object.Shape#allPropertiesMatch(java.util.function.Predicate)","anchor":"allPropertiesMatch(java.util.function.Predicate)","kind":"method","name":"allPropertiesMatch","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"allPropertiesMatch"},{"kind":"punct","text":"("},{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":"> "},{"kind":"param","text":"predicate"},{"kind":"punct","text":")"}],"params":[{"name":"predicate","type":[{"kind":"type","text":"Predicate","ref":"java.util.function.Predicate","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Predicate.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"Property","ref":"com.oracle.truffle.api.object.Property"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the all properties match the predicate, else "},{"kind":"code","text":"false"}]}]},"doc":{"summary":[{"kind":"text","text":"Tests if all properties in the shape match the provided predicate."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Tests if all properties in the shape match the provided predicate. May not evaluate the predicate on all properties if a predicate did not match. If the shape does not contain any properties, returns "},{"kind":"code","text":"true"},{"kind":"text","text":" and does not evaluate the predicate."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1198}},{"id":"com.oracle.truffle.api.object.Shape#makePropertyGetter(java.lang.Object)","anchor":"makePropertyGetter(java.lang.Object)","kind":"method","name":"makePropertyGetter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"PropertyGetter","ref":"com.oracle.truffle.api.object.PropertyGetter"},{"kind":"punct","text":" "},{"kind":"name","text":"makePropertyGetter"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the identifier to look up"}]}]}],"returns":{"type":[{"kind":"type","text":"PropertyGetter","ref":"com.oracle.truffle.api.object.PropertyGetter"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter"},"code":true,"children":[{"kind":"text","text":"PropertyGetter"}]},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the property was not found in this shape"}]}]},"doc":{"summary":[{"kind":"text","text":"Makes a property getter for this shape and the given property key, if it exists."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Makes a property getter for this shape and the given property key, if it exists. Otherwise, returns "},{"kind":"code","text":"null"},{"kind":"text","text":". Note that the returned "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.PropertyGetter"},"code":true,"children":[{"kind":"text","text":"PropertyGetter"}]},{"kind":"text","text":" only accepts objects of this particular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1232}},{"id":"com.oracle.truffle.api.object.Shape#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a string representation of the object"}]}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a string representation of the object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string representation of the object."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":1652}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A Shape is an immutable descriptor of the current object \"shape\" of a DynamicObject, i.e., object layout, metadata ("},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getDynamicType()"},"children":[{"kind":"text","text":"type"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getFlags()"},"children":[{"kind":"text","text":"flags"}]},{"kind":"text","text":"), and a mapping of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"properties"}]},{"kind":"text","text":" to storage locations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A Shape is an immutable descriptor of the current object \"shape\" of a DynamicObject, i.e., object layout, metadata ("},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getDynamicType()"},"children":[{"kind":"text","text":"type"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getFlags()"},"children":[{"kind":"text","text":"flags"}]},{"kind":"text","text":"), and a mapping of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"children":[{"kind":"text","text":"properties"}]},{"kind":"text","text":" to storage locations. This allows cached "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary"}]},{"kind":"text","text":" to do a simple shape check to determine the contents of an object and do fast, constant-time property accesses. Shape changes, like adding or removing a property, yield a new Shape derived from the old one."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Shapes are shared between objects that assume the same shape if they follow the same shape transitions, like adding the same properties in the same order, starting from a common root shape. Shape transitions are automatically, weakly cached."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Dynamic objects start off with an initial shape that has no instance properties (but may have constant properties that are stored in the shape). Initial shapes are created via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#newBuilder()"},"code":true,"children":[{"kind":"text","text":"Shape.newBuilder()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#newBuilder()"},"code":true,"children":[{"kind":"text","text":"Shape.newBuilder()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Property"},"code":true,"children":[{"kind":"text","text":"Property"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":102}},{"id":"com.oracle.truffle.api.object.Shape$Builder","name":"Shape.Builder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Shape.Builder"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.AbstractBuilder","ref":"com.oracle.truffle.api.object.Shape$AbstractBuilder"},{"kind":"punct","text":"<"},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Shape.AbstractBuilder","ref":"com.oracle.truffle.api.object.Shape$AbstractBuilder"},{"kind":"punct","text":"<"},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":">"}],"ancestors":[{"id":"com.oracle.truffle.api.object.Shape$AbstractBuilder"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.Shape","members":[{"id":"com.oracle.truffle.api.object.Shape$Builder#layout(java.lang.Class)","anchor":"layout(java.lang.Class)","kind":"method","name":"layout","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"24.2\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"layout"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":"> "},{"kind":"param","text":"layoutClass"},{"kind":"punct","text":")"}],"params":[{"name":"layoutClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"custom object layout class"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets custom object layout class (default: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" base class)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets custom object layout class (default: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" base class). Enables the use of dynamic object fields declared in subclasses using the "},{"kind":"code","text":"DynamicField"},{"kind":"text","text":" annotation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Examples:"}]},{"kind":"code","text":"\npublic class MyObject extends DynamicObject implements TruffleObject {\n\n    @DynamicField private Object _obj1;\n    @DynamicField private Object _obj2;\n    @DynamicField private long _long1;\n    @DynamicField private long _long2;\n\n    public MyObject(Shape shape) {\n        super(shape);\n    }\n}\n\n\nShape myObjShape = Shape.newBuilder().layout(MyObject.class).build();\nMyObject obj = new MyObject(myObjShape);"}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#layout(java.lang.Class,java.lang.invoke.MethodHandles.Lookup)"},"code":true,"children":[{"kind":"text","text":"layout(Class, MethodHandles.Lookup)"}]},{"kind":"text","text":" instead."}]}],"since":"24.2"},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":315}},{"id":"com.oracle.truffle.api.object.Shape$Builder#layout(java.lang.Class,java.lang.invoke.MethodHandles.Lookup)","anchor":"layout(java.lang.Class,java.lang.invoke.MethodHandles.Lookup)","kind":"method","name":"layout","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"layout"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":"> "},{"kind":"param","text":"layoutClass"},{"kind":"punct","text":", "},{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},{"kind":"punct","text":" "},{"kind":"param","text":"layoutClassLookup"},{"kind":"punct","text":")"}],"params":[{"name":"layoutClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"DynamicObject","ref":"com.oracle.truffle.api.object.DynamicObject"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" layout subclass or the default "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"code","text":".class"},{"kind":"text","text":"."}]}]},{"name":"layoutClassLookup","type":[{"kind":"type","text":"MethodHandles.Lookup","ref":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"link","target":{"id":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},"code":true,"children":[{"kind":"text","text":"Lookup"}]},{"kind":"text","text":" that has full privilege access, created using "},{"kind":"link","target":{"id":"java.lang.invoke.MethodHandles#lookup()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.html#lookup()"},"code":true,"children":[{"kind":"text","text":"MethodHandles.lookup()"}]},{"kind":"text","text":", either by the layout class itself, or a class in the same module. If "},{"kind":"code","text":"layoutClass == DynamicObject.class"},{"kind":"text","text":", and only then, this parameter is ignored and may be "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"layoutClass != DynamicObject.class"},{"kind":"text","text":" and the lookup does not have "},{"kind":"link","target":{"id":"java.lang.invoke.MethodHandles$Lookup#hasFullPrivilegeAccess()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html#hasFullPrivilegeAccess()"},"code":true,"children":[{"kind":"text","text":"full privilege access"}]},{"kind":"text","text":" or is not from the layout class or a class within the same module as the layout class."}]}]},{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"layoutClass == null"},{"kind":"text","text":", or "},{"kind":"code","text":"lookup == null"},{"kind":"text","text":" and "},{"kind":"code","text":"layoutClass != "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"code","text":".class"},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets a custom object layout class (default: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"code","text":".class"},{"kind":"text","text":") and a corresponding "},{"kind":"link","target":{"id":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},"code":true,"children":[{"kind":"text","text":"MethodHandles.Lookup"}]},{"kind":"text","text":" created by the layout class, or a class in the same module, that has full privilege access in order to provide access to its fields."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a custom object layout class (default: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"code","text":".class"},{"kind":"text","text":") and a corresponding "},{"kind":"link","target":{"id":"java.lang.invoke.MethodHandles$Lookup","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html"},"code":true,"children":[{"kind":"text","text":"MethodHandles.Lookup"}]},{"kind":"text","text":" created by the layout class, or a class in the same module, that has full privilege access in order to provide access to its fields."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Enables the allocation of any additional "},{"kind":"code","text":"DynamicField"},{"kind":"text","text":"-annotated fields declared in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" layout subclass as storage locations. By default, only extension array based storage locations in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" base class are used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Also restricts the shape to a specific "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" subclass and subclasses thereof, i.e. shapes created for a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObject"},"code":true,"children":[{"kind":"text","text":"DynamicObject"}]},{"kind":"text","text":" layout subclass, and any derived shapes, can only be used to instantiate, and be assigned to, instances of that class (regardless of whether the class actually contains any dynamic fields)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example:"}]},{"kind":"code","text":"\npublic class MyObject extends DynamicObject implements TruffleObject {\n\n    @DynamicField private Object _obj1;\n    @DynamicField private Object _obj2;\n    @DynamicField private long _long1;\n    @DynamicField private long _long2;\n\n    public MyObject(Shape shape) {\n        super(shape);\n    }\n\n    static MethodHandles.Lookup lookup() {\n        return MethodHandles.lookup();\n    }\n}\n\n\nShape myObjShape = Shape.newBuilder().layout(MyObject.class, MyObject.lookup()).build();\nMyObject obj = new MyObject(myObjShape);"}]},"since":"24.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":383}},{"id":"com.oracle.truffle.api.object.Shape$Builder#dynamicType(java.lang.Object)","anchor":"dynamicType(java.lang.Object)","kind":"method","name":"dynamicType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"dynamicType"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"dynamicType"},{"kind":"punct","text":")"}],"params":[{"name":"dynamicType","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non-null object type identifier"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the type is "},{"kind":"code","text":"null"}]}]}],"overrides":{"id":"com.oracle.truffle.api.object.Shape$AbstractBuilder#dynamicType(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Sets initial dynamic object type identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets initial dynamic object type identifier. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setDynamicType(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setDynamicType(DynamicObject, Object)"}]},{"kind":"text","text":" for more information."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getDynamicType(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.getDynamicType(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setDynamicType(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setDynamicType(DynamicObject, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":413}},{"id":"com.oracle.truffle.api.object.Shape$Builder#shapeFlags(int)","anchor":"shapeFlags(int)","kind":"method","name":"shapeFlags","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"shapeFlags"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"flags"},{"kind":"punct","text":")"}],"params":[{"name":"flags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an int value in the range from 0 to 65535 (inclusive)"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the flags value is not in the supported range"}]}]}],"overrides":{"id":"com.oracle.truffle.api.object.Shape$AbstractBuilder#shapeFlags(int)"},"doc":{"summary":[{"kind":"text","text":"Sets initial shape flags (default: 0)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets initial shape flags (default: 0). Currently limited to 16 bits. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setShapeFlags(DynamicObject, int)"}]},{"kind":"text","text":" for more information."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getShapeFlags(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.getShapeFlags(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setShapeFlags(DynamicObject, int)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":428}},{"id":"com.oracle.truffle.api.object.Shape$Builder#shared(boolean)","anchor":"shared(boolean)","kind":"method","name":"shared","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"shared"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"isShared"},{"kind":"punct","text":")"}],"params":[{"name":"isShared","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":", makes the object shared (default: "},{"kind":"code","text":"false"},{"kind":"text","text":")."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":", makes the object shared (default: "},{"kind":"code","text":"false"},{"kind":"text","text":")."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#isShared()"},"code":true,"children":[{"kind":"text","text":"Shape.isShared()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#isShared(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.isShared(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#markShared(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.markShared(DynamicObject)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":443}},{"id":"com.oracle.truffle.api.object.Shape$Builder#propertyAssumptions(boolean)","anchor":"propertyAssumptions(boolean)","kind":"method","name":"propertyAssumptions","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"propertyAssumptions"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enable"},{"kind":"punct","text":")"}],"params":[{"name":"enable","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"doc":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":", enables the use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getPropertyAssumption(java.lang.Object)"},"children":[{"kind":"text","text":"property assumptions"}]},{"kind":"text","text":" for this object shape and any derived shapes (default: "},{"kind":"code","text":"false"},{"kind":"text","text":")."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"true"},{"kind":"text","text":", enables the use of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getPropertyAssumption(java.lang.Object)"},"children":[{"kind":"text","text":"property assumptions"}]},{"kind":"text","text":" for this object shape and any derived shapes (default: "},{"kind":"code","text":"false"},{"kind":"text","text":"). Property assumptions allow speculating on select properties being absent or stable across shape changes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use of property assumptions can be beneficial in single-context mode for long-lived objects with stable properties but recurrent shape changes due to properties being added (e.g. global objects of a context), in which case a shape cache would be unstable while the property assumption allows for a stable cache."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getPropertyAssumption(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Shape.getPropertyAssumption(Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":464}},{"id":"com.oracle.truffle.api.object.Shape$Builder#sharedData(java.lang.Object)","anchor":"sharedData(java.lang.Object)","kind":"method","name":"sharedData","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"sharedData"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sharedData"},{"kind":"punct","text":")"}],"params":[{"name":"sharedData","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets shared data to be associated with the root shape and any derived shapes (e.g."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets shared data to be associated with the root shape and any derived shapes (e.g. a "},{"kind":"code","text":"TruffleLanguage"},{"kind":"text","text":" instance). May be null (the default)."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#getSharedData()"},"code":true,"children":[{"kind":"text","text":"Shape.getSharedData()"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":477}},{"id":"com.oracle.truffle.api.object.Shape$Builder#singleContextAssumption(com.oracle.truffle.api.Assumption)","anchor":"singleContextAssumption(com.oracle.truffle.api.Assumption)","kind":"method","name":"singleContextAssumption","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"singleContextAssumption"},{"kind":"punct","text":"("},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"param","text":"assumption"},{"kind":"punct","text":")"}],"params":[{"name":"assumption","type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Sets an assumption that allows specializations on constant object instances with this shape, as long as the assumption is valid."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets an assumption that allows specializations on constant object instances with this shape, as long as the assumption is valid. The assumption should be valid only if code is not shared across contexts and invalidated when this is no longer true. The assumption may be "},{"kind":"code","text":"null"},{"kind":"text","text":" in which case this feature is disabled (the default)."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape$Builder#propertyAssumptions(boolean)"},"code":true,"children":[{"kind":"text","text":"propertyAssumptions(boolean)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":492}},{"id":"com.oracle.truffle.api.object.Shape$Builder#addConstantProperty(java.lang.Object,java.lang.Object,int)","anchor":"addConstantProperty(java.lang.Object,java.lang.Object,int)","kind":"method","name":"addConstantProperty","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"addConstantProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"flags"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's key"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value"}]}]},{"name":"flags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's flags"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the key is "},{"kind":"code","text":"null"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if a property with the key already exists"}]}]}],"overrides":{"id":"com.oracle.truffle.api.object.Shape$AbstractBuilder#addConstantProperty(java.lang.Object,java.lang.Object,int)"},"doc":{"summary":[{"kind":"text","text":"Adds a property with a constant value to the shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a property with a constant value to the shape. The key must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and must not be equal to any previously added property's key."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putConstant(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.putConstant(DynamicObject, Object, Object, int)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":506}},{"id":"com.oracle.truffle.api.object.Shape$Builder#allowImplicitCastIntToLong(boolean)","anchor":"allowImplicitCastIntToLong(boolean)","kind":"method","name":"allowImplicitCastIntToLong","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowImplicitCastIntToLong"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allow"},{"kind":"punct","text":")"}],"params":[{"name":"allow","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows values to be implicitly cast from int to long in this shape and any derived shapes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows values to be implicitly cast from int to long in this shape and any derived shapes."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":527}},{"id":"com.oracle.truffle.api.object.Shape$Builder#allowImplicitCastIntToDouble(boolean)","anchor":"allowImplicitCastIntToDouble(boolean)","kind":"method","name":"allowImplicitCastIntToDouble","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"allowImplicitCastIntToDouble"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allow"},{"kind":"punct","text":")"}],"params":[{"name":"allow","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Shape.Builder","ref":"com.oracle.truffle.api.object.Shape$Builder"}]},"doc":{"summary":[{"kind":"text","text":"Allows values to be implicitly cast from int to double in this shape and any derived shapes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows values to be implicitly cast from int to double in this shape and any derived shapes."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":538}},{"id":"com.oracle.truffle.api.object.Shape$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}]},"doc":{"summary":[{"kind":"text","text":"Builds a new shape using the configuration of this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds a new shape using the configuration of this builder."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":548}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder class to construct initial "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":" instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder class to construct initial "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":" instances. The builder instance is not thread-safe and must not be used from multiple threads at the same time."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#newBuilder()"},"code":true,"children":[{"kind":"text","text":"Shape.newBuilder()"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":262}},{"id":"com.oracle.truffle.api.object.Shape$DerivedBuilder","name":"Shape.DerivedBuilder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Shape.DerivedBuilder"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.AbstractBuilder","ref":"com.oracle.truffle.api.object.Shape$AbstractBuilder"},{"kind":"punct","text":"<"},{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Shape.AbstractBuilder","ref":"com.oracle.truffle.api.object.Shape$AbstractBuilder"},{"kind":"punct","text":"<"},{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"},{"kind":"punct","text":">"}],"ancestors":[{"id":"com.oracle.truffle.api.object.Shape$AbstractBuilder"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.object.Shape","members":[{"id":"com.oracle.truffle.api.object.Shape$DerivedBuilder#dynamicType(java.lang.Object)","anchor":"dynamicType(java.lang.Object)","kind":"method","name":"dynamicType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"dynamicType"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"dynamicType"},{"kind":"punct","text":")"}],"params":[{"name":"dynamicType","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a non-null object type identifier"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the type is "},{"kind":"code","text":"null"}]}]}],"overrides":{"id":"com.oracle.truffle.api.object.Shape$AbstractBuilder#dynamicType(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Sets initial dynamic object type identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets initial dynamic object type identifier. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setDynamicType(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setDynamicType(DynamicObject, Object)"}]},{"kind":"text","text":" for more information."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getDynamicType(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.getDynamicType(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setDynamicType(com.oracle.truffle.api.object.DynamicObject,java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setDynamicType(DynamicObject, Object)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":621}},{"id":"com.oracle.truffle.api.object.Shape$DerivedBuilder#shapeFlags(int)","anchor":"shapeFlags(int)","kind":"method","name":"shapeFlags","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"shapeFlags"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"flags"},{"kind":"punct","text":")"}],"params":[{"name":"flags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an int value in the range from 0 to 65535 (inclusive)"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the flags value is not in the supported range"}]}]}],"overrides":{"id":"com.oracle.truffle.api.object.Shape$AbstractBuilder#shapeFlags(int)"},"doc":{"summary":[{"kind":"text","text":"Sets initial shape flags (default: 0)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets initial shape flags (default: 0). Currently limited to 16 bits. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setShapeFlags(DynamicObject, int)"}]},{"kind":"text","text":" for more information."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#getShapeFlags(com.oracle.truffle.api.object.DynamicObject)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.getShapeFlags(DynamicObject)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#setShapeFlags(com.oracle.truffle.api.object.DynamicObject,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.setShapeFlags(DynamicObject, int)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":636}},{"id":"com.oracle.truffle.api.object.Shape$DerivedBuilder#addConstantProperty(java.lang.Object,java.lang.Object,int)","anchor":"addConstantProperty(java.lang.Object,java.lang.Object,int)","kind":"method","name":"addConstantProperty","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"addConstantProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"flags"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's key"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's value"}]}]},{"name":"flags","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the property's flags"}]}]}],"returns":{"type":[{"kind":"type","text":"Shape.DerivedBuilder","ref":"com.oracle.truffle.api.object.Shape$DerivedBuilder"}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the key is "},{"kind":"code","text":"null"}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if a property with the key already exists"}]}]}],"overrides":{"id":"com.oracle.truffle.api.object.Shape$AbstractBuilder#addConstantProperty(java.lang.Object,java.lang.Object,int)"},"doc":{"summary":[{"kind":"text","text":"Adds a property with a constant value to the shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a property with a constant value to the shape. The key must not be "},{"kind":"code","text":"null"},{"kind":"text","text":" and must not be equal to any previously added property's key."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.DynamicObjectLibrary#putConstant(com.oracle.truffle.api.object.DynamicObject,java.lang.Object,java.lang.Object,int)"},"code":true,"children":[{"kind":"text","text":"DynamicObjectLibrary.putConstant(DynamicObject, Object, Object, int)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":651}},{"id":"com.oracle.truffle.api.object.Shape$DerivedBuilder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Shape","ref":"com.oracle.truffle.api.object.Shape"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new or cached shape"}]}]},"doc":{"summary":[{"kind":"text","text":"Builds a derived shape from the base shape supplied to the constructor using the configuration of this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds a derived shape from the base shape supplied to the constructor using the configuration of this builder."}]}]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":672}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder class to construct derived "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":" instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder class to construct derived "},{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape"},"code":true,"children":[{"kind":"text","text":"Shape"}]},{"kind":"text","text":" instances. The builder instance is not thread-safe and must not be used from multiple threads at the same time."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.object.Shape#newBuilder(com.oracle.truffle.api.object.Shape)"},"code":true,"children":[{"kind":"text","text":"Shape.newBuilder(Shape)"}]}]]},"since":"20.2.0","source":{"path":"com/oracle/truffle/api/object/Shape.java","line":599}}]},{"id":"com.oracle.truffle.api.profiles","name":"com.oracle.truffle.api.profiles","doc":{"summary":[{"kind":"text","text":"A profile is a Truffle utility class that uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives"},"code":true,"children":[{"kind":"text","text":"Truffle compiler directives"}]},{"kind":"text","text":" to guard for and/or forward runtime information to the compiler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A profile is a Truffle utility class that uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives"},"code":true,"children":[{"kind":"text","text":"Truffle compiler directives"}]},{"kind":"text","text":" to guard for and/or forward runtime information to the compiler."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.Profile"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.profiles.Profile"}]}]]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.profiles.BranchProfile","name":"BranchProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"BranchProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"superclass":[{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.BranchProfile#enter()","anchor":"enter()","kind":"method","name":"enter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"enter"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Call when an unlikely branch is entered."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Call when an unlikely branch is entered."}]}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/BranchProfile.java","line":85}},{"id":"com.oracle.truffle.api.profiles.BranchProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/BranchProfile.java","line":97}},{"id":"com.oracle.truffle.api.profiles.BranchProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/BranchProfile.java","line":107}},{"id":"com.oracle.truffle.api.profiles.BranchProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/BranchProfile.java","line":122}},{"id":"com.oracle.truffle.api.profiles.BranchProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BranchProfile","ref":"com.oracle.truffle.api.profiles.BranchProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BranchProfile","ref":"com.oracle.truffle.api.profiles.BranchProfile"}]},"doc":{"summary":[{"kind":"text","text":"Call to create a new instance of a branch profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Call to create a new instance of a branch profile."}]}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/BranchProfile.java","line":136}},{"id":"com.oracle.truffle.api.profiles.BranchProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedBranchProfile","ref":"com.oracle.truffle.api.profiles.InlinedBranchProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedBranchProfile","ref":"com.oracle.truffle.api.profiles.InlinedBranchProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/BranchProfile.java","line":151}},{"id":"com.oracle.truffle.api.profiles.BranchProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"BranchProfile","ref":"com.oracle.truffle.api.profiles.BranchProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"BranchProfile","ref":"com.oracle.truffle.api.profiles.BranchProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/BranchProfile.java","line":160}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"BranchProfiles are profiles to speculate on branches that are unlikely to be visited."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"BranchProfiles are profiles to speculate on branches that are unlikely to be visited. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.BranchProfile#enter()"},"code":true,"children":[{"kind":"text","text":"enter()"}]},{"kind":"text","text":" method is invoked first the optimized code is invalidated and the branch where "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.BranchProfile#enter()"},"code":true,"children":[{"kind":"text","text":"enter()"}]},{"kind":"text","text":" is invoked is enabled for compilation. Otherwise if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.BranchProfile#enter()"},"code":true,"children":[{"kind":"text","text":"enter()"}]},{"kind":"text","text":" method was never invoked the branch will not get compiled."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","language":"java","text":"class BranchingNode extends Node {\n    final BranchProfile errorProfile = BranchProfile.create();\n\n    int execute(int value) {\n        if (value == Integer.MAX_VALUE) {\n            errorProfile.enter();\n            throw new Error(\"Invalid input value\");\n        }\n        return value;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.BranchProfile#enter()"},"code":true,"children":[{"kind":"text","text":"BranchProfile.enter()"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/BranchProfile.java","line":66}},{"id":"com.oracle.truffle.api.profiles.ByteValueProfile","name":"ByteValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ByteValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"superclass":[{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.ByteValueProfile#profile(byte)","anchor":"profile(byte)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/ByteValueProfile.java","line":87}},{"id":"com.oracle.truffle.api.profiles.ByteValueProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/ByteValueProfile.java","line":124}},{"id":"com.oracle.truffle.api.profiles.ByteValueProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/ByteValueProfile.java","line":134}},{"id":"com.oracle.truffle.api.profiles.ByteValueProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/ByteValueProfile.java","line":146}},{"id":"com.oracle.truffle.api.profiles.ByteValueProfile#createIdentityProfile()","anchor":"createIdentityProfile()","kind":"method","name":"createIdentityProfile","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ByteValueProfile","ref":"com.oracle.truffle.api.profiles.ByteValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"createIdentityProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ByteValueProfile","ref":"com.oracle.truffle.api.profiles.ByteValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"byte"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"byte"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ByteValueProfile"},"code":true,"children":[{"kind":"text","text":"ByteValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/ByteValueProfile.java","line":162}},{"id":"com.oracle.truffle.api.profiles.ByteValueProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ByteValueProfile","ref":"com.oracle.truffle.api.profiles.ByteValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ByteValueProfile","ref":"com.oracle.truffle.api.profiles.ByteValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"byte"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"byte"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ByteValueProfile"},"code":true,"children":[{"kind":"text","text":"ByteValueProfile"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/ByteValueProfile.java","line":173}},{"id":"com.oracle.truffle.api.profiles.ByteValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ByteValueProfile","ref":"com.oracle.truffle.api.profiles.ByteValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ByteValueProfile","ref":"com.oracle.truffle.api.profiles.ByteValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/ByteValueProfile.java","line":187}},{"id":"com.oracle.truffle.api.profiles.ByteValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedByteValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedByteValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedByteValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedByteValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/ByteValueProfile.java","line":197}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"byte"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"byte"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","language":"java","text":"class ByteProfileNode extends Node {\n\n    final ByteValueProfile profile = ByteValueProfile.create();\n\n    byte execute(byte input) {\n        byte profiledValue = profile.profile(input);\n        // compiler may know now more about profiledValue\n        return profiledValue;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ByteValueProfile#createIdentityProfile()"},"code":true,"children":[{"kind":"text","text":"createIdentityProfile()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"ValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/ByteValueProfile.java","line":67}},{"id":"com.oracle.truffle.api.profiles.ConditionProfile","name":"ConditionProfile","kind":"class","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ConditionProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"superclass":[{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.ConditionProfile#profile(boolean)","anchor":"profile(boolean)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/ConditionProfile.java","line":95}},{"id":"com.oracle.truffle.api.profiles.ConditionProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/ConditionProfile.java","line":116}},{"id":"com.oracle.truffle.api.profiles.ConditionProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/ConditionProfile.java","line":127}},{"id":"com.oracle.truffle.api.profiles.ConditionProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/ConditionProfile.java","line":149}},{"id":"com.oracle.truffle.api.profiles.ConditionProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ConditionProfile","ref":"com.oracle.truffle.api.profiles.ConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ConditionProfile","ref":"com.oracle.truffle.api.profiles.ConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ConditionProfile"},"code":true,"children":[{"kind":"text","text":"ConditionProfile"}]},{"kind":"text","text":" that speculates on conditions to be never "},{"kind":"code","text":"true"},{"kind":"text","text":" or to be never "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ConditionProfile"},"code":true,"children":[{"kind":"text","text":"ConditionProfile"}]},{"kind":"text","text":" that speculates on conditions to be never "},{"kind":"code","text":"true"},{"kind":"text","text":" or to be never "},{"kind":"code","text":"false"},{"kind":"text","text":". Condition profiles are intended to be used as part of if conditions."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/profiles/ConditionProfile.java","line":165}},{"id":"com.oracle.truffle.api.profiles.ConditionProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ConditionProfile","ref":"com.oracle.truffle.api.profiles.ConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ConditionProfile","ref":"com.oracle.truffle.api.profiles.ConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/ConditionProfile.java","line":179}},{"id":"com.oracle.truffle.api.profiles.ConditionProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/ConditionProfile.java","line":189}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"ConditionProfiles are useful to profile the outcome of conditions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ConditionProfiles are useful to profile the outcome of conditions. A regular condition profile keeps track of a binary state, for each branch whether a branch was hit or not and communicates this to the compiler. If frequency information for each branch should be collected use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile"},"code":true,"children":[{"kind":"text","text":"CountingConditionProfile"}]},{"kind":"text","text":" instead."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"class AbsoluteNode extends Node {\n\n    final ConditionProfile greaterZeroProfile = ConditionProfile.create();\n\n    void execute(int value) {\n        if (greaterZeroProfile.profile(value >= 0)) {\n            return value;\n        } else {\n            return -value;\n        }\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ConditionProfile#create()"},"code":true,"children":[{"kind":"text","text":"create()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile"},"code":true,"children":[{"kind":"text","text":"CountingConditionProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/ConditionProfile.java","line":79}},{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile","name":"CountingConditionProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"CountingConditionProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"superclass":[{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile#profile(boolean)","anchor":"profile(boolean)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/CountingConditionProfile.java","line":104}},{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/CountingConditionProfile.java","line":153}},{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/CountingConditionProfile.java","line":168}},{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/CountingConditionProfile.java","line":190}},{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"CountingConditionProfile","ref":"com.oracle.truffle.api.profiles.CountingConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"CountingConditionProfile","ref":"com.oracle.truffle.api.profiles.CountingConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/CountingConditionProfile.java","line":208}},{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"CountingConditionProfile","ref":"com.oracle.truffle.api.profiles.CountingConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"CountingConditionProfile","ref":"com.oracle.truffle.api.profiles.CountingConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ConditionProfile"},"code":true,"children":[{"kind":"text","text":"ConditionProfile"}]},{"kind":"text","text":" that speculates on conditions to be never "},{"kind":"code","text":"true"},{"kind":"text","text":" or to be never "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ConditionProfile"},"code":true,"children":[{"kind":"text","text":"ConditionProfile"}]},{"kind":"text","text":" that speculates on conditions to be never "},{"kind":"code","text":"true"},{"kind":"text","text":" or to be never "},{"kind":"code","text":"false"},{"kind":"text","text":". Additionally to a binary profile this method returns a condition profile that also counts the number of times the condition was true and false. This information is reported to the underlying optimization system using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#injectBranchProbability(double,boolean)"},"code":true,"children":[{"kind":"text","text":"CompilerDirectives.injectBranchProbability(double, boolean)"}]},{"kind":"text","text":". Condition profiles are intended to be used as part of if conditions."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ConditionProfile"},"code":true,"children":[{"kind":"text","text":"ConditionProfile"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/CountingConditionProfile.java","line":223}},{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedCountingConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedCountingConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/CountingConditionProfile.java","line":238}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"CountingConditionProfiles are useful to profile the outcome of conditions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CountingConditionProfiles are useful to profile the outcome of conditions. A counting condition profile holds a count for each branch whether a branch was hit or not and communicates this to the compiler as frequency information. If binary information only is desired for each branch should use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ConditionProfile"},"code":true,"children":[{"kind":"text","text":"ConditionProfile"}]},{"kind":"text","text":" instead."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"class AbsoluteNode extends Node {\n\n    final CountingConditionProfile greaterZeroProfile = CountingConditionProfile.create();\n\n    void execute(int value) {\n        if (greaterZeroProfile.profile(value >= 0)) {\n            return value;\n        } else {\n            return -value;\n        }\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile#create()"},"code":true,"children":[{"kind":"text","text":"create()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.CountingConditionProfile"},"code":true,"children":[{"kind":"text","text":"CountingConditionProfile"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/CountingConditionProfile.java","line":80}},{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile","name":"DoubleValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DoubleValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"superclass":[{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile#profile(double)","anchor":"profile(double)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/DoubleValueProfile.java","line":99}},{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/DoubleValueProfile.java","line":124}},{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/DoubleValueProfile.java","line":134}},{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/DoubleValueProfile.java","line":158}},{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile#createRawIdentityProfile()","anchor":"createRawIdentityProfile()","kind":"method","name":"createRawIdentityProfile","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DoubleValueProfile","ref":"com.oracle.truffle.api.profiles.DoubleValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"createRawIdentityProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DoubleValueProfile","ref":"com.oracle.truffle.api.profiles.DoubleValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"double"},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"java.lang.Double#doubleToRawLongBits(double)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html#doubleToRawLongBits(double)"},"code":true,"children":[{"kind":"text","text":"Double.doubleToRawLongBits(double)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"double"},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"java.lang.Double#doubleToRawLongBits(double)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html#doubleToRawLongBits(double)"},"code":true,"children":[{"kind":"text","text":"Double.doubleToRawLongBits(double)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.IntValueProfile"},"code":true,"children":[{"kind":"text","text":"IntValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/DoubleValueProfile.java","line":175}},{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DoubleValueProfile","ref":"com.oracle.truffle.api.profiles.DoubleValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DoubleValueProfile","ref":"com.oracle.truffle.api.profiles.DoubleValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"double"},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"java.lang.Double#doubleToRawLongBits(double)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html#doubleToRawLongBits(double)"},"code":true,"children":[{"kind":"text","text":"Double.doubleToRawLongBits(double)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"double"},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"java.lang.Double#doubleToRawLongBits(double)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html#doubleToRawLongBits(double)"},"code":true,"children":[{"kind":"text","text":"Double.doubleToRawLongBits(double)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.IntValueProfile"},"code":true,"children":[{"kind":"text","text":"IntValueProfile"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/DoubleValueProfile.java","line":187}},{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"DoubleValueProfile","ref":"com.oracle.truffle.api.profiles.DoubleValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"DoubleValueProfile","ref":"com.oracle.truffle.api.profiles.DoubleValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/DoubleValueProfile.java","line":201}},{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedDoubleValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedDoubleValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/DoubleValueProfile.java","line":211}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"double"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"double"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"class SampleNode extends Node {\n\n    final DoubleValueProfile profile = DoubleValueProfile.createRawIdentityProfile();\n\n    double execute(double input) {\n        double profiledValue = profile.profile(input);\n        // compiler may know now more about profiledValue\n        return profiledValue;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile#createRawIdentityProfile()"},"code":true,"children":[{"kind":"text","text":"createRawIdentityProfile()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"ValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/DoubleValueProfile.java","line":79}},{"id":"com.oracle.truffle.api.profiles.FloatValueProfile","name":"FloatValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"FloatValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"superclass":[{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.FloatValueProfile#profile(float)","anchor":"profile(float)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/FloatValueProfile.java","line":97}},{"id":"com.oracle.truffle.api.profiles.FloatValueProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/FloatValueProfile.java","line":130}},{"id":"com.oracle.truffle.api.profiles.FloatValueProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/FloatValueProfile.java","line":140}},{"id":"com.oracle.truffle.api.profiles.FloatValueProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/FloatValueProfile.java","line":154}},{"id":"com.oracle.truffle.api.profiles.FloatValueProfile#createRawIdentityProfile()","anchor":"createRawIdentityProfile()","kind":"method","name":"createRawIdentityProfile","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FloatValueProfile","ref":"com.oracle.truffle.api.profiles.FloatValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"createRawIdentityProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FloatValueProfile","ref":"com.oracle.truffle.api.profiles.FloatValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"float"},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"java.lang.Float#floatToRawIntBits(float)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html#floatToRawIntBits(float)"},"code":true,"children":[{"kind":"text","text":"Float.floatToRawIntBits(float)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"float"},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"java.lang.Float#floatToRawIntBits(float)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html#floatToRawIntBits(float)"},"code":true,"children":[{"kind":"text","text":"Float.floatToRawIntBits(float)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.IntValueProfile"},"code":true,"children":[{"kind":"text","text":"IntValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/FloatValueProfile.java","line":171}},{"id":"com.oracle.truffle.api.profiles.FloatValueProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FloatValueProfile","ref":"com.oracle.truffle.api.profiles.FloatValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FloatValueProfile","ref":"com.oracle.truffle.api.profiles.FloatValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"float"},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"java.lang.Float#floatToRawIntBits(float)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html#floatToRawIntBits(float)"},"code":true,"children":[{"kind":"text","text":"Float.floatToRawIntBits(float)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of a "},{"kind":"code","text":"float"},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"java.lang.Float#floatToRawIntBits(float)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html#floatToRawIntBits(float)"},"code":true,"children":[{"kind":"text","text":"Float.floatToRawIntBits(float)"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.IntValueProfile"},"code":true,"children":[{"kind":"text","text":"IntValueProfile"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/FloatValueProfile.java","line":183}},{"id":"com.oracle.truffle.api.profiles.FloatValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FloatValueProfile","ref":"com.oracle.truffle.api.profiles.FloatValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"FloatValueProfile","ref":"com.oracle.truffle.api.profiles.FloatValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/FloatValueProfile.java","line":197}},{"id":"com.oracle.truffle.api.profiles.FloatValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedFloatValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedFloatValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/FloatValueProfile.java","line":207}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"float"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"float"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"class SampleNode extends Node {\n\n    final FloatValueProfile profile = FloatValueProfile.createRawIdentityProfile();\n\n    float execute(float input) {\n        float profiledValue = profile.profile(input);\n        // compiler may know now more about profiledValue\n        return profiledValue;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.FloatValueProfile#createRawIdentityProfile()"},"code":true,"children":[{"kind":"text","text":"createRawIdentityProfile()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"ValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/FloatValueProfile.java","line":77}},{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile","name":"InlinedBranchProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedBranchProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedProfile","ref":"com.oracle.truffle.api.profiles.InlinedProfile"}],"superclass":[{"kind":"type","text":"InlinedProfile","ref":"com.oracle.truffle.api.profiles.InlinedProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#enter(com.oracle.truffle.api.nodes.Node)","anchor":"enter(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"enter","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"enter"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedBranchProfile.java","line":96}},{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#wasEntered(com.oracle.truffle.api.nodes.Node)","anchor":"wasEntered(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"wasEntered","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"wasEntered"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"enter(Node)"}]},{"kind":"text","text":" method was ever called, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"enter(Node)"}]},{"kind":"text","text":" method was ever called, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":". For profiles with profiling disabled or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#getUncached()"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" profiles this method always returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedBranchProfile.java","line":114}},{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#reset(com.oracle.truffle.api.nodes.Node)","anchor":"reset(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#reset(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedBranchProfile.java","line":126}},{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#disable(com.oracle.truffle.api.nodes.Node)","anchor":"disable(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#disable(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedBranchProfile.java","line":139}},{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedBranchProfile.java","line":152}},{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedBranchProfile","ref":"com.oracle.truffle.api.profiles.InlinedBranchProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedBranchProfile","ref":"com.oracle.truffle.api.profiles.InlinedBranchProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedBranchProfile.java","line":180}},{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedBranchProfile","ref":"com.oracle.truffle.api.profiles.InlinedBranchProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedBranchProfile","ref":"com.oracle.truffle.api.profiles.InlinedBranchProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedBranchProfile.java","line":195}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"BranchProfiles are profiles to speculate on branches that are unlikely to be visited."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"BranchProfiles are profiles to speculate on branches that are unlikely to be visited. If the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"enter(Node)"}]},{"kind":"text","text":" method is invoked first the optimized code is invalidated and the branch where "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"enter(Node)"}]},{"kind":"text","text":" is invoked is enabled for compilation. Otherwise if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile#enter(com.oracle.truffle.api.nodes.Node)"},"code":true,"children":[{"kind":"text","text":"enter(Node)"}]},{"kind":"text","text":" method was never invoked the branch will not get compiled."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"class ExampleNode extends Node {\n\n    abstract int execute(int value);\n\n    @Specialization\n    int doDefault(int value, @Cached InlinedBranchProfile errorProfile) {\n        if (value == Integer.MAX_VALUE) {\n            errorProfile.enter(this);\n            throw new Error(\"Invalid input value\");\n        }\n        return value;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},"code":true,"children":[{"kind":"text","text":"InlinedProfile"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedBranchProfile.java","line":76}},{"id":"com.oracle.truffle.api.profiles.InlinedByteValueProfile","name":"InlinedByteValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedByteValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"superclass":[{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"},{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedByteValueProfile#profile(com.oracle.truffle.api.nodes.Node,byte)","anchor":"profile(com.oracle.truffle.api.nodes.Node,byte)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedByteValueProfile.java","line":97}},{"id":"com.oracle.truffle.api.profiles.InlinedByteValueProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedByteValueProfile.java","line":129}},{"id":"com.oracle.truffle.api.profiles.InlinedByteValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedByteValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedByteValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedByteValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedByteValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedByteValueProfile.java","line":144}},{"id":"com.oracle.truffle.api.profiles.InlinedByteValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedByteValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedByteValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedByteValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedByteValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedByteValueProfile.java","line":160}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile","text":"AbstractInlinedValueProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#GENERIC","text":"GENERIC"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#REQUIRED_STATE_BITS","text":"REQUIRED_STATE_BITS"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#SPECIALIZED","text":"SPECIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#UNINITIALIZED","text":"UNINITIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#disable(com.oracle.truffle.api.nodes.Node)","text":"disable"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#reset(com.oracle.truffle.api.nodes.Node)","text":"reset"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#state","text":"state"}]},{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"byte"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"byte"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"abstract class ByteProfileNode extends Node {\n\n    abstract byte execute(byte input);\n\n    @Specialization\n    byte doDefault(byte input, @Cached InlinedByteValueProfile profile) {\n        byte profiledValue = profile.profile(this, input);\n        // compiler may now see profiledValue as a partial evaluation constant\n        return profiledValue;\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedByteValueProfile.java","line":76}},{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile","name":"InlinedConditionProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedConditionProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedProfile","ref":"com.oracle.truffle.api.profiles.InlinedProfile"}],"superclass":[{"kind":"type","text":"InlinedProfile","ref":"com.oracle.truffle.api.profiles.InlinedProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)","anchor":"profile(com.oracle.truffle.api.nodes.Node,boolean)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedConditionProfile.java","line":99}},{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#wasTrue(com.oracle.truffle.api.nodes.Node)","anchor":"wasTrue(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"wasTrue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"wasTrue"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"true"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"true"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":". For profiles with profiling disabled or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#getUncached()"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" profiles this method always returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedConditionProfile.java","line":126}},{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#wasFalse(com.oracle.truffle.api.nodes.Node)","anchor":"wasFalse(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"wasFalse","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"wasFalse"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"false"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"false"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":". For profiles with profiling disabled or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#getUncached()"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" profiles this method always returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedConditionProfile.java","line":140}},{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#disable(com.oracle.truffle.api.nodes.Node)","anchor":"disable(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#disable(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedConditionProfile.java","line":152}},{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#reset(com.oracle.truffle.api.nodes.Node)","anchor":"reset(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#reset(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedConditionProfile.java","line":165}},{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedConditionProfile.java","line":192}},{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedConditionProfile.java","line":206}},{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedConditionProfile.java","line":221}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"ConditionProfiles are useful to profile the outcome of conditions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ConditionProfiles are useful to profile the outcome of conditions. A regular condition profile keeps track of a binary state, for each branch whether a branch was hit or not and communicates this to the compiler. If frequency information for each branch should be collected use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile"},"code":true,"children":[{"kind":"text","text":"InlinedCountingConditionProfile"}]},{"kind":"text","text":" instead."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"abstract class AbsoluteNode extends Node {\n\n    abstract void execute(int value);\n\n    @Specialization\n    int doDefault(int value,\n                    @Cached InlinedConditionProfile p) {\n        if (p.profile(this, value >= 0)) {\n            return value;\n        } else {\n            return -value;\n        }\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedConditionProfile.java","line":78}},{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile","name":"InlinedCountingConditionProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedCountingConditionProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedProfile","ref":"com.oracle.truffle.api.profiles.InlinedProfile"}],"superclass":[{"kind":"type","text":"InlinedProfile","ref":"com.oracle.truffle.api.profiles.InlinedProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)","anchor":"profile(com.oracle.truffle.api.nodes.Node,boolean)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.java","line":109}},{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#wasTrue(com.oracle.truffle.api.nodes.Node)","anchor":"wasTrue(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"wasTrue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"wasTrue"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"true"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"true"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":". For profiles with profiling disabled or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#getUncached()"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" profiles this method always returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.java","line":160}},{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#wasFalse(com.oracle.truffle.api.nodes.Node)","anchor":"wasFalse(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"wasFalse","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"wasFalse"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"false"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"false"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":". For profiles with profiling disabled or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#getUncached()"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" profiles this method always returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.java","line":171}},{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#disable(com.oracle.truffle.api.nodes.Node)","anchor":"disable(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#disable(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.java","line":180}},{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#reset(com.oracle.truffle.api.nodes.Node)","anchor":"reset(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#reset(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.java","line":198}},{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.java","line":240}},{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedCountingConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedCountingConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.java","line":258}},{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedCountingConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedCountingConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.java","line":274}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"CountingConditionProfiles are useful to profile the outcome of conditions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CountingConditionProfiles are useful to profile the outcome of conditions. A counting condition profile holds a count for each branch whether a branch was hit or not and communicates this to the compiler as frequency information. If binary information only is desired for each branch should use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile"},"code":true,"children":[{"kind":"text","text":"InlinedConditionProfile"}]},{"kind":"text","text":" instead."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"abstract class AbsoluteNode extends Node {\n\n    abstract void execute(int value);\n\n    @Specialization\n    int doDefault(int value,\n                    @Cached InlinedCountingConditionProfile p) {\n        if (p.profile(this, value >= 0)) {\n            return value;\n        } else {\n            return -value;\n        }\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedCountingConditionProfile.java","line":80}},{"id":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile","name":"InlinedDoubleValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedDoubleValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"superclass":[{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"},{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile#profile(com.oracle.truffle.api.nodes.Node,double)","anchor":"profile(com.oracle.truffle.api.nodes.Node,double)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedDoubleValueProfile.java","line":96}},{"id":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedDoubleValueProfile.java","line":131}},{"id":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedDoubleValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedDoubleValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedDoubleValueProfile.java","line":146}},{"id":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedDoubleValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedDoubleValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedDoubleValueProfile.java","line":162}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile","text":"AbstractInlinedValueProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#GENERIC","text":"GENERIC"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#REQUIRED_STATE_BITS","text":"REQUIRED_STATE_BITS"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#SPECIALIZED","text":"SPECIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#UNINITIALIZED","text":"UNINITIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#disable(com.oracle.truffle.api.nodes.Node)","text":"disable"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#reset(com.oracle.truffle.api.nodes.Node)","text":"reset"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#state","text":"state"}]},{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"byte"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"byte"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"abstract class DoubleProfileNode extends Node {\n\n    abstract double execute(double input);\n\n    @Specialization\n    double doDefault(double input, @Cached InlinedDoubleValueProfile profile) {\n        double profiledValue = profile.profile(this, input);\n        // compiler may now see profiledValue as a partial evaluation constant\n        return profiledValue;\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedDoubleValueProfile.java","line":76}},{"id":"com.oracle.truffle.api.profiles.InlinedExactClassProfile","name":"InlinedExactClassProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedExactClassProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"superclass":[{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"},{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedExactClassProfile#profile(com.oracle.truffle.api.nodes.Node,T)","anchor":"profile(com.oracle.truffle.api.nodes.Node,T)","kind":"method","name":"profile","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedExactClassProfile.java","line":96}},{"id":"com.oracle.truffle.api.profiles.InlinedExactClassProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedExactClassProfile.java","line":137}},{"id":"com.oracle.truffle.api.profiles.InlinedExactClassProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedExactClassProfile","ref":"com.oracle.truffle.api.profiles.InlinedExactClassProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedExactClassProfile","ref":"com.oracle.truffle.api.profiles.InlinedExactClassProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedExactClassProfile.java","line":152}},{"id":"com.oracle.truffle.api.profiles.InlinedExactClassProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedExactClassProfile","ref":"com.oracle.truffle.api.profiles.InlinedExactClassProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedExactClassProfile","ref":"com.oracle.truffle.api.profiles.InlinedExactClassProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedExactClassProfile.java","line":168}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile","text":"AbstractInlinedValueProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#GENERIC","text":"GENERIC"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#REQUIRED_STATE_BITS","text":"REQUIRED_STATE_BITS"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#SPECIALIZED","text":"SPECIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#UNINITIALIZED","text":"UNINITIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#disable(com.oracle.truffle.api.nodes.Node)","text":"disable"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#reset(com.oracle.truffle.api.nodes.Node)","text":"reset"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#state","text":"state"}]},{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture the exact class of "},{"kind":"code","text":"reference"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture the exact class of "},{"kind":"code","text":"reference"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"abstract class ReferenceProfileNode extends Node {\n\n    abstract Object execute(Object input);\n\n    @Specialization\n    Object doDefault(Object input, @Cached InlinedExactClassProfile profile) {\n        Object profiledValue = profile.profile(this, input);\n        // compiler may now see the exact class as a partial evaluation constant\n        return profiledValue;\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedExactClassProfile.java","line":76}},{"id":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile","name":"InlinedFloatValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedFloatValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"superclass":[{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"},{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile#profile(com.oracle.truffle.api.nodes.Node,float)","anchor":"profile(com.oracle.truffle.api.nodes.Node,float)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedFloatValueProfile.java","line":97}},{"id":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedFloatValueProfile.java","line":132}},{"id":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedFloatValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedFloatValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedFloatValueProfile.java","line":147}},{"id":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedFloatValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedFloatValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedFloatValueProfile.java","line":163}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile","text":"AbstractInlinedValueProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#GENERIC","text":"GENERIC"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#REQUIRED_STATE_BITS","text":"REQUIRED_STATE_BITS"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#SPECIALIZED","text":"SPECIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#UNINITIALIZED","text":"UNINITIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#disable(com.oracle.truffle.api.nodes.Node)","text":"disable"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#reset(com.oracle.truffle.api.nodes.Node)","text":"reset"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#state","text":"state"}]},{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"float"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"float"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"abstract class FloatProfileNode extends Node {\n\n    abstract float execute(float input);\n\n    @Specialization\n    float doDefault(float input, @Cached InlinedFloatValueProfile profile) {\n        float profiledValue = profile.profile(this, input);\n        // compiler may now see profiledValue as a partial evaluation constant\n        return profiledValue;\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedFloatValueProfile.java","line":76}},{"id":"com.oracle.truffle.api.profiles.InlinedIntValueProfile","name":"InlinedIntValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedIntValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"superclass":[{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"},{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedIntValueProfile#profile(com.oracle.truffle.api.nodes.Node,int)","anchor":"profile(com.oracle.truffle.api.nodes.Node,int)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedIntValueProfile.java","line":97}},{"id":"com.oracle.truffle.api.profiles.InlinedIntValueProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedIntValueProfile.java","line":131}},{"id":"com.oracle.truffle.api.profiles.InlinedIntValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedIntValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedIntValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedIntValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedIntValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedIntValueProfile.java","line":146}},{"id":"com.oracle.truffle.api.profiles.InlinedIntValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedIntValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedIntValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedIntValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedIntValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedIntValueProfile.java","line":162}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile","text":"AbstractInlinedValueProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#GENERIC","text":"GENERIC"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#REQUIRED_STATE_BITS","text":"REQUIRED_STATE_BITS"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#SPECIALIZED","text":"SPECIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#UNINITIALIZED","text":"UNINITIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#disable(com.oracle.truffle.api.nodes.Node)","text":"disable"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#reset(com.oracle.truffle.api.nodes.Node)","text":"reset"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#state","text":"state"}]},{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"int"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"int"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"abstract class IntProfileNode extends Node {\n\n    abstract int execute(int input);\n\n    @Specialization\n    int doDefault(int input, @Cached InlinedIntValueProfile profile) {\n        int profiledValue = profile.profile(this, input);\n        // compiler may now see profiledValue as a partial evaluation constant\n        return profiledValue;\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedIntValueProfile.java","line":76}},{"id":"com.oracle.truffle.api.profiles.InlinedLongValueProfile","name":"InlinedLongValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedLongValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"superclass":[{"kind":"type","text":"AbstractInlinedValueProfile","ref":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile"},{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedLongValueProfile#profile(com.oracle.truffle.api.nodes.Node,long)","anchor":"profile(com.oracle.truffle.api.nodes.Node,long)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLongValueProfile.java","line":96}},{"id":"com.oracle.truffle.api.profiles.InlinedLongValueProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLongValueProfile.java","line":127}},{"id":"com.oracle.truffle.api.profiles.InlinedLongValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedLongValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedLongValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedLongValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedLongValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLongValueProfile.java","line":142}},{"id":"com.oracle.truffle.api.profiles.InlinedLongValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedLongValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedLongValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedLongValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedLongValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLongValueProfile.java","line":158}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile","text":"AbstractInlinedValueProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#GENERIC","text":"GENERIC"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#REQUIRED_STATE_BITS","text":"REQUIRED_STATE_BITS"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#SPECIALIZED","text":"SPECIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#UNINITIALIZED","text":"UNINITIALIZED"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#disable(com.oracle.truffle.api.nodes.Node)","text":"disable"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#reset(com.oracle.truffle.api.nodes.Node)","text":"reset"},{"id":"com.oracle.truffle.api.profiles.AbstractInlinedValueProfile#state","text":"state"}]},{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"long"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"long"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"abstract class LongProfileNode extends Node {\n\n    abstract long execute(long input);\n\n    @Specialization\n    long doDefault(byte input, @Cached InlinedLongValueProfile profile) {\n        long profiledValue = profile.profile(this, input);\n        // compiler may now see profiledValue as a partial evaluation constant\n        return profiledValue;\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLongValueProfile.java","line":76}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile","name":"InlinedLoopConditionProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedLoopConditionProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedProfile","ref":"com.oracle.truffle.api.profiles.InlinedProfile"}],"superclass":[{"kind":"type","text":"InlinedProfile","ref":"com.oracle.truffle.api.profiles.InlinedProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)","anchor":"profile(com.oracle.truffle.api.nodes.Node,boolean)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"condition"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"condition","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":129}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#profileCounted(com.oracle.truffle.api.nodes.Node,long)","anchor":"profileCounted(com.oracle.truffle.api.nodes.Node,long)","kind":"method","name":"profileCounted","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"profileCounted"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"length","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Provides an alternative way to profile counted loops with less interpreter footprint."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides an alternative way to profile counted loops with less interpreter footprint. Please see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"InlinedLoopConditionProfile"}]},{"kind":"text","text":" for an usage example."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#inject(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"inject(Node, boolean)"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":172}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#inject(com.oracle.truffle.api.nodes.Node,boolean)","anchor":"inject(com.oracle.truffle.api.nodes.Node,boolean)","kind":"method","name":"inject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inject"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"condition"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]},{"name":"condition","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Provides an alternative way to profile counted loops with less interpreter footprint."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides an alternative way to profile counted loops with less interpreter footprint. Please see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"InlinedLoopConditionProfile"}]},{"kind":"text","text":" for an usage example."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":191}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#wasTrue(com.oracle.truffle.api.nodes.Node)","anchor":"wasTrue(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"wasTrue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"wasTrue"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"true"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"true"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":". For profiles with profiling disabled or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#getUncached()"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" profiles this method always returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":215}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#wasFalse(com.oracle.truffle.api.nodes.Node)","anchor":"wasFalse(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"wasFalse","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"wasFalse"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"false"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" method ever received a "},{"kind":"code","text":"false"},{"kind":"text","text":" value, otherwise "},{"kind":"code","text":"false"},{"kind":"text","text":". For profiles with profiling disabled or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#getUncached()"},"code":true,"children":[{"kind":"text","text":"uncached"}]},{"kind":"text","text":" profiles this method always returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":226}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#disable(com.oracle.truffle.api.nodes.Node)","anchor":"disable(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#disable(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":235}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#reset(com.oracle.truffle.api.nodes.Node)","anchor":"reset(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#reset(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":253}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)"},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":295}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedLoopConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedLoopConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":313}},{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedLoopConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlinedLoopConditionProfile","ref":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does not perform any profiling."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":329}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.InlinedProfile","text":"InlinedProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"InlinedLoopConditionProfiles are designed to profile the outcome of loop conditions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"InlinedLoopConditionProfiles are designed to profile the outcome of loop conditions. Loop profiles can be used to profile unpredictable loops as well as predictable loops. This profile is intended to be used in combination with Truffle DSL."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Uncounted loop usage example:"}]}]},{"kind":"code","text":"class LoopNode extends Node {\n\n    abstract void execute();\n\n    @Specialization\n    void doDefault(@Cached InlinedLoopConditionProfile loopProfile) {\n        // loop count cannot be predicted\n        while (loopProfile.profile(this, Math.random() >= 0.9)) {\n            // work\n        }\n    }\n}"},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Counted loop usage example:"}]}]},{"kind":"code","text":"class CountedLoopNode extends Node {\n\n    abstract void execute(int length);\n\n    @Specialization\n    void doDefault(int length, @Cached InlinedLoopConditionProfile loopProfile) {\n        // loop count can be predicted\n        loopProfile.profileCounted(this, length);\n        for (int i = 0; loopProfile.inject(this, i < length); i++) {\n            // work\n        }\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The advantage of using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#profileCounted(com.oracle.truffle.api.nodes.Node,long)"},"code":true,"children":[{"kind":"text","text":"profileCounted(Node, long)"}]},{"kind":"text","text":" to using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" is that it incurs less overhead in the interpreter. Using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#inject(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"InlinedLoopConditionProfile.inject(Node, boolean)"}]},{"kind":"text","text":" is a no-op in the interpreter while "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile#profile(com.oracle.truffle.api.nodes.Node,boolean)"},"code":true,"children":[{"kind":"text","text":"profile(Node, boolean)"}]},{"kind":"text","text":" needs to use a counter for each iteration."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile"},"code":true,"children":[{"kind":"text","text":"InlinedConditionProfile"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile"},"code":true,"children":[{"kind":"text","text":"InlinedCountingConditionProfile"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedLoopConditionProfile.java","line":107}},{"id":"com.oracle.truffle.api.profiles.InlinedProfile","name":"InlinedProfile","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InlinedProfile"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.InlinedProfile#disable(com.oracle.truffle.api.nodes.Node)","anchor":"disable(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"disable","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedProfile.java","line":113}},{"id":"com.oracle.truffle.api.profiles.InlinedProfile#reset(com.oracle.truffle.api.nodes.Node)","anchor":"reset(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"reset","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedProfile.java","line":124}},{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString(com.oracle.truffle.api.nodes.Node)","anchor":"toString(com.oracle.truffle.api.nodes.Node)","kind":"method","name":"toString","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"("},{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"},{"kind":"punct","text":" "},{"kind":"param","text":"node"},{"kind":"punct","text":")"}],"params":[{"name":"node","type":[{"kind":"type","text":"Node","ref":"com.oracle.truffle.api.nodes.Node"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Prints a string representation of this inlined profile given a target node."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedProfile.java","line":131}},{"id":"com.oracle.truffle.api.profiles.InlinedProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedProfile.java","line":138}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A profile is a Truffle utility class that uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives"},"code":true,"children":[{"kind":"text","text":"Truffle compiler directives"}]},{"kind":"text","text":" to guard for and/or forward runtime information to the compiler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A profile is a Truffle utility class that uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives"},"code":true,"children":[{"kind":"text","text":"Truffle compiler directives"}]},{"kind":"text","text":" to guard for and/or forward runtime information to the compiler. Whenever Truffle DSL can be used "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},"code":true,"children":[{"kind":"text","text":"inlined profiles"}]},{"kind":"text","text":" subclasses should be used instead of regular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.Profile"},"code":true,"children":[{"kind":"text","text":"profile"}]},{"kind":"text","text":" subclasses."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Usage:"}]},{"kind":"text","text":" Inlined profiles are used using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.dsl.Cached"},"code":true,"children":[{"kind":"text","text":"Cached"}]},{"kind":"text","text":" annotation in specialization methods. See the individual profile subclasses for further usage examples. Profiles are intended for local speculation only. For global speculations use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"assumptions"}]},{"kind":"text","text":" instead."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Compilation:"}]},{"kind":"text","text":" Some profiles like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile"},"code":true,"children":[{"kind":"text","text":"branch"}]},{"kind":"text","text":" profiles do not induce additional overhead in compiled code. Others like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedByteValueProfile"},"code":true,"children":[{"kind":"text","text":"value"}]},{"kind":"text","text":" profiles might require a runtime check to verify their local speculation. Even if profiles do not induce direct overhead in compiled code it still might get invalidated as a result of using profiles. Invalidating profiles will result in the invalidation of compiled code. It is therefore essential to place these profiles in way that is neither too aggressive nor too conservative, ideally based on measurements in real world applications."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Footprint:"}]},{"kind":"text","text":" Inlined versions of profiles have a significantly reduced memory footprint compared to their "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.Profile"},"code":true,"children":[{"kind":"text","text":"allocated"}]},{"kind":"text","text":" counterparts, however they do rely on their usage being inlined to have the same performance characteristics. Whether profiling information can be forwarded to the compiler depends on the capabilities of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"runtime system"}]},{"kind":"text","text":". If the runtime returns "},{"kind":"code","text":"true"},{"kind":"text","text":" in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#isProfilingEnabled()"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.isProfilingEnabled()"}]},{"kind":"text","text":" then runtime information will get collected. This comes at the cost of additional overhead and footprint in interpreted mode. Thats why the factory methods of profiles can return implementations where profiling is disabled. Using disabled profiles makes sense for runtimes that are unable to use the collected profiling information. Even runtime implementations that are able to use this information might decide to turn off profiling for benchmarking purposes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Inlined profile subclasses:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedBranchProfile"},"code":true,"children":[{"kind":"text","text":"InlinedBranchProfile"}]},{"kind":"text","text":" to profile on unlikely branches like errors."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedConditionProfile"},"code":true,"children":[{"kind":"text","text":"InlinedConditionProfile"}]},{"kind":"text","text":" to profile on conditionals or boolean values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedCountingConditionProfile"},"code":true,"children":[{"kind":"text","text":"InlinedCountingConditionProfile"}]},{"kind":"text","text":" to profile on conditionals or boolean values using counters."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"InlinedLoopConditionProfile"}]},{"kind":"text","text":" to profile on conditionals of loops with special support for counted loops."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedByteValueProfile"},"code":true,"children":[{"kind":"text","text":"InlinedByteValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"byte"},{"kind":"text","text":" values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedIntValueProfile"},"code":true,"children":[{"kind":"text","text":"InlinedIntValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"int"},{"kind":"text","text":" values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedLongValueProfile"},"code":true,"children":[{"kind":"text","text":"InlinedLongValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"long"},{"kind":"text","text":" values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedFloatValueProfile"},"code":true,"children":[{"kind":"text","text":"InlinedFloatValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"float"},{"kind":"text","text":" values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedDoubleValueProfile"},"code":true,"children":[{"kind":"text","text":"InlinedDoubleValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"double"},{"kind":"text","text":" values."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},"code":true,"children":[{"kind":"text","text":"InlinedProfile"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/InlinedProfile.java","line":98}},{"id":"com.oracle.truffle.api.profiles.IntValueProfile","name":"IntValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"IntValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"superclass":[{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.IntValueProfile#profile(int)","anchor":"profile(int)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/IntValueProfile.java","line":96}},{"id":"com.oracle.truffle.api.profiles.IntValueProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/IntValueProfile.java","line":133}},{"id":"com.oracle.truffle.api.profiles.IntValueProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/IntValueProfile.java","line":143}},{"id":"com.oracle.truffle.api.profiles.IntValueProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/IntValueProfile.java","line":153}},{"id":"com.oracle.truffle.api.profiles.IntValueProfile#createIdentityProfile()","anchor":"createIdentityProfile()","kind":"method","name":"createIdentityProfile","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"IntValueProfile","ref":"com.oracle.truffle.api.profiles.IntValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"createIdentityProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"IntValueProfile","ref":"com.oracle.truffle.api.profiles.IntValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of an "},{"kind":"code","text":"int"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of an "},{"kind":"code","text":"int"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.IntValueProfile"},"code":true,"children":[{"kind":"text","text":"IntValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/IntValueProfile.java","line":165}},{"id":"com.oracle.truffle.api.profiles.IntValueProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"IntValueProfile","ref":"com.oracle.truffle.api.profiles.IntValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"IntValueProfile","ref":"com.oracle.truffle.api.profiles.IntValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of an "},{"kind":"code","text":"int"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of an "},{"kind":"code","text":"int"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.IntValueProfile"},"code":true,"children":[{"kind":"text","text":"IntValueProfile"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/IntValueProfile.java","line":175}},{"id":"com.oracle.truffle.api.profiles.IntValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"IntValueProfile","ref":"com.oracle.truffle.api.profiles.IntValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"IntValueProfile","ref":"com.oracle.truffle.api.profiles.IntValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/IntValueProfile.java","line":189}},{"id":"com.oracle.truffle.api.profiles.IntValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedIntValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedIntValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedIntValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedIntValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/IntValueProfile.java","line":199}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"int"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"int"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"class SampleNode extends Node {\n\n    final IntValueProfile profile = IntValueProfile.createIdentityProfile();\n\n    int execute(int input) {\n        int profiledValue = profile.profile(input);\n        // compiler may know now more about profiledValue\n        return profiledValue;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.IntValueProfile#createIdentityProfile()"},"code":true,"children":[{"kind":"text","text":"createIdentityProfile()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"ValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/IntValueProfile.java","line":77}},{"id":"com.oracle.truffle.api.profiles.LongValueProfile","name":"LongValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LongValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"superclass":[{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.LongValueProfile#profile(long)","anchor":"profile(long)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/LongValueProfile.java","line":97}},{"id":"com.oracle.truffle.api.profiles.LongValueProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/LongValueProfile.java","line":130}},{"id":"com.oracle.truffle.api.profiles.LongValueProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/LongValueProfile.java","line":140}},{"id":"com.oracle.truffle.api.profiles.LongValueProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/LongValueProfile.java","line":156}},{"id":"com.oracle.truffle.api.profiles.LongValueProfile#createIdentityProfile()","anchor":"createIdentityProfile()","kind":"method","name":"createIdentityProfile","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LongValueProfile","ref":"com.oracle.truffle.api.profiles.LongValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"createIdentityProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LongValueProfile","ref":"com.oracle.truffle.api.profiles.LongValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of an "},{"kind":"code","text":"long"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of an "},{"kind":"code","text":"long"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LongValueProfile"},"code":true,"children":[{"kind":"text","text":"LongValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/LongValueProfile.java","line":173}},{"id":"com.oracle.truffle.api.profiles.LongValueProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LongValueProfile","ref":"com.oracle.truffle.api.profiles.LongValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LongValueProfile","ref":"com.oracle.truffle.api.profiles.LongValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact value of an "},{"kind":"code","text":"long"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact value of an "},{"kind":"code","text":"long"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LongValueProfile"},"code":true,"children":[{"kind":"text","text":"LongValueProfile"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/LongValueProfile.java","line":184}},{"id":"com.oracle.truffle.api.profiles.LongValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LongValueProfile","ref":"com.oracle.truffle.api.profiles.LongValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LongValueProfile","ref":"com.oracle.truffle.api.profiles.LongValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/LongValueProfile.java","line":198}},{"id":"com.oracle.truffle.api.profiles.LongValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedLongValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedLongValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedLongValueProfile","ref":"com.oracle.truffle.api.profiles.InlinedLongValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/LongValueProfile.java","line":208}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"long"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"long"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more values are profiled within a single profile then the profile has no effect. If the value assumption is invalidated in compiled code then it is invalidated."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"class SampleNode extends Node {\n\n    final LongValueProfile profile = LongValueProfile.createIdentityProfile();\n\n    long execute(long input) {\n        long profiledValue = profile.profile(input);\n        // compiler may know now more about profiledValue\n        return profiledValue;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LongValueProfile#createIdentityProfile()"},"code":true,"children":[{"kind":"text","text":"createIdentityProfile()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"ValueProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/LongValueProfile.java","line":77}},{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile","name":"LoopConditionProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"LoopConditionProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ConditionProfile","ref":"com.oracle.truffle.api.profiles.ConditionProfile"}],"superclass":[{"kind":"type","text":"ConditionProfile","ref":"com.oracle.truffle.api.profiles.ConditionProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.ConditionProfile"},{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#profile(boolean)","anchor":"profile(boolean)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"condition"},{"kind":"punct","text":")"}],"params":[{"name":"condition","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.ConditionProfile#profile(boolean)"},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/LoopConditionProfile.java","line":118}},{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#profileCounted(long)","anchor":"profileCounted(long)","kind":"method","name":"profileCounted","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"profileCounted"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"length","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Provides an alternative way to profile counted loops with less interpreter footprint."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides an alternative way to profile counted loops with less interpreter footprint. Please see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile"}]},{"kind":"text","text":" for an usage example."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#inject(boolean)"},"code":true,"children":[{"kind":"text","text":"inject(boolean)"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/LoopConditionProfile.java","line":159}},{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#inject(boolean)","anchor":"inject(boolean)","kind":"method","name":"inject","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"inject"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"condition"},{"kind":"punct","text":")"}],"params":[{"name":"condition","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Provides an alternative way to profile counted loops with less interpreter footprint."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides an alternative way to profile counted loops with less interpreter footprint. Please see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile"}]},{"kind":"text","text":" for an usage example."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#inject(boolean)"},"code":true,"children":[{"kind":"text","text":"inject(boolean)"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/LoopConditionProfile.java","line":179}},{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.ConditionProfile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/LoopConditionProfile.java","line":201}},{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.ConditionProfile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/LoopConditionProfile.java","line":216}},{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.ConditionProfile#toString()"},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/LoopConditionProfile.java","line":239}},{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LoopConditionProfile","ref":"com.oracle.truffle.api.profiles.LoopConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LoopConditionProfile","ref":"com.oracle.truffle.api.profiles.LoopConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile"}]},{"kind":"text","text":" that speculates on loop conditions to be never "},{"kind":"code","text":"true"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile"}]},{"kind":"text","text":" that speculates on loop conditions to be never "},{"kind":"code","text":"true"},{"kind":"text","text":". It also captures loop probabilities for the compiler. Loop condition profiles are intended to be used for loop conditions."}]}]},"since":"21.2","source":{"path":"com/oracle/truffle/api/profiles/LoopConditionProfile.java","line":256}},{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"LoopConditionProfile","ref":"com.oracle.truffle.api.profiles.LoopConditionProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"LoopConditionProfile","ref":"com.oracle.truffle.api.profiles.LoopConditionProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/LoopConditionProfile.java","line":270}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.ConditionProfile","text":"ConditionProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.ConditionProfile#create()","text":"create"},{"id":"com.oracle.truffle.api.profiles.ConditionProfile#getUncached()","text":"getUncached"},{"id":"com.oracle.truffle.api.profiles.ConditionProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","text":"inline"}]},{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"LoopConditionProfiles are designed to profile the outcome of loop conditions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"LoopConditionProfiles are designed to profile the outcome of loop conditions. Loop profiles can be used to profile unpredictable loops as well as predictable loops."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Arbitrary loop usage example:"}]}]},{"kind":"code","text":"class LoopNode extends Node {\n\n    final LoopConditionProfile loopProfile = LoopConditionProfile.create();\n\n    void execute() {\n        // loop count cannot be predicted\n        while (loopProfile.profile(Math.random() >= 0.9)) {\n            // work\n        }\n    }\n}"},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Counted loop usage example:"}]}]},{"kind":"code","text":"class CountedLoopNode extends Node {\n\n    final LoopConditionProfile loopProfile = LoopConditionProfile.create();\n\n    void execute(int length) {\n        // loop count can be predicted\n        loopProfile.profileCounted(length);\n        for (int i = 0; loopProfile.inject(i < length); i++) {\n            // work\n        }\n    }\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The advantage of using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#profileCounted(long)"},"code":true,"children":[{"kind":"text","text":"profileCounted(long)"}]},{"kind":"text","text":" to using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#profile(boolean)"},"code":true,"children":[{"kind":"text","text":"profile(boolean)"}]},{"kind":"text","text":" is that it incurs less overhead in the interpreter. Using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#inject(boolean)"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile.inject(boolean)"}]},{"kind":"text","text":" is a no-op in the interpreter while "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#profile(boolean)"},"code":true,"children":[{"kind":"text","text":"profile(boolean)"}]},{"kind":"text","text":" needs to use a counter for each iteration."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile#create()"},"code":true,"children":[{"kind":"text","text":"create()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/LoopConditionProfile.java","line":101}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile","name":"PrimitiveValueProfile","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"PrimitiveValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"}],"superclass":[{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.ValueProfile"},{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#profile(T)","anchor":"profile(T)","kind":"method","name":"profile","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"v"},{"kind":"punct","text":")"}],"params":[{"name":"v","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"overrides":{"id":"com.oracle.truffle.api.profiles.ValueProfile#profile(T)"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":78}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#profile(byte)","anchor":"profile(byte)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":134}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#profile(short)","anchor":"profile(short)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"short"}]}],"returns":{"type":[{"kind":"keyword","text":"short"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":148}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#profile(int)","anchor":"profile(int)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":162}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#profile(long)","anchor":"profile(long)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":176}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#profile(float)","anchor":"profile(float)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"float"}]}],"returns":{"type":[{"kind":"keyword","text":"float"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":190}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#profile(double)","anchor":"profile(double)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"double"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":208}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#profile(boolean)","anchor":"profile(boolean)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":226}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#profile(char)","anchor":"profile(char)","kind":"method","name":"profile","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"char"}]}],"returns":{"type":[{"kind":"keyword","text":"char"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":240}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#disable()"},"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":258}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"overrides":{"id":"com.oracle.truffle.api.profiles.Profile#reset()"},"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":268}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":300}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#createEqualityProfile()","anchor":"createEqualityProfile()","kind":"method","name":"createEqualityProfile","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"PrimitiveValueProfile","ref":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"createEqualityProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"PrimitiveValueProfile","ref":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"},"code":true,"children":[{"kind":"text","text":"PrimitiveValueProfile"}]},{"kind":"text","text":" that speculates on the primitive equality or object identity of a value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"},"code":true,"children":[{"kind":"text","text":"PrimitiveValueProfile"}]},{"kind":"text","text":" that speculates on the primitive equality or object identity of a value."}]}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":333}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"PrimitiveValueProfile","ref":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"PrimitiveValueProfile","ref":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"},"code":true,"children":[{"kind":"text","text":"PrimitiveValueProfile"}]},{"kind":"text","text":" that speculates on the primitive equality or object identity of a value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"},"code":true,"children":[{"kind":"text","text":"PrimitiveValueProfile"}]},{"kind":"text","text":" that speculates on the primitive equality or object identity of a value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":345}},{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"PrimitiveValueProfile","ref":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"PrimitiveValueProfile","ref":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":360}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.ValueProfile","text":"ValueProfile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.ValueProfile#create()","text":"create"},{"id":"com.oracle.truffle.api.profiles.ValueProfile#createClassProfile()","text":"createClassProfile"},{"id":"com.oracle.truffle.api.profiles.ValueProfile#createIdentityProfile()","text":"createIdentityProfile"},{"id":"com.oracle.truffle.api.profiles.ValueProfile#getUncached()","text":"getUncached"},{"id":"com.oracle.truffle.api.profiles.ValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","text":"inline"}]},{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"ValueProfile"}]},{"kind":"text","text":" that speculates on the primitive equality or object identity of values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"ValueProfile"}]},{"kind":"text","text":" that speculates on the primitive equality or object identity of values. Note that for "},{"kind":"code","text":"float"},{"kind":"text","text":" and "},{"kind":"code","text":"double"},{"kind":"text","text":" values we compare primitive equality via "},{"kind":"link","target":{"id":"java.lang.Float#floatToRawIntBits(float)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Float.html#floatToRawIntBits(float)"},"code":true,"children":[{"kind":"text","text":"Float.floatToRawIntBits"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"java.lang.Double#doubleToRawLongBits(double)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Double.html#doubleToRawLongBits(double)"},"code":true,"children":[{"kind":"text","text":"Double.doubleToRawLongBits"}]},{"kind":"text","text":", so that for example "},{"kind":"code","text":"-0.0"},{"kind":"text","text":" is not considered the same as "},{"kind":"code","text":"0.0"},{"kind":"text","text":", even though primitive equality would normally say that it was."}]}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/PrimitiveValueProfile.java","line":59}},{"id":"com.oracle.truffle.api.profiles.Profile","name":"Profile","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Profile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"NodeCloneable","ref":"com.oracle.truffle.api.nodes.NodeCloneable"}],"superclass":[{"kind":"type","text":"NodeCloneable","ref":"com.oracle.truffle.api.nodes.NodeCloneable"}],"ancestors":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.Profile#disable()","anchor":"disable()","kind":"method","name":"disable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"disable"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Disables this profile by setting it to its generic state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Disables this profile by setting it to its generic state. After disabling it is guaranteed to never "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#transferToInterpreterAndInvalidate()"},"code":true,"children":[{"kind":"text","text":"deoptimize"}]},{"kind":"text","text":" on any invocation of a profile method."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/profiles/Profile.java","line":145}},{"id":"com.oracle.truffle.api.profiles.Profile#reset()","anchor":"reset()","kind":"method","name":"reset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"reset"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Resets this profile to its uninitialized state."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile."}]}]},"since":"21.1","source":{"path":"com/oracle/truffle/api/profiles/Profile.java","line":157}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A profile is a Truffle utility class that uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives"},"code":true,"children":[{"kind":"text","text":"Truffle compiler directives"}]},{"kind":"text","text":" to guard for and/or forward runtime information to the compiler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A profile is a Truffle utility class that uses the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives"},"code":true,"children":[{"kind":"text","text":"Truffle compiler directives"}]},{"kind":"text","text":" to guard for and/or forward runtime information to the compiler. Whenever Truffle DSL can be used "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},"code":true,"children":[{"kind":"text","text":"inlined profiles"}]},{"kind":"text","text":" subclasses should be used instead of regular "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.Profile"},"code":true,"children":[{"kind":"text","text":"profile"}]},{"kind":"text","text":" subclasses."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Usage:"}]},{"kind":"text","text":" Profiles should be stored in "},{"kind":"code","text":"final"},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$CompilationFinal"},"code":true,"children":[{"kind":"text","text":"compilation final"}]},{"kind":"text","text":" fields of node classes to ensure that they can get optimized properly. Profiles must not be shared between ASTs. Using the same profile multiple times in a single "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"node"}]},{"kind":"text","text":" or in multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node"},"code":true,"children":[{"kind":"text","text":"nodes"}]},{"kind":"text","text":" which "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()"},"code":true,"children":[{"kind":"text","text":"link"}]},{"kind":"text","text":" to the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.RootNode"},"code":true,"children":[{"kind":"text","text":"root"}]},{"kind":"text","text":" is allowed. "},{"kind":"strong","children":[{"kind":"text","text":"Never"}]},{"kind":"text","text":" store profiles inside runtime values that leave the scope of the originating AST. This limitation exists because the used mechanism to invalidate compiled code performs local invalidations only. For global speculations use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"assumptions"}]},{"kind":"text","text":" instead."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Compilation:"}]},{"kind":"text","text":" Some profiles like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.BranchProfile"},"code":true,"children":[{"kind":"text","text":"branch"}]},{"kind":"text","text":" profiles do not induce additional overhead in compiled code. Others like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"value"}]},{"kind":"text","text":" profiles might require a runtime check to verify their assumptions which are forwarded to the compiler. Even if profiles do not induce direct overhead in compiled code it still might get invalidated as a result of using profiles. Invalidating profiles will result in the invalidation of compiled code. It is therefore essential to place these profiles in way that is neither too aggressive nor too conservative."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Footprint:"}]},{"kind":"text","text":" Whether profiling information can be forwarded to the compiler depends on the capabilities of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime"},"code":true,"children":[{"kind":"text","text":"runtime system"}]},{"kind":"text","text":". If the runtime returns "},{"kind":"code","text":"true"},{"kind":"text","text":" in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleRuntime#isProfilingEnabled()"},"code":true,"children":[{"kind":"text","text":"TruffleRuntime.isProfilingEnabled()"}]},{"kind":"text","text":" then runtime information will get collected. This comes at the cost of additional overhead and footprint in interpreted mode. Thats why the factory methods of profiles can return implementations where profiling is disabled. Using disabled profiles makes sense for runtimes that are unable to use the collected profiling information. Even runtime implementations that are able to use this information might decide to turn off profiling for benchmarking purposes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Profile subclasses:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.BranchProfile"},"code":true,"children":[{"kind":"text","text":"BranchProfile"}]},{"kind":"text","text":" to profile on unlikely branches like errors."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ConditionProfile"},"code":true,"children":[{"kind":"text","text":"ConditionProfile"}]},{"kind":"text","text":" to profile on conditionals or boolean values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LoopConditionProfile"},"code":true,"children":[{"kind":"text","text":"LoopConditionProfile"}]},{"kind":"text","text":" to profile on conditionals of loops with special support for counted loops."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"ValueProfile"}]},{"kind":"text","text":" to profile on properties like type and identity of values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ByteValueProfile"},"code":true,"children":[{"kind":"text","text":"ByteValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"byte"},{"kind":"text","text":" values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.IntValueProfile"},"code":true,"children":[{"kind":"text","text":"IntValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"int"},{"kind":"text","text":" values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LongValueProfile"},"code":true,"children":[{"kind":"text","text":"LongValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"long"},{"kind":"text","text":" values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.FloatValueProfile"},"code":true,"children":[{"kind":"text","text":"FloatValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"float"},{"kind":"text","text":" values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile"},"code":true,"children":[{"kind":"text","text":"DoubleValueProfile"}]},{"kind":"text","text":" to profile on "},{"kind":"code","text":"double"},{"kind":"text","text":" values."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.PrimitiveValueProfile"},"code":true,"children":[{"kind":"text","text":"PrimitiveValueProfile"}]},{"kind":"text","text":" to profile on objects by identity and on primitives by value."}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.InlinedProfile"},"code":true,"children":[{"kind":"text","text":"InlinedProfile"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/Profile.java","line":114}},{"id":"com.oracle.truffle.api.profiles.ValueProfile","name":"ValueProfile","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"ValueProfile"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"superclass":[{"kind":"type","text":"Profile","ref":"com.oracle.truffle.api.profiles.Profile"}],"ancestors":[{"id":"com.oracle.truffle.api.profiles.Profile"},{"id":"com.oracle.truffle.api.nodes.NodeCloneable"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.profiles.ValueProfile#profile(T)","anchor":"profile(T)","kind":"method","name":"profile","modifiers":["public","abstract"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"profile"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"typeParam","text":"T"}]}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/ValueProfile.java","line":88}},{"id":"com.oracle.truffle.api.profiles.ValueProfile#createClassProfile()","anchor":"createClassProfile()","kind":"method","name":"createClassProfile","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"createClassProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact class of a value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact class of a value. It will check the class of the profiled value and provide additional information to the compiler if only non-null values of exactly one concrete Java class are passed as a parameter to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile#profile(T)"},"code":true,"children":[{"kind":"text","text":"ValueProfile.profile"}]},{"kind":"text","text":" method. This can be beneficial if subsequent code can take advantage of knowing the concrete class of the value. The profile will degrade to the generic case if a null value or if at least two instances of two different Java classes are registered."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Compilation notes:"}]},{"kind":"text","text":" Value profiles require a runtime check in their initialized state to verify their profiled class. If two classes have been seen on a single profile instance then this profile will transition to a generic state with no overhead."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"usage example"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/ValueProfile.java","line":110}},{"id":"com.oracle.truffle.api.profiles.ValueProfile#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the exact class of a value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the exact class of a value. It will check the class of the profiled value and provide additional information to the compiler if only non-null values of exactly one concrete Java class are passed as a parameter to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile#profile(T)"},"code":true,"children":[{"kind":"text","text":"ValueProfile.profile"}]},{"kind":"text","text":" method. This can be beneficial if subsequent code can take advantage of knowing the concrete class of the value. The profile will degrade to the generic case if a null value or if at least two instances of two different Java classes are registered."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Compilation notes:"}]},{"kind":"text","text":" Value profiles require a runtime check in their initialized state to verify their profiled class. If two classes have been seen on a single profile instance then this profile will transition to a generic state with no overhead."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile"},"code":true,"children":[{"kind":"text","text":"usage example"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/ValueProfile.java","line":139}},{"id":"com.oracle.truffle.api.profiles.ValueProfile#createIdentityProfile()","anchor":"createIdentityProfile()","kind":"method","name":"createIdentityProfile","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"createIdentityProfile"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns a value profile that profiles the object identity of a value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a value profile that profiles the object identity of a value. A single instance can only profile one particular instance."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Compilation notes:"}]},{"kind":"text","text":" Identity profiles require a runtime check to verify their profiled object identity. If two identities have been seen on a single profile instance then this profile will transition to a generic state with no overhead."}]}]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/ValueProfile.java","line":158}},{"id":"com.oracle.truffle.api.profiles.ValueProfile#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ValueProfile","ref":"com.oracle.truffle.api.profiles.ValueProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns the uncached version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the uncached version of the profile. The uncached version of a profile does nothing."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/profiles/ValueProfile.java","line":172}},{"id":"com.oracle.truffle.api.profiles.ValueProfile#inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","anchor":"inline(com.oracle.truffle.api.dsl.InlineSupport.InlineTarget)","kind":"method","name":"inline","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"InlinedExactClassProfile","ref":"com.oracle.truffle.api.profiles.InlinedExactClassProfile"},{"kind":"punct","text":" "},{"kind":"name","text":"inline"},{"kind":"punct","text":"("},{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"},{"kind":"punct","text":" "},{"kind":"param","text":"target"},{"kind":"punct","text":")"}],"params":[{"name":"target","type":[{"kind":"type","text":"InlineSupport.InlineTarget","ref":"com.oracle.truffle.api.dsl.InlineSupport$InlineTarget"}]}],"returns":{"type":[{"kind":"type","text":"InlinedExactClassProfile","ref":"com.oracle.truffle.api.profiles.InlinedExactClassProfile"}]},"doc":{"summary":[{"kind":"text","text":"Returns an inlined version of the profile."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inlined version of the profile. This version is automatically used by Truffle DSL node inlining."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/profiles/ValueProfile.java","line":182}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.profiles.Profile","text":"Profile"},"kind":"class","members":[{"id":"com.oracle.truffle.api.profiles.Profile#disable()","text":"disable"},{"id":"com.oracle.truffle.api.profiles.Profile#reset()","text":"reset"}]},{"from":{"id":"com.oracle.truffle.api.nodes.NodeCloneable","text":"NodeCloneable"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.NodeCloneable#clone()","text":"clone"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"Object"},{"kind":"text","text":" runtime values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specialized value profile to capture certain properties of "},{"kind":"code","text":"Object"},{"kind":"text","text":" runtime values. Value profiles require a runtime check in their initialized state to verify their profiled assumption. Value profiles are limited to capture monomorphic profiles only. This means that if two or more identities or classes are profiles within a single profile then the profile has no effect and no overhead after compilation. There are specialized versions of this profile with less interpreter footprint for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ConditionProfile"},"code":true,"children":[{"kind":"text","text":"boolean"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ByteValueProfile"},"code":true,"children":[{"kind":"text","text":"byte"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.IntValueProfile"},"code":true,"children":[{"kind":"text","text":"int"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.LongValueProfile"},"code":true,"children":[{"kind":"text","text":"long"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.FloatValueProfile"},"code":true,"children":[{"kind":"text","text":"float"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.DoubleValueProfile"},"code":true,"children":[{"kind":"text","text":"double"}]},{"kind":"text","text":" values."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":" Usage example:"}]}]},{"kind":"code","text":"class SampleNode extends Node {\n\nfinal ValueProfile profile = ValueProfile.create{Identity,Class}Profile();\n\n    Object execute(Object input) {\n        Object profiledValue = profile.profile(input);\n        // compiler may know now more about profiledValue\n        return profieldValue;\n    }\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile#createIdentityProfile()"},"code":true,"children":[{"kind":"text","text":"createIdentityProfile()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.profiles.ValueProfile#createClassProfile()"},"code":true,"children":[{"kind":"text","text":"createClassProfile()"}]}]]},"since":"0.10","source":{"path":"com/oracle/truffle/api/profiles/ValueProfile.java","line":82}}]},{"id":"com.oracle.truffle.api.provider","name":"com.oracle.truffle.api.provider","doc":{"summary":[{"kind":"text","text":"This package contains a provider to instantiate a Truffle language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This package contains a provider to instantiate a Truffle language. The Truffle language provider is not intended to be implemented directly by a language developer, rather the implementation is generated by the Truffle DSL."}]}]},"since":"23.1","types":[{"id":"com.oracle.truffle.api.provider.InternalResourceProvider","name":"InternalResourceProvider","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InternalResourceProvider"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.provider.InternalResourceProvider#<init>()","anchor":"<init>()","kind":"constructor","name":"InternalResourceProvider","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"InternalResourceProvider"},{"kind":"punct","text":"()"}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new InternalResourceProvider instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new InternalResourceProvider instance."}]}]}},{"id":"com.oracle.truffle.api.provider.InternalResourceProvider#getComponentId()","anchor":"getComponentId()","kind":"method","name":"getComponentId","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getComponentId"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Provides the identifier of the language or instrument to which the resource belongs."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides the identifier of the language or instrument to which the resource belongs."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/InternalResourceProvider.java","line":62}},{"id":"com.oracle.truffle.api.provider.InternalResourceProvider#getResourceId()","anchor":"getResourceId()","kind":"method","name":"getResourceId","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getResourceId"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"An internal resource identifier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An internal resource identifier. The value is derived from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource$Id#value()"},"code":true,"children":[{"kind":"text","text":"Id.value()"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/InternalResourceProvider.java","line":69}},{"id":"com.oracle.truffle.api.provider.InternalResourceProvider#createInternalResource()","anchor":"createInternalResource()","kind":"method","name":"createInternalResource","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createInternalResource"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" instance."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/InternalResourceProvider.java","line":76}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Used to register an optional "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"java.util.ServiceLoader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ServiceLoader.html"},"code":true,"children":[{"kind":"text","text":"ServiceLoader"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Used to register an optional "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"java.util.ServiceLoader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ServiceLoader.html"},"code":true,"children":[{"kind":"text","text":"ServiceLoader"}]},{"kind":"text","text":". This interface is not intended to be implemented directly by a language developer, rather the implementation is generated by the Truffle DSL."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/InternalResourceProvider.java","line":55}},{"id":"com.oracle.truffle.api.provider.TruffleLanguageProvider","name":"TruffleLanguageProvider","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguageProvider"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.provider.TruffleLanguageProvider#<init>()","anchor":"<init>()","kind":"constructor","name":"TruffleLanguageProvider","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleLanguageProvider"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor to be called by subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor to be called by subclasses."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/TruffleLanguageProvider.java","line":66}},{"id":"com.oracle.truffle.api.provider.TruffleLanguageProvider#getLanguageClassName()","anchor":"getLanguageClassName()","kind":"method","name":"getLanguageClassName","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguageClassName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the name of a class implementing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name of a class implementing the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/TruffleLanguageProvider.java","line":74}},{"id":"com.oracle.truffle.api.provider.TruffleLanguageProvider#create()","anchor":"create()","kind":"method","name":"create","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new instance of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new instance of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/TruffleLanguageProvider.java","line":81}},{"id":"com.oracle.truffle.api.provider.TruffleLanguageProvider#getServicesClassNames()","anchor":"getServicesClassNames()","kind":"method","name":"getServicesClassNames","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getServicesClassNames"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Collection","ref":"java.util.Collection","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Collection.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns the class names of provided services."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the class names of provided services."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/TruffleLanguageProvider.java","line":88}},{"id":"com.oracle.truffle.api.provider.TruffleLanguageProvider#createFileTypeDetectors()","anchor":"createFileTypeDetectors()","kind":"method","name":"createFileTypeDetectors","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<?> "},{"kind":"name","text":"createFileTypeDetectors"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<?>"}]},"doc":{"summary":[{"kind":"text","text":"Creates file type detectors used by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates file type detectors used by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/TruffleLanguageProvider.java","line":95}},{"id":"com.oracle.truffle.api.provider.TruffleLanguageProvider#getInternalResourceIds()","anchor":"getInternalResourceIds()","kind":"method","name":"getInternalResourceIds","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getInternalResourceIds"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"List","ref":"java.util.List","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/List.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}]},"doc":{"summary":[{"kind":"text","text":"Returns ids of provided internal resources."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns ids of provided internal resources."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/TruffleLanguageProvider.java","line":102}},{"id":"com.oracle.truffle.api.provider.TruffleLanguageProvider#createInternalResource(java.lang.String)","anchor":"createInternalResource(java.lang.String)","kind":"method","name":"createInternalResource","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createInternalResource"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"resourceId"},{"kind":"punct","text":")"}],"params":[{"name":"resourceId","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"resourceId"},{"kind":"text","text":" is not supported by this language"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a language "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" identified by the "},{"kind":"code","text":"resourceId"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a language "},{"kind":"link","target":{"id":"com.oracle.truffle.api.InternalResource"},"code":true,"children":[{"kind":"text","text":"InternalResource"}]},{"kind":"text","text":" identified by the "},{"kind":"code","text":"resourceId"},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/TruffleLanguageProvider.java","line":112}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Used to register a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"java.util.ServiceLoader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ServiceLoader.html"},"code":true,"children":[{"kind":"text","text":"ServiceLoader"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Used to register a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" using a "},{"kind":"link","target":{"id":"java.util.ServiceLoader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ServiceLoader.html"},"code":true,"children":[{"kind":"text","text":"ServiceLoader"}]},{"kind":"text","text":". This interface is not intended to be implemented directly by a language developer, rather the implementation is generated by the Truffle DSL. The generated implementation has to inherit the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration"},"code":true,"children":[{"kind":"text","text":"Registration"}]},{"kind":"text","text":" and "},{"kind":"code","text":"ProvidedTags"},{"kind":"text","text":" annotations from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/provider/TruffleLanguageProvider.java","line":59}}]},{"id":"com.oracle.truffle.api.source","name":"com.oracle.truffle.api.source","doc":{"summary":[{"kind":"text","text":"Represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source file"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"source file"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.source.Source","name":"Source","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Source"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.source.Source#CONTENT_NONE","anchor":"CONTENT_NONE","kind":"field","name":"CONTENT_NONE","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"name","text":"CONTENT_NONE"}],"type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}],"doc":{"summary":[{"kind":"text","text":"Constant to be used as an argument to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(java.lang.CharSequence)"},"code":true,"children":[{"kind":"text","text":"SourceBuilder.content(CharSequence)"}]},{"kind":"text","text":" to set no content to the Source built."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constant to be used as an argument to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(java.lang.CharSequence)"},"code":true,"children":[{"kind":"text","text":"SourceBuilder.content(CharSequence)"}]},{"kind":"text","text":" to set no content to the Source built. The created sections will contain location information only and no characters. That's useful mainly when the source code is not available, but there are relative file paths, like in Java bytecode or LLVM bitcode. It's up to tools to resolve those relative paths and use the section location in resolved sources."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":162}},{"id":"com.oracle.truffle.api.source.Source#getLanguage()","anchor":"getLanguage()","kind":"method","name":"getLanguage","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getLanguage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language of this source."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the language this source was created with."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the language this source was created with. The string returned matches the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getId()"},"code":true,"children":[{"kind":"text","text":"id"}]},{"kind":"text","text":" of the language."}]}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/source/Source.java","line":202}},{"id":"com.oracle.truffle.api.source.Source#getName()","anchor":"getName()","kind":"method","name":"getName","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getName"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of the guest language program"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the name of this resource holding a guest language program."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the name of this resource holding a guest language program. An example would be the name of a guest language source code file. Name is supposed to be shorter than "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getPath()"},"code":true,"children":[{"kind":"text","text":"getPath()"}]},{"kind":"text","text":"."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":212}},{"id":"com.oracle.truffle.api.source.Source#getPath()","anchor":"getPath()","kind":"method","name":"getPath","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getPath"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"The fully qualified name of the source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The fully qualified name of the source. In case this source originates from a "},{"kind":"link","target":{"id":"java.io.File","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/File.html"},"code":true,"children":[{"kind":"text","text":"File"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":", then the path is the normalized, "},{"kind":"link","target":{"id":"java.io.File#getCanonicalPath()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/File.html#getCanonicalPath()"},"code":true,"children":[{"kind":"text","text":"canonical path"}]},{"kind":"text","text":". If "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#canonicalizePath(boolean)"},"code":true,"children":[{"kind":"text","text":"canonicalizePath(false)"}]},{"kind":"text","text":" is used when building the source then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#getPath()"},"code":true,"children":[{"kind":"text","text":"TruffleFile.getPath()"}]},{"kind":"text","text":" is used instead. If the source originates from an "},{"kind":"link","target":{"id":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"},"code":true,"children":[{"kind":"text","text":"URL"}]},{"kind":"text","text":", then it's the path component of the URL."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":223}},{"id":"com.oracle.truffle.api.source.Source#isInternal()","anchor":"isInternal()","kind":"method","name":"isInternal","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInternal"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether this source is marked as "},{"kind":"emphasis","children":[{"kind":"text","text":"internal"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Check whether this source has been marked as "},{"kind":"emphasis","children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":", meaning that it has been provided by the infrastructure, language implementation, or system library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether this source has been marked as "},{"kind":"emphasis","children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":", meaning that it has been provided by the infrastructure, language implementation, or system library. "},{"kind":"emphasis","children":[{"kind":"text","text":"Internal"}]},{"kind":"text","text":" sources are presumed to be irrelevant to guest language programmers, as well as possibly confusing and revealing of language implementation details."}]},{"kind":"paragraph","children":[{"kind":"text","text":"On the other hand, tools should be free to make "},{"kind":"emphasis","children":[{"kind":"text","text":"internal"}]},{"kind":"text","text":" sources visible in (possibly privileged) modes that are useful for language implementors."}]},{"kind":"paragraph","children":[{"kind":"text","text":"One can specify whether a source is internal when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#internal(boolean)"},"code":true,"children":[{"kind":"text","text":"building it"}]},{"kind":"text","text":"."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/source/Source.java","line":240}},{"id":"com.oracle.truffle.api.source.Source#isCached()","anchor":"isCached()","kind":"method","name":"isCached","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether this source is allowed to be "},{"kind":"emphasis","children":[{"kind":"text","text":"cached"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if code caching is enabled for this source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if code caching is enabled for this source. If "},{"kind":"code","text":"true"},{"kind":"text","text":" then the source does not require parsing every time this source is evaluated. If "},{"kind":"code","text":"false"},{"kind":"text","text":" then the source requires parsing every time the source is evaluated but does not remember any state. Disabling caching may be useful if the source is known to only be evaluated once."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":252}},{"id":"com.oracle.truffle.api.source.Source#isInteractive()","anchor":"isInteractive()","kind":"method","name":"isInteractive","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isInteractive"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether this source is marked as "},{"kind":"emphasis","children":[{"kind":"text","text":"interactive"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Check whether this source has been marked as "},{"kind":"emphasis","children":[{"kind":"text","text":"interactive"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Check whether this source has been marked as "},{"kind":"emphasis","children":[{"kind":"text","text":"interactive"}]},{"kind":"text","text":". Interactive sources are provided by an entity which is able to interactively read output and provide an input during the source execution; that can be a user I/O through an interactive shell for instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Depending on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#interactive()"},"code":true,"children":[{"kind":"text","text":"language interactive"}]},{"kind":"text","text":" capability, when "},{"kind":"emphasis","children":[{"kind":"text","text":"interactive"}]},{"kind":"text","text":" sources are executed, the appropriate result can be passed directly to the environment "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#out()"},"code":true,"children":[{"kind":"text","text":"output stream"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#err()"},"code":true,"children":[{"kind":"text","text":"error stream"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#in()"},"code":true,"children":[{"kind":"text","text":"input stream"}]},{"kind":"text","text":" can be used to read user input during the execution, to clarify the execution behavior by asking questions for instance. Non-interactive languages are expected to ignore this property."}]},{"kind":"paragraph","children":[{"kind":"text","text":"One can specify whether a source is interactive when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#interactive(boolean)"},"code":true,"children":[{"kind":"text","text":"building it"}]},{"kind":"text","text":"."}]}]},"since":"0.21","source":{"path":"com/oracle/truffle/api/source/Source.java","line":274}},{"id":"com.oracle.truffle.api.source.Source#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":281}},{"id":"com.oracle.truffle.api.source.Source#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":298}},{"id":"com.oracle.truffle.api.source.Source#subSource(int,int)","anchor":"subSource(int,int)","kind":"method","name":"subSource","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"subSource"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"baseCharIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"baseCharIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"0-based index of the first character of the sub-range"}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of characters in the sub-range"}]}]}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new instance representing a sub-range of another Source"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the specified sub-range is not contained in the base"}]}]},{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"children":[{"kind":"text","text":"Source instance"}]},{"kind":"text","text":" that represents the contents of a sub-range of an "},{"kind":"code","text":"this"},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"children":[{"kind":"text","text":"Source instance"}]},{"kind":"text","text":" that represents the contents of a sub-range of an "},{"kind":"code","text":"this"},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}]}]},"since":"0.15","source":{"path":"com/oracle/truffle/api/source/Source.java","line":315}},{"id":"com.oracle.truffle.api.source.Source#getCharacters()","anchor":"getCharacters()","kind":"method","name":"getCharacters","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getCharacters"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns all characters of the source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns all characters of the source."}]}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/source/Source.java","line":330}},{"id":"com.oracle.truffle.api.source.Source#hasBytes()","anchor":"hasBytes()","kind":"method","name":"hasBytes","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasBytes"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this source represents a byte based source, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this source represents a byte based source, else "},{"kind":"code","text":"false"},{"kind":"text","text":". A source is either a byte based, a character based, or with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#CONTENT_NONE"},"code":true,"children":[{"kind":"text","text":"no content"}]},{"kind":"text","text":", but never both byte and character based at the same time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The method "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getBytes()"},"code":true,"children":[{"kind":"text","text":"getBytes()"}]},{"kind":"text","text":" is only supported if this method returns "},{"kind":"code","text":"true"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getBytes()"},"code":true,"children":[{"kind":"text","text":"getBytes()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":342}},{"id":"com.oracle.truffle.api.source.Source#hasCharacters()","anchor":"hasCharacters()","kind":"method","name":"hasCharacters","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasCharacters"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this source represents a character based source, else "},{"kind":"code","text":"false"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this source represents a character based source, else "},{"kind":"code","text":"false"},{"kind":"text","text":". A source is either a byte based, a character based, or with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#CONTENT_NONE"},"code":true,"children":[{"kind":"text","text":"no content"}]},{"kind":"text","text":", but never both byte and character based at the same time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following methods are only supported if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"hasCharacters()"}]},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":":"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getReader()"},"code":true,"children":[{"kind":"text","text":"getReader()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getCharacters()"},"code":true,"children":[{"kind":"text","text":"getCharacters()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getLineCount()"},"code":true,"children":[{"kind":"text","text":"getLineCount()"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getLineNumber(int)"},"code":true,"children":[{"kind":"text","text":"getLineNumber(int)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getColumnNumber(int)"},"code":true,"children":[{"kind":"text","text":"getColumnNumber(int)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getLineStartOffset(int)"},"code":true,"children":[{"kind":"text","text":"getLineStartOffset(int)"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getLineLength(int)"},"code":true,"children":[{"kind":"text","text":"getLineLength(int)"}]}]}]]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":363}},{"id":"com.oracle.truffle.api.source.Source#getBytes()","anchor":"getBytes()","kind":"method","name":"getBytes","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"ByteSequence","ref":"org.graalvm.polyglot.io.ByteSequence","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ByteSequence.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytes"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ByteSequence","ref":"org.graalvm.polyglot.io.ByteSequence","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ByteSequence.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"bytes"}]},{"kind":"text","text":" ."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the bytes of the source if it is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"byte based source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the bytes of the source if it is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"byte based source"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"hasBytes()"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":373}},{"id":"com.oracle.truffle.api.source.Source#getURL()","anchor":"getURL()","kind":"method","name":"getURL","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"URL","ref":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getURL"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"URL","ref":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"URL or "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"The URL if the source is retrieved via URL."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The URL if the source is retrieved via URL."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":381}},{"id":"com.oracle.truffle.api.source.Source#getURI()","anchor":"getURI()","kind":"method","name":"getURI","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getURI"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a URI, it's never "},{"kind":"code","text":"null"}]}]},"doc":{"summary":[{"kind":"text","text":"Get URI of the source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get URI of the source. Every source has an associated "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":", which can be used as a persistent identification of the source. For example one can "},{"kind":"link","target":{"id":"com.oracle.truffle.api.debug.DebuggerSession#install(com.oracle.truffle.api.debug.Breakpoint)"},"code":true,"children":[{"kind":"text","text":"register a breakpoint using a URI"}]},{"kind":"text","text":" to a source that isn't loaded yet and it will be activated when the source is evaluated. The "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" returned by this method should be as unique as possible, yet it can happen that different "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"sources"}]},{"kind":"text","text":" return the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getURI()"},"code":true,"children":[{"kind":"text","text":"getURI"}]},{"kind":"text","text":" - for example when content of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"file on a disk"}]},{"kind":"text","text":" changes and is re-loaded."}]}]},"since":"0.14","source":{"path":"com/oracle/truffle/api/source/Source.java","line":398}},{"id":"com.oracle.truffle.api.source.Source#getMimeType()","anchor":"getMimeType()","kind":"method","name":"getMimeType","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMimeType"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"MIME type of this source or "},{"kind":"code","text":"null"},{"kind":"text","text":", if not explicitly set."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the MIME type that is associated with this source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the MIME type that is associated with this source. Sources have a "},{"kind":"code","text":"null"},{"kind":"text","text":" MIME type by default. If the MIME type is "},{"kind":"code","text":"null"},{"kind":"text","text":" then the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getDefaultMimeType()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"default MIME type"}]},{"kind":"text","text":" of the language will be used to interpret the source. If set explicitly then the language needs to "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getMimeTypes()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getMimeTypes()"},"code":true,"children":[{"kind":"text","text":"support"}]},{"kind":"text","text":" the MIME type in order to "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Context#eval(org.graalvm.polyglot.Source)","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html#eval(org.graalvm.polyglot.Source)"},"code":true,"children":[{"kind":"text","text":"Context.eval(org.graalvm.polyglot.Source)"}]},{"kind":"text","text":" evaluate} the source. If not "},{"kind":"code","text":"null"},{"kind":"text","text":" the MIME type is already verified containing no spaces and a '/' between group and sub-group. An example for a valid MIME type is: "},{"kind":"code","text":"text/javascript"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The MIME type can be guessed by the system based on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"files"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(java.net.URL)"},"code":true,"children":[{"kind":"text","text":"urls"}]}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"LanguageInfo.getDefaultMimeType()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getMimeTypes()"},"code":true,"children":[{"kind":"text","text":"LanguageInfo.getMimeTypes()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"Source.findMimeType(TruffleFile)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(java.net.URL)"},"code":true,"children":[{"kind":"text","text":"Source.findMimeType(URL)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":437}},{"id":"com.oracle.truffle.api.source.Source#getReader()","anchor":"getReader()","kind":"method","name":"getReader","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Reader","ref":"java.io.Reader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Reader.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getReader"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Reader","ref":"java.io.Reader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Reader.html"}]},"doc":{"summary":[{"kind":"text","text":"Access to the source contents."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Access to the source contents."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":444}},{"id":"com.oracle.truffle.api.source.Source#getLength()","anchor":"getLength()","kind":"method","name":"getLength","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source does not contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":", nor "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"bytes"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the number of characters or bytes of the source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the number of characters or bytes of the source."}]}]},"since":"0.8","source":{"path":"com/oracle/truffle/api/source/Source.java","line":455}},{"id":"com.oracle.truffle.api.source.Source#getCharacters(int)","anchor":"getCharacters(int)","kind":"method","name":"getCharacters","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getCharacters"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"lineNumber"},{"kind":"punct","text":")"}],"params":[{"name":"lineNumber","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Gets the text (not including a possible terminating newline) in a (1-based) numbered line."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Gets the text (not including a possible terminating newline) in a (1-based) numbered line. Causes the contents of this source to be loaded if they are loaded lazily."}]}]},"since":"0.28","source":{"path":"com/oracle/truffle/api/source/Source.java","line":473}},{"id":"com.oracle.truffle.api.source.Source#getLineCount()","anchor":"getLineCount()","kind":"method","name":"getLineCount","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLineCount"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"The number of text lines in the source, including empty lines; characters at the end of the source without a terminating newline count as a line."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The number of text lines in the source, including empty lines; characters at the end of the source without a terminating newline count as a line. Causes the contents of this source to be loaded if they are loaded lazily."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":488}},{"id":"com.oracle.truffle.api.source.Source#getLineNumber(int)","anchor":"getLineNumber(int)","kind":"method","name":"getLineNumber","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLineNumber"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"offset","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the offset is outside the text contents"}]}]}],"doc":{"summary":[{"kind":"text","text":"Given a 0-based character offset, return the 1-based number of the line that includes the position."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Given a 0-based character offset, return the 1-based number of the line that includes the position. Causes the contents of this source to be loaded if they are loaded lazily."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":501}},{"id":"com.oracle.truffle.api.source.Source#getColumnNumber(int)","anchor":"getColumnNumber(int)","kind":"method","name":"getColumnNumber","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getColumnNumber"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"offset"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"offset","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the offset is outside the text contents"}]}]}],"doc":{"summary":[{"kind":"text","text":"Given a 0-based character offset, return the 1-based number of the column at the position."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Given a 0-based character offset, return the 1-based number of the column at the position. Causes the contents of this source to be loaded if they are loaded lazily."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":514}},{"id":"com.oracle.truffle.api.source.Source#getLineStartOffset(int)","anchor":"getLineStartOffset(int)","kind":"method","name":"getLineStartOffset","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLineStartOffset"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"lineNumber"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"lineNumber","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if there is no such line in the text"}]}]}],"doc":{"summary":[{"kind":"text","text":"Given a 1-based line number, return the 0-based offset of the first character in the line."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Given a 1-based line number, return the 0-based offset of the first character in the line."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":526}},{"id":"com.oracle.truffle.api.source.Source#getLineLength(int)","anchor":"getLineLength(int)","kind":"method","name":"getLineLength","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLineLength"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"lineNumber"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"params":[{"name":"lineNumber","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if there is no such line in the text"}]}]}],"doc":{"summary":[{"kind":"text","text":"The number of characters (not counting a possible terminating newline) in a (1-based) numbered line."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The number of characters (not counting a possible terminating newline) in a (1-based) numbered line. Causes the contents of this source to be loaded if they are loaded lazily."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":541}},{"id":"com.oracle.truffle.api.source.Source#getOptions(com.oracle.truffle.api.TruffleLanguage)","anchor":"getOptions(com.oracle.truffle.api.TruffleLanguage)","kind":"method","name":"getOptions","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getOptions"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language accessible via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$LanguageReference"},"code":true,"children":[{"kind":"text","text":"LanguageReference"}]}]}]}],"returns":{"type":[{"kind":"type","text":"OptionValues","ref":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parsed "},{"kind":"link","target":{"id":"org.graalvm.options.OptionValues","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/options/OptionValues.html"},"code":true,"children":[{"kind":"text","text":"OptionValues"}]},{"kind":"text","text":" for the specified source"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if option validation fails"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the parsed option values of the given source for the given language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the parsed option values of the given source for the given language. Options can be specified by implementing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getSourceOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getSourceOptionDescriptors()"}]},{"kind":"text","text":". When accessing source options during parsing, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getOptionValues()"},"code":true,"children":[{"kind":"text","text":"ParsingRequest.getOptionValues()"}]},{"kind":"text","text":" instead of this method, to avoid parsing the options twice."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that options may not be validated beforehand, which can result in an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" if validation fails. If the source was parsed previously, all options are guaranteed to have been validated. Otherwise, this method validates only the options of the current language."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.instrumentation.TruffleInstrument$Env#getOptions(com.oracle.truffle.api.source.Source)"},"code":true,"children":[{"kind":"text","text":"to access options from an instrument"}]}]]},"since":"25.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":563}},{"id":"com.oracle.truffle.api.source.Source#createUnavailableSection()","anchor":"createUnavailableSection()","kind":"method","name":"createUnavailableSection","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"createUnavailableSection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"doc":{"summary":[{"kind":"text","text":"Returns an unavailable source section indicating that the source location is not available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an unavailable source section indicating that the source location is not available. Unavailable source sections have the same characteristics as empty source sections with character index "},{"kind":"code","text":"0"},{"kind":"text","text":", but returns "},{"kind":"code","text":"false"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"SourceSection.isAvailable()"}]},{"kind":"text","text":". Unavailable source sections may be created for character and byte based sources."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"SourceSection.isAvailable()"}]}]]},"since":"0.18","source":{"path":"com/oracle/truffle/api/source/Source.java","line":578}},{"id":"com.oracle.truffle.api.source.Source#createSection(int,int,int,int)","anchor":"createSection(int,int,int,int)","kind":"method","name":"createSection","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"createSection"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startLine"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startColumn"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"endLine"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"endColumn"},{"kind":"punct","text":")"}],"params":[{"name":"startLine","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based line number of the first character in the section"}]}]},{"name":"startColumn","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based column number of the first character in the section, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" when the column is not defined"}]}]},{"name":"endLine","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based line number of the last character in the section"}]}]},{"name":"endColumn","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based column number of the last character in the section, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" when the column is not defined"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source has "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"bytes"}]},{"kind":"text","text":"."}]}]}],"doc":{"summary":[{"kind":"text","text":"Create representation of a contiguous region in the source that does not have the character content available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create representation of a contiguous region in the source that does not have the character content available."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":595}},{"id":"com.oracle.truffle.api.source.Source#createSection(int)","anchor":"createSection(int)","kind":"method","name":"createSection","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"createSection"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"lineNumber"},{"kind":"punct","text":")"}],"params":[{"name":"lineNumber","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based line number of the first character in the section"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"newly created object representing the specified line"}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source contains "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"bytes"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the given lineNumber does not exist the source"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a representation of a line of text in the source identified only by line number, from which the character information will be computed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a representation of a line of text in the source identified only by line number, from which the character information will be computed. Please note that calling this method does cause the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getCharacters()"},"code":true,"children":[{"kind":"text","text":"code"}]},{"kind":"text","text":" of this source to be loaded, if there is any. If no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getCharacters()"},"code":true,"children":[{"kind":"text","text":"code"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"available"}]},{"kind":"text","text":", a SourceSection without "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getCharacters()"},"code":true,"children":[{"kind":"text","text":"character content"}]},{"kind":"text","text":" is created with the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getStartLine()"},"code":true,"children":[{"kind":"text","text":"start line"}]},{"kind":"text","text":" and the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getEndLine()"},"code":true,"children":[{"kind":"text","text":"end line"}]},{"kind":"text","text":" defined only."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/source/Source.java","line":658}},{"id":"com.oracle.truffle.api.source.Source#createSection(int,int)","anchor":"createSection(int,int)","kind":"method","name":"createSection","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"createSection"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"charIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"0-based position of the first character in the section"}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of characters in the section"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"newly created object representing the specified region"}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source cannot contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if charIndex < 0 or length < 0; in case assertions are enabled also if the given bounds are out of the source bounds."}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a representation of a contiguous region of text in the source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a representation of a contiguous region of text in the source. Please note that calling this method does only cause the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getCharacters()"},"code":true,"children":[{"kind":"text","text":"code"}]},{"kind":"text","text":" of this source to be loaded if assertions enabled. The bounds of the source section are only verified if assertions (-ea) are enabled in the host system. An "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":" is thrown if the given indices are out of bounds of the source bounds."}]}]},"since":"0.17","source":{"path":"com/oracle/truffle/api/source/Source.java","line":693}},{"id":"com.oracle.truffle.api.source.Source#createSection(int,int,int)","anchor":"createSection(int,int,int)","kind":"method","name":"createSection","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"},{"kind":"punct","text":" "},{"kind":"name","text":"createSection"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startLine"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"startColumn"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":")"}],"params":[{"name":"startLine","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based line number of the first character in the section"}]}]},{"name":"startColumn","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"1-based column number of the first character in the section"}]}]},{"name":"length","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of characters in the section"}]}]}],"returns":{"type":[{"kind":"type","text":"SourceSection","ref":"com.oracle.truffle.api.source.SourceSection"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"newly created object representing the specified region"}]}]},"throws":[{"type":[{"kind":"type","text":"UnsupportedOperationException","ref":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this source does not contain "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"characters"}]},{"kind":"text","text":"."}]}]},{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if arguments are outside the text of the source bounds"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a representation of a contiguous region of text in the source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a representation of a contiguous region of text in the source. When character content is available, computes the "},{"kind":"code","text":"charIndex"},{"kind":"text","text":" value by building a text map of lines in the source. Please note that calling this method does cause the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getCharacters()"},"code":true,"children":[{"kind":"text","text":"code"}]},{"kind":"text","text":" of this source to be loaded, if there is any. If no "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getCharacters()"},"code":true,"children":[{"kind":"text","text":"code"}]},{"kind":"text","text":" is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"available"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" is thrown. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createSection(int,int,int,int)"},"code":true,"children":[{"kind":"text","text":"createSection(int, int, int, int)"}]},{"kind":"text","text":" to create a SourceSection without character content."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createSection(int,int)"},"code":true,"children":[{"kind":"text","text":"createSection(int, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createSection(int,int,int,int)"},"code":true,"children":[{"kind":"text","text":"createSection(int, int, int, int)"}]}]]},"since":"0.17","source":{"path":"com/oracle/truffle/api/source/Source.java","line":732}},{"id":"com.oracle.truffle.api.source.Source#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":762}},{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,java.lang.CharSequence,java.lang.String)","anchor":"newBuilder(java.lang.String,java.lang.CharSequence,java.lang.String)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"characters"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language id, must not be "},{"kind":"code","text":"null"}]}]},{"name":"characters","type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the character sequence or string, must not be "},{"kind":"code","text":"null"}]}]},{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of the source, if "},{"kind":"code","text":"null"},{"kind":"text","text":" then "},{"kind":"code","text":"\"Unnamed\""},{"kind":"text","text":" will be used as name."}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new character based literal source from a character sequence."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new character based literal source from a character sequence. The given characters must not mutate after they were accessed for the first time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use this method for sources that do originate from a literal. For file or URL sources use the appropriate builder constructor and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(java.lang.CharSequence)"},"code":true,"children":[{"kind":"text","text":"SourceBuilder.content(CharSequence)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","language":"java","text":"Source source = Source.newBuilder(\"js\", \"function() {\\n\"\n                + \"  return 'Hi';\\n\"\n                + \"}\\n\", \"hi.js\").build();\nassert \"hi.js\".equals(source.getName());"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":831}},{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,org.graalvm.polyglot.io.ByteSequence,java.lang.String)","anchor":"newBuilder(java.lang.String,org.graalvm.polyglot.io.ByteSequence,java.lang.String)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"ByteSequence","ref":"org.graalvm.polyglot.io.ByteSequence","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ByteSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"bytes"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language id, must not be "},{"kind":"code","text":"null"}]}]},{"name":"bytes","type":[{"kind":"type","text":"ByteSequence","ref":"org.graalvm.polyglot.io.ByteSequence","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ByteSequence.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte sequence or string, must not be "},{"kind":"code","text":"null"}]}]},{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the name of the source, if "},{"kind":"code","text":"null"},{"kind":"text","text":" then "},{"kind":"code","text":"\"Unnamed\""},{"kind":"text","text":" will be used as name."}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new byte based literal source from a byte sequence."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new byte based literal source from a byte sequence. The given bytes must not mutate after they were accessed for the first time."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use this method for sources that do originate from a literal. For file or URL sources use the appropriate builder constructor and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(org.graalvm.polyglot.io.ByteSequence)"},"code":true,"children":[{"kind":"text","text":"SourceBuilder.content(ByteSequence)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","language":"java","text":"byte[] bytes = new byte[] {/* Binary */};\nSource source = Source.newBuilder(\"llvm\",\n                ByteSequence.create(bytes),\n                \"<literal>\").build();"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":851}},{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,com.oracle.truffle.api.TruffleFile)","anchor":"newBuilder(java.lang.String,com.oracle.truffle.api.TruffleFile)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"file"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language id, must not be "},{"kind":"code","text":"null"}]}]},{"name":"file","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the file to use and load, must not be "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new file based source builder from a given file."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new file based source builder from a given file. A file based source is either interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"binary"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"character"}]},{"kind":"text","text":" source depending on the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"default MIME type"}]},{"kind":"text","text":" of the language, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(org.graalvm.polyglot.io.ByteSequence)"},"code":true,"children":[{"kind":"text","text":"contents"}]},{"kind":"text","text":" or the specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#mimeType(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"MIME type"}]},{"kind":"text","text":". A language may be detected from an existing file using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findLanguage(com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"findLanguage(TruffleFile)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","language":"java","text":"assert file.getName().endsWith(\".java\") :\n    \"Imagine 'c:\\\\sources\\\\Example.java' file\";\n\nString language = Source.findLanguage(file);\nSource source = Source.newBuilder(language, file).build();\n\nassert file.getName().equals(source.getName());\nassert file.getPath().equals(source.getPath());\nassert file.toUri().equals(source.getURI());"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":870}},{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,java.net.URL)","anchor":"newBuilder(java.lang.String,java.net.URL)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"URL","ref":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"},{"kind":"punct","text":" "},{"kind":"param","text":"url"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language id, must not be "},{"kind":"code","text":"null"}]}]},{"name":"url","type":[{"kind":"type","text":"URL","ref":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the URL to use and load, must not be "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new URL based source builder from a given URL."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new URL based source builder from a given URL. A URL based source is either interpreted as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"binary"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"character"}]},{"kind":"text","text":" source depending on the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"default MIME type"}]},{"kind":"text","text":" of the language, the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(org.graalvm.polyglot.io.ByteSequence)"},"code":true,"children":[{"kind":"text","text":"contents"}]},{"kind":"text","text":" or the specified "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#mimeType(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"MIME type"}]},{"kind":"text","text":". A language may be detected from an existing file using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findLanguage(java.net.URL)"},"code":true,"children":[{"kind":"text","text":"findLanguage(URL)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","language":"java","text":"URL resource = relativeClass.getResource(\"sample.js\");\nSource source = Source.newBuilder(\"js\", resource)\n                .build();\nassert resource.toExternalForm().equals(source.getPath());\nassert \"sample.js\".equals(source.getName());\nassert resource.toURI().equals(source.getURI());"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":896}},{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,java.io.Reader,java.lang.String)","anchor":"newBuilder(java.lang.String,java.io.Reader,java.lang.String)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"language"},{"kind":"punct","text":", "},{"kind":"type","text":"Reader","ref":"java.io.Reader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Reader.html"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"source","type":[{"kind":"type","text":"Reader","ref":"java.io.Reader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Reader.html"}]},{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Creates new character based literal source from a reader."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates new character based literal source from a reader."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Use this method for sources that do originate from a literal. For file or URL sources use the appropriate builder constructor and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(java.lang.CharSequence)"},"code":true,"children":[{"kind":"text","text":"SourceBuilder.content(CharSequence)"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Example usage:"}]},{"kind":"code","language":"java","text":"Reader stream = new InputStreamReader(\n                relativeClass.getResourceAsStream(\"sample.js\")\n);\nSource source = Source.newBuilder(\"js\", stream, \"sample.js\")\n    .build();\nassert \"sample.js\".equals(source.getName());"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":911}},{"id":"com.oracle.truffle.api.source.Source#newBuilder(com.oracle.truffle.api.source.Source)","anchor":"newBuilder(com.oracle.truffle.api.source.Source)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"param","text":"source"},{"kind":"punct","text":")"}],"params":[{"name":"source","type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source to inherit the properties from"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new source builder that inherits from the given Source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new source builder that inherits from the given Source. The Source properties can be modified using the builder methods."}]}]},"since":"19.2.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":922}},{"id":"com.oracle.truffle.api.source.Source#findLanguage(com.oracle.truffle.api.TruffleFile)","anchor":"findLanguage(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"findLanguage","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"findLanguage"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"file"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"file","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the file to find the first language for"}]}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an error opening the file occurred."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the first language that supports evaluating the probed mime type of a given "},{"kind":"link","target":{"id":"java.io.File","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/File.html"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the first language that supports evaluating the probed mime type of a given "},{"kind":"link","target":{"id":"java.io.File","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/File.html"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":". This method is a shortcut for: "},{"kind":"code","text":"\n"},{"kind":"code","text":"\nString mimeType = Source.findMimeType(file);\nreturn mimeType != null ? Source.findLanguage(mimeType) : null;\n"},{"kind":"code","text":"\n"}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(java.net.URL)"},"code":true,"children":[{"kind":"text","text":"findMimeType(URL)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findLanguage(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"findLanguage(String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":943}},{"id":"com.oracle.truffle.api.source.Source#findLanguage(java.net.URL)","anchor":"findLanguage(java.net.URL)","kind":"method","name":"findLanguage","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"findLanguage"},{"kind":"punct","text":"("},{"kind":"type","text":"URL","ref":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"},{"kind":"punct","text":" "},{"kind":"param","text":"url"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"url","type":[{"kind":"type","text":"URL","ref":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the url to find the first language for"}]}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an error opening the url occurred."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the first language that supports evaluating the probed mime type of a given "},{"kind":"link","target":{"id":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"},"code":true,"children":[{"kind":"text","text":"URL"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the first language that supports evaluating the probed mime type of a given "},{"kind":"link","target":{"id":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"},"code":true,"children":[{"kind":"text","text":"URL"}]},{"kind":"text","text":". This method is a shortcut for: "},{"kind":"code","text":"\n"},{"kind":"code","text":"\nString mimeType = Source.findMimeType(url);\nreturn mimeType != null ? Source.findLanguage(mimeType) : null;\n"},{"kind":"code","text":"\n"}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(java.net.URL)"},"code":true,"children":[{"kind":"text","text":"findMimeType(URL)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findLanguage(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"findLanguage(String)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":965}},{"id":"com.oracle.truffle.api.source.Source#findMimeType(com.oracle.truffle.api.TruffleFile)","anchor":"findMimeType(com.oracle.truffle.api.TruffleFile)","kind":"method","name":"findMimeType","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"findMimeType"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"},{"kind":"punct","text":" "},{"kind":"param","text":"file"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"file","type":[{"kind":"type","text":"TruffleFile","ref":"com.oracle.truffle.api.TruffleFile"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an error opening the file occurred."}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the used "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"filesystem"}]},{"kind":"text","text":" denied file reading."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the probed MIME type for a given file, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no MIME type could be resolved."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the probed MIME type for a given file, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no MIME type could be resolved. Typically, the MIME type is identified using the file extension and/or using its contents. Probing the MIME type of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":" may require to opening the file."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findLanguage(com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"findLanguage(TruffleFile)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":980}},{"id":"com.oracle.truffle.api.source.Source#findMimeType(java.net.URL)","anchor":"findMimeType(java.net.URL)","kind":"method","name":"findMimeType","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"findMimeType"},{"kind":"punct","text":"("},{"kind":"type","text":"URL","ref":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"},{"kind":"punct","text":" "},{"kind":"param","text":"url"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"params":[{"name":"url","type":[{"kind":"type","text":"URL","ref":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an error opening the url occurred."}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the used "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"filesystem"}]},{"kind":"text","text":" denied file reading."}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the probed MIME type for a given url, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no MIME type could be resolved."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the probed MIME type for a given url, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if no MIME type could be resolved. Typically the MIME type is identified using the file extension, connection meta-data and/or using it contents. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if the language of the given file could not be detected. Probing the language of an URL may require to open a new URL connection."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findLanguage(java.net.URL)"},"code":true,"children":[{"kind":"text","text":"findLanguage(URL)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":997}},{"id":"com.oracle.truffle.api.source.Source#findLanguage(java.lang.String)","anchor":"findLanguage(java.lang.String)","kind":"method","name":"findLanguage","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"findLanguage"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"mimeType"},{"kind":"punct","text":")"}],"params":[{"name":"mimeType","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns the first installed language that supports evaluating sources for a given MIME type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the first installed language that supports evaluating sources for a given MIME type. Returns "},{"kind":"code","text":"null"},{"kind":"text","text":" if no language was found that supports a given MIME type. The languages are queried in the same order as returned by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Engine#getLanguages()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Engine.html#getLanguages()"},"code":true,"children":[{"kind":"text","text":"Engine.getLanguages()"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1008}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Representation of a source code unit and its contents that can be evaluated in a language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Representation of a source code unit and its contents that can be evaluated in a language. Each source is associated with the ID of the language."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"From a file on disk"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Each file is represented as a canonical object, indexed by the absolute, canonical path name of the file. File content is "},{"kind":"emphasis","children":[{"kind":"text","text":"read eagerly"}]},{"kind":"text","text":" and may be optionally "},{"kind":"emphasis","children":[{"kind":"text","text":"cached"}]},{"kind":"text","text":". Sample usage: "},{"kind":"break"}]},{"kind":"code","language":"java","text":"assert file.getName().endsWith(\".java\") :\n    \"Imagine 'c:\\\\sources\\\\Example.java' file\";\n\nString language = Source.findLanguage(file);\nSource source = Source.newBuilder(language, file).build();\n\nassert file.getName().equals(source.getName());\nassert file.getPath().equals(source.getPath());\nassert file.toUri().equals(source.getURI());"},{"kind":"paragraph","children":[{"kind":"text","text":"The starting point is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"Source.newBuilder(String, TruffleFile)"}]},{"kind":"text","text":" method."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Read from a URL"}]},{"kind":"paragraph","children":[{"kind":"text","text":"One can read remote or in JAR resources using the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,java.net.URL)"},"code":true,"children":[{"kind":"text","text":"Source.newBuilder(String, java.net.URL)"}]},{"kind":"text","text":" factory: "},{"kind":"break"}]},{"kind":"code","language":"java","text":"URL resource = relativeClass.getResource(\"sample.js\");\nSource source = Source.newBuilder(\"js\", resource)\n                .build();\nassert resource.toExternalForm().equals(source.getPath());\nassert \"sample.js\".equals(source.getName());\nassert resource.toURI().equals(source.getURI());"},{"kind":"paragraph","children":[{"kind":"text","text":"Each URL source is represented as a canonical object, indexed by the URL. Contents are "},{"kind":"emphasis","children":[{"kind":"text","text":"read eagerly"}]},{"kind":"text","text":" once the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"SourceBuilder.build()"}]},{"kind":"text","text":" method is called."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Source from a literal text"}]},{"kind":"paragraph","children":[{"kind":"text","text":"An anonymous immutable code snippet can be created from a string via the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,java.lang.CharSequence,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"Source.newBuilder(String, CharSequence, String)"}]},{"kind":"text","text":" factory method: "},{"kind":"break"}]},{"kind":"code","language":"java","text":"Source source = Source.newBuilder(\"js\", \"function() {\\n\"\n                + \"  return 'Hi';\\n\"\n                + \"}\\n\", \"hi.js\").build();\nassert \"hi.js\".equals(source.getName());"},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Reading from a stream"}]},{"kind":"paragraph","children":[{"kind":"text","text":"If one has a "},{"kind":"link","target":{"id":"java.io.Reader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Reader.html"},"code":true,"children":[{"kind":"text","text":"Reader"}]},{"kind":"text","text":" one can convert its content into a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#newBuilder(java.lang.String,java.io.Reader,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"Source.newBuilder(String, java.io.Reader, String)"}]},{"kind":"text","text":" method: "},{"kind":"break"}]},{"kind":"code","language":"java","text":"Reader stream = new InputStreamReader(\n                relativeClass.getResourceAsStream(\"sample.js\")\n);\nSource source = Source.newBuilder(\"js\", stream, \"sample.js\")\n    .build();\nassert \"sample.js\".equals(source.getName());"},{"kind":"paragraph","children":[{"kind":"text","text":"the content is "},{"kind":"emphasis","children":[{"kind":"text","text":"read eagerly"}]},{"kind":"text","text":" once the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"SourceBuilder.build()"}]},{"kind":"text","text":" method is called."}]},{"kind":"heading","level":3,"children":[{"kind":"text","text":"Reading from bytes"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Sources can be created from bytes. Please note that all character related methods will throw an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":" if that is the case."}]},{"kind":"code","language":"java","text":"byte[] bytes = new byte[] {/* Binary */};\nSource source = Source.newBuilder(\"llvm\",\n                ByteSequence.create(bytes),\n                \"<literal>\").build();"},{"kind":"heading","level":2,"children":[{"kind":"text","text":"Attributes"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The source object can be associated with various attributes like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getName()"},"code":true,"children":[{"kind":"text","text":"getName()"}]},{"kind":"text","text":" , "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getURI()"},"code":true,"children":[{"kind":"text","text":"()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getMimeType()"},"code":true,"children":[{"kind":"text","text":"getMimeType()"}]},{"kind":"text","text":" and these are immutable. The system makes the best effort to derive values of these attributes from the location and/or content of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" object. However, to give the user that creates the source control over these attributes, the API offers an easy way to alter values of these attributes."}]},{"kind":"heading","level":2,"children":[{"kind":"text","text":"Character and binary based Sources"}]},{"kind":"paragraph","children":[{"kind":"text","text":"A source is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasBytes()"},"code":true,"children":[{"kind":"text","text":"byte"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"character"}]},{"kind":"text","text":" based, or none of those when "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#CONTENT_NONE"},"code":true,"children":[{"kind":"text","text":"no content"}]},{"kind":"text","text":" is specified. For literal sources it depends on whether the byte or character based factory method was used. When the source was loaded from a "},{"kind":"link","target":{"id":"java.io.File","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/File.html"},"code":true,"children":[{"kind":"text","text":"file"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"},"code":true,"children":[{"kind":"text","text":"url"}]},{"kind":"text","text":" then the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"default MIME type"}]},{"kind":"text","text":" of the provided language will be used to determine whether bytes or characters should be loaded. The behavior can be customized by specifying a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#mimeType(java.lang.String)"},"code":true,"children":[{"kind":"text","text":"MIME type"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(org.graalvm.polyglot.io.ByteSequence)"},"code":true,"children":[{"kind":"text","text":"content"}]},{"kind":"text","text":" explicitly. If the specified or inferred MIME type starts with "},{"kind":"code","text":"'text/"},{"kind":"text","text":" or the MIME types is "},{"kind":"code","text":"null"},{"kind":"text","text":" then it will be interpreted as character based, otherwise byte based."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/Source.java","line":151}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder","name":"Source.LiteralBuilder","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Source.LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"superclass":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"ancestors":[{"id":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.source.Source","members":[{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#content(java.lang.CharSequence)","anchor":"content(java.lang.CharSequence)","kind":"method","name":"content","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"content"},{"kind":"punct","text":"("},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"characters"},{"kind":"punct","text":")"}],"params":[{"name":"characters","type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the code to be available via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getCharacters()"},"code":true,"children":[{"kind":"text","text":"Source.getCharacters()"}]},{"kind":"text","text":", or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#CONTENT_NONE"},"code":true,"children":[{"kind":"text","text":"CONTENT_NONE"}]}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of this builder - which's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":" method no longer throws an "},{"kind":"link","target":{"id":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"},"code":true,"children":[{"kind":"text","text":"IOException"}]}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(java.lang.CharSequence)"},"doc":{"summary":[{"kind":"text","text":"Specifies character based content of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies character based content of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". Using this method one can ignore the real content of a file or URL and use already read one, or completely different one. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#CONTENT_NONE"},"code":true,"children":[{"kind":"text","text":"CONTENT_NONE"}]},{"kind":"text","text":" to set no content, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"Source.hasCharacters()"}]},{"kind":"text","text":" will be "},{"kind":"code","text":"false"},{"kind":"text","text":" then. The given characters must not mutate after they were accessed for the first time. Example:"}]},{"kind":"code","language":"java","text":"URL resource = relativeClass.getResource(\"sample.js\");\nSource source = Source.newBuilder(\"js\", resource)\n    .content(\"{}\")\n    .build();\nassert resource.toExternalForm().equals(source.getPath());\nassert \"sample.js\".equals(source.getName());\nassert resource.toExternalForm().equals(source.getURI().toString());\nassert \"{}\".equals(source.getCharacters());"}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1734}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#content(org.graalvm.polyglot.io.ByteSequence)","anchor":"content(org.graalvm.polyglot.io.ByteSequence)","kind":"method","name":"content","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"content"},{"kind":"punct","text":"("},{"kind":"type","text":"ByteSequence","ref":"org.graalvm.polyglot.io.ByteSequence","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ByteSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"bytes"},{"kind":"punct","text":")"}],"params":[{"name":"bytes","type":[{"kind":"type","text":"ByteSequence","ref":"org.graalvm.polyglot.io.ByteSequence","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ByteSequence.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the code to be available via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getBytes()"},"code":true,"children":[{"kind":"text","text":"Source.getBytes()"}]}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of this builder - which's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":" method no longer throws an "},{"kind":"link","target":{"id":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"},"code":true,"children":[{"kind":"text","text":"IOException"}]}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(org.graalvm.polyglot.io.ByteSequence)"},"doc":{"summary":[{"kind":"text","text":"Specifies byte based content of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies byte based content of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". Using this method one can ignore the real content of a file or URL and use already read one, or completely different one. The given bytes must not mutate after they were accessed for the first time. Example:"}]},{"kind":"code","language":"java","text":"URL resource = relativeClass.getResource(\"sample.js\");\nSource source = Source.newBuilder(\"js\", resource)\n    .content(\"{}\")\n    .build();\nassert resource.toExternalForm().equals(source.getPath());\nassert \"sample.js\".equals(source.getName());\nassert resource.toExternalForm().equals(source.getURI().toString());\nassert \"{}\".equals(source.getCharacters());"}]},"since":"19.3","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1745}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#name(java.lang.String)","anchor":"name(java.lang.String)","kind":"method","name":"name","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"newName"},{"kind":"punct","text":")"}],"params":[{"name":"newName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"name that replaces the previously given one. If set to "},{"kind":"code","text":"null"},{"kind":"text","text":" then "},{"kind":"code","text":"\"Unnamed\""},{"kind":"text","text":" will be used."}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of "},{"kind":"code","text":"this"},{"kind":"text","text":" builder"}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#name(java.lang.String)"},"doc":{"summary":[{"kind":"text","text":"Specifies a name to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a name to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1756}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#mimeType(java.lang.String)","anchor":"mimeType(java.lang.String)","kind":"method","name":"mimeType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"mimeType"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"newMimeType"},{"kind":"punct","text":")"}],"params":[{"name":"newMimeType","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new mime type to be assigned, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if default MIME type should be used."}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of "},{"kind":"code","text":"this"},{"kind":"text","text":" builder ready to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"create new source"}]}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#mimeType(java.lang.String)"},"doc":{"summary":[{"kind":"text","text":"Explicitly assigns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getMimeType()"},"code":true,"children":[{"kind":"text","text":"MIME type"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Explicitly assigns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getMimeType()"},"code":true,"children":[{"kind":"text","text":"MIME type"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". If the MIME type is "},{"kind":"code","text":"null"},{"kind":"text","text":" then the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getDefaultMimeType()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"default MIME type"}]},{"kind":"text","text":" of the language will be used to interpret the source. If set explicitly then the language needs to "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getMimeTypes()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getMimeTypes()"},"code":true,"children":[{"kind":"text","text":"support"}]},{"kind":"text","text":" the MIME type in order to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parse"}]},{"kind":"text","text":" a source. If not "},{"kind":"code","text":"null"},{"kind":"text","text":" then the MIME type will be verified containing no spaces and a '/' between group and sub-group. An example for a valid MIME type is: "},{"kind":"code","text":"text/javascript"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The MIME type can be guessed by the system based on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"files"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(java.net.URL)"},"code":true,"children":[{"kind":"text","text":"urls"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1766}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#cached(boolean)","anchor":"cached(boolean)","kind":"method","name":"cached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"cached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"cached"},{"kind":"punct","text":")"}],"params":[{"name":"cached","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of "},{"kind":"code","text":"this"},{"kind":"text","text":" builder ready to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"create new source"}]}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#cached(boolean)"},"doc":{"summary":[{"kind":"text","text":"Enables or disables code caching for this source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables or disables code caching for this source. By default code caching is enabled. If "},{"kind":"code","text":"true"},{"kind":"text","text":" then the source does not require parsing every time this source is evaluated. If "},{"kind":"code","text":"false"},{"kind":"text","text":" then the source requires parsing every time the source is evaluated but does not remember any code. Disabling caching may be useful if the source is known to only be evaluated once."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a source instance is no longer referenced by the client then all code caches will be freed automatically. Also, if the underlying context or engine is no longer referenced then cached code for evaluated sources will be freed automatically."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1776}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#internal(boolean)","anchor":"internal(boolean)","kind":"method","name":"internal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"internal"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance of this builder"}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#internal(boolean)"},"doc":{"summary":[{"kind":"text","text":"Marks the source as internal."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks the source as internal. Internal sources are those that aren't created by user, but rather inherently present by the language system. Calling this method influences result of create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isInternal()"},"code":true,"children":[{"kind":"text","text":"Source.isInternal()"}]}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1786}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#interactive(boolean)","anchor":"interactive(boolean)","kind":"method","name":"interactive","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"interactive"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance of this builder"}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#interactive(boolean)"},"doc":{"summary":[{"kind":"text","text":"Marks the source as interactive."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks the source as interactive. Evaluation of interactive sources by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#interactive()"},"code":true,"children":[{"kind":"text","text":"interactive language"}]},{"kind":"text","text":" can use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env"},"code":true,"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":" streams to print the result and read an input. However, non-interactive languages are expected to ignore the interactive property of sources and not use the environment streams. Any desired printing of the evaluated result provided by a non-interactive language needs to be handled by the caller. Calling of this method influences the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isInteractive()"},"code":true,"children":[{"kind":"text","text":"Source.isInteractive()"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1796}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#uri(java.net.URI)","anchor":"uri(java.net.URI)","kind":"method","name":"uri","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"uri"},{"kind":"punct","text":"("},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"param","text":"ownUri"},{"kind":"punct","text":")"}],"params":[{"name":"ownUri","type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the URL to use instead of default one, cannot be "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance of this builder"}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#uri(java.net.URI)"},"doc":{"summary":[{"kind":"text","text":"Assigns new "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-created"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Assigns new "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-created"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". Each source provides "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getURI()"},"code":true,"children":[{"kind":"text","text":"Source.getURI()"}]},{"kind":"text","text":" as a persistent identification of its location. A default value for the method is deduced from the location or content, but one can change it by using this method"}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1806}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#canonicalizePath(boolean)","anchor":"canonicalizePath(boolean)","kind":"method","name":"canonicalizePath","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"canonicalizePath"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"canonicalize"},{"kind":"punct","text":")"}],"params":[{"name":"canonicalize","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to canonicalize the path from the TruffleFile"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance of this builder"}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#canonicalizePath(boolean)"},"doc":{"summary":[{"kind":"text","text":"Whether the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getPath()"},"code":true,"children":[{"kind":"text","text":"Source.getPath()"}]},{"kind":"text","text":" (from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":") should be canonicalized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getPath()"},"code":true,"children":[{"kind":"text","text":"Source.getPath()"}]},{"kind":"text","text":" (from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":") should be canonicalized. By default the path is canonicalized to improve Source caching. If set to "},{"kind":"code","text":"false"},{"kind":"text","text":", then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getPath()"},"code":true,"children":[{"kind":"text","text":"Source.getPath()"}]},{"kind":"text","text":" will be the same as the passed TruffleFile "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#getPath()"},"code":true,"children":[{"kind":"text","text":"TruffleFile.getPath()"}]},{"kind":"text","text":"."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1816}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#encoding(java.nio.charset.Charset)","anchor":"encoding(java.nio.charset.Charset)","kind":"method","name":"encoding","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"encoding"},{"kind":"punct","text":"("},{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"encoding","type":[{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new file encoding to be used for reading the content"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of "},{"kind":"code","text":"this"},{"kind":"text","text":" builder ready to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"create new source"}]}]}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#encoding(java.nio.charset.Charset)"},"doc":{"summary":[{"kind":"text","text":"Explicitly assigns an encoding used to read the file content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Explicitly assigns an encoding used to read the file content. If the encoding is "},{"kind":"code","text":"null"},{"kind":"text","text":" then the file contained encoding information is used. If the file doesn't provide an encoding information the default "},{"kind":"code","text":"UTF-8"},{"kind":"text","text":" encoding is used."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1826}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#option(java.lang.String,java.lang.String)","anchor":"option(java.lang.String,java.lang.String)","kind":"method","name":"option","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"option"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the option key (must not be null)"}]}]},{"name":"value","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the option value (must not be null)"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#option(java.lang.String,java.lang.String)"},"doc":{"summary":[{"kind":"text","text":"Sets a source option key and value for the built source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a source option key and value for the built source. Source options allow you to attach language- or instrument-specific configuration to a source. These options are parsed and validated only when source is parsed by a language, rather than when the source is created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the source is validated, all source options will be validated. Therefore, each language or instrument associated with a source option must be installed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The available source option keys can be found in the respective language or instrument documentation, or at runtime via "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getSourceOptions()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getSourceOptions()"},"code":true,"children":[{"kind":"text","text":"Language.getSourceOptions()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Instrument#getSourceOptions()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Instrument.html#getSourceOptions()"},"code":true,"children":[{"kind":"text","text":"Instrument.getSourceOptions()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getOptionValues()"},"code":true,"children":[{"kind":"text","text":"ParsingRequest.getOptionValues()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getSourceOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getSourceOptionDescriptors()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getOptions(com.oracle.truffle.api.TruffleLanguage)"},"code":true,"children":[{"kind":"text","text":"Source.getOptions(TruffleLanguage)"}]}]],"inheritedFrom":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#option(java.lang.String,java.lang.String)"}},"source":{"path":"com/oracle/truffle/api/source/Source.java","line":1831}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#options(java.util.Map)","anchor":"options(java.util.Map)","kind":"method","name":"options","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"options"},{"kind":"punct","text":"("},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"options"},{"kind":"punct","text":")"}],"params":[{"name":"options","type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}]},"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#options(java.util.Map)"},"doc":{"summary":[{"kind":"text","text":"Shortcut for setting multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#option(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"options"}]},{"kind":"text","text":" using a map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shortcut for setting multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#option(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"options"}]},{"kind":"text","text":" using a map. All values of the provided map must be non-null."}]}],"inheritedFrom":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#options(java.util.Map)"}},"source":{"path":"com/oracle/truffle/api/source/Source.java","line":1836}},{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source object"}]}]},"throws":[{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the used "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"filesystem"}]},{"kind":"text","text":" denied file reading"}]}]}],"overrides":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"doc":{"summary":[{"kind":"text","text":"Uses configuration of this builder to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Uses configuration of this builder to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" object."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1848}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Allows one to specify additional attribute before "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#build()"},"code":true,"children":[{"kind":"text","text":"creating"}]},{"kind":"text","text":" new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows one to specify additional attribute before "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$LiteralBuilder#build()"},"code":true,"children":[{"kind":"text","text":"creating"}]},{"kind":"text","text":" new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" instance."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder"},"code":true,"children":[{"kind":"text","text":"For examples on how to use it."}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1707}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder","name":"Source.SourceBuilder","kind":"class","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"Source.SourceBuilder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.source.Source","members":[{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#name(java.lang.String)","anchor":"name(java.lang.String)","kind":"method","name":"name","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"name"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"newName"},{"kind":"punct","text":")"}],"params":[{"name":"newName","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"name that replaces the previously given one. If set to "},{"kind":"code","text":"null"},{"kind":"text","text":" then "},{"kind":"code","text":"\"Unnamed\""},{"kind":"text","text":" will be used."}]}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of "},{"kind":"code","text":"this"},{"kind":"text","text":" builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Specifies a name to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies a name to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1432}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(java.lang.CharSequence)","anchor":"content(java.lang.CharSequence)","kind":"method","name":"content","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"content"},{"kind":"punct","text":"("},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"characters"},{"kind":"punct","text":")"}],"params":[{"name":"characters","type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the code to be available via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getCharacters()"},"code":true,"children":[{"kind":"text","text":"Source.getCharacters()"}]},{"kind":"text","text":", or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#CONTENT_NONE"},"code":true,"children":[{"kind":"text","text":"CONTENT_NONE"}]}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of this builder - which's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":" method no longer throws an "},{"kind":"link","target":{"id":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"},"code":true,"children":[{"kind":"text","text":"IOException"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Specifies character based content of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies character based content of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". Using this method one can ignore the real content of a file or URL and use already read one, or completely different one. Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#CONTENT_NONE"},"code":true,"children":[{"kind":"text","text":"CONTENT_NONE"}]},{"kind":"text","text":" to set no content, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"Source.hasCharacters()"}]},{"kind":"text","text":" will be "},{"kind":"code","text":"false"},{"kind":"text","text":" then. The given characters must not mutate after they were accessed for the first time. Example:"}]},{"kind":"code","language":"java","text":"URL resource = relativeClass.getResource(\"sample.js\");\nSource source = Source.newBuilder(\"js\", resource)\n    .content(\"{}\")\n    .build();\nassert resource.toExternalForm().equals(source.getPath());\nassert \"sample.js\".equals(source.getName());\nassert resource.toExternalForm().equals(source.getURI().toString());\nassert \"{}\".equals(source.getCharacters());"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1453}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#content(org.graalvm.polyglot.io.ByteSequence)","anchor":"content(org.graalvm.polyglot.io.ByteSequence)","kind":"method","name":"content","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"content"},{"kind":"punct","text":"("},{"kind":"type","text":"ByteSequence","ref":"org.graalvm.polyglot.io.ByteSequence","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ByteSequence.html"},{"kind":"punct","text":" "},{"kind":"param","text":"bytes"},{"kind":"punct","text":")"}],"params":[{"name":"bytes","type":[{"kind":"type","text":"ByteSequence","ref":"org.graalvm.polyglot.io.ByteSequence","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/ByteSequence.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the code to be available via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getBytes()"},"code":true,"children":[{"kind":"text","text":"Source.getBytes()"}]}]}]}],"returns":{"type":[{"kind":"type","text":"Source.LiteralBuilder","ref":"com.oracle.truffle.api.source.Source$LiteralBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of this builder - which's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":" method no longer throws an "},{"kind":"link","target":{"id":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"},"code":true,"children":[{"kind":"text","text":"IOException"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Specifies byte based content of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Specifies byte based content of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". Using this method one can ignore the real content of a file or URL and use already read one, or completely different one. The given bytes must not mutate after they were accessed for the first time. Example:"}]},{"kind":"code","language":"java","text":"URL resource = relativeClass.getResource(\"sample.js\");\nSource source = Source.newBuilder(\"js\", resource)\n    .content(\"{}\")\n    .build();\nassert resource.toExternalForm().equals(source.getPath());\nassert \"sample.js\".equals(source.getName());\nassert resource.toExternalForm().equals(source.getURI().toString());\nassert \"{}\".equals(source.getCharacters());"}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1472}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#mimeType(java.lang.String)","anchor":"mimeType(java.lang.String)","kind":"method","name":"mimeType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"mimeType"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"mimeType"},{"kind":"punct","text":")"}],"params":[{"name":"mimeType","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new mime type to be assigned, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if default MIME type should be used."}]}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of "},{"kind":"code","text":"this"},{"kind":"text","text":" builder ready to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"create new source"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Explicitly assigns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getMimeType()"},"code":true,"children":[{"kind":"text","text":"MIME type"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Explicitly assigns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getMimeType()"},"code":true,"children":[{"kind":"text","text":"MIME type"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-built"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". If the MIME type is "},{"kind":"code","text":"null"},{"kind":"text","text":" then the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getDefaultMimeType()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"default MIME type"}]},{"kind":"text","text":" of the language will be used to interpret the source. If set explicitly then the language needs to "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getMimeTypes()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getMimeTypes()"},"code":true,"children":[{"kind":"text","text":"support"}]},{"kind":"text","text":" the MIME type in order to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env#parsePublic(com.oracle.truffle.api.source.Source,java.lang.String...)"},"code":true,"children":[{"kind":"text","text":"parse"}]},{"kind":"text","text":" a source. If not "},{"kind":"code","text":"null"},{"kind":"text","text":" then the MIME type will be verified containing no spaces and a '/' between group and sub-group. An example for a valid MIME type is: "},{"kind":"code","text":"text/javascript"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The MIME type can be guessed by the system based on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"files"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(java.net.URL)"},"code":true,"children":[{"kind":"text","text":"urls"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getDefaultMimeType()"},"code":true,"children":[{"kind":"text","text":"LanguageInfo.getDefaultMimeType()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.nodes.LanguageInfo#getMimeTypes()"},"code":true,"children":[{"kind":"text","text":"LanguageInfo.getMimeTypes()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(com.oracle.truffle.api.TruffleFile)"},"code":true,"children":[{"kind":"text","text":"Source.findMimeType(TruffleFile)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#findMimeType(java.net.URL)"},"code":true,"children":[{"kind":"text","text":"Source.findMimeType(URL)"}]}]]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1500}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#cached(boolean)","anchor":"cached(boolean)","kind":"method","name":"cached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"cached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of "},{"kind":"code","text":"this"},{"kind":"text","text":" builder ready to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"create new source"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Enables or disables code caching for this source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Enables or disables code caching for this source. By default code caching is enabled. If "},{"kind":"code","text":"true"},{"kind":"text","text":" then the source does not require parsing every time this source is evaluated. If "},{"kind":"code","text":"false"},{"kind":"text","text":" then the source requires parsing every time the source is evaluated but does not remember any code. Disabling caching may be useful if the source is known to only be evaluated once."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If a source instance is no longer referenced by the client then all code caches will be freed automatically. Also, if the underlying context or engine is no longer referenced then cached code for evaluated sources will be freed automatically."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1520}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#internal(boolean)","anchor":"internal(boolean)","kind":"method","name":"internal","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"internal"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance of this builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Marks the source as internal."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks the source as internal. Internal sources are those that aren't created by user, but rather inherently present by the language system. Calling this method influences result of create "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isInternal()"},"code":true,"children":[{"kind":"text","text":"Source.isInternal()"}]}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1533}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#interactive(boolean)","anchor":"interactive(boolean)","kind":"method","name":"interactive","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"interactive"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance of this builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Marks the source as interactive."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Marks the source as interactive. Evaluation of interactive sources by an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Registration#interactive()"},"code":true,"children":[{"kind":"text","text":"interactive language"}]},{"kind":"text","text":" can use the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$Env"},"code":true,"children":[{"kind":"text","text":"environment"}]},{"kind":"text","text":" streams to print the result and read an input. However, non-interactive languages are expected to ignore the interactive property of sources and not use the environment streams. Any desired printing of the evaluated result provided by a non-interactive language needs to be handled by the caller. Calling of this method influences the result of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#isInteractive()"},"code":true,"children":[{"kind":"text","text":"Source.isInteractive()"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1551}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#uri(java.net.URI)","anchor":"uri(java.net.URI)","kind":"method","name":"uri","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"uri"},{"kind":"punct","text":"("},{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},{"kind":"punct","text":" "},{"kind":"param","text":"ownUri"},{"kind":"punct","text":")"}],"params":[{"name":"ownUri","type":[{"kind":"type","text":"URI","ref":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the URL to use instead of default one, cannot be "},{"kind":"code","text":"null"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance of this builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Assigns new "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-created"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Assigns new "},{"kind":"link","target":{"id":"java.net.URI","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URI.html"},"code":true,"children":[{"kind":"text","text":"URI"}]},{"kind":"text","text":" to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"to-be-created"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":". Each source provides "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getURI()"},"code":true,"children":[{"kind":"text","text":"Source.getURI()"}]},{"kind":"text","text":" as a persistent identification of its location. A default value for the method is deduced from the location or content, but one can change it by using this method"}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1566}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#canonicalizePath(boolean)","anchor":"canonicalizePath(boolean)","kind":"method","name":"canonicalizePath","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"canonicalizePath"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"canonicalize"},{"kind":"punct","text":")"}],"params":[{"name":"canonicalize","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"whether to canonicalize the path from the TruffleFile"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instance of this builder"}]}]},"doc":{"summary":[{"kind":"text","text":"Whether the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getPath()"},"code":true,"children":[{"kind":"text","text":"Source.getPath()"}]},{"kind":"text","text":" (from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":") should be canonicalized."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Whether the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getPath()"},"code":true,"children":[{"kind":"text","text":"Source.getPath()"}]},{"kind":"text","text":" (from the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile"},"code":true,"children":[{"kind":"text","text":"TruffleFile"}]},{"kind":"text","text":") should be canonicalized. By default the path is canonicalized to improve Source caching. If set to "},{"kind":"code","text":"false"},{"kind":"text","text":", then "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getPath()"},"code":true,"children":[{"kind":"text","text":"Source.getPath()"}]},{"kind":"text","text":" will be the same as the passed TruffleFile "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleFile#getPath()"},"code":true,"children":[{"kind":"text","text":"TruffleFile.getPath()"}]},{"kind":"text","text":"."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1581}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#encoding(java.nio.charset.Charset)","anchor":"encoding(java.nio.charset.Charset)","kind":"method","name":"encoding","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"encoding"},{"kind":"punct","text":"("},{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"encoding","type":[{"kind":"type","text":"Charset","ref":"java.nio.charset.Charset","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/nio/charset/Charset.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new file encoding to be used for reading the content"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"instance of "},{"kind":"code","text":"this"},{"kind":"text","text":" builder ready to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"create new source"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Explicitly assigns an encoding used to read the file content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Explicitly assigns an encoding used to read the file content. If the encoding is "},{"kind":"code","text":"null"},{"kind":"text","text":" then the file contained encoding information is used. If the file doesn't provide an encoding information the default "},{"kind":"code","text":"UTF-8"},{"kind":"text","text":" encoding is used."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1595}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#option(java.lang.String,java.lang.String)","anchor":"option(java.lang.String,java.lang.String)","kind":"method","name":"option","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"option"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the option key (must not be null)"}]}]},{"name":"value","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the option value (must not be null)"}]}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Sets a source option key and value for the built source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a source option key and value for the built source. Source options allow you to attach language- or instrument-specific configuration to a source. These options are parsed and validated only when source is parsed by a language, rather than when the source is created."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the source is validated, all source options will be validated. Therefore, each language or instrument associated with a source option must be installed."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The available source option keys can be found in the respective language or instrument documentation, or at runtime via "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Language#getSourceOptions()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Language.html#getSourceOptions()"},"code":true,"children":[{"kind":"text","text":"Language.getSourceOptions()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"org.graalvm.polyglot.Instrument#getSourceOptions()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Instrument.html#getSourceOptions()"},"code":true,"children":[{"kind":"text","text":"Instrument.getSourceOptions()"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage$ParsingRequest#getOptionValues()"},"code":true,"children":[{"kind":"text","text":"ParsingRequest.getOptionValues()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage#getSourceOptionDescriptors()"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage.getSourceOptionDescriptors()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#getOptions(com.oracle.truffle.api.TruffleLanguage)"},"code":true,"children":[{"kind":"text","text":"Source.getOptions(TruffleLanguage)"}]}]]},"since":"25.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1621}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#options(java.util.Map)","anchor":"options(java.util.Map)","kind":"method","name":"options","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"options"},{"kind":"punct","text":"("},{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"options"},{"kind":"punct","text":")"}],"params":[{"name":"options","type":[{"kind":"type","text":"Map","ref":"java.util.Map","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"Source.SourceBuilder","ref":"com.oracle.truffle.api.source.Source$SourceBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Shortcut for setting multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#option(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"options"}]},{"kind":"text","text":" using a map."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shortcut for setting multiple "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#option(java.lang.String,java.lang.String)"},"code":true,"children":[{"kind":"text","text":"options"}]},{"kind":"text","text":" using a map. All values of the provided map must be non-null."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1637}},{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source object"}]}]},"throws":[{"type":[{"kind":"type","text":"IOException","ref":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if an error reading the content occurred"}]}]},{"type":[{"kind":"type","text":"SecurityException","ref":"java.lang.SecurityException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/SecurityException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the used "},{"kind":"link","target":{"id":"org.graalvm.polyglot.io.FileSystem","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/io/FileSystem.html"},"code":true,"children":[{"kind":"text","text":"filesystem"}]},{"kind":"text","text":" denied file reading"}]}]}],"doc":{"summary":[{"kind":"text","text":"Uses configuration of this builder to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Uses configuration of this builder to create new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" object. The method throws an "},{"kind":"link","target":{"id":"java.io.IOException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/IOException.html"},"code":true,"children":[{"kind":"text","text":"IOException"}]},{"kind":"text","text":" if an error loading the source occurred."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1670}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Allows one to specify additional attribute before "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"creating"}]},{"kind":"text","text":" new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows one to specify additional attribute before "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"creating"}]},{"kind":"text","text":" new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" instance. To load a source from disk one can use:"}]},{"kind":"code","language":"java","text":"assert file.getName().endsWith(\".java\") :\n    \"Imagine 'c:\\\\sources\\\\Example.java' file\";\n\nString language = Source.findLanguage(file);\nSource source = Source.newBuilder(language, file).build();\n\nassert file.getName().equals(source.getName());\nassert file.getPath().equals(source.getPath());\nassert file.toUri().equals(source.getURI());"},{"kind":"paragraph","children":[{"kind":"text","text":"To load source from a "},{"kind":"link","target":{"id":"java.net.URL","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html"},"code":true,"children":[{"kind":"text","text":"URL"}]},{"kind":"text","text":" one can use:"}]},{"kind":"code","language":"java","text":"URL resource = relativeClass.getResource(\"sample.js\");\nSource source = Source.newBuilder(\"js\", resource)\n                .build();\nassert resource.toExternalForm().equals(source.getPath());\nassert \"sample.js\".equals(source.getName());\nassert resource.toURI().equals(source.getURI());"},{"kind":"paragraph","children":[{"kind":"text","text":"To create a source representing characters:"}]},{"kind":"code","language":"java","text":"Source source = Source.newBuilder(\"js\", \"function() {\\n\"\n                + \"  return 'Hi';\\n\"\n                + \"}\\n\", \"hi.js\").build();\nassert \"hi.js\".equals(source.getName());"},{"kind":"paragraph","children":[{"kind":"text","text":"or read a source from a "},{"kind":"link","target":{"id":"java.io.Reader","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Reader.html"},"code":true,"children":[{"kind":"text","text":"Reader"}]},{"kind":"text","text":":"}]},{"kind":"code","language":"java","text":"Reader stream = new InputStreamReader(\n                relativeClass.getResourceAsStream(\"sample.js\")\n);\nSource source = Source.newBuilder(\"js\", stream, \"sample.js\")\n    .build();\nassert \"sample.js\".equals(source.getName());"},{"kind":"paragraph","children":[{"kind":"text","text":"To create a source representing bytes:"}]},{"kind":"code","language":"java","text":"byte[] bytes = new byte[] {/* Binary */};\nSource source = Source.newBuilder(\"llvm\",\n                ByteSequence.create(bytes),\n                \"<literal>\").build();"},{"kind":"paragraph","children":[{"kind":"text","text":"Once your builder is configured, call "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source$SourceBuilder#build()"},"code":true,"children":[{"kind":"text","text":"build()"}]},{"kind":"text","text":" to perform the loading and construction of new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/Source.java","line":1398}},{"id":"com.oracle.truffle.api.source.SourceSection","name":"SourceSection","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"SourceSection"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()","anchor":"isAvailable()","kind":"method","name":"isAvailable","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isAvailable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns whether this is a special instance that signifies that source information is available."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether this is a special instance that signifies that source information is available. Unavailable source sections can be created using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createUnavailableSection()"},"code":true,"children":[{"kind":"text","text":"Source.createUnavailableSection()"}]},{"kind":"text","text":". Available source sections are never equal to unavailable source sections. Unavailable source sections return the same indices and lengths as empty source sections starting at character index "},{"kind":"code","text":"0"},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createUnavailableSection()"},"code":true,"children":[{"kind":"text","text":"Source.createUnavailableSection()"}]}]]},"since":"0.18","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":77}},{"id":"com.oracle.truffle.api.source.SourceSection#hasLines()","anchor":"hasLines()","kind":"method","name":"hasLines","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasLines"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this section has a line number information, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this section has a line number information, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise. When "},{"kind":"code","text":"true"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getStartLine()"},"code":true,"children":[{"kind":"text","text":"getStartLine()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getEndLine()"},"code":true,"children":[{"kind":"text","text":"getEndLine()"}]},{"kind":"text","text":" return valid line numbers, when "},{"kind":"code","text":"false"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getStartLine()"},"code":true,"children":[{"kind":"text","text":"getStartLine()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getEndLine()"},"code":true,"children":[{"kind":"text","text":"getEndLine()"}]},{"kind":"text","text":" return "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":93}},{"id":"com.oracle.truffle.api.source.SourceSection#hasColumns()","anchor":"hasColumns()","kind":"method","name":"hasColumns","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasColumns"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this section has a column number information, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this section has a column number information, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise. When "},{"kind":"code","text":"true"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasLines()"},"code":true,"children":[{"kind":"text","text":"hasLines()"}]},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":" as well, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getStartColumn()"},"code":true,"children":[{"kind":"text","text":"getStartColumn()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getEndColumn()"},"code":true,"children":[{"kind":"text","text":"getEndColumn()"}]},{"kind":"text","text":" return valid column numbers. When "},{"kind":"code","text":"false"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getStartColumn()"},"code":true,"children":[{"kind":"text","text":"getStartColumn()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getEndColumn()"},"code":true,"children":[{"kind":"text","text":"getEndColumn()"}]},{"kind":"text","text":" return "},{"kind":"code","text":"1"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":104}},{"id":"com.oracle.truffle.api.source.SourceSection#hasCharIndex()","anchor":"hasCharIndex()","kind":"method","name":"hasCharIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasCharIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this section has a character index information, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this section has a character index information, "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise. When "},{"kind":"code","text":"true"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getCharIndex()"},"code":true,"children":[{"kind":"text","text":"getCharIndex()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getCharEndIndex()"},"code":true,"children":[{"kind":"text","text":"getCharEndIndex()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getCharLength()"},"code":true,"children":[{"kind":"text","text":"getCharLength()"}]},{"kind":"text","text":" return valid character indices, when "},{"kind":"code","text":"false"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getCharIndex()"},"code":true,"children":[{"kind":"text","text":"getCharIndex()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getCharEndIndex()"},"code":true,"children":[{"kind":"text","text":"getCharEndIndex()"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getCharLength()"},"code":true,"children":[{"kind":"text","text":"getCharLength()"}]},{"kind":"text","text":" return "},{"kind":"code","text":"0"},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":115}},{"id":"com.oracle.truffle.api.source.SourceSection#getSource()","anchor":"getSource()","kind":"method","name":"getSource","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"},{"kind":"punct","text":" "},{"kind":"name","text":"getSource"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Source","ref":"com.oracle.truffle.api.source.Source"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source object"}]}]},"doc":{"summary":[{"kind":"text","text":"Representation of the source program that contains this section."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Representation of the source program that contains this section."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":123}},{"id":"com.oracle.truffle.api.source.SourceSection#getStartLine()","anchor":"getStartLine()","kind":"method","name":"getStartLine","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getStartLine"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the starting line number"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns 1-based line number of the first character in this section (inclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns 1-based line number of the first character in this section (inclusive). Returns "},{"kind":"code","text":"1"},{"kind":"text","text":" for out of bounds or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"unavailable"}]},{"kind":"text","text":" source sections, or source sections not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasLines()"},"code":true,"children":[{"kind":"text","text":"having lines"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasLines()"},"code":true,"children":[{"kind":"text","text":"hasLines()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":136}},{"id":"com.oracle.truffle.api.source.SourceSection#getStartColumn()","anchor":"getStartColumn()","kind":"method","name":"getStartColumn","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getStartColumn"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the starting column number"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the 1-based column number of the first character in this section (inclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the 1-based column number of the first character in this section (inclusive). Returns "},{"kind":"code","text":"1"},{"kind":"text","text":" for out of bounds or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"unavailable"}]},{"kind":"text","text":" source sections, or source sections not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasColumns()"},"code":true,"children":[{"kind":"text","text":"having columns"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasColumns()"},"code":true,"children":[{"kind":"text","text":"hasColumns()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":147}},{"id":"com.oracle.truffle.api.source.SourceSection#getEndLine()","anchor":"getEndLine()","kind":"method","name":"getEndLine","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getEndLine"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the starting line number"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns 1-based line number of the last character in this section (inclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns 1-based line number of the last character in this section (inclusive). Returns "},{"kind":"code","text":"1"},{"kind":"text","text":" for out of bounds or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"unavailable"}]},{"kind":"text","text":" source sections, or source sections not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasLines()"},"code":true,"children":[{"kind":"text","text":"having lines"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasLines()"},"code":true,"children":[{"kind":"text","text":"hasLines()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":158}},{"id":"com.oracle.truffle.api.source.SourceSection#getEndColumn()","anchor":"getEndColumn()","kind":"method","name":"getEndColumn","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getEndColumn"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the starting column number"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the 1-based column number of the last character in this section (inclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the 1-based column number of the last character in this section (inclusive). Returns "},{"kind":"code","text":"1"},{"kind":"text","text":" for out of bounds or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"unavailable"}]},{"kind":"text","text":" source sections, or source sections not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasColumns()"},"code":true,"children":[{"kind":"text","text":"having columns"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasColumns()"},"code":true,"children":[{"kind":"text","text":"hasColumns()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":169}},{"id":"com.oracle.truffle.api.source.SourceSection#getCharIndex()","anchor":"getCharIndex()","kind":"method","name":"getCharIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getCharIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the starting character index"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the 0-based index of the first character in this section."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the 0-based index of the first character in this section. Returns "},{"kind":"code","text":"0"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"unavailable"}]},{"kind":"text","text":" source sections, or sections not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasCharIndex()"},"code":true,"children":[{"kind":"text","text":"having character index"}]},{"kind":"text","text":". The returned index might be out of bounds of the source code if assertions (-ea) are not enabled."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasCharIndex()"},"code":true,"children":[{"kind":"text","text":"hasCharIndex()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":181}},{"id":"com.oracle.truffle.api.source.SourceSection#getCharLength()","anchor":"getCharLength()","kind":"method","name":"getCharLength","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getCharLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of characters in the section"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the length of this section in characters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the length of this section in characters. Returns "},{"kind":"code","text":"0"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"unavailable"}]},{"kind":"text","text":" source sections, or sections not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasCharIndex()"},"code":true,"children":[{"kind":"text","text":"having character index"}]},{"kind":"text","text":". The returned length might be out of bounds of the source code if assertions (-ea) are not enabled."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasCharIndex()"},"code":true,"children":[{"kind":"text","text":"hasCharIndex()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":193}},{"id":"com.oracle.truffle.api.source.SourceSection#getCharEndIndex()","anchor":"getCharEndIndex()","kind":"method","name":"getCharEndIndex","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getCharEndIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the end position of the section"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the index of the text position immediately following the last character in the section."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the text position immediately following the last character in the section. Returns "},{"kind":"code","text":"0"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"unavailable"}]},{"kind":"text","text":" source sections, or sections not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasCharIndex()"},"code":true,"children":[{"kind":"text","text":"having character index"}]},{"kind":"text","text":". The returned index might be out of bounds of the source code if assertions (-ea) are not enabled."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#hasCharIndex()"},"code":true,"children":[{"kind":"text","text":"hasCharIndex()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":205}},{"id":"com.oracle.truffle.api.source.SourceSection#getCharacters()","anchor":"getCharacters()","kind":"method","name":"getCharacters","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getCharacters"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"CharSequence","ref":"java.lang.CharSequence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/CharSequence.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the code as a CharSequence"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the source code fragment described by this section."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the source code fragment described by this section. Returns an empty character sequence for out of bounds or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"unavailable"}]},{"kind":"text","text":" source sections, or sections whose source does not "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"have characters"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#hasCharacters()"},"code":true,"children":[{"kind":"text","text":"Source.hasCharacters()"}]}]]},"since":"0.28","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":216}},{"id":"com.oracle.truffle.api.source.SourceSection#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns an implementation-defined string representation of this source section to be used for debugging purposes only."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an implementation-defined string representation of this source section to be used for debugging purposes only."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#getCharacters()"},"code":true,"children":[{"kind":"text","text":"getCharacters()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":225}},{"id":"com.oracle.truffle.api.source.SourceSection#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":262}},{"id":"com.oracle.truffle.api.source.SourceSection#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":266}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Description of contiguous section of text within a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" of program code.; supports multiple modes of access to the text and its location."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Description of contiguous section of text within a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source"},"code":true,"children":[{"kind":"text","text":"Source"}]},{"kind":"text","text":" of program code.; supports multiple modes of access to the text and its location."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Two available source sections are considered equal if their sources, start and length are equal. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.source.SourceSection#isAvailable()"},"code":true,"children":[{"kind":"text","text":"Unavailable"}]},{"kind":"text","text":" source sections are compared by identity. Source sections can be used as keys in hash maps."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createSection(int)"},"code":true,"children":[{"kind":"text","text":"Source.createSection(int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createSection(int,int)"},"code":true,"children":[{"kind":"text","text":"Source.createSection(int, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createSection(int,int,int)"},"code":true,"children":[{"kind":"text","text":"Source.createSection(int, int, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createSection(int,int,int,int)"},"code":true,"children":[{"kind":"text","text":"Source.createSection(int, int, int, int)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.source.Source#createUnavailableSection()"},"code":true,"children":[{"kind":"text","text":"Source.createUnavailableSection()"}]}]]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/source/SourceSection.java","line":58}}]},{"id":"com.oracle.truffle.api.staticobject","name":"com.oracle.truffle.api.staticobject","doc":{"summary":[{"kind":"text","text":"Static Object Model APIs to represent the layout of objects that, once defined, do not change the number and the type of their properties."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Static Object Model APIs to represent the layout of objects that, once defined, do not change the number and the type of their properties. For more information, read the "},{"kind":"link","url":"https://www.graalvm.org/truffle/javadoc/com/oracle/truffle/api/staticobject/package-summary.html","children":[{"kind":"text","text":"Javadoc"}]},{"kind":"text","text":" and the "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/StaticObjectModel.md","children":[{"kind":"text","text":"tutorial"}]},{"kind":"text","text":"."}]}]},"since":"21.3.0","types":[{"id":"com.oracle.truffle.api.staticobject.DefaultStaticObjectFactory","name":"DefaultStaticObjectFactory","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"DefaultStaticObjectFactory"}],"members":[{"id":"com.oracle.truffle.api.staticobject.DefaultStaticObjectFactory#create()","anchor":"create()","kind":"method","name":"create","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static object instance"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a static object of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" that have a visible constructor that accepts no arguments."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a static object of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" that have a visible constructor that accepts no arguments."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/DefaultStaticObjectFactory.java","line":57}}],"doc":{"summary":[{"kind":"text","text":"A trivial static object factory that allocates static objects of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A trivial static object factory that allocates static objects of type "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build()"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/DefaultStaticObjectFactory.java","line":49}},{"id":"com.oracle.truffle.api.staticobject.DefaultStaticProperty","name":"DefaultStaticProperty","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"DefaultStaticProperty"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"StaticProperty","ref":"com.oracle.truffle.api.staticobject.StaticProperty"}],"superclass":[{"kind":"type","text":"StaticProperty","ref":"com.oracle.truffle.api.staticobject.StaticProperty"}],"ancestors":[{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.staticobject.DefaultStaticProperty#<init>(java.lang.String)","anchor":"<init>(java.lang.String)","kind":"constructor","name":"DefaultStaticProperty","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"DefaultStaticProperty"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"id"},{"kind":"punct","text":")"}],"params":[{"name":"id","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the id of the static property, which must be immutable and unique for a given shape."}]}]}],"doc":{"summary":[{"kind":"text","text":"Constructs a new DefaultStaticProperty."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructs a new DefaultStaticProperty."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/DefaultStaticProperty.java","line":60}},{"id":"com.oracle.truffle.api.staticobject.DefaultStaticProperty#getId()","anchor":"getId()","kind":"method","name":"getId","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getId"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static property identifier"}]}]},"overrides":{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()"},"doc":{"summary":[{"kind":"text","text":"StaticProperty instances must have a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" identifier that is unique and constant for that shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"StaticProperty instances must have a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" identifier that is unique and constant for that shape. Subtypes of StaticProperty must make sure that the value returned by this method is constant in time."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/DefaultStaticProperty.java","line":69}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.staticobject.StaticProperty","text":"StaticProperty"},"kind":"class","members":[{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeBoolean(java.lang.Object,boolean,boolean)","text":"compareAndExchangeBoolean"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeByte(java.lang.Object,byte,byte)","text":"compareAndExchangeByte"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeChar(java.lang.Object,char,char)","text":"compareAndExchangeChar"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeDouble(java.lang.Object,double,double)","text":"compareAndExchangeDouble"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeFloat(java.lang.Object,float,float)","text":"compareAndExchangeFloat"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeInt(java.lang.Object,int,int)","text":"compareAndExchangeInt"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeLong(java.lang.Object,long,long)","text":"compareAndExchangeLong"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeObject(java.lang.Object,java.lang.Object,java.lang.Object)","text":"compareAndExchangeObject"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeShort(java.lang.Object,short,short)","text":"compareAndExchangeShort"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapBoolean(java.lang.Object,boolean,boolean)","text":"compareAndSwapBoolean"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapByte(java.lang.Object,byte,byte)","text":"compareAndSwapByte"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapChar(java.lang.Object,char,char)","text":"compareAndSwapChar"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapDouble(java.lang.Object,double,double)","text":"compareAndSwapDouble"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapFloat(java.lang.Object,float,float)","text":"compareAndSwapFloat"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapInt(java.lang.Object,int,int)","text":"compareAndSwapInt"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapLong(java.lang.Object,long,long)","text":"compareAndSwapLong"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapObject(java.lang.Object,java.lang.Object,java.lang.Object)","text":"compareAndSwapObject"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapShort(java.lang.Object,short,short)","text":"compareAndSwapShort"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndAddInt(java.lang.Object,int)","text":"getAndAddInt"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndAddLong(java.lang.Object,long)","text":"getAndAddLong"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndSetInt(java.lang.Object,int)","text":"getAndSetInt"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndSetLong(java.lang.Object,long)","text":"getAndSetLong"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndSetObject(java.lang.Object,java.lang.Object)","text":"getAndSetObject"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getBoolean(java.lang.Object)","text":"getBoolean"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getBooleanVolatile(java.lang.Object)","text":"getBooleanVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getByte(java.lang.Object)","text":"getByte"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getByteVolatile(java.lang.Object)","text":"getByteVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getChar(java.lang.Object)","text":"getChar"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getCharVolatile(java.lang.Object)","text":"getCharVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getDouble(java.lang.Object)","text":"getDouble"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getDoubleVolatile(java.lang.Object)","text":"getDoubleVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getFloat(java.lang.Object)","text":"getFloat"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getFloatVolatile(java.lang.Object)","text":"getFloatVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getInt(java.lang.Object)","text":"getInt"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getIntVolatile(java.lang.Object)","text":"getIntVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getLong(java.lang.Object)","text":"getLong"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getLongVolatile(java.lang.Object)","text":"getLongVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getObject(java.lang.Object)","text":"getObject"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getObjectVolatile(java.lang.Object)","text":"getObjectVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getShort(java.lang.Object)","text":"getShort"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getShortVolatile(java.lang.Object)","text":"getShortVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setBoolean(java.lang.Object,boolean)","text":"setBoolean"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setBooleanVolatile(java.lang.Object,boolean)","text":"setBooleanVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setByte(java.lang.Object,byte)","text":"setByte"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setByteVolatile(java.lang.Object,byte)","text":"setByteVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setChar(java.lang.Object,char)","text":"setChar"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setCharVolatile(java.lang.Object,char)","text":"setCharVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setDouble(java.lang.Object,double)","text":"setDouble"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setDoubleVolatile(java.lang.Object,double)","text":"setDoubleVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setFloat(java.lang.Object,float)","text":"setFloat"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setFloatVolatile(java.lang.Object,float)","text":"setFloatVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setInt(java.lang.Object,int)","text":"setInt"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setIntVolatile(java.lang.Object,int)","text":"setIntVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setLong(java.lang.Object,long)","text":"setLong"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setLongVolatile(java.lang.Object,long)","text":"setLongVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setObject(java.lang.Object,java.lang.Object)","text":"setObject"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setObjectVolatile(java.lang.Object,java.lang.Object)","text":"setObjectVolatile"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setShort(java.lang.Object,short)","text":"setShort"},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setShortVolatile(java.lang.Object,short)","text":"setShortVolatile"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A trivial default implementation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A trivial default implementation of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/DefaultStaticProperty.java","line":49}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty","name":"StaticProperty","kind":"class","language":"java","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StaticProperty"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.staticobject.StaticProperty#<init>()","anchor":"<init>()","kind":"constructor","name":"StaticProperty","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"name","text":"StaticProperty"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Constructor for subclasses."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Constructor for subclasses."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":96}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()","anchor":"getId()","kind":"method","name":"getId","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getId"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static property identifier"}]}]},"doc":{"summary":[{"kind":"text","text":"StaticProperty instances must have a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" identifier that is unique and constant for that shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"StaticProperty instances must have a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" identifier that is unique and constant for that shape. Subtypes of StaticProperty must make sure that the value returned by this method is constant in time."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":112}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getObject(java.lang.Object)","anchor":"getObject(java.lang.Object)","kind":"method","name":"getObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is primitive, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":181}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getObjectVolatile(java.lang.Object)","anchor":"getObjectVolatile(java.lang.Object)","kind":"method","name":"getObjectVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getObjectVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is primitive, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":197}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setObject(java.lang.Object,java.lang.Object)","anchor":"setObject(java.lang.Object,java.lang.Object)","kind":"method","name":"setObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not assignable from "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"the type of value"}]},{"kind":"text","text":", or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":214}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setObjectVolatile(java.lang.Object,java.lang.Object)","anchor":"setObjectVolatile(java.lang.Object,java.lang.Object)","kind":"method","name":"setObjectVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setObjectVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not assignable from "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"the type of value"}]},{"kind":"text","text":", or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":231}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapObject(java.lang.Object,java.lang.Object,java.lang.Object)","anchor":"compareAndSwapObject(java.lang.Object,java.lang.Object,java.lang.Object)","kind":"method","name":"compareAndSwapObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSwapObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if successful. False return indicates that the actual value was not equal to the expected value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not assignable from "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"the type of value"}]},{"kind":"text","text":", or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":251}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndSetObject(java.lang.Object,java.lang.Object)","anchor":"getAndSetObject(java.lang.Object,java.lang.Object)","kind":"method","name":"getAndSetObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndSetObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous value"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not assignable from "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"the type of value"}]},{"kind":"text","text":", or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object to the given value and returns the old value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object to the given value and returns the old value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":268}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeObject(java.lang.Object,java.lang.Object,java.lang.Object)","anchor":"compareAndExchangeObject(java.lang.Object,java.lang.Object,java.lang.Object)","kind":"method","name":"compareAndExchangeObject","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeObject"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the witness value, which will be the same as the expected value if successful"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not assignable from "},{"kind":"link","target":{"id":"java.lang.Object#getClass()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},"code":true,"children":[{"kind":"text","text":"the type of value"}]},{"kind":"text","text":", or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":" witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":" value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":" witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":287}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getBoolean(java.lang.Object)","anchor":"getBoolean(java.lang.Object)","kind":"method","name":"getBoolean","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"getBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the boolean class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the boolean value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the boolean value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":304}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getBooleanVolatile(java.lang.Object)","anchor":"getBooleanVolatile(java.lang.Object)","kind":"method","name":"getBooleanVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"getBooleanVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the boolean class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the boolean value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the boolean value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":320}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setBoolean(java.lang.Object,boolean)","anchor":"setBoolean(java.lang.Object,boolean)","kind":"method","name":"setBoolean","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the boolean class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the boolean value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the boolean value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":336}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setBooleanVolatile(java.lang.Object,boolean)","anchor":"setBooleanVolatile(java.lang.Object,boolean)","kind":"method","name":"setBooleanVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setBooleanVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the boolean class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the boolean value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the boolean value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":352}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapBoolean(java.lang.Object,boolean,boolean)","anchor":"compareAndSwapBoolean(java.lang.Object,boolean,boolean)","kind":"method","name":"compareAndSwapBoolean","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSwapBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if successful. False return indicates that the actual value was not equal to the expected value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the boolean class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the boolean value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the boolean value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":371}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeBoolean(java.lang.Object,boolean,boolean)","anchor":"compareAndExchangeBoolean(java.lang.Object,boolean,boolean)","kind":"method","name":"compareAndExchangeBoolean","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeBoolean"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the witness value, which will be the same as the expected value if successful"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the boolean class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the boolean value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the boolean value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":389}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getByte(java.lang.Object)","anchor":"getByte(java.lang.Object)","kind":"method","name":"getByte","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the byte class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the byte value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the byte value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":406}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getByteVolatile(java.lang.Object)","anchor":"getByteVolatile(java.lang.Object)","kind":"method","name":"getByteVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"getByteVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the byte class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the byte value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the byte value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":422}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setByte(java.lang.Object,byte)","anchor":"setByte(java.lang.Object,byte)","kind":"method","name":"setByte","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the byte class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the byte value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the byte value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":438}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setByteVolatile(java.lang.Object,byte)","anchor":"setByteVolatile(java.lang.Object,byte)","kind":"method","name":"setByteVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setByteVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the byte class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the byte value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the byte value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":454}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapByte(java.lang.Object,byte,byte)","anchor":"compareAndSwapByte(java.lang.Object,byte,byte)","kind":"method","name":"compareAndSwapByte","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSwapByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if successful. False return indicates that the actual value was not equal to the expected value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the byte class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the byte value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the byte value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":472}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeByte(java.lang.Object,byte,byte)","anchor":"compareAndExchangeByte(java.lang.Object,byte,byte)","kind":"method","name":"compareAndExchangeByte","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeByte"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the witness value, which will be the same as the expected value if successful"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the byte class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the byte value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the byte value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":490}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getChar(java.lang.Object)","anchor":"getChar(java.lang.Object)","kind":"method","name":"getChar","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"getChar"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"char"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the char class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the char value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the char value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":507}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getCharVolatile(java.lang.Object)","anchor":"getCharVolatile(java.lang.Object)","kind":"method","name":"getCharVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"getCharVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"char"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the char class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the char value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the char value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":523}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setChar(java.lang.Object,char)","anchor":"setChar(java.lang.Object,char)","kind":"method","name":"setChar","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setChar"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"char"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the char class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the char value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the char value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":539}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setCharVolatile(java.lang.Object,char)","anchor":"setCharVolatile(java.lang.Object,char)","kind":"method","name":"setCharVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setCharVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"char"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the char class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the char value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the char value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":555}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapChar(java.lang.Object,char,char)","anchor":"compareAndSwapChar(java.lang.Object,char,char)","kind":"method","name":"compareAndSwapChar","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSwapChar"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"char"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"char"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if successful. False return indicates that the actual value was not equal to the expected value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the char class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the char value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the char value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":573}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeChar(java.lang.Object,char,char)","anchor":"compareAndExchangeChar(java.lang.Object,char,char)","kind":"method","name":"compareAndExchangeChar","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeChar"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"char"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"char"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"char"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the witness value, which will be the same as the expected value if successful"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the char class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the char value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":" witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the char value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":" witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":591}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getDouble(java.lang.Object)","anchor":"getDouble(java.lang.Object)","kind":"method","name":"getDouble","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the double class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the double value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the double value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":608}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getDoubleVolatile(java.lang.Object)","anchor":"getDoubleVolatile(java.lang.Object)","kind":"method","name":"getDoubleVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"getDoubleVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the double class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the double value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the double value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":624}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setDouble(java.lang.Object,double)","anchor":"setDouble(java.lang.Object,double)","kind":"method","name":"setDouble","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the double class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the double value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the double value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":640}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setDoubleVolatile(java.lang.Object,double)","anchor":"setDoubleVolatile(java.lang.Object,double)","kind":"method","name":"setDoubleVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setDoubleVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the double class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the double value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the double value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":656}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapDouble(java.lang.Object,double,double)","anchor":"compareAndSwapDouble(java.lang.Object,double,double)","kind":"method","name":"compareAndSwapDouble","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSwapDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if successful. False return indicates that the actual value was not equal to the expected value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the double class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the double value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the double value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":675}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeDouble(java.lang.Object,double,double)","anchor":"compareAndExchangeDouble(java.lang.Object,double,double)","kind":"method","name":"compareAndExchangeDouble","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeDouble"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the witness value, which will be the same as the expected value if successful"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the double class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the double value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the double value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":693}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getFloat(java.lang.Object)","anchor":"getFloat(java.lang.Object)","kind":"method","name":"getFloat","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the float class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the float value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the float value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":710}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getFloatVolatile(java.lang.Object)","anchor":"getFloatVolatile(java.lang.Object)","kind":"method","name":"getFloatVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"getFloatVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the float class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the float value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the float value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":726}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setFloat(java.lang.Object,float)","anchor":"setFloat(java.lang.Object,float)","kind":"method","name":"setFloat","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the float class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the float value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the float value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":742}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setFloatVolatile(java.lang.Object,float)","anchor":"setFloatVolatile(java.lang.Object,float)","kind":"method","name":"setFloatVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setFloatVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the float class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the float value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the float value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":758}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapFloat(java.lang.Object,float,float)","anchor":"compareAndSwapFloat(java.lang.Object,float,float)","kind":"method","name":"compareAndSwapFloat","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSwapFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if successful. False return indicates that the actual value was not equal to the expected value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the float class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the float value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the float value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":777}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeFloat(java.lang.Object,float,float)","anchor":"compareAndExchangeFloat(java.lang.Object,float,float)","kind":"method","name":"compareAndExchangeFloat","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeFloat"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"float"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"float"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the witness value, which will be the same as the expected value if successful"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the float class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the float value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the float value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":795}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getInt(java.lang.Object)","anchor":"getInt(java.lang.Object)","kind":"method","name":"getInt","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the int class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the int value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the int value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":812}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getIntVolatile(java.lang.Object)","anchor":"getIntVolatile(java.lang.Object)","kind":"method","name":"getIntVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getIntVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the int class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the int value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the int value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":828}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setInt(java.lang.Object,int)","anchor":"setInt(java.lang.Object,int)","kind":"method","name":"setInt","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the int class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the int value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the int value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":844}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setIntVolatile(java.lang.Object,int)","anchor":"setIntVolatile(java.lang.Object,int)","kind":"method","name":"setIntVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setIntVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the int class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the int value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the int value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":860}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapInt(java.lang.Object,int,int)","anchor":"compareAndSwapInt(java.lang.Object,int,int)","kind":"method","name":"compareAndSwapInt","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSwapInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if successful. False return indicates that the actual value was not equal to the expected value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the int class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the int value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the int value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":878}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeInt(java.lang.Object,int,int)","anchor":"compareAndExchangeInt(java.lang.Object,int,int)","kind":"method","name":"compareAndExchangeInt","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the witness value, which will be the same as the expected value if successful"}]}]},"doc":{"summary":[{"kind":"text","text":"Atomically sets the int value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the int value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":894}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndAddInt(java.lang.Object,int)","anchor":"getAndAddInt(java.lang.Object,int)","kind":"method","name":"getAndAddInt","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndAddInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"delta"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"delta","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to add"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous value"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the int class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically adds the given value to the current int value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically adds the given value to the current int value represented by this StaticProperty and stored in the specified static object."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":910}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndSetInt(java.lang.Object,int)","anchor":"getAndSetInt(java.lang.Object,int)","kind":"method","name":"getAndSetInt","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndSetInt"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous value"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the int class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the int value represented by this StaticProperty and stored in the specified static object to the given value and returns the old value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the int value represented by this StaticProperty and stored in the specified static object to the given value and returns the old value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":926}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getLong(java.lang.Object)","anchor":"getLong(java.lang.Object)","kind":"method","name":"getLong","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the long class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the long value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the long value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":943}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getLongVolatile(java.lang.Object)","anchor":"getLongVolatile(java.lang.Object)","kind":"method","name":"getLongVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getLongVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the long class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the long value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the long value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":959}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setLong(java.lang.Object,long)","anchor":"setLong(java.lang.Object,long)","kind":"method","name":"setLong","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the long class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the long value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the long value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":975}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setLongVolatile(java.lang.Object,long)","anchor":"setLongVolatile(java.lang.Object,long)","kind":"method","name":"setLongVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setLongVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the long class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the long value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the long value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":991}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapLong(java.lang.Object,long,long)","anchor":"compareAndSwapLong(java.lang.Object,long,long)","kind":"method","name":"compareAndSwapLong","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSwapLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if successful. False return indicates that the actual value was not equal to the expected value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the long class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the long value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the long value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1009}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeLong(java.lang.Object,long,long)","anchor":"compareAndExchangeLong(java.lang.Object,long,long)","kind":"method","name":"compareAndExchangeLong","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the witness value, which will be the same as the expected value if successful"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the long class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the long value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the long value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1027}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndAddLong(java.lang.Object,long)","anchor":"getAndAddLong(java.lang.Object,long)","kind":"method","name":"getAndAddLong","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndAddLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"delta"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"delta","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to add"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous value"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the long class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically adds the given value to the current long value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically adds the given value to the current long value represented by this StaticProperty and stored in the specified static object."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1043}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getAndSetLong(java.lang.Object,long)","anchor":"getAndSetLong(java.lang.Object,long)","kind":"method","name":"getAndSetLong","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"getAndSetLong"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"long"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the previous value"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the long class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the long value represented by this StaticProperty and stored in the specified static object to the given value and returns the old value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the long value represented by this StaticProperty and stored in the specified static object to the given value and returns the old value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1059}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getShort(java.lang.Object)","anchor":"getShort(java.lang.Object)","kind":"method","name":"getShort","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getShort"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the short class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the short value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the short value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1076}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getShortVolatile(java.lang.Object)","anchor":"getShortVolatile(java.lang.Object)","kind":"method","name":"getShortVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"getShortVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the static property stored in static object obj"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the short class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the short value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the short value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of reading as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1092}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setShort(java.lang.Object,short)","anchor":"setShort(java.lang.Object,short)","kind":"method","name":"setShort","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setShort"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the short class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the short value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the short value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared non-volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1108}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#setShortVolatile(java.lang.Object,short)","anchor":"setShortVolatile(java.lang.Object,short)","kind":"method","name":"setShortVolatile","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"setShortVolatile"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"value","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new static property value, to be stored in static object obj"}]}]}],"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the short class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Sets the short value represented by this StaticProperty and stored in the specified static object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the short value represented by this StaticProperty and stored in the specified static object. This property access has the memory semantics of setting as if the variable was declared volatile."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1124}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndSwapShort(java.lang.Object,short,short)","anchor":"compareAndSwapShort(java.lang.Object,short,short)","kind":"method","name":"compareAndSwapShort","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndSwapShort"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if successful. False return indicates that the actual value was not equal to the expected value."}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the short class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the short value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the short value represented by this StaticProperty and stored in the specified static object to the given updated value if the current value "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1143}},{"id":"com.oracle.truffle.api.staticobject.StaticProperty#compareAndExchangeShort(java.lang.Object,short,short)","anchor":"compareAndExchangeShort(java.lang.Object,short,short)","kind":"method","name":"compareAndExchangeShort","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"name","text":"compareAndExchangeShort"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"expect"},{"kind":"punct","text":", "},{"kind":"keyword","text":"short"},{"kind":"punct","text":" "},{"kind":"param","text":"update"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the static object that stores the static property value"}]}]},{"name":"expect","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the expected value"}]}]},{"name":"update","type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new value"}]}]}],"returns":{"type":[{"kind":"keyword","text":"short"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the witness value, which will be the same as the expected value if successful"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the static property type is not the short class, or obj does not have a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" compatible with this static property"}]}]}],"doc":{"summary":[{"kind":"text","text":"Atomically sets the short value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Atomically sets the short value represented by this StaticProperty and stored in the specified static object to "},{"kind":"code","text":"newValue"},{"kind":"text","text":" if the current value, referred to as the "},{"kind":"emphasis","children":[{"kind":"text","text":"witness value"}]},{"kind":"text","text":", "},{"kind":"code","text":"=="},{"kind":"text","text":" the expected value."}]}]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":1161}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"StaticProperty objects represent the mapping between "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()"},"children":[{"kind":"text","text":"property identifiers"}]},{"kind":"text","text":" and storage locations within static objects."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"StaticProperty objects represent the mapping between "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()"},"children":[{"kind":"text","text":"property identifiers"}]},{"kind":"text","text":" and storage locations within static objects."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Users of the Static Object Model can define custom subtypes of StaticProperty or use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticProperty"},"code":true,"children":[{"kind":"text","text":"DefaultStaticProperty"}]},{"kind":"text","text":", a trivial default implementation. In both cases, static properties must be registered to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder"}]},{"kind":"text","text":" using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#property(com.oracle.truffle.api.staticobject.StaticProperty,java.lang.Class,boolean)"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.property(StaticProperty, Class, boolean)"}]},{"kind":"text","text":". Then, after allocating a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" instance with one of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build()"}]},{"kind":"text","text":" methods and allocating a static object using the factory class provided by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#getFactory()"},"code":true,"children":[{"kind":"text","text":"StaticShape.getFactory()"}]},{"kind":"text","text":", users can call the accessor methods defined in StaticProperty to get and set property values stored in a static object instance."}]},{"kind":"paragraph","children":[{"kind":"text","text":"A StaticProperty instance can be added to only one "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder"}]},{"kind":"text","text":". StaticProperty instances registered to the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder"}]},{"kind":"text","text":" must have "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()"},"children":[{"kind":"text","text":"a unique id"}]},{"kind":"text","text":" for that builder."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticProperty"},"code":true,"children":[{"kind":"text","text":"DefaultStaticProperty"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticProperty.java","line":77}},{"id":"com.oracle.truffle.api.staticobject.StaticShape","name":"StaticShape","kind":"class","language":"java","modifiers":["public","abstract"],"typeParams":[{"name":"T","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"children":[{"kind":"text","text":"default"}]},{"kind":"text","text":" or the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(java.lang.Class,java.lang.Class)"},"children":[{"kind":"text","text":"user-defined"}]},{"kind":"text","text":" factory interface to allocate static objects"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StaticShape"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.staticobject.StaticShape#newBuilder(com.oracle.truffle.api.TruffleLanguage)","anchor":"newBuilder(com.oracle.truffle.api.TruffleLanguage)","kind":"method","name":"newBuilder","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"StaticShape.Builder","ref":"com.oracle.truffle.api.staticobject.StaticShape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"language"},{"kind":"punct","text":")"}],"params":[{"name":"language","type":[{"kind":"type","text":"TruffleLanguage","ref":"com.oracle.truffle.api.TruffleLanguage"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an instance of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.TruffleLanguage"},"code":true,"children":[{"kind":"text","text":"TruffleLanguage"}]},{"kind":"text","text":" that uses the Static Object Model"}]}]}],"returns":{"type":[{"kind":"type","text":"StaticShape.Builder","ref":"com.oracle.truffle.api.staticobject.StaticShape$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new static shape builder"}]}]},"throws":[{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if language is null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new static shape builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new static shape builder. The builder instance is not thread-safe and must not be used from multiple threads at the same time. Users of the Static Object Model are expected to define custom subtypes of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":" or use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticProperty"},"code":true,"children":[{"kind":"text","text":"DefaultStaticProperty"}]},{"kind":"text","text":", a trivial default implementation. In both cases, static properties must be registered to a static shape builder using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#property(com.oracle.truffle.api.staticobject.StaticProperty,java.lang.Class,boolean)"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.property(StaticProperty, Class, boolean)"}]},{"kind":"text","text":". Then, after allocating a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" instance with one of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build()"}]},{"kind":"text","text":" methods and allocating a static object using the factory class provided by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#getFactory()"},"code":true,"children":[{"kind":"text","text":"StaticShape.getFactory()"}]},{"kind":"text","text":", users can call the accessor methods defined in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":" to get and set property values stored in a static object instance."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticProperty"},"code":true,"children":[{"kind":"text","text":"DefaultStaticProperty"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticObjectFactory"},"code":true,"children":[{"kind":"text","text":"DefaultStaticObjectFactory"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticShape.java","line":135}},{"id":"com.oracle.truffle.api.staticobject.StaticShape#getFactory()","anchor":"getFactory()","kind":"method","name":"getFactory","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"getFactory"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Returns an instance of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"children":[{"kind":"text","text":"default"}]},{"kind":"text","text":" or the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(java.lang.Class,java.lang.Class)"},"children":[{"kind":"text","text":"user-defined"}]},{"kind":"text","text":" factory interface that must be used to allocate static objects with the current shape."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an instance of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"children":[{"kind":"text","text":"default"}]},{"kind":"text","text":" or the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(java.lang.Class,java.lang.Class)"},"children":[{"kind":"text","text":"user-defined"}]},{"kind":"text","text":" factory interface that must be used to allocate static objects with the current shape."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(com.oracle.truffle.api.staticobject.StaticShape)"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build(StaticShape)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(java.lang.Class,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build(Class, Class)"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticShape.java","line":155}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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. Here is an overview:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#newBuilder(com.oracle.truffle.api.TruffleLanguage)"},"code":true,"children":[{"kind":"text","text":"StaticShape.newBuilder(TruffleLanguage)"}]},{"kind":"text","text":" returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder"}]},{"kind":"text","text":" object that can be used to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#property(com.oracle.truffle.api.staticobject.StaticProperty,java.lang.Class,boolean)"},"children":[{"kind":"text","text":"register"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"children":[{"kind":"text","text":"static properties"}]},{"kind":"text","text":" and to generate a new static shape by calling one of its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"children":[{"kind":"text","text":"build methods"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#getFactory()"},"code":true,"children":[{"kind":"text","text":"StaticShape.getFactory()"}]},{"kind":"text","text":" returns an implementation of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"children":[{"kind":"text","text":"default"}]},{"kind":"text","text":" or the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(java.lang.Class,java.lang.Class)"},"children":[{"kind":"text","text":"user-defined"}]},{"kind":"text","text":" factory interface that must be used to allocate static objects with the current shape."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Property values stored in a static object of a given shape can be accessed by the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":" instances registered to the builder that generated that shape or one of its "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(com.oracle.truffle.api.staticobject.StaticShape)"},"children":[{"kind":"text","text":"parent shapes"}]},{"kind":"text","text":". Note that static shapes do not store the list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"children":[{"kind":"text","text":"static properties"}]},{"kind":"text","text":" associated to them. It is up to the user to store this information when required, for example in a class that contains references to the static shape and the list of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"children":[{"kind":"text","text":"static properties"}]},{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"StaticShape cannot be subclassed by custom implementations and, when required, it allows "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"children":[{"kind":"text","text":"static properties"}]},{"kind":"text","text":" to check that the receiver object matches the expected shape."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#newBuilder(com.oracle.truffle.api.TruffleLanguage)"},"code":true,"children":[{"kind":"text","text":"StaticShape.newBuilder(TruffleLanguage)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticProperty"},"code":true,"children":[{"kind":"text","text":"DefaultStaticProperty"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticObjectFactory"},"code":true,"children":[{"kind":"text","text":"DefaultStaticObjectFactory"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticShape.java","line":94}},{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder","name":"StaticShape.Builder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"StaticShape.Builder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.staticobject.StaticShape","members":[{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#property(com.oracle.truffle.api.staticobject.StaticProperty,java.lang.Class,boolean)","anchor":"property(com.oracle.truffle.api.staticobject.StaticProperty,java.lang.Class,boolean)","kind":"method","name":"property","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StaticShape.Builder","ref":"com.oracle.truffle.api.staticobject.StaticShape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"property"},{"kind":"punct","text":"("},{"kind":"type","text":"StaticProperty","ref":"com.oracle.truffle.api.staticobject.StaticProperty"},{"kind":"punct","text":" "},{"kind":"param","text":"property"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"type"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"storeAsFinal"},{"kind":"punct","text":")"}],"params":[{"name":"property","type":[{"kind":"type","text":"StaticProperty","ref":"com.oracle.truffle.api.staticobject.StaticProperty"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":" to be added"}]}]},{"name":"type","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the type of the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":" to be added."}]}]},{"name":"storeAsFinal","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this property value can be stored in a final field"}]}]}],"returns":{"type":[{"kind":"type","text":"StaticShape.Builder","ref":"com.oracle.truffle.api.staticobject.StaticShape$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Builder instance"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if more than 65535 properties are added, or if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()"},"children":[{"kind":"text","text":"property id"}]},{"kind":"text","text":" is an empty string or it is equal to the id of another static property already registered to this builder."}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this method is invoked after building a static shape"}]}]},{"type":[{"kind":"type","text":"NullPointerException","ref":"java.lang.NullPointerException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()"},"children":[{"kind":"text","text":"property id"}]},{"kind":"text","text":" is null"}]}]}],"doc":{"summary":[{"kind":"text","text":"Adds a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":" to the static shape to be constructed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Adds a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":" to the static shape to be constructed. The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()"},"children":[{"kind":"text","text":"property id"}]},{"kind":"text","text":" cannot be null or an empty String. It is not allowed to add two "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"children":[{"kind":"text","text":"properties"}]},{"kind":"text","text":" with the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()"},"children":[{"kind":"text","text":"id"}]},{"kind":"text","text":" to the same builder, or to add the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"children":[{"kind":"text","text":"property"}]},{"kind":"text","text":" to more than one builder. Static shapes that "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(com.oracle.truffle.api.staticobject.StaticShape)"},"children":[{"kind":"text","text":"extend a parent shape"}]},{"kind":"text","text":" can have "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"children":[{"kind":"text","text":"properties"}]},{"kind":"text","text":" with the same "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty#getId()"},"children":[{"kind":"text","text":"id"}]},{"kind":"text","text":" of those in the parent shape. Only property accesses that match the specified type are allowed. Property values can be optionally stored in a final field. Accesses to such values might be specially optimized by the compiler. For example, reads might be constant-folded. It is up to the user to enforce that property values stored as final are not assigned more than once."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticProperty"},"code":true,"children":[{"kind":"text","text":"DefaultStaticProperty"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticShape.java","line":259}},{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#safetyChecks(boolean)","anchor":"safetyChecks(boolean)","kind":"method","name":"safetyChecks","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StaticShape.Builder","ref":"com.oracle.truffle.api.staticobject.StaticShape$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"safetyChecks"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"enabled"},{"kind":"punct","text":")"}],"params":[{"name":"enabled","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" to enable safety checks, or "},{"kind":"code","text":"false"},{"kind":"text","text":" to disable them"}]}]}],"returns":{"type":[{"kind":"type","text":"StaticShape.Builder","ref":"com.oracle.truffle.api.staticobject.StaticShape$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the Builder instance"}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if this method is invoked after building a static shape"}]}]}],"doc":{"summary":[{"kind":"text","text":"Configures whether "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":" accesses to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" built by this builder perform safety checks."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Configures whether "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"code":true,"children":[{"kind":"text","text":"StaticProperty"}]},{"kind":"text","text":" accesses to the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" built by this builder perform safety checks."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Disable safety checks only when every access to a property of this shape is guaranteed to use a receiver with a compatible shape. This can be established by static analysis or by equivalent checks in the language implementation. Otherwise, accesses may operate on incompatible storage and cause memory corruption. Before disabling safety checks, a detailed security review should verify that this invariant is maintained."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If this method is not called, the static shape uses the engine-level "},{"kind":"code","text":"engine.RelaxStaticObjectSafetyChecks"},{"kind":"text","text":" option. The engine-level "},{"kind":"code","text":"engine.ForceStaticObjectSafetyChecks"},{"kind":"text","text":" option takes precedence over this builder configuration and always enables safety checks."}]}]},"since":"25.3","source":{"path":"com/oracle/truffle/api/staticobject/StaticShape.java","line":290}},{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"StaticShape","ref":"com.oracle.truffle.api.staticobject.StaticShape"},{"kind":"punct","text":"<"},{"kind":"type","text":"DefaultStaticObjectFactory","ref":"com.oracle.truffle.api.staticobject.DefaultStaticObjectFactory"},{"kind":"punct","text":"> "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"StaticShape","ref":"com.oracle.truffle.api.staticobject.StaticShape"},{"kind":"punct","text":"<"},{"kind":"type","text":"DefaultStaticObjectFactory","ref":"com.oracle.truffle.api.staticobject.DefaultStaticObjectFactory"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if a static property was added to more than one builder or multiple times to the same builder, if this method is invoked more than once, or if one of the static property types is not visible to the class loader that loaded the default factory interface."}]}]}],"doc":{"summary":[{"kind":"text","text":"Builds a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"children":[{"kind":"text","text":"static shape"}]},{"kind":"text","text":" using the configuration of this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"children":[{"kind":"text","text":"static shape"}]},{"kind":"text","text":" using the configuration of this builder. The factory class returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#getFactory()"},"code":true,"children":[{"kind":"text","text":"StaticShape.getFactory()"}]},{"kind":"text","text":" implements "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticObjectFactory"},"code":true,"children":[{"kind":"text","text":"DefaultStaticObjectFactory"}]},{"kind":"text","text":" and static objects extend "},{"kind":"link","target":{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"code":true,"children":[{"kind":"text","text":"Object"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.DefaultStaticObjectFactory"},"code":true,"children":[{"kind":"text","text":"DefaultStaticObjectFactory"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(com.oracle.truffle.api.staticobject.StaticShape)"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build(StaticShape)"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(java.lang.Class,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build(Class, Class)"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticShape.java","line":312}},{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(com.oracle.truffle.api.staticobject.StaticShape)","anchor":"build(com.oracle.truffle.api.staticobject.StaticShape)","kind":"method","name":"build","modifiers":["public"],"typeParams":[{"name":"T","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the generic type of the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"children":[{"kind":"text","text":"shape"}]}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"StaticShape","ref":"com.oracle.truffle.api.staticobject.StaticShape"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"build"},{"kind":"punct","text":"("},{"kind":"type","text":"StaticShape","ref":"com.oracle.truffle.api.staticobject.StaticShape"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"parentShape"},{"kind":"punct","text":")"}],"params":[{"name":"parentShape","type":[{"kind":"type","text":"StaticShape","ref":"com.oracle.truffle.api.staticobject.StaticShape"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"children":[{"kind":"text","text":"shape"}]}]}]}],"returns":{"type":[{"kind":"type","text":"StaticShape","ref":"com.oracle.truffle.api.staticobject.StaticShape"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if a static property was added to more than one builder or multiple times to the same builder, if this method is invoked more than once, or if one of the static property types is not visible to the class loader that loaded the default factory interface."}]}]}],"doc":{"summary":[{"kind":"text","text":"Builds a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"children":[{"kind":"text","text":"static shape"}]},{"kind":"text","text":" that extends the provided parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"children":[{"kind":"text","text":"static shape"}]},{"kind":"text","text":" that extends the provided parent "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticProperty"},"children":[{"kind":"text","text":"Static properties"}]},{"kind":"text","text":" of the parent shape can be used to access field values of static objects with the child shape. The factory class returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#getFactory()"},"code":true,"children":[{"kind":"text","text":"StaticShape.getFactory()"}]},{"kind":"text","text":" extends the one of the parent shape and static objects extend the static object class allocated by the factory class of the parent shape."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(java.lang.Class,java.lang.Class)"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build(Class, Class)"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticShape.java","line":335}},{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(java.lang.Class,java.lang.Class)","anchor":"build(java.lang.Class,java.lang.Class)","kind":"method","name":"build","modifiers":["public"],"typeParams":[{"name":"T","doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class of the factory interface"}]}]}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" <"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"type","text":"StaticShape","ref":"com.oracle.truffle.api.staticobject.StaticShape"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"name","text":"build"},{"kind":"punct","text":"("},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?> "},{"kind":"param","text":"superClass"},{"kind":"punct","text":", "},{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"factoryInterface"},{"kind":"punct","text":")"}],"params":[{"name":"superClass","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<?>"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the class that static objects must extend"}]}]},{"name":"factoryInterface","type":[{"kind":"type","text":"Class","ref":"java.lang.Class","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Class.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the factory interface that the factory class returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#getFactory()"},"code":true,"children":[{"kind":"text","text":"StaticShape.getFactory()"}]},{"kind":"text","text":" must implement"}]}]}],"returns":{"type":[{"kind":"type","text":"StaticShape","ref":"com.oracle.truffle.api.staticobject.StaticShape"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]}]}]},"throws":[{"type":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if factoryInterface is not an interface, if the arguments of a method in factoryInterface do not match those of a visible constructor in superClass, if the return type of a method in factoryInterface is not assignable from superClass, if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" is not visible to the class loader of factoryInterface, if superClass has abstract methods or if superClass is "},{"kind":"link","target":{"id":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"},"code":true,"children":[{"kind":"text","text":"Cloneable"}]},{"kind":"text","text":" and overrides "},{"kind":"link","target":{"id":"java.lang.Object#clone()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},"code":true,"children":[{"kind":"text","text":"Object.clone()"}]},{"kind":"text","text":" with a final method"}]}]},{"type":[{"kind":"type","text":"IllegalStateException","ref":"java.lang.IllegalStateException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalStateException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if a static property was added to more than one builder or multiple times to the same builder, if this method is invoked more than once, or if one of the static property types is not visible to the class loader that loaded the factory interface."}]}]}],"doc":{"summary":[{"kind":"text","text":"Builds a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"children":[{"kind":"text","text":"static shape"}]},{"kind":"text","text":" using the configuration of this builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builds a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"children":[{"kind":"text","text":"static shape"}]},{"kind":"text","text":" using the configuration of this builder. The factory class returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#getFactory()"},"code":true,"children":[{"kind":"text","text":"StaticShape.getFactory()"}]},{"kind":"text","text":" implements factoryInterface and static objects extend superClass."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The following constraints are enforced:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"factoryInterface must be an interface"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"the arguments of every method in factoryInterface must match those of a visible constructor of superClass"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"the return type of every method in factoryInterface must be assignable from the superClass"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"superClass does not have abstract methods"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"if superClass is "},{"kind":"link","target":{"id":"java.lang.Cloneable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html"},"code":true,"children":[{"kind":"text","text":"Cloneable"}]},{"kind":"text","text":", it cannot override "},{"kind":"link","target":{"id":"java.lang.Object#clone()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},"code":true,"children":[{"kind":"text","text":"Object.clone()"}]},{"kind":"text","text":" with a final method"}]}]]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build()"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build()"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape$Builder#build(com.oracle.truffle.api.staticobject.StaticShape)"},"code":true,"children":[{"kind":"text","text":"StaticShape.Builder.build(StaticShape)"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticShape.java","line":380}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Builder class to construct "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" instances."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Builder class to construct "},{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape"},"code":true,"children":[{"kind":"text","text":"StaticShape"}]},{"kind":"text","text":" instances. The builder instance is not thread-safe and must not be used from multiple threads at the same time."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.staticobject.StaticShape#newBuilder(com.oracle.truffle.api.TruffleLanguage)"},"code":true,"children":[{"kind":"text","text":"StaticShape.newBuilder(TruffleLanguage)"}]}]]},"since":"21.3.0","source":{"path":"com/oracle/truffle/api/staticobject/StaticShape.java","line":209}}]},{"id":"com.oracle.truffle.api.strings","name":"com.oracle.truffle.api.strings","doc":{"summary":[{"kind":"text","text":"Truffle String related APIs."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Truffle String related APIs. Please see the "},{"kind":"link","url":"https://github.com/oracle/graal/tree/master/truffle/docs/TruffleStrings.md","children":[{"kind":"text","text":"tutorial"}]},{"kind":"text","text":" for further usage instructions."}]}]},"since":"22.1","types":[{"id":"com.oracle.truffle.api.strings.AbstractTruffleString","name":"AbstractTruffleString","kind":"class","language":"java","modifiers":["public","abstract","sealed"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"sealed"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"keyword","text":"permits"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":", "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"permits":[{"id":"com.oracle.truffle.api.strings.TruffleString"},{"id":"com.oracle.truffle.api.strings.MutableTruffleString"}],"members":[{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isEmpty()","anchor":"isEmpty()","kind":"method","name":"isEmpty","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isEmpty"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is empty."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is empty. This method is allowed to be used on fast paths."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":199}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteLength(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"byteLength(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"byteLength","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteLength"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get this string's length in bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get this string's length in bytes. This method is allowed to be used on fast paths."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":208}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isCompatibleToUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"isCompatibleToUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"isCompatibleToUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isCompatibleToUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is compatible to the given encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is compatible to the given encoding. Compatible for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" means it is byte-equivalent in both the encoding used to create this string and the given encoding. For "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" this method only returned true if the passed encoding is the same encoding used to create this string."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":221}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isManaged()","anchor":"isManaged()","kind":"method","name":"isManaged","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isManaged"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" backed by a native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" backed by a native pointer."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":234}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()","anchor":"isNative()","kind":"method","name":"isNative","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isNative"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is backed by a native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is backed by a native pointer."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":243}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isImmutable()","anchor":"isImmutable()","kind":"method","name":"isImmutable","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isImmutable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is immutable, i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is immutable, i.e. an instance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":252}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isMutable()","anchor":"isMutable()","kind":"method","name":"isMutable","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isMutable"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is mutable, i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is mutable, i.e. an instance of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":262}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"asTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"asTruffleStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"asTruffleStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.FromByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.FromByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":575}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asManagedTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"asManagedTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"asManagedTruffleStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"asManagedTruffleStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.AsManagedNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.AsManagedNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":585}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asManagedTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"asManagedTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"asManagedTruffleStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"asManagedTruffleStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"cacheResult"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"cacheResult","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.AsManagedNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.AsManagedNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":595}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asMutableTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"asMutableTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"asMutableTruffleStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"asMutableTruffleStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.AsMutableTruffleStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.AsMutableTruffleStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":606}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asManagedMutableTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"asManagedMutableTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"asManagedMutableTruffleStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"asManagedMutableTruffleStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.AsManagedNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.AsManagedNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":616}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"materializeUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"materializeUncached","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.1\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"materializeUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.MaterializeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.MaterializeNode"}]},{"kind":"text","text":"."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"since 25.1, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"materializeUncached(Encoding)"}]},{"kind":"text","text":" instead."}]}],"since":"25.1"},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":627}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"materializeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"materializeUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"materializeUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.MaterializeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.MaterializeNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":638}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeSubstringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"materializeSubstringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"materializeSubstringUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"materializeSubstringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.MaterializeSubstringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.MaterializeSubstringNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":648}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getCodeRangeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"getCodeRangeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"getCodeRangeUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"name","text":"getCodeRangeUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetCodeRangeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetCodeRangeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":658}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getCodeRangeImpreciseUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"getCodeRangeImpreciseUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"getCodeRangeImpreciseUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"name","text":"getCodeRangeImpreciseUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetCodeRangeImpreciseNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetCodeRangeImpreciseNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":669}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getByteCodeRangeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"getByteCodeRangeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"getByteCodeRangeUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"name","text":"getByteCodeRangeUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetByteCodeRangeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetByteCodeRangeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":679}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codeRangeEqualsUncached(com.oracle.truffle.api.strings.TruffleString.CodeRange)","anchor":"codeRangeEqualsUncached(com.oracle.truffle.api.strings.TruffleString.CodeRange)","kind":"method","name":"codeRangeEqualsUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"codeRangeEqualsUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"param","text":"otherCodeRange"},{"kind":"punct","text":")"}],"params":[{"name":"otherCodeRange","type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodeRangeEqualsNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodeRangeEqualsNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":689}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isValidUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"isValidUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"isValidUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isValidUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.IsValidNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.IsValidNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":699}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getStringCompactionLevelUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"getStringCompactionLevelUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"getStringCompactionLevelUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":" "},{"kind":"name","text":"getStringCompactionLevelUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetStringCompactionLevelNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetStringCompactionLevelNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":710}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointLengthUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"codePointLengthUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"codePointLengthUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"codePointLengthUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointLengthNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointLengthNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":720}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#hashCodeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"hashCodeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"hashCodeUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCodeUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.HashCodeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.HashCodeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":730}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#readByteUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"readByteUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"readByteUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"readByteUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ReadByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ReadByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":740}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#readCharUTF16Uncached(int)","anchor":"readCharUTF16Uncached(int)","kind":"method","name":"readCharUTF16Uncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"readCharUTF16Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.ReadCharUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.ReadCharUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":750}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteLengthOfCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"byteLengthOfCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"byteLengthOfCodePointUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteLengthOfCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":761}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteLengthOfCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","anchor":"byteLengthOfCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","kind":"method","name":"byteLengthOfCodePointUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteLengthOfCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandling"},{"kind":"punct","text":")"}],"params":[{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandling","type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":772}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexToCodePointIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"byteIndexToCodePointIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"byteIndexToCodePointIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteIndexToCodePointIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexToCodePointIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexToCodePointIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":783}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointIndexToByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"codePointIndexToByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"codePointIndexToByteIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"codePointIndexToByteIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepointIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"codepointIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":794}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"codePointAtIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"codePointAtIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"codePointAtIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":804}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtIndexUTF32Uncached(int)","anchor":"codePointAtIndexUTF32Uncached(int)","kind":"method","name":"codePointAtIndexUTF32Uncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"codePointAtIndexUTF32Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":814}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","anchor":"codePointAtIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","kind":"method","name":"codePointAtIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"codePointAtIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandling"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandling","type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":824}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"codePointAtByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"codePointAtByteIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"codePointAtByteIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":834}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","anchor":"codePointAtByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","kind":"method","name":"codePointAtByteIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"codePointAtByteIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandling"},{"kind":"punct","text":")"}],"params":[{"name":"i","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandling","type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CodePointAtByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":844}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfAnyByteUncached(int,int,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"byteIndexOfAnyByteUncached(int,int,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"byteIndexOfAnyByteUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteIndexOfAnyByteUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"maxByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"values","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfAnyByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfAnyByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":854}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#charIndexOfAnyCharUTF16Uncached(int,int,char[])","anchor":"charIndexOfAnyCharUTF16Uncached(int,int,char[])","kind":"method","name":"charIndexOfAnyCharUTF16Uncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"charIndexOfAnyCharUTF16Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromCharIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxCharIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"fromCharIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"maxCharIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"values","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.CharIndexOfAnyCharUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.CharIndexOfAnyCharUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":865}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#intIndexOfAnyIntUTF32Uncached(int,int,int[])","anchor":"intIndexOfAnyIntUTF32Uncached(int,int,int[])","kind":"method","name":"intIndexOfAnyIntUTF32Uncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"intIndexOfAnyIntUTF32Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIntIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxIntIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"fromIntIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"maxIntIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"values","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.IntIndexOfAnyIntUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.IntIndexOfAnyIntUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":876}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#indexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"indexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"indexOfCodePointUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"indexOfCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"cp"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"cp","type":[{"kind":"keyword","text":"int"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.IndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.IndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":886}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"byteIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"byteIndexOfCodePointUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteIndexOfCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"cp"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"cp","type":[{"kind":"keyword","text":"int"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":896}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"lastIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"lastIndexOfCodePointUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"lastIndexOfCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"cp"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"cp","type":[{"kind":"keyword","text":"int"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastIndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastIndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":906}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastByteIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"lastByteIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"lastByteIndexOfCodePointUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"lastByteIndexOfCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"cp"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"cp","type":[{"kind":"keyword","text":"int"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":917}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#indexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"indexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"indexOfStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"indexOfStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.IndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.IndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":927}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"byteIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"byteIndexOfStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteIndexOfStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":937}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfStringUncached(com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"byteIndexOfStringUncached(com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"byteIndexOfStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteIndexOfStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":947}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfStringSetUncached(int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)","anchor":"byteIndexOfStringSetUncached(int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)","kind":"method","name":"byteIndexOfStringSetUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"byteIndexOfStringSetUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toByteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.StringSet","ref":"com.oracle.truffle.api.strings.TruffleString$StringSet"},{"kind":"punct","text":" "},{"kind":"param","text":"stringSet"},{"kind":"punct","text":")"}],"params":[{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"stringSet","type":[{"kind":"type","text":"TruffleString.StringSet","ref":"com.oracle.truffle.api.strings.TruffleString$StringSet"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfStringSetNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ByteIndexOfStringSetNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":957}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"lastIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"lastIndexOfStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"lastIndexOfStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":967}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastByteIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"lastByteIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"lastByteIndexOfStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"lastByteIndexOfStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastByteIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastByteIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":978}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastByteIndexOfStringUncached(com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"lastByteIndexOfStringUncached(com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"lastByteIndexOfStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"lastByteIndexOfStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastByteIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.LastByteIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":989}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#compareBytesUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"compareBytesUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"compareBytesUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"compareBytesUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CompareBytesNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CompareBytesNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":999}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#compareCharsUTF16Uncached(com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"compareCharsUTF16Uncached(com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"compareCharsUTF16Uncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"compareCharsUTF16Uncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.CompareCharsUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.CompareCharsUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1009}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#compareIntsUTF32Uncached(com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"compareIntsUTF32Uncached(com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"compareIntsUTF32Uncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"compareIntsUTF32Uncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.CompareIntsUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"},"code":true,"children":[{"kind":"text","text":"TruffleString.CompareIntsUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1019}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#regionEqualsUncached(int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"regionEqualsUncached(int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"regionEqualsUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"regionEqualsUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndexA"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndexB"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"regionLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"fromIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndexB","type":[{"kind":"keyword","text":"int"}]},{"name":"regionLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.RegionEqualNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.RegionEqualNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1029}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#regionEqualByteIndexUncached(int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"regionEqualByteIndexUncached(int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"regionEqualByteIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"regionEqualByteIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndexA"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndexB"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"fromByteIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndexB","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.RegionEqualByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.RegionEqualByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1039}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#regionEqualByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"regionEqualByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"regionEqualByteIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"regionEqualByteIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndexA"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndexB"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"fromByteIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"b","type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},{"name":"fromByteIndexB","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.RegionEqualByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.RegionEqualByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1049}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#concatUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"concatUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"concatUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"concatUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ConcatNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ConcatNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1059}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#repeatUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"repeatUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"repeatUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"repeatUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"n"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"n","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.RepeatNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.RepeatNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1069}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#substringUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"substringUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"substringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"substringUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"substringLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"substringLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SubstringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SubstringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1079}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#substringByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"substringByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"substringByteIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"substringByteIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SubstringByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SubstringByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1089}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#equalsUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"equalsUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"equalsUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equalsUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.EqualNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.EqualNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1099}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseIntUncached()","anchor":"parseIntUncached()","kind":"method","name":"parseIntUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"parseIntUncached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseIntNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseIntNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1109}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseIntUncached(int)","anchor":"parseIntUncached(int)","kind":"method","name":"parseIntUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"parseIntUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"radix"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"params":[{"name":"radix","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseIntNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseIntNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1119}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseLongUncached()","anchor":"parseLongUncached()","kind":"method","name":"parseLongUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"parseLongUncached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseLongNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseLongNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1129}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseLongUncached(int)","anchor":"parseLongUncached(int)","kind":"method","name":"parseLongUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"parseLongUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"radix"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"params":[{"name":"radix","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseLongNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseLongNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1139}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseDoubleUncached()","anchor":"parseDoubleUncached()","kind":"method","name":"parseDoubleUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"parseDoubleUncached"},{"kind":"punct","text":"() "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseDoubleNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ParseDoubleNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1149}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getInternalByteArrayUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"getInternalByteArrayUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"getInternalByteArrayUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalByteArray","ref":"com.oracle.truffle.api.strings.InternalByteArray"},{"kind":"punct","text":" "},{"kind":"name","text":"getInternalByteArrayUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"InternalByteArray","ref":"com.oracle.truffle.api.strings.InternalByteArray"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetInternalByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetInternalByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1159}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getInternalNativePointerUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"getInternalNativePointerUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"getInternalNativePointerUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getInternalNativePointerUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetInternalNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.GetInternalNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1170}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#copyToByteArrayUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"copyToByteArrayUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"copyToByteArrayUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"name","text":"copyToByteArrayUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CopyToByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CopyToByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1180}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#copyToByteArrayUncached(int,byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"copyToByteArrayUncached(int,byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"copyToByteArrayUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyToByteArrayUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteFromIndexA"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"dst"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteFromIndexDst"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"byteFromIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"dst","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteFromIndexDst","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CopyToByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CopyToByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1190}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#copyToNativeMemoryUncached(int,java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"copyToNativeMemoryUncached(int,java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"copyToNativeMemoryUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"copyToNativeMemoryUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteFromIndexA"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteFromIndexDst"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"byteFromIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteFromIndexDst","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CopyToNativeMemoryNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CopyToNativeMemoryNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1200}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toValidStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"toValidStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"toValidStringUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"toValidStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ToValidStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ToValidStringNode"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1210}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toJavaStringUncached()","anchor":"toJavaStringUncached()","kind":"method","name":"toJavaStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toJavaStringUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ToJavaStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ToJavaStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1220}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#switchEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"switchEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"switchEncodingUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"switchEncodingUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"targetEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"targetEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1230}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#switchEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TranscodingErrorHandler)","anchor":"switchEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TranscodingErrorHandler)","kind":"method","name":"switchEncodingUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"switchEncodingUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"targetEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandler"},{"kind":"punct","text":")"}],"params":[{"name":"targetEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandler","type":[{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1240}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#forceEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"forceEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"forceEncodingUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"forceEncodingUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"targetEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"targetEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ForceEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ForceEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1250}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#createCodePointIteratorUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"createCodePointIteratorUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"createCodePointIteratorUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"name","text":"createCodePointIteratorUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CreateCodePointIteratorNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CreateCodePointIteratorNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1261}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#createBackwardCodePointIteratorUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"createBackwardCodePointIteratorUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"createBackwardCodePointIteratorUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"name","text":"createBackwardCodePointIteratorUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CreateBackwardCodePointIteratorNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.CreateBackwardCodePointIteratorNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1272}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is equal to "},{"kind":"code","text":"obj"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this string is equal to "},{"kind":"code","text":"obj"},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" does not attempt to automatically convert differently encoded strings during comparison, make sure to convert both strings to a common encoding before comparing them!"}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.EqualNode"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1287}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"doc":{"summary":[{"kind":"text","text":"Returns this string's hashcode."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns this string's hashcode. Note that the hashcode is dependent on the string's encoding, make sure to convert strings to a common encoding before comparing their hash codes!"}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.HashCodeNode"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1315}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" representation of this string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"String"}]},{"kind":"text","text":" representation of this string. Do not use this on fast paths."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ToJavaStringNode"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1330}},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toStringDebug()","anchor":"toStringDebug()","kind":"method","name":"toStringDebug","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toStringDebug"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Returns debug information about this string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns debug information about this string. For debugging purposes only. The format of the information returned by this method is unspecified and may change at any time."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":1357}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Abstract base class for Truffle strings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Abstract base class for Truffle strings. Useful when a value can be both a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" or a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":". Note that values of this type are not valid interop values. They must be converted to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" before passing them to other languages."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/AbstractTruffleString.java","line":78}},{"id":"com.oracle.truffle.api.strings.InternalByteArray","name":"InternalByteArray","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"InternalByteArray"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.strings.InternalByteArray#getArray()","anchor":"getArray()","kind":"method","name":"getArray","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"name","text":"getArray"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Get the internal byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the internal byte array. Do not modify the array's contents!"}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/InternalByteArray.java","line":68}},{"id":"com.oracle.truffle.api.strings.InternalByteArray#getOffset()","anchor":"getOffset()","kind":"method","name":"getOffset","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getOffset"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get the string region's starting index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the string region's starting index."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/InternalByteArray.java","line":77}},{"id":"com.oracle.truffle.api.strings.InternalByteArray#getLength()","anchor":"getLength()","kind":"method","name":"getLength","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get the string region's length."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the string region's length."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/InternalByteArray.java","line":86}},{"id":"com.oracle.truffle.api.strings.InternalByteArray#getEnd()","anchor":"getEnd()","kind":"method","name":"getEnd","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getEnd"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get the string region's end ("},{"kind":"code","text":"offset + length"},{"kind":"text","text":")."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the string region's end ("},{"kind":"code","text":"offset + length"},{"kind":"text","text":")."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/InternalByteArray.java","line":95}},{"id":"com.oracle.truffle.api.strings.InternalByteArray#get(int)","anchor":"get(int)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"index"},{"kind":"punct","text":")"}],"params":[{"name":"index","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"}]},"doc":{"summary":[{"kind":"text","text":"Read the byte at "},{"kind":"code","text":"getArray()[getOffset() + index]"},{"kind":"text","text":" and return it as a byte, similar to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ReadByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read the byte at "},{"kind":"code","text":"getArray()[getOffset() + index]"},{"kind":"text","text":" and return it as a byte, similar to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ReadByteNode"}]},{"kind":"text","text":". Consider using "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ReadByteNode"}]},{"kind":"text","text":" (and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.MaterializeNode"}]},{"kind":"text","text":" before) instead if not needing the byte[] for other purposes, as that will avoid extra copying if the string "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"is stored in native memory"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/InternalByteArray.java","line":108}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Wrapper object containing a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"'s internal byte array, along with a byte offset and length defining the region in use."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Wrapper object containing a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"'s internal byte array, along with a byte offset and length defining the region in use."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/InternalByteArray.java","line":49}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString","name":"MutableTruffleString","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}],"superclass":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString#notifyExternalMutation()","anchor":"notifyExternalMutation()","kind":"method","name":"notifyExternalMutation","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"notifyExternalMutation"},{"kind":"punct","text":"()"}],"doc":{"summary":[{"kind":"text","text":"Notify this mutable string of an external modification of its internal content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Notify this mutable string of an external modification of its internal content. This method must be called after every direct write (not via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},"code":true,"children":[{"kind":"text","text":"WriteByteNode"}]},{"kind":"text","text":") to the byte array or native pointer the string is using as internal storage. Exemplary usage scenario: Suppose a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" was created by wrapping a native pointer via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":". If the native pointer is passed to a native function that may modify the pointer's contents, this method must be called afterwards, to ensure consistency."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":115}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString#fromByteArrayUncached(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromByteArrayUncached(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromByteArrayUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromByteArrayUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":183}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString#fromNativePointerUncached(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromNativePointerUncached(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromNativePointerUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromNativePointerUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":289}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString#writeByteUncached(int,byte,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"writeByteUncached(int,byte,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"writeByteUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"writeByteUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},"code":true,"children":[{"kind":"text","text":"WriteByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},"code":true,"children":[{"kind":"text","text":"WriteByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":477}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString#concatUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"concatUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"concatUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"concatUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":581}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString#substringUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"substringUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"substringUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"substringUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":674}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString#substringByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"substringByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"substringByteIndexUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"substringByteIndexUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":743}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString","text":"AbstractTruffleString"},"kind":"class","members":[{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asManagedMutableTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"asManagedMutableTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asManagedTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"asManagedTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asManagedTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","text":"asManagedTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asMutableTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"asMutableTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"asTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfAnyByteUncached(int,int,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexOfAnyByteUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfStringSetUncached(int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)","text":"byteIndexOfStringSetUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfStringUncached(com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexToCodePointIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexToCodePointIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteLength(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteLength"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteLengthOfCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteLengthOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteLengthOfCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","text":"byteLengthOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#charIndexOfAnyCharUTF16Uncached(int,int,char[])","text":"charIndexOfAnyCharUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"codePointAtByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","text":"codePointAtByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtIndexUTF32Uncached(int)","text":"codePointAtIndexUTF32Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"codePointAtIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","text":"codePointAtIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointIndexToByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"codePointIndexToByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointLengthUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"codePointLengthUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codeRangeEqualsUncached(com.oracle.truffle.api.strings.TruffleString.CodeRange)","text":"codeRangeEqualsUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#compareBytesUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"compareBytesUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#compareCharsUTF16Uncached(com.oracle.truffle.api.strings.AbstractTruffleString)","text":"compareCharsUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#compareIntsUTF32Uncached(com.oracle.truffle.api.strings.AbstractTruffleString)","text":"compareIntsUTF32Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#concatUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","text":"concatUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#copyToByteArrayUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"copyToByteArrayUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#copyToByteArrayUncached(int,byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"copyToByteArrayUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#copyToNativeMemoryUncached(int,java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"copyToNativeMemoryUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#createBackwardCodePointIteratorUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"createBackwardCodePointIteratorUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#createCodePointIteratorUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"createCodePointIteratorUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#equals(java.lang.Object)","text":"equals"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#equalsUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"equalsUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#forceEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"forceEncodingUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getByteCodeRangeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getByteCodeRangeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getCodeRangeImpreciseUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getCodeRangeImpreciseUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getCodeRangeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getCodeRangeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getInternalByteArrayUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getInternalByteArrayUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getInternalNativePointerUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getInternalNativePointerUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getStringCompactionLevelUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getStringCompactionLevelUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#hashCode()","text":"hashCode"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#hashCodeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"hashCodeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#indexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"indexOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#indexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"indexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#intIndexOfAnyIntUTF32Uncached(int,int,int[])","text":"intIndexOfAnyIntUTF32Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isCompatibleToUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"isCompatibleToUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isEmpty()","text":"isEmpty"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isImmutable()","text":"isImmutable"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isManaged()","text":"isManaged"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isMutable()","text":"isMutable"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()","text":"isNative"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isValidUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"isValidUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastByteIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastByteIndexOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastByteIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastByteIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastByteIndexOfStringUncached(com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastByteIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastIndexOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeSubstringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"materializeSubstringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"materializeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"materializeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseDoubleUncached()","text":"parseDoubleUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseIntUncached()","text":"parseIntUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseIntUncached(int)","text":"parseIntUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseLongUncached()","text":"parseLongUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseLongUncached(int)","text":"parseLongUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#readByteUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"readByteUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#readCharUTF16Uncached(int)","text":"readCharUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#regionEqualByteIndexUncached(int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"regionEqualByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#regionEqualByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"regionEqualByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#regionEqualsUncached(int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"regionEqualsUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#repeatUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"repeatUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#substringByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","text":"substringByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#substringUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","text":"substringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#switchEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"switchEncodingUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#switchEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TranscodingErrorHandler)","text":"switchEncodingUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toJavaStringUncached()","text":"toJavaStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toString()","text":"toString"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toStringDebug()","text":"toStringDebug"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toValidStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"toValidStringUncached"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a mutable variant of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a mutable variant of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":". This class also accepts all operations of TruffleString. This class is not thread-safe and allows overwriting bytes in its internal byte array or native pointer via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},"code":true,"children":[{"kind":"text","text":"WriteByteNode"}]},{"kind":"text","text":". The internal array or native pointer may also be modified externally, but the corresponding MutableTruffleString must be notified of this via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString#notifyExternalMutation()"},"code":true,"children":[{"kind":"text","text":"notifyExternalMutation()"}]},{"kind":"text","text":". MutableTruffleString is not a Truffle interop type, and must be converted to an immutable "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"AsTruffleStringNode"}]},{"kind":"text","text":" before passing a language boundary."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":72}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode","name":"MutableTruffleString.AsManagedNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.AsManagedNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"If the given string is already a managed (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If the given string is already a managed (i.e. not backed by a native pointer) string, return it. Otherwise, copy the string's native pointer content into a Java byte array and return a new string backed by the byte array."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":369}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.AsManagedNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.AsManagedNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":391}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.AsManagedNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.AsManagedNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":401}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleString"}]},{"kind":"text","text":" as a managed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":", meaning that the resulting string's backing memory is not a native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleString"}]},{"kind":"text","text":" as a managed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":", meaning that the resulting string's backing memory is not a native pointer. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":357}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode","name":"MutableTruffleString.AsMutableTruffleStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.AsMutableTruffleStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"If the given string is already a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":", return it."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If the given string is already a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":", return it. If it is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":", copying the immutable string's contents."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":312}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.AsMutableTruffleStringNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.AsMutableTruffleStringNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"AsMutableTruffleStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"AsMutableTruffleStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":334}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.AsMutableTruffleStringNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.AsMutableTruffleStringNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"AsMutableTruffleStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"AsMutableTruffleStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":344}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleString"}]},{"kind":"text","text":" as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleString"}]},{"kind":"text","text":" as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsMutableTruffleStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":300}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode","name":"MutableTruffleString.ConcatNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.ConcatNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" by concatenating two strings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" by concatenating two strings. The concatenation is performed eagerly since return value is mutable."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":498}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.ConcatNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.ConcatNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":561}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.ConcatNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.ConcatNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":571}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" by concatenating two strings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" by concatenating two strings."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":487}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode","name":"MutableTruffleString.ForceEncodingNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.ForceEncodingNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"targetEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"targetEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" assigned to the given encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" assigned to the given encoding. If the string is already in the given encoding, it is returned. Otherwise, a new string containing the same (copied) bytes but assigned to the new encoding is returned. "},{"kind":"strong","children":[{"kind":"text","text":"This node does not transcode the string's contents in any way, it is the \"encoding-equivalent\" to a C-style reinterpret-cast."}]}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":839}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.ForceEncodingNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.ForceEncodingNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.ForceEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.ForceEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":889}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.ForceEncodingNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.ForceEncodingNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.ForceEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.ForceEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":899}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to forcibly assign any encoding to a string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to forcibly assign any encoding to a string. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$ForceEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":825}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode","name":"MutableTruffleString.FromByteArrayNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.FromByteArrayNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode#execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" from a byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" from a byte array. The array content is assumed to be encoded in the given encoding already. This operation allows non-copying string creation, i.e. the array parameter can be used directly by passing "},{"kind":"code","text":"copy = false"},{"kind":"text","text":". If the array is modified after non-copying string creation, the string must be notified of this via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString#notifyExternalMutation()"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.notifyExternalMutation()"}]},{"kind":"text","text":" ."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":140}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.FromByteArrayNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.FromByteArrayNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":163}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.FromByteArrayNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.FromByteArrayNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":173}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" from a byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" from a byte array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromByteArrayNode#execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(byte[], int, int, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":125}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode","name":"MutableTruffleString.FromNativePointerNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.FromNativePointerNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer ("},{"kind":"code","text":"isPointer(pointerObject)"},{"kind":"text","text":" must return "},{"kind":"code","text":"true"},{"kind":"text","text":")."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer ("},{"kind":"code","text":"isPointer(pointerObject)"},{"kind":"text","text":" must return "},{"kind":"code","text":"true"},{"kind":"text","text":"). The pointer is immediately unboxed with ("},{"kind":"code","text":"asPointer(pointerObject)"},{"kind":"text","text":") and saved until the end of the string's lifetime, i.e. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" assumes that the pointer address does not change. The pointer's content is assumed to be encoded in the given encoding already. If "},{"kind":"code","text":"copy"},{"kind":"text","text":" is "},{"kind":"code","text":"false"},{"kind":"text","text":", the native pointer is used directly as the new string's backing storage. Caution: If the pointer's content is modified after string creation, the string must be notified of this via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString#notifyExternalMutation()"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.notifyExternalMutation()"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"WARNING:"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" cannot reason about the lifetime of the native pointer, so it is up to the user to "},{"kind":"strong","children":[{"kind":"text","text":"make sure that the native pointer is valid to access and not freed as long the "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":" is alive"}]},{"kind":"text","text":" (if "},{"kind":"code","text":"copy"},{"kind":"text","text":" is "},{"kind":"code","text":"false"},{"kind":"text","text":"). To help with this the MutableTruffleString keeps a reference to the given "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":", so the "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":" is kept alive at least as long as the MutableTruffleString is used. In order to be able to use the string past the native pointer's life time, convert it to a managed string via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.AsManagedNode"}]},{"kind":"text","text":" "},{"kind":"strong","children":[{"kind":"text","text":"before the native pointer is freed"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Since GraalVM version 25.1, the native pointer may also be passed as a boxed long value in place of "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":". Note that in this case, the resulting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" cannot keep a reference an associated object for life-time tracking. The user is responsible for making sure the native buffer is not freed as long as the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" object is alive."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"copy"},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", the pointer's contents are copied to a Java byte array, and the pointer can be freed safely after the operation completes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This operation requires native access permissions ("},{"kind":"code","text":"TruffleLanguage.Env#isNativeAccessAllowed()"},{"kind":"text","text":")."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":239}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.FromNativePointerNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.FromNativePointerNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":269}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.FromNativePointerNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.FromNativePointerNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":279}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(Object, int, int, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":195}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode","name":"MutableTruffleString.SubstringByteIndexNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.SubstringByteIndexNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":694}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.SubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.SubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":723}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.SubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.SubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":733}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":684}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode","name":"MutableTruffleString.SubstringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.SubstringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Create a new mutable substring of "},{"kind":"code","text":"a"},{"kind":"text","text":", starting from "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":", with length "},{"kind":"code","text":"length"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new mutable substring of "},{"kind":"code","text":"a"},{"kind":"text","text":", starting from "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":", with length "},{"kind":"code","text":"length"},{"kind":"text","text":". The substring is performed eagerly since return value is mutable."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":603}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.SubstringNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.SubstringNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":654}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.SubstringNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.SubstringNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":664}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new mutable substring of a string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new mutable substring of a string. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SubstringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":592}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode","name":"MutableTruffleString.SwitchEncodingNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.SwitchEncodingNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that is encoded in the given encoding, which may be the string itself or a converted version."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that is encoded in the given encoding, which may be the string itself or a converted version."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If no lossless conversion is possible, the string is converted on a best-effort basis; no exception is thrown and characters which cannot be mapped in the target encoding are replaced by "},{"kind":"code","text":"'�'"},{"kind":"text","text":" (for UTF-*) or "},{"kind":"code","text":"'?'"},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":770}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TranscodingErrorHandler)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TranscodingErrorHandler)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandler"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandler","type":[{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"}]}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that is encoded in the given encoding, which may be the string itself or a converted version."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that is encoded in the given encoding, which may be the string itself or a converted version. Transcoding errors are handled with "},{"kind":"code","text":"errorHandler"},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":781}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.SwitchEncodingNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.SwitchEncodingNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":803}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.SwitchEncodingNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.SwitchEncodingNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":813}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a given string in a specific encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a given string in a specific encoding. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$SwitchEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TranscodingErrorHandler)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding, TranscodingErrorHandler)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":755}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode","name":"MutableTruffleString.WriteByteNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleString.WriteByteNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.MutableTruffleString","members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode#execute(com.oracle.truffle.api.strings.MutableTruffleString,int,byte,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.MutableTruffleString,int,byte,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"MutableTruffleString","ref":"com.oracle.truffle.api.strings.MutableTruffleString"}]},{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"doc":{"summary":[{"kind":"text","text":"Writes a byte into the given mutable string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Writes a byte into the given mutable string."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":421}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.WriteByteNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.WriteByteNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},"code":true,"children":[{"kind":"text","text":"WriteByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},"code":true,"children":[{"kind":"text","text":"WriteByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":457}},{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"MutableTruffleString.WriteByteNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"MutableTruffleString.WriteByteNode","ref":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},"code":true,"children":[{"kind":"text","text":"WriteByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString$WriteByteNode"},"code":true,"children":[{"kind":"text","text":"WriteByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":467}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to write a byte into a mutable string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to write a byte into a mutable string."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/MutableTruffleString.java","line":411}},{"id":"com.oracle.truffle.api.strings.MutableTruffleStringFactory","name":"MutableTruffleStringFactory","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleStringFactory"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.strings.MutableTruffleStringFactory#<init>()","anchor":"<init>()","kind":"constructor","name":"MutableTruffleStringFactory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"MutableTruffleStringFactory"},{"kind":"punct","text":"()"}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new MutableTruffleStringFactory instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new MutableTruffleStringFactory instance."}]}]}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/strings/MutableTruffleStringFactory.java","line":40}},{"id":"com.oracle.truffle.api.strings.NativeAllocator","name":"NativeAllocator","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"NativeAllocator"}],"members":[{"id":"com.oracle.truffle.api.strings.NativeAllocator#allocate(int)","anchor":"allocate(int)","kind":"method","name":"allocate","signature":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"allocate"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteSize"},{"kind":"punct","text":")"}],"params":[{"name":"byteSize","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Allocates a new native buffer of "},{"kind":"code","text":"byteSize"},{"kind":"text","text":" bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allocates a new native buffer of "},{"kind":"code","text":"byteSize"},{"kind":"text","text":" bytes. The return value must be a Truffle object as expected by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.FromNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/NativeAllocator.java","line":57}}],"doc":{"summary":[{"kind":"text","text":"An allocation function for native buffers."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An allocation function for native buffers."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/NativeAllocator.java","line":48}},{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler","name":"TranscodingErrorHandler","kind":"interface","language":"java","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@FunctionalInterface","ref":"java.lang.FunctionalInterface","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/FunctionalInterface.html"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"TranscodingErrorHandler"}],"members":[{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler#DEFAULT","anchor":"DEFAULT","kind":"field","name":"DEFAULT","signature":[{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"},{"kind":"punct","text":" "},{"kind":"name","text":"DEFAULT"}],"type":[{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"}],"doc":{"summary":[{"kind":"text","text":"The default transcoding error handler."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The default transcoding error handler. In UTF encodings, it replaces invalid codepoints with "},{"kind":"code","text":"0xfffd"},{"kind":"text","text":", in all other encodings it uses "},{"kind":"code","text":"'?'"},{"kind":"text","text":" instead. Exceptions: in UTF-16 and UTF-32, it keeps "},{"kind":"link","target":{"id":"java.lang.Character#isSurrogate(char)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Character.html#isSurrogate(char)"},"code":true,"children":[{"kind":"text","text":"UTF-16 surrogate values"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TranscodingErrorHandler.java","line":58}},{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler#DEFAULT_KEEP_SURROGATES_IN_UTF8","anchor":"DEFAULT_KEEP_SURROGATES_IN_UTF8","kind":"field","name":"DEFAULT_KEEP_SURROGATES_IN_UTF8","signature":[{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"},{"kind":"punct","text":" "},{"kind":"name","text":"DEFAULT_KEEP_SURROGATES_IN_UTF8"}],"type":[{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"}],"doc":{"summary":[{"kind":"text","text":"Same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler#DEFAULT"},"code":true,"children":[{"kind":"text","text":"DEFAULT"}]},{"kind":"text","text":", but also keeps "},{"kind":"link","target":{"id":"java.lang.Character#isSurrogate(char)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Character.html#isSurrogate(char)"},"code":true,"children":[{"kind":"text","text":"UTF-16 surrogate values"}]},{"kind":"text","text":" in UTF-8."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Same as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler#DEFAULT"},"code":true,"children":[{"kind":"text","text":"DEFAULT"}]},{"kind":"text","text":", but also keeps "},{"kind":"link","target":{"id":"java.lang.Character#isSurrogate(char)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Character.html#isSurrogate(char)"},"code":true,"children":[{"kind":"text","text":"UTF-16 surrogate values"}]},{"kind":"text","text":" in UTF-8."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TranscodingErrorHandler.java","line":66}},{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler#apply(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"apply(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"apply","signature":[{"kind":"type","text":"TranscodingErrorHandler.ReplacementString","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler$ReplacementString"},{"kind":"punct","text":" "},{"kind":"name","text":"apply"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceString"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"estimatedByteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"sourceEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"targetEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"sourceString","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the string currently being transcoded."}]}]},{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"starting index of region that could not be transcoded."}]}]},{"name":"estimatedByteLength","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"estimated byte length of erroneous region."}]}]},{"name":"sourceEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the source string's encoding."}]}]},{"name":"targetEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the target encoding."}]}]}],"returns":{"type":[{"kind":"type","text":"TranscodingErrorHandler.ReplacementString","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler$ReplacementString"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a string to use instead of the invalid region."}]}]},"doc":{"summary":[{"kind":"text","text":"Transcoding error handler implementation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Transcoding error handler implementation. This method is called once for every byte region that could not be transcoded from "},{"kind":"code","text":"sourceEncoding"},{"kind":"text","text":" to "},{"kind":"code","text":"targetEncoding"},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TranscodingErrorHandler.java","line":80}}],"doc":{"summary":[{"kind":"text","text":"An error handler for transcoding operations such as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An error handler for transcoding operations such as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.SwitchEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TranscodingErrorHandler.java","line":48}},{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler$ReplacementString","name":"TranscodingErrorHandler.ReplacementString","kind":"record","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"record"},{"kind":"punct","text":" "},{"kind":"name","text":"TranscodingErrorHandler.ReplacementString"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"replacement"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":")"}],"superclass":[{"kind":"type","text":"Record","ref":"java.lang.Record","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html"}],"ancestors":[{"id":"java.lang.Record","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TranscodingErrorHandler","components":[{"name":"replacement","type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the string to use as replacement for the erroneous region in the source string."}]}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte length of the region to replace. If this value is negative, let the transcoder determine the region length instead."}]}]}],"members":[{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler$ReplacementString#<init>(com.oracle.truffle.api.strings.TruffleString,int)","anchor":"<init>(com.oracle.truffle.api.strings.TruffleString,int)","kind":"constructor","name":"ReplacementString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"ReplacementString"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"replacement"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":")"}],"params":[{"name":"replacement","type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the string to use as replacement for the erroneous region in the source string."}]}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte length of the region to replace. If this value is negative, let the transcoder determine the region length instead."}]}]}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new ReplacementString instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new ReplacementString instance."}]}]}},{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler$ReplacementString#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string containing the record class name and its component names and values."}]}]},"overrides":{"id":"java.lang.Record#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a string containing the record class name and its component names and values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string containing the record class name and its component names and values."}]}]}},{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler$ReplacementString#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a hash code computed from the record components."}]}]},"overrides":{"id":"java.lang.Record#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html#hashCode()"},"doc":{"summary":[{"kind":"text","text":"Returns a hash code computed from the record components."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a hash code computed from the record components."}]}]}},{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler$ReplacementString#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"o"},{"kind":"punct","text":")"}],"params":[{"name":"o","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The object to compare with this record."}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether the other object is a record of the same class with equal components."}]}]},"overrides":{"id":"java.lang.Record#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Record.html#equals(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Returns whether the other object is a record of the same class with equal components."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns whether the other object is a record of the same class with equal components."}]}]}},{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler$ReplacementString#replacement()","anchor":"replacement()","kind":"method","name":"replacement","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"replacement"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the string to use as replacement for the erroneous region in the source string."}]}]},"doc":{"summary":[{"kind":"text","text":"the string to use as replacement for the erroneous region in the source string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"the string to use as replacement for the erroneous region in the source string."}]}]}},{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler$ReplacementString#byteLength()","anchor":"byteLength()","kind":"method","name":"byteLength","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte length of the region to replace. If this value is negative, let the transcoder determine the region length instead."}]}]},"doc":{"summary":[{"kind":"text","text":"the byte length of the region to replace. If this value is negative, let the transcoder determine the region length instead."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"the byte length of the region to replace. If this value is negative, let the transcoder determine the region length instead."}]}]}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Result type of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler#apply(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"apply(AbstractTruffleString, int, int, TruffleString.Encoding, TruffleString.Encoding)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Result type of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TranscodingErrorHandler#apply(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"apply(AbstractTruffleString, int, int, TruffleString.Encoding, TruffleString.Encoding)"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TranscodingErrorHandler.java","line":93}},{"id":"com.oracle.truffle.api.strings.TruffleString","name":"TruffleString","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}],"superclass":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.strings.TruffleString#fromCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"fromCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"fromCodePointUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},"code":true,"children":[{"kind":"text","text":"FromCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},"code":true,"children":[{"kind":"text","text":"FromCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1859}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromCodePointUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowUTF16Surrogates"},{"kind":"punct","text":")"}],"params":[{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"allowUTF16Surrogates","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},"code":true,"children":[{"kind":"text","text":"FromCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},"code":true,"children":[{"kind":"text","text":"FromCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1869}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromLongUncached(long,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromLongUncached(long,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromLongUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromLongUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"long"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"},"code":true,"children":[{"kind":"text","text":"FromLongNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"},"code":true,"children":[{"kind":"text","text":"FromLongNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1944}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromByteArrayUncached(byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"fromByteArrayUncached(byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"fromByteArrayUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromByteArrayUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2032}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromByteArrayUncached(byte[],com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromByteArrayUncached(byte[],com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromByteArrayUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromByteArrayUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2042}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromByteArrayUncached(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromByteArrayUncached(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromByteArrayUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromByteArrayUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2052}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromCharArrayUTF16Uncached(char[])","anchor":"fromCharArrayUTF16Uncached(char[])","kind":"method","name":"fromCharArrayUTF16Uncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromCharArrayUTF16Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},"code":true,"children":[{"kind":"text","text":"FromCharArrayUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},"code":true,"children":[{"kind":"text","text":"FromCharArrayUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2137}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromCharArrayUTF16Uncached(char[],int,int)","anchor":"fromCharArrayUTF16Uncached(char[],int,int)","kind":"method","name":"fromCharArrayUTF16Uncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromCharArrayUTF16Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charLength"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]},{"name":"charOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"charLength","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},"code":true,"children":[{"kind":"text","text":"FromCharArrayUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},"code":true,"children":[{"kind":"text","text":"FromCharArrayUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2147}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromJavaStringUncached(java.lang.String,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"fromJavaStringUncached(java.lang.String,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"fromJavaStringUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromJavaStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"s"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"s","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For constant strings, it is recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString#fromConstant(java.lang.String,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"fromConstant(String, Encoding)"}]},{"kind":"text","text":" instead."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2302}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromJavaStringUncached(java.lang.String,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromJavaStringUncached(java.lang.String,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromJavaStringUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromJavaStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"s"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"s","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"charOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For constant strings, it is recommended to use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString#fromConstant(java.lang.String,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"fromConstant(String, Encoding)"}]},{"kind":"text","text":" instead."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2315}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromConstant(java.lang.String,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"fromConstant(java.lang.String,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"fromConstant","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromConstant"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"s"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"s","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":". This variant also forces the calculation of the string's precise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":" and hash code."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2326}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromIntArrayUTF32Uncached(int[])","anchor":"fromIntArrayUTF32Uncached(int[])","kind":"method","name":"fromIntArrayUTF32Uncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromIntArrayUTF32Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromIntArrayUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromIntArrayUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2415}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromIntArrayUTF32Uncached(int[],int,int)","anchor":"fromIntArrayUTF32Uncached(int[],int,int)","kind":"method","name":"fromIntArrayUTF32Uncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromIntArrayUTF32Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"intOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"intLength"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]},{"name":"intOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"intLength","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromIntArrayUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromIntArrayUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2425}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromNativePointerUncached(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromNativePointerUncached(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromNativePointerUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromNativePointerUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2532}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromZeroTerminatedNativePointer8BitUncached(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromZeroTerminatedNativePointer8BitUncached(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromZeroTerminatedNativePointer8BitUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromZeroTerminatedNativePointer8BitUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#execute8Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode.execute8Bit"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#execute8Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode.execute8Bit"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2659}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromZeroTerminatedNativePointer16BitUncached(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromZeroTerminatedNativePointer16BitUncached(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromZeroTerminatedNativePointer16BitUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromZeroTerminatedNativePointer16BitUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#execute16Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode.execute16Bit"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#execute16Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode.execute16Bit"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2670}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromZeroTerminatedNativePointer32BitUncached(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"fromZeroTerminatedNativePointer32BitUncached(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"fromZeroTerminatedNativePointer32BitUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromZeroTerminatedNativePointer32BitUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#execute32Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode.execute32Bit"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#execute32Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode.execute32Bit"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2681}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromByteArrayWithCompactionUTF32Uncached(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)","anchor":"fromByteArrayWithCompactionUTF32Uncached(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)","kind":"method","name":"fromByteArrayWithCompactionUTF32Uncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromByteArrayWithCompactionUTF32Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"array"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":" "},{"kind":"param","text":"compactionLevel"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"array","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"compactionLevel","type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromByteArrayWithCompactionUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromByteArrayWithCompactionUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2826}},{"id":"com.oracle.truffle.api.strings.TruffleString#fromNativePointerWithCompactionUTF32Uncached(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)","anchor":"fromNativePointerWithCompactionUTF32Uncached(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)","kind":"method","name":"fromNativePointerWithCompactionUTF32Uncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"fromNativePointerWithCompactionUTF32Uncached"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":" "},{"kind":"param","text":"compactionLevel"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"compactionLevel","type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromNativePointerWithCompactionUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromNativePointerWithCompactionUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2908}},{"id":"com.oracle.truffle.api.strings.TruffleString#asNativeUncached(com.oracle.truffle.api.strings.NativeAllocator,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean,boolean)","anchor":"asNativeUncached(com.oracle.truffle.api.strings.NativeAllocator,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean,boolean)","kind":"method","name":"asNativeUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"asNativeUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"NativeAllocator","ref":"com.oracle.truffle.api.strings.NativeAllocator"},{"kind":"punct","text":" "},{"kind":"param","text":"allocator"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"useCompaction"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"cacheResult"},{"kind":"punct","text":")"}],"params":[{"name":"allocator","type":[{"kind":"type","text":"NativeAllocator","ref":"com.oracle.truffle.api.strings.NativeAllocator"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"useCompaction","type":[{"kind":"keyword","text":"boolean"}]},{"name":"cacheResult","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"},"code":true,"children":[{"kind":"text","text":"AsNativeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"},"code":true,"children":[{"kind":"text","text":"AsNativeNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8445}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString","text":"AbstractTruffleString"},"kind":"class","members":[{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asManagedMutableTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"asManagedMutableTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asManagedTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"asManagedTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asManagedTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","text":"asManagedTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asMutableTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"asMutableTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#asTruffleStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"asTruffleStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfAnyByteUncached(int,int,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexOfAnyByteUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfStringSetUncached(int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)","text":"byteIndexOfStringSetUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexOfStringUncached(com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteIndexToCodePointIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteIndexToCodePointIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteLength(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteLength"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteLengthOfCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"byteLengthOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#byteLengthOfCodePointUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","text":"byteLengthOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#charIndexOfAnyCharUTF16Uncached(int,int,char[])","text":"charIndexOfAnyCharUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"codePointAtByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","text":"codePointAtByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtIndexUTF32Uncached(int)","text":"codePointAtIndexUTF32Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"codePointAtIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointAtIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","text":"codePointAtIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointIndexToByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"codePointIndexToByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codePointLengthUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"codePointLengthUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#codeRangeEqualsUncached(com.oracle.truffle.api.strings.TruffleString.CodeRange)","text":"codeRangeEqualsUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#compareBytesUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"compareBytesUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#compareCharsUTF16Uncached(com.oracle.truffle.api.strings.AbstractTruffleString)","text":"compareCharsUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#compareIntsUTF32Uncached(com.oracle.truffle.api.strings.AbstractTruffleString)","text":"compareIntsUTF32Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#concatUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","text":"concatUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#copyToByteArrayUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"copyToByteArrayUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#copyToByteArrayUncached(int,byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"copyToByteArrayUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#copyToNativeMemoryUncached(int,java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"copyToNativeMemoryUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#createBackwardCodePointIteratorUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"createBackwardCodePointIteratorUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#createCodePointIteratorUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"createCodePointIteratorUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#equals(java.lang.Object)","text":"equals"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#equalsUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"equalsUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#forceEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"forceEncodingUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getByteCodeRangeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getByteCodeRangeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getCodeRangeImpreciseUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getCodeRangeImpreciseUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getCodeRangeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getCodeRangeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getInternalByteArrayUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getInternalByteArrayUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getInternalNativePointerUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getInternalNativePointerUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#getStringCompactionLevelUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"getStringCompactionLevelUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#hashCode()","text":"hashCode"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#hashCodeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"hashCodeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#indexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"indexOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#indexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"indexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#intIndexOfAnyIntUTF32Uncached(int,int,int[])","text":"intIndexOfAnyIntUTF32Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isCompatibleToUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"isCompatibleToUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isEmpty()","text":"isEmpty"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isImmutable()","text":"isImmutable"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isManaged()","text":"isManaged"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isMutable()","text":"isMutable"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()","text":"isNative"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isValidUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"isValidUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastByteIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastByteIndexOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastByteIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastByteIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastByteIndexOfStringUncached(com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastByteIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastIndexOfCodePointUncached(int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastIndexOfCodePointUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#lastIndexOfStringUncached(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"lastIndexOfStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeSubstringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"materializeSubstringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeUncached(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"materializeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#materializeUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"materializeUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseDoubleUncached()","text":"parseDoubleUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseIntUncached()","text":"parseIntUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseIntUncached(int)","text":"parseIntUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseLongUncached()","text":"parseLongUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#parseLongUncached(int)","text":"parseLongUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#readByteUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"readByteUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#readCharUTF16Uncached(int)","text":"readCharUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#regionEqualByteIndexUncached(int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"regionEqualByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#regionEqualByteIndexUncached(int,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"regionEqualByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#regionEqualsUncached(int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"regionEqualsUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#repeatUncached(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"repeatUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#substringByteIndexUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","text":"substringByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#substringUncached(int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","text":"substringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#switchEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"switchEncodingUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#switchEncodingUncached(com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TranscodingErrorHandler)","text":"switchEncodingUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toJavaStringUncached()","text":"toJavaStringUncached"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toString()","text":"toString"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toStringDebug()","text":"toStringDebug"},{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#toValidStringUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"toValidStringUncached"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a primitive String type, which can be reused across languages."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a primitive String type, which can be reused across languages. Language implementers are encouraged to use Truffle Strings as their language's string type for easier interoperability and better performance. Truffle strings can be encoded in a number of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding"},"code":true,"children":[{"kind":"text","text":"encodings"}]},{"kind":"text","text":". A "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" object can cache multiple representations (in multiple encodings) of the same string in the string object itself. A single "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" instance can also represent the same string in multiple encodings, if the string's content would be equal in all such encodings (e.g. a string containing only ASCII characters can be viewed as being encoded in almost any encoding, since the encoded bytes would be equal). To facilitate this, all methods have an "},{"kind":"code","text":"expectedEncoding"},{"kind":"text","text":" parameter to indicate which encoding a given string should be viewed in."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" instances can be created via one of the following nodes, or via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},"code":true,"children":[{"kind":"text","text":"TruffleStringBuilder"}]},{"kind":"text","text":"."}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},"code":true,"children":[{"kind":"text","text":"FromCharArrayUTF16Node"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromIntArrayUTF32Node"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},"code":true,"children":[{"kind":"text","text":"FromCodePointNode"}]}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"},"code":true,"children":[{"kind":"text","text":"FromLongNode"}]}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"For iteration use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":". There is a version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" that is also mutable. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" for details."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Please see the "},{"kind":"link","url":"https://github.com/oracle/graal/tree/master/truffle/docs/TruffleStrings.md","children":[{"kind":"text","text":"tutorial"}]},{"kind":"text","text":" for further usage instructions."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":139}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode","name":"TruffleString.AsManagedNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.AsManagedNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Returns a given string if it is already managed (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a given string if it is already managed (i.e. not backed by a native pointer), otherwise, copies the string's native pointer content into a Java byte array and returns a new string backed by the byte array."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3001}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"cacheResult"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"cacheResult","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if set to "},{"kind":"code","text":"true"},{"kind":"text","text":", managed strings created from native "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" instances are cached in the native string's internal transcoding cache. Note that this will keep the native string alive and reachable via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"},"code":true,"children":[{"kind":"text","text":"AsNativeNode"}]},{"kind":"text","text":". Subsequent calls of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":" with "},{"kind":"code","text":"cacheResult=true"},{"kind":"text","text":" on the same native string are guaranteed to return the same managed string. This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(boolean)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"If the given string is already a managed (i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If the given string is already a managed (i.e. not backed by a native pointer) string, return it. Otherwise, copy the string's native pointer content into a Java byte array and return a new string backed by the byte array."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3020}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.AsManagedNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.AsManagedNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3066}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.AsManagedNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.AsManagedNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3076}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleString"}]},{"kind":"text","text":" as a managed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", meaning that the resulting string's backing memory is not a native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleString"}]},{"kind":"text","text":" as a managed "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", meaning that the resulting string's backing memory is not a native pointer. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2989}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode","name":"TruffleString.AsNativeNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.AsNativeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode#execute(com.oracle.truffle.api.strings.TruffleString,com.oracle.truffle.api.strings.NativeAllocator,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean,boolean)","anchor":"execute(com.oracle.truffle.api.strings.TruffleString,com.oracle.truffle.api.strings.NativeAllocator,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"NativeAllocator","ref":"com.oracle.truffle.api.strings.NativeAllocator"},{"kind":"punct","text":" "},{"kind":"param","text":"allocator"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"useCompaction"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"cacheResult"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},{"name":"allocator","type":[{"kind":"type","text":"NativeAllocator","ref":"com.oracle.truffle.api.strings.NativeAllocator"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a function implementing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.NativeAllocator"},"code":true,"children":[{"kind":"text","text":"NativeAllocator"}]},{"kind":"text","text":". This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"useCompaction","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if set to "},{"kind":"code","text":"true"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_16"}]},{"kind":"text","text":" - encoded strings may be compacted also in the native representation. Otherwise, no string compaction is applied to the native string. This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]},{"name":"cacheResult","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if set to "},{"kind":"code","text":"true"},{"kind":"text","text":", the newly created native string will be cached in the given managed string's internal transcoding cache ring, guaranteeing that subsequent calls on the managed string return the same native string. Note that this ties the lifetime of the native string to that of the managed string. This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Convert a potentially "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isManaged()"},"code":true,"children":[{"kind":"text","text":"managed"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"native"}]},{"kind":"text","text":" string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Convert a potentially "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isManaged()"},"code":true,"children":[{"kind":"text","text":"managed"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"native"}]},{"kind":"text","text":" string. If the given string is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"native"}]},{"kind":"text","text":" already, it is returned. Otherwise, a new string with a backing native buffer allocated via "},{"kind":"code","text":"allocator"},{"kind":"text","text":" is created and stored in the given managed string's internal transcoding cache, such that subsequent calls on the same string will return the same native string. This operation requires native access permissions ("},{"kind":"code","text":"TruffleLanguage.Env#isNativeAccessAllowed()"},{"kind":"text","text":")."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8324}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.AsNativeNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.AsNativeNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"},"code":true,"children":[{"kind":"text","text":"AsNativeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"},"code":true,"children":[{"kind":"text","text":"AsNativeNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8425}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.AsNativeNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.AsNativeNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"},"code":true,"children":[{"kind":"text","text":"AsNativeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsNativeNode"},"code":true,"children":[{"kind":"text","text":"AsNativeNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8435}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to convert a potentially "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isManaged()"},"code":true,"children":[{"kind":"text","text":"managed"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"native"}]},{"kind":"text","text":" string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to convert a potentially "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isManaged()"},"code":true,"children":[{"kind":"text","text":"managed"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"native"}]},{"kind":"text","text":" string."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8290}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode","name":"TruffleString.AsTruffleStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.AsTruffleStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"If the given string is already a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", return it."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If the given string is already a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", return it. If it is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":", create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", copying the mutable string's contents."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2931}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.AsTruffleStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.AsTruffleStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"AsTruffleStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"AsTruffleStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2943}},{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.AsTruffleStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.AsTruffleStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"AsTruffleStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode"},"code":true,"children":[{"kind":"text","text":"AsTruffleStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2953}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleString"}]},{"kind":"text","text":" as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleString"}]},{"kind":"text","text":" as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsTruffleStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2919}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode","name":"TruffleString.ByteIndexOfAnyByteNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ByteIndexOfAnyByteNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"maxByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"values","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Return the byte index of the first occurrence of any byte contained in "},{"kind":"code","text":"values"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxByteIndex"},{"kind":"text","text":" (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return the byte index of the first occurrence of any byte contained in "},{"kind":"code","text":"values"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxByteIndex"},{"kind":"text","text":" (exclusive)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If none of the values is found, return a negative value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4553}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfAnyByteNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfAnyByteNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfAnyByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfAnyByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4600}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfAnyByteNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfAnyByteNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfAnyByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfAnyByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4610}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to find the index of the first occurrence of any byte from a given array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to find the index of the first occurrence of any byte from a given array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfAnyByteNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, byte[], TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4540}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode","name":"TruffleString.ByteIndexOfCodePointNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ByteIndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toByteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"IndexOfCodePointNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"IndexOfCodePointNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5370}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5429}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5439}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"IndexOfCodePointNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"IndexOfCodePointNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5360}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode","name":"TruffleString.ByteIndexOfCodePointSetNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ByteIndexOfCodePointSetNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.CodePointSet)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.CodePointSet)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toByteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.CodePointSet","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},{"kind":"punct","text":" "},{"kind":"param","text":"codePointSet"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"codePointSet","type":[{"kind":"type","text":"TruffleString.CodePointSet","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The set of codepoints to look for. This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the byte index of the first codepoint present in the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},"code":true,"children":[{"kind":"text","text":"CodePointSet"}]},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toByteIndex"},{"kind":"text","text":" (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the byte index of the first codepoint present in the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},"code":true,"children":[{"kind":"text","text":"CodePointSet"}]},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toByteIndex"},{"kind":"text","text":" (exclusive)."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointSetNode"}]},{"kind":"text","text":" will specialize on the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},"code":true,"children":[{"kind":"text","text":"CodePointSet"}]},{"kind":"text","text":"'s content, which is therefore required to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage example: A node that scans a string for a known set of code points and escapes them with '\\'."}]},{"kind":"code","text":"\nabstract static class StringEscapeNode extends Node {\n\n    public static final TruffleString.Encoding ENCODING = TruffleString.Encoding.UTF_32;\n    public static final TruffleString.ByteIndexOfCodePointSetNode.CodePointSet ESCAPE_CHARS = TruffleString.ByteIndexOfCodePointSetNode.CodePointSet.fromRanges(new int[]{\n                    '\\n', '\\n',\n                    '\\r', '\\r',\n                    // ....\n    }, ENCODING);\n\n    abstract TruffleString execute(TruffleString input);\n\n    &#64;Specialization\n    static TruffleString run(TruffleString input,\n                    &#64;Cached TruffleString.ByteIndexOfCodePointSetNode byteIndexOfCodePointSetNode,\n                    &#64;Cached TruffleStringBuilder.AppendSubstringByteIndexNode appendSubstringByteIndexNode,\n                    &#64;Cached TruffleString.CodePointAtByteIndexNode codePointAtByteIndexNode,\n                    &#64;Cached TruffleStringBuilder.AppendCodePointNode appendCodePointNode,\n                    &#64;Cached TruffleString.ByteLengthOfCodePointNode byteLengthOfCodePointNode,\n                    &#64;Cached TruffleStringBuilder.ToStringNode toStringNode) {\n        int byteLength = input.byteLength(ENCODING);\n        TruffleStringBuilder sb = TruffleStringBuilder.create(ENCODING, byteLength);\n        int lastPos = 0;\n        int pos = 0;\n        while (pos >= 0) {\n            pos = byteIndexOfCodePointSetNode.execute(input, lastPos, byteLength, ESCAPE_CHARS);\n            int substringLength = (pos < 0 ? byteLength : pos) - lastPos;\n            appendSubstringByteIndexNode.execute(sb, input, lastPos, substringLength);\n            if (pos >= 0) {\n                int codePoint = codePointAtByteIndexNode.execute(input, pos, ENCODING);\n                appendCodePointNode.execute(sb, '\\\\');\n                appendCodePointNode.execute(sb, codePoint);\n                int codePointLength = byteLengthOfCodePointNode.execute(input, pos, ENCODING);\n                lastPos = pos + codePointLength;\n            }\n        }\n        return toStringNode.execute(sb);\n    }\n}"}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5038}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.CodePointSet,boolean)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.CodePointSet,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toByteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.CodePointSet","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},{"kind":"punct","text":" "},{"kind":"param","text":"codePointSet"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"usePreciseCodeRange"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"codePointSet","type":[{"kind":"type","text":"TruffleString.CodePointSet","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"}]},{"name":"usePreciseCodeRange","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"If this parameter is set to "},{"kind":"code","text":"true"},{"kind":"text","text":", the node may evaluate the input string's precise code range for better search performance. For more details, see "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeNode"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeImpreciseNode"}]},{"kind":"text","text":". This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the byte index of the first codepoint present in the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},"code":true,"children":[{"kind":"text","text":"CodePointSet"}]},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toByteIndex"},{"kind":"text","text":" (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the byte index of the first codepoint present in the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},"code":true,"children":[{"kind":"text","text":"CodePointSet"}]},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toByteIndex"},{"kind":"text","text":" (exclusive)."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5054}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfCodePointSetNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfCodePointSetNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointSetNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointSetNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5124}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfCodePointSetNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfCodePointSetNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointSetNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointSetNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5134}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to find the byte index of the first occurrence of a codepoint present in a given codepoint set."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to find the byte index of the first occurrence of a codepoint present in a given codepoint set. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.CodePointSet)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.CodePointSet)"}]},{"kind":"text","text":" for details."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4973}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode","name":"TruffleString.ByteIndexOfStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ByteIndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toByteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5736}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toByteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":", but with byte indices. This variant accepts a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask"}]},{"kind":"text","text":" as the search value "},{"kind":"code","text":"b"},{"kind":"text","text":", which changes the searching algorithm in the following manner: whenever the contents of "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" are compared, the mask is OR'ed to "},{"kind":"code","text":"a"},{"kind":"text","text":", as shown in this exemplary method:"}]},{"kind":"code","text":"\nboolean bytesEqualAt(TruffleString a, int byteIndexA, TruffleString.WithMask b, int byteIndexB) {\n    return (readByte(a, byteIndexA) | readByte(b.mask, byteIndexB)) == readByte(b, byteIndexB);\n}"}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5756}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5846}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5856}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5726}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode","name":"TruffleString.ByteIndexOfStringSetNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ByteIndexOfStringSetNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toByteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.StringSet","ref":"com.oracle.truffle.api.strings.TruffleString$StringSet"},{"kind":"punct","text":" "},{"kind":"param","text":"stringSet"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"stringSet","type":[{"kind":"type","text":"TruffleString.StringSet","ref":"com.oracle.truffle.api.strings.TruffleString$StringSet"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"doc":{"summary":[{"kind":"text","text":"Returns the byte index of the first occurrence of any string present in the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet"},"code":true,"children":[{"kind":"text","text":"StringSet"}]},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toByteIndex"},{"kind":"text","text":" (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the byte index of the first occurrence of any string present in the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet"},"code":true,"children":[{"kind":"text","text":"StringSet"}]},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toByteIndex"},{"kind":"text","text":" (exclusive). The returned "},{"kind":"code","text":"long"},{"kind":"text","text":" packs the resulting byte index into the high 32 bits and the matching pattern's index into the low 32 bits. If no match is found, the result packs "},{"kind":"code","text":"-1"},{"kind":"text","text":" for both fields. If multiple strings match at the first matching byte index, the string with the lowest index in the array passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet#fromArray(com.oracle.truffle.api.strings.AbstractTruffleString[],com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"StringSet.fromArray(AbstractTruffleString[], Encoding)"}]},{"kind":"text","text":" is selected."}]},{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringSetNode"}]},{"kind":"text","text":" will specialize on the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet"},"code":true,"children":[{"kind":"text","text":"StringSet"}]},{"kind":"text","text":"'s content, which is therefore required to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5168}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#unpackResultByteIndex(long)","anchor":"unpackResultByteIndex(long)","kind":"method","name":"unpackResultByteIndex","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"unpackResultByteIndex"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"result","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the byte index part of a result returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.StringSet)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the byte index part of a result returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.StringSet)"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5226}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#unpackResultPatternIndex(long)","anchor":"unpackResultPatternIndex(long)","kind":"method","name":"unpackResultPatternIndex","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"unpackResultPatternIndex"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"result","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the pattern index part of a result returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.StringSet)"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the pattern index part of a result returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.StringSet)"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5236}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#resultIsMatch(long)","anchor":"resultIsMatch(long)","kind":"method","name":"resultIsMatch","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"resultIsMatch"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"result","type":[{"kind":"keyword","text":"long"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given result, as returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.StringSet)"}]},{"kind":"text","text":", represents a successful match."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the given result, as returned by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.StringSet)"}]},{"kind":"text","text":", represents a successful match."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5247}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfStringSetNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfStringSetNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringSetNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringSetNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5260}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexOfStringSetNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexOfStringSetNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringSetNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringSetNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5270}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to find the byte index of the first occurrence of any string contained in a given string set."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to find the byte index of the first occurrence of any string contained in a given string set. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.StringSet)"}]},{"kind":"text","text":" for details."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5146}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode","name":"TruffleString.ByteIndexToCodePointIndexNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ByteIndexToCodePointIndexNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Convert the given byte index to a codepoint index, relative to starting point "},{"kind":"code","text":"byteOffset"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Convert the given byte index to a codepoint index, relative to starting point "},{"kind":"code","text":"byteOffset"},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4065}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexToCodePointIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexToCodePointIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexToCodePointIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexToCodePointIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4157}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteIndexToCodePointIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteIndexToCodePointIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexToCodePointIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexToCodePointIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4167}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to convert a given byte index to a codepoint index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to convert a given byte index to a codepoint index. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexToCodePointIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4054}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode","name":"TruffleString.ByteLengthOfCodePointNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ByteLengthOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get the number of bytes occupied by the codepoint starting at "},{"kind":"code","text":"byteIndex"},{"kind":"text","text":", with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort"}]},{"kind":"text","text":" error handling."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the number of bytes occupied by the codepoint starting at "},{"kind":"code","text":"byteIndex"},{"kind":"text","text":", with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort"}]},{"kind":"text","text":" error handling."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3963}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandling"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandling","type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if set to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"ErrorHandling.BEST_EFFORT"}]},{"kind":"text","text":", this node will return the encoding's minimum number of bytes per codepoint if an error occurs while reading the codepoint. If set to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#RETURN_NEGATIVE"},"code":true,"children":[{"kind":"text","text":"ErrorHandling.RETURN_NEGATIVE"}]},{"kind":"text","text":", a negative value will be returned instead, where two error cases are distinguished: if the codepoint is invalid, the return value is -1. If the codepoint is an unfinished, possibly valid byte sequence at the end of the string, the return value is "},{"kind":"code","text":"-1 - (number of missing bytes)"},{"kind":"text","text":". This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get the number of bytes occupied by the codepoint starting at "},{"kind":"code","text":"byteIndex"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the number of bytes occupied by the codepoint starting at "},{"kind":"code","text":"byteIndex"},{"kind":"text","text":"."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3982}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteLengthOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteLengthOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"ByteLengthOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"ByteLengthOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4033}},{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ByteLengthOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ByteLengthOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"ByteLengthOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"ByteLengthOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4043}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get the number of bytes occupied by the codepoint starting at a given byte index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get the number of bytes occupied by the codepoint starting at a given byte index. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteLengthOfCodePointNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3952}},{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node","name":"TruffleString.CharIndexOfAnyCharUTF16Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CharIndexOfAnyCharUTF16Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,char[])","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,char[])","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromCharIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxCharIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromCharIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"maxCharIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"values","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Return the char index of the first occurrence of any char contained in "},{"kind":"code","text":"values"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromCharIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxCharIndex"},{"kind":"text","text":" (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return the char index of the first occurrence of any char contained in "},{"kind":"code","text":"values"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromCharIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxCharIndex"},{"kind":"text","text":" (exclusive)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If none of the values is found, return a negative value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4634}},{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CharIndexOfAnyCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CharIndexOfAnyCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"CharIndexOfAnyCharUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"CharIndexOfAnyCharUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4680}},{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CharIndexOfAnyCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CharIndexOfAnyCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"CharIndexOfAnyCharUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"CharIndexOfAnyCharUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4690}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to find the index of the first occurrence of any "},{"kind":"code","text":"char"},{"kind":"text","text":" from a given array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to find the index of the first occurrence of any "},{"kind":"code","text":"char"},{"kind":"text","text":" from a given array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CharIndexOfAnyCharUTF16Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,char[])"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, char[])"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4621}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode","name":"TruffleString.CodePointAtByteIndexNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CodePointAtByteIndexNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"i","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Decode and return the codepoint at byte index "},{"kind":"code","text":"i"},{"kind":"text","text":", with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort"}]},{"kind":"text","text":" error handling."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Decode and return the codepoint at byte index "},{"kind":"code","text":"i"},{"kind":"text","text":", with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort"}]},{"kind":"text","text":" error handling."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4456}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandling"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"i","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandling","type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"analogous to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexNode"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Decode and return the codepoint at byte index "},{"kind":"code","text":"i"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Decode and return the codepoint at byte index "},{"kind":"code","text":"i"},{"kind":"text","text":"."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4466}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointAtByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointAtByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4518}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointAtByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointAtByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4528}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to read a codepoint at a given byte index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to read a codepoint at a given byte index. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4445}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode","name":"TruffleString.CodePointAtIndexNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CodePointAtIndexNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"i","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Decode and return the codepoint at codepoint index "},{"kind":"code","text":"i"},{"kind":"text","text":", with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort"}]},{"kind":"text","text":" error handling."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Decode and return the codepoint at codepoint index "},{"kind":"code","text":"i"},{"kind":"text","text":", with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort"}]},{"kind":"text","text":" error handling."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4267}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandling"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"i","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandling","type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if set to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"ErrorHandling.BEST_EFFORT"}]},{"kind":"text","text":", the return value on invalid codepoints depends on "},{"kind":"code","text":"expectedEncoding"},{"kind":"text","text":":"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_8"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_8"}]},{"kind":"text","text":": Unicode Replacement character "},{"kind":"code","text":"0xFFFD"}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_16"}]},{"kind":"text","text":": the (16-bit) "},{"kind":"code","text":"char"},{"kind":"text","text":" value read at index "},{"kind":"code","text":"i"}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":": the (32-bit) "},{"kind":"code","text":"int"},{"kind":"text","text":" value read at index "},{"kind":"code","text":"i"}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#US_ASCII"},"code":true,"children":[{"kind":"text","text":"Encoding.US_ASCII"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_1"},"code":true,"children":[{"kind":"text","text":"Encoding.ISO_8859_1"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#BYTES"},"code":true,"children":[{"kind":"text","text":"Encoding.BYTES"}]},{"kind":"text","text":": the (8-bit) unsigned "},{"kind":"code","text":"byte"},{"kind":"text","text":" value read at index "},{"kind":"code","text":"i"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"All other Encodings: Unicode Replacement character "},{"kind":"code","text":"0xFFFD"}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"If set to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#RETURN_NEGATIVE"},"code":true,"children":[{"kind":"text","text":"ErrorHandling.RETURN_NEGATIVE"}]},{"kind":"text","text":", "},{"kind":"code","text":"-1"},{"kind":"text","text":" will be returned instead. This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Decode and return the codepoint at codepoint index "},{"kind":"code","text":"i"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Decode and return the codepoint at codepoint index "},{"kind":"code","text":"i"},{"kind":"text","text":"."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4293}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointAtIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointAtIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4344}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointAtIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointAtIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4354}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to read a codepoint at a given codepoint index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to read a codepoint at a given codepoint index. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4256}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node","name":"TruffleString.CodePointAtIndexUTF32Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CodePointAtIndexUTF32Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"i"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"i","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Decode and return the codepoint at codepoint index "},{"kind":"code","text":"i"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Decode and return the codepoint at codepoint index "},{"kind":"code","text":"i"},{"kind":"text","text":". This node is a specialized version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexNode"}]},{"kind":"text","text":" for UTF-32 strings, with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort"}]},{"kind":"text","text":" error handling. This node should be preferred over the generic "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexNode"}]},{"kind":"text","text":" when possible for better performance during warmup / in interpreter mode."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4379}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointAtIndexUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointAtIndexUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4424}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointAtIndexUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointAtIndexUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4434}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to read a codepoint at a given codepoint index from a UTF-32 string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to read a codepoint at a given codepoint index from a UTF-32 string. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexUTF32Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int)"}]},{"kind":"text","text":" for details."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4365}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode","name":"TruffleString.CodePointIndexToByteIndexNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CodePointIndexToByteIndexNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepointIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"codepointIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Convert the given codepoint index to a byte index, relative to starting point "},{"kind":"code","text":"byteOffset"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Convert the given codepoint index to a byte index, relative to starting point "},{"kind":"code","text":"byteOffset"},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4189}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointIndexToByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointIndexToByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4235}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointIndexToByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointIndexToByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointIndexToByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4245}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to convert a given codepoint index to a byte index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to convert a given codepoint index to a byte index. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointIndexToByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4178}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode","name":"TruffleString.CodePointLengthNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CodePointLengthNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Return the number of codepoints in the string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return the number of codepoints in the string."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the string is not encoded correctly (if its coderange is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#BROKEN"},"code":true,"children":[{"kind":"text","text":"CodeRange.BROKEN"}]},{"kind":"text","text":"), every broken minimum-length sequence in the encoding (4 bytes for UTF-32, 2 bytes for UTF-16, 1 byte for other encodings) adds 1 to the length."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3630}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointLengthNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointLengthNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"},"code":true,"children":[{"kind":"text","text":"CodePointLengthNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"},"code":true,"children":[{"kind":"text","text":"CodePointLengthNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3644}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointLengthNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointLengthNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"},"code":true,"children":[{"kind":"text","text":"CodePointLengthNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointLengthNode"},"code":true,"children":[{"kind":"text","text":"CodePointLengthNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3654}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get the number of codepoints in a string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get the number of codepoints in a string."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3616}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet","name":"TruffleString.CodePointSet","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CodePointSet"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet#fromRanges(int[],com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"fromRanges(int[],com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"fromRanges","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodePointSet","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},{"kind":"punct","text":" "},{"kind":"name","text":"fromRanges"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"ranges"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"ranges","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a sorted list of non-adjacent codepoint ranges. For every two consecutive array elements, the first is interpreted as the range's inclusive lower bound, and the second element is the range's inclusive upper bound. Example: an array "},{"kind":"code","text":"[1, 4, 8, 10]"},{"kind":"text","text":" represents the inclusive ranges "},{"kind":"code","text":"[1-4]"},{"kind":"text","text":" and "},{"kind":"code","text":"[8-10]"},{"kind":"text","text":"."}]}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodePointSet","ref":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},"code":true,"children":[{"kind":"text","text":"CodePointSet"}]},{"kind":"text","text":" from the given list of ranges."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet"},"code":true,"children":[{"kind":"text","text":"CodePointSet"}]},{"kind":"text","text":" from the given list of ranges. This operation is expensive, it is recommended to cache the result."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4835}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointSet#isIntrinsicCandidate(com.oracle.truffle.api.strings.TruffleString.CodeRange)","anchor":"isIntrinsicCandidate(com.oracle.truffle.api.strings.TruffleString.CodeRange)","kind":"method","name":"isIntrinsicCandidate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isIntrinsicCandidate"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"param","text":"codeRange"},{"kind":"punct","text":")"}],"params":[{"name":"codeRange","type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointSetNode"}]},{"kind":"text","text":" may implement the search for this particular code point set in strings with the given code range by dispatching to a compiler intrinsic."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointSetNode"}]},{"kind":"text","text":" may implement the search for this particular code point set in strings with the given code range by dispatching to a compiler intrinsic."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4848}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A set of codepoints in a given encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A set of codepoints in a given encoding. Used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfCodePointSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.CodePointSet)"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfCodePointSetNode.execute(AbstractTruffleString, int, int, TruffleString.CodePointSet)"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4809}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange","name":"TruffleString.CodeRange","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CodeRange"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#ASCII","anchor":"ASCII","kind":"enumConstant","name":"ASCII","signature":[{"kind":"name","text":"ASCII"}],"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}],"doc":{"summary":[{"kind":"text","text":"All codepoints in this string are part of the Basic Latin Unicode block, also known as ASCII (0x00 - 0x7f)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"All codepoints in this string are part of the Basic Latin Unicode block, also known as ASCII (0x00 - 0x7f)."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1254}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#LATIN_1","anchor":"LATIN_1","kind":"enumConstant","name":"LATIN_1","signature":[{"kind":"name","text":"LATIN_1"}],"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}],"doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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. If this code range is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"precise"}]},{"kind":"text","text":", at least one codepoint is outside the ASCII range (greater than 0x7f). Applicable to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_1"},"code":true,"children":[{"kind":"text","text":"Encoding.ISO_8859_1"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_16"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":" only."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1265}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#BMP","anchor":"BMP","kind":"enumConstant","name":"BMP","signature":[{"kind":"name","text":"BMP"}],"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}],"doc":{"summary":[{"kind":"text","text":"All codepoints in this string are part of the Unicode Basic Multilingual Plane (BMP) ( 0x0000 - 0xffff)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"All codepoints in this string are part of the Unicode Basic Multilingual Plane (BMP) ( 0x0000 - 0xffff). If this code range is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"precise"}]},{"kind":"text","text":", at least one codepoint is outside the LATIN_1 range (greater than 0xff). Applicable to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_16"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":" only."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1275}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#VALID","anchor":"VALID","kind":"enumConstant","name":"VALID","signature":[{"kind":"name","text":"VALID"}],"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}],"doc":{"summary":[{"kind":"text","text":"This string is encoded correctly ("},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"IsValidNode"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":"), and if this code range is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"precise"}]},{"kind":"text","text":", at least one codepoint is outside the largest other applicable code range (e.g."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This string is encoded correctly ("},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"IsValidNode"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"true"},{"kind":"text","text":"), and if this code range is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"precise"}]},{"kind":"text","text":", at least one codepoint is outside the largest other applicable code range (e.g. greater than 0x7f on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_8"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_8"}]},{"kind":"text","text":", greater than 0xffff on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_16"}]},{"kind":"text","text":")."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1285}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#BROKEN","anchor":"BROKEN","kind":"enumConstant","name":"BROKEN","signature":[{"kind":"name","text":"BROKEN"}],"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}],"doc":{"summary":[{"kind":"text","text":"If this code range is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"precise"}]},{"kind":"text","text":", the string is not encoded correctly ("},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"IsValidNode"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":"), and contains at least one invalid codepoint."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"If this code range is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"precise"}]},{"kind":"text","text":", the string is not encoded correctly ("},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"IsValidNode"}]},{"kind":"text","text":" returns "},{"kind":"code","text":"false"},{"kind":"text","text":"), and contains at least one invalid codepoint. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},"code":true,"children":[{"kind":"text","text":"Otherwise"}]},{"kind":"text","text":", no information about the string is known."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1295}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#isSubsetOf(com.oracle.truffle.api.strings.TruffleString.CodeRange)","anchor":"isSubsetOf(com.oracle.truffle.api.strings.TruffleString.CodeRange)","kind":"method","name":"isSubsetOf","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isSubsetOf"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this set of potential codepoints is equal to or contained by "},{"kind":"code","text":"other"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this set of potential codepoints is equal to or contained by "},{"kind":"code","text":"other"},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1303}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#isSupersetOf(com.oracle.truffle.api.strings.TruffleString.CodeRange)","anchor":"isSupersetOf(com.oracle.truffle.api.strings.TruffleString.CodeRange)","kind":"method","name":"isSupersetOf","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isSupersetOf"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"param","text":"other"},{"kind":"punct","text":")"}],"params":[{"name":"other","type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this set of potential codepoints is equal to or contains "},{"kind":"code","text":"other"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if this set of potential codepoints is equal to or contains "},{"kind":"code","text":"other"},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1313}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Provides information about a string's content."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides information about a string's content. All values of this enum describe a set of codepoints potentially contained by a string reporting said value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1246}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode","name":"TruffleString.CodeRangeEqualsNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CodeRangeEqualsNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.CodeRange)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.CodeRange)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"param","text":"codeRange"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"codeRange","type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the string's code range is equal to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the string's code range is equal to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":". Use this operation when caching code range instances, e.g.:"}]},{"kind":"code","text":"\n&#64;Specialization(guards = \"codeRangeEqualsNode.execute(a, cachedCodeRange)\")\nstatic void someOperation(TString a,\n                &#64;Cached TruffleString.GetCodeRangeNode getCodeRangeNode,\n                &#64;Cached TruffleString.CodeRangeEqualsNode codeRangeEqualsNode,\n                &#64;Cached(\"getCodeRangeNode.execute(this, a)\") CodeRange cachedCodeRange) {\n    // ...\n}"}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3414}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRangeEqualsNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRangeEqualsNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"},"code":true,"children":[{"kind":"text","text":"CodeRangeEqualsNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"},"code":true,"children":[{"kind":"text","text":"CodeRangeEqualsNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3427}},{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRangeEqualsNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRangeEqualsNode","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"},"code":true,"children":[{"kind":"text","text":"CodeRangeEqualsNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode"},"code":true,"children":[{"kind":"text","text":"CodeRangeEqualsNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3437}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to check if a string's code range is equal to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to check if a string's code range is equal to the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRangeEqualsNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.CodeRange)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.CodeRange)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3391}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel","name":"TruffleString.CompactionLevel","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CompactionLevel"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#S1","anchor":"S1","kind":"enumConstant","name":"S1","signature":[{"kind":"name","text":"S1"}],"type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}],"doc":{"summary":[{"kind":"text","text":"One byte per array element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"One byte per array element."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3499}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#S2","anchor":"S2","kind":"enumConstant","name":"S2","signature":[{"kind":"name","text":"S2"}],"type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}],"doc":{"summary":[{"kind":"text","text":"Two bytes per array element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Two bytes per array element."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3505}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#S4","anchor":"S4","kind":"enumConstant","name":"S4","signature":[{"kind":"name","text":"S4"}],"type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}],"doc":{"summary":[{"kind":"text","text":"Four bytes per array element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Four bytes per array element."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3511}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#getBytes()","anchor":"getBytes()","kind":"method","name":"getBytes","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getBytes"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get the number of bytes per internal array element."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the number of bytes per internal array element."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3530}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#getLog2()","anchor":"getLog2()","kind":"method","name":"getLog2","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getLog2"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Get the number of bytes per internal array element in log2 format."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the number of bytes per internal array element in log2 format."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3539}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Represents a string's compaction level, i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a string's compaction level, i.e. the internal number of bytes per array element. This is relevant only for "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_16"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":", since TruffleString doesn't support string compaction on any other encoding."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3493}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode","name":"TruffleString.CompareBytesNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CompareBytesNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Compare strings "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" byte-by-byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Compare strings "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" byte-by-byte. Returns zero if "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" are equal. If "},{"kind":"code","text":"a"},{"kind":"text","text":" is equal to "},{"kind":"code","text":"b"},{"kind":"text","text":" up to its length, but "},{"kind":"code","text":"b"},{"kind":"text","text":" is longer than "},{"kind":"code","text":"a"},{"kind":"text","text":", a negative value is returned. In the inverse case, a positive value is returned. Otherwise, elements "},{"kind":"code","text":"a[i]"},{"kind":"text","text":" and "},{"kind":"code","text":"b[i]"},{"kind":"text","text":" at a byte index "},{"kind":"code","text":"i"},{"kind":"text","text":" are different. If "},{"kind":"code","text":"a[i]"},{"kind":"text","text":" is greater than "},{"kind":"code","text":"b[i]"},{"kind":"text","text":", a positive value is returned, otherwise a negative value is returned."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6135}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompareBytesNode","ref":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompareBytesNode","ref":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"},"code":true,"children":[{"kind":"text","text":"CompareBytesNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"},"code":true,"children":[{"kind":"text","text":"CompareBytesNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6204}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompareBytesNode","ref":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompareBytesNode","ref":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"},"code":true,"children":[{"kind":"text","text":"CompareBytesNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode"},"code":true,"children":[{"kind":"text","text":"CompareBytesNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6214}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to compare two strings byte-by-byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to compare two strings byte-by-byte. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareBytesNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6120}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node","name":"TruffleString.CompareCharsUTF16Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CompareCharsUTF16Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Compare UTF-16 strings "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" char-by-char."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Compare UTF-16 strings "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" char-by-char. Returns zero if "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" are equal. If "},{"kind":"code","text":"a"},{"kind":"text","text":" is equal to "},{"kind":"code","text":"b"},{"kind":"text","text":" up to its length, but "},{"kind":"code","text":"b"},{"kind":"text","text":" is longer than "},{"kind":"code","text":"a"},{"kind":"text","text":", a negative value is returned. In the inverse case, a positive value is returned. Otherwise, elements "},{"kind":"code","text":"a[i]"},{"kind":"text","text":" and "},{"kind":"code","text":"b[i]"},{"kind":"text","text":" at an index "},{"kind":"code","text":"i"},{"kind":"text","text":" are different. If "},{"kind":"code","text":"a[i]"},{"kind":"text","text":" is greater than "},{"kind":"code","text":"b[i]"},{"kind":"text","text":", a positive value is returned, otherwise a negative value is returned."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6240}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompareCharsUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompareCharsUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"},"code":true,"children":[{"kind":"text","text":"CompareCharsUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"},"code":true,"children":[{"kind":"text","text":"CompareCharsUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6309}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompareCharsUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompareCharsUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"},"code":true,"children":[{"kind":"text","text":"CompareCharsUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node"},"code":true,"children":[{"kind":"text","text":"CompareCharsUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6319}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to compare two UTF-16 strings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to compare two UTF-16 strings. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareCharsUTF16Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, AbstractTruffleString)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6225}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node","name":"TruffleString.CompareIntsUTF32Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CompareIntsUTF32Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Compare UTF-32 strings "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" int-by-int."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Compare UTF-32 strings "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" int-by-int. Returns zero if "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" are equal. If "},{"kind":"code","text":"a"},{"kind":"text","text":" is equal to "},{"kind":"code","text":"b"},{"kind":"text","text":" up to its length, but "},{"kind":"code","text":"b"},{"kind":"text","text":" is longer than "},{"kind":"code","text":"a"},{"kind":"text","text":", a negative value is returned. In the inverse case, a positive value is returned. Otherwise, elements "},{"kind":"code","text":"a[i]"},{"kind":"text","text":" and "},{"kind":"code","text":"b[i]"},{"kind":"text","text":" at an index "},{"kind":"code","text":"i"},{"kind":"text","text":" are different. If "},{"kind":"code","text":"a[i]"},{"kind":"text","text":" is greater than "},{"kind":"code","text":"b[i]"},{"kind":"text","text":", a positive value is returned, otherwise a negative value is returned."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6345}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompareIntsUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompareIntsUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"},"code":true,"children":[{"kind":"text","text":"CompareIntsUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"},"code":true,"children":[{"kind":"text","text":"CompareIntsUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6414}},{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompareIntsUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompareIntsUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"},"code":true,"children":[{"kind":"text","text":"CompareIntsUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node"},"code":true,"children":[{"kind":"text","text":"CompareIntsUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6424}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to compare two UTF-32 strings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to compare two UTF-32 strings. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompareIntsUTF32Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, AbstractTruffleString)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6330}},{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode","name":"TruffleString.ConcatNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ConcatNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if "},{"kind":"code","text":"true"},{"kind":"text","text":", the creation of the new string's internal array may be delayed until it is required by another operation. This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(boolean)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Create a new string by concatenating "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new string by concatenating "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6687}},{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ConcatNode","ref":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ConcatNode","ref":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6773}},{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ConcatNode","ref":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ConcatNode","ref":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"ConcatNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6783}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to concatenate two strings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to concatenate two strings. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, AbstractTruffleString, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6673}},{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode","name":"TruffleString.CopyToByteArrayNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CopyToByteArrayNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"string"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"string","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},"doc":{"summary":[{"kind":"text","text":"Copy the entire string to a byte[] and return it."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copy the entire string to a byte[] and return it."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7875}},{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteFromIndexA"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"dst"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteFromIndexDst"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"byteFromIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"dst","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteFromIndexDst","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"doc":{"summary":[{"kind":"text","text":"Copy a region of the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" "},{"kind":"code","text":"a"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"byteFromIndexA"},{"kind":"text","text":" and "},{"kind":"code","text":"byteLength"},{"kind":"text","text":" into the given byte array, at starting at "},{"kind":"code","text":"byteFromIndexDst"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copy a region of the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" "},{"kind":"code","text":"a"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"byteFromIndexA"},{"kind":"text","text":" and "},{"kind":"code","text":"byteLength"},{"kind":"text","text":" into the given byte array, at starting at "},{"kind":"code","text":"byteFromIndexDst"},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7889}},{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CopyToByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CopyToByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},"code":true,"children":[{"kind":"text","text":"CopyToByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},"code":true,"children":[{"kind":"text","text":"CopyToByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7902}},{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CopyToByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CopyToByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},"code":true,"children":[{"kind":"text","text":"CopyToByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode"},"code":true,"children":[{"kind":"text","text":"CopyToByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7912}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to copy a region of a string into a byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to copy a region of a string into a byte array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToByteArrayNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, byte[], int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7865}},{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode","name":"TruffleString.CopyToNativeMemoryNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CopyToNativeMemoryNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteFromIndexA"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteFromIndexDst"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"byteFromIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteFromIndexDst","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"doc":{"summary":[{"kind":"text","text":"Copy a region of the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" "},{"kind":"code","text":"a"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"byteFromIndexA"},{"kind":"text","text":" and "},{"kind":"code","text":"byteLength"},{"kind":"text","text":" into the given interop object representing a native pointer ("},{"kind":"code","text":"isPointer(pointerObject)"},{"kind":"text","text":" must return "},{"kind":"code","text":"true"},{"kind":"text","text":"), starting at "},{"kind":"code","text":"byteFromIndexDst"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Copy a region of the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" "},{"kind":"code","text":"a"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"byteFromIndexA"},{"kind":"text","text":" and "},{"kind":"code","text":"byteLength"},{"kind":"text","text":" into the given interop object representing a native pointer ("},{"kind":"code","text":"isPointer(pointerObject)"},{"kind":"text","text":" must return "},{"kind":"code","text":"true"},{"kind":"text","text":"), starting at "},{"kind":"code","text":"byteFromIndexDst"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This operation requires native access permissions ("},{"kind":"code","text":"TruffleLanguage.Env#isNativeAccessAllowed()"},{"kind":"text","text":")."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Since GraalVM version 25.1, the native pointer may also be passed as a primitive long value in place of "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8040}},{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CopyToNativeMemoryNode","ref":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CopyToNativeMemoryNode","ref":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"},"code":true,"children":[{"kind":"text","text":"CopyToNativeMemoryNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"},"code":true,"children":[{"kind":"text","text":"CopyToNativeMemoryNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8073}},{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CopyToNativeMemoryNode","ref":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CopyToNativeMemoryNode","ref":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"},"code":true,"children":[{"kind":"text","text":"CopyToNativeMemoryNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode"},"code":true,"children":[{"kind":"text","text":"CopyToNativeMemoryNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8083}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to copy a region of a string into native memory."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to copy a region of a string into native memory. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CopyToNativeMemoryNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, Object, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8018}},{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode","name":"TruffleString.CreateBackwardCodePointIteratorNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CreateBackwardCodePointIteratorNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":", which allows iterating this string's code points, with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort error handling"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":", which allows iterating this string's code points, with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort error handling"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8965}},{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandling"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandling","type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"analogous to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexNode"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":", which allows iterating this string's code points."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":", which allows iterating this string's code points. The iterator is initialized to begin iteration at the end of the string, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator.PreviousNode"}]},{"kind":"text","text":" to iterate in reverse order."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8977}},{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CreateBackwardCodePointIteratorNode","ref":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CreateBackwardCodePointIteratorNode","ref":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"CreateBackwardCodePointIteratorNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"CreateBackwardCodePointIteratorNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":9016}},{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CreateBackwardCodePointIteratorNode","ref":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CreateBackwardCodePointIteratorNode","ref":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"CreateBackwardCodePointIteratorNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"CreateBackwardCodePointIteratorNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":9026}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateBackwardCodePointIteratorNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8954}},{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode","name":"TruffleString.CreateCodePointIteratorNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.CreateCodePointIteratorNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":", which allows iterating this string's code points, with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort error handling"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":", which allows iterating this string's code points, with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT"},"code":true,"children":[{"kind":"text","text":"best-effort error handling"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8882}},{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.ErrorHandling)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandling"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandling","type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"analogous to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexNode"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]},"doc":{"summary":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":", which allows iterating this string's code points."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":", which allows iterating this string's code points. The iterator is initialized to begin iteration at the start of the string, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator.NextNode"}]},{"kind":"text","text":" to iterate."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8894}},{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CreateCodePointIteratorNode","ref":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CreateCodePointIteratorNode","ref":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"CreateCodePointIteratorNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"CreateCodePointIteratorNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8933}},{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CreateCodePointIteratorNode","ref":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.CreateCodePointIteratorNode","ref":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"CreateCodePointIteratorNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode"},"code":true,"children":[{"kind":"text","text":"CreateCodePointIteratorNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8943}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator"},"code":true,"children":[{"kind":"text","text":"TruffleStringIterator"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CreateCodePointIteratorNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8871}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding","name":"TruffleString.Encoding","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.Encoding"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32LE","anchor":"UTF_32LE","kind":"enumConstant","name":"UTF_32LE","signature":[{"kind":"name","text":"UTF_32LE"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF-32LE."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF-32LE. Directly supported if the current system is little-endian."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":440}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32BE","anchor":"UTF_32BE","kind":"enumConstant","name":"UTF_32BE","signature":[{"kind":"name","text":"UTF_32BE"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF-32BE."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF-32BE. Directly supported if the current system is big-endian."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":446}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16LE","anchor":"UTF_16LE","kind":"enumConstant","name":"UTF_16LE","signature":[{"kind":"name","text":"UTF_16LE"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF-16LE."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF-16LE. Directly supported if the current system is little-endian."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":452}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16BE","anchor":"UTF_16BE","kind":"enumConstant","name":"UTF_16BE","signature":[{"kind":"name","text":"UTF_16BE"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF-16BE."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF-16BE. Directly supported if the current system is big-endian."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":458}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_1","anchor":"ISO_8859_1","kind":"enumConstant","name":"ISO_8859_1","signature":[{"kind":"name","text":"ISO_8859_1"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-1, also known as LATIN-1, which is equivalent to US-ASCII + the LATIN-1 Supplement Unicode block."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-1, also known as LATIN-1, which is equivalent to US-ASCII + the LATIN-1 Supplement Unicode block."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":465}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_8","anchor":"UTF_8","kind":"enumConstant","name":"UTF_8","signature":[{"kind":"name","text":"UTF_8"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF-8."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF-8."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":471}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#US_ASCII","anchor":"US_ASCII","kind":"enumConstant","name":"US_ASCII","signature":[{"kind":"name","text":"US_ASCII"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"US-ASCII, which maps only 7-bit characters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"US-ASCII, which maps only 7-bit characters."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":477}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#BYTES","anchor":"BYTES","kind":"enumConstant","name":"BYTES","signature":[{"kind":"name","text":"BYTES"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Special \"encoding\" BYTES: This encoding is identical to US-ASCII, but treats all values outside the us-ascii range as valid codepoints as well."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Special \"encoding\" BYTES: This encoding is identical to US-ASCII, but treats all values outside the us-ascii range as valid codepoints as well. Caution: no codepoint mappings are defined for non-us-ascii values in this encoding, so "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"SwitchEncodingNode"}]},{"kind":"text","text":" will replace all of them with "},{"kind":"code","text":"'?'"},{"kind":"text","text":" when converting from or to BYTES! To preserve all bytes and \"reinterpret\" a BYTES string in another encoding, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"ForceEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":488}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Big5","anchor":"Big5","kind":"enumConstant","name":"Big5","signature":[{"kind":"name","text":"Big5"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Big5."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Big5."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":497}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Big5_HKSCS","anchor":"Big5_HKSCS","kind":"enumConstant","name":"Big5_HKSCS","signature":[{"kind":"name","text":"Big5_HKSCS"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Big5-HKSCS."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Big5-HKSCS."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":503}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Big5_UAO","anchor":"Big5_UAO","kind":"enumConstant","name":"Big5_UAO","signature":[{"kind":"name","text":"Big5_UAO"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Big5-UAO."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Big5-UAO."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":509}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CESU_8","anchor":"CESU_8","kind":"enumConstant","name":"CESU_8","signature":[{"kind":"name","text":"CESU_8"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CESU-8."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CESU-8."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":515}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CP51932","anchor":"CP51932","kind":"enumConstant","name":"CP51932","signature":[{"kind":"name","text":"CP51932"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CP51932."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CP51932."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":521}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CP850","anchor":"CP850","kind":"enumConstant","name":"CP850","signature":[{"kind":"name","text":"CP850"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CP850."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CP850."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":527}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CP852","anchor":"CP852","kind":"enumConstant","name":"CP852","signature":[{"kind":"name","text":"CP852"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CP852."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CP852."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":533}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CP855","anchor":"CP855","kind":"enumConstant","name":"CP855","signature":[{"kind":"name","text":"CP855"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CP855."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CP855."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":539}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CP949","anchor":"CP949","kind":"enumConstant","name":"CP949","signature":[{"kind":"name","text":"CP949"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CP949."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CP949."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":545}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CP950","anchor":"CP950","kind":"enumConstant","name":"CP950","signature":[{"kind":"name","text":"CP950"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CP950."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CP950."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":551}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CP951","anchor":"CP951","kind":"enumConstant","name":"CP951","signature":[{"kind":"name","text":"CP951"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CP951."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CP951."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":557}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#EUC_JIS_2004","anchor":"EUC_JIS_2004","kind":"enumConstant","name":"EUC_JIS_2004","signature":[{"kind":"name","text":"EUC_JIS_2004"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"EUC-JIS-2004."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"EUC-JIS-2004."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":563}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#EUC_JP","anchor":"EUC_JP","kind":"enumConstant","name":"EUC_JP","signature":[{"kind":"name","text":"EUC_JP"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"EUC-JP."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"EUC-JP."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":569}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#EUC_KR","anchor":"EUC_KR","kind":"enumConstant","name":"EUC_KR","signature":[{"kind":"name","text":"EUC_KR"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"EUC-KR."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"EUC-KR."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":575}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#EUC_TW","anchor":"EUC_TW","kind":"enumConstant","name":"EUC_TW","signature":[{"kind":"name","text":"EUC_TW"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"EUC-TW."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"EUC-TW."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":581}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Emacs_Mule","anchor":"Emacs_Mule","kind":"enumConstant","name":"Emacs_Mule","signature":[{"kind":"name","text":"Emacs_Mule"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Emacs-Mule."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Emacs-Mule."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":587}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#EucJP_ms","anchor":"EucJP_ms","kind":"enumConstant","name":"EucJP_ms","signature":[{"kind":"name","text":"EucJP_ms"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"EucJP-ms."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"EucJP-ms."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":593}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#GB12345","anchor":"GB12345","kind":"enumConstant","name":"GB12345","signature":[{"kind":"name","text":"GB12345"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"GB12345."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"GB12345."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":599}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#GB18030","anchor":"GB18030","kind":"enumConstant","name":"GB18030","signature":[{"kind":"name","text":"GB18030"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"GB18030."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"GB18030."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":605}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#GB1988","anchor":"GB1988","kind":"enumConstant","name":"GB1988","signature":[{"kind":"name","text":"GB1988"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"GB1988."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"GB1988."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":611}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#GB2312","anchor":"GB2312","kind":"enumConstant","name":"GB2312","signature":[{"kind":"name","text":"GB2312"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"GB2312."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"GB2312."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":617}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#GBK","anchor":"GBK","kind":"enumConstant","name":"GBK","signature":[{"kind":"name","text":"GBK"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"GBK."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"GBK."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":623}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM437","anchor":"IBM437","kind":"enumConstant","name":"IBM437","signature":[{"kind":"name","text":"IBM437"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM437."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM437."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":629}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM720","anchor":"IBM720","kind":"enumConstant","name":"IBM720","signature":[{"kind":"name","text":"IBM720"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM720."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM720."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":635}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM737","anchor":"IBM737","kind":"enumConstant","name":"IBM737","signature":[{"kind":"name","text":"IBM737"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM737."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM737."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":641}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM775","anchor":"IBM775","kind":"enumConstant","name":"IBM775","signature":[{"kind":"name","text":"IBM775"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM775."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM775."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":647}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM852","anchor":"IBM852","kind":"enumConstant","name":"IBM852","signature":[{"kind":"name","text":"IBM852"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM852."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM852."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":653}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM855","anchor":"IBM855","kind":"enumConstant","name":"IBM855","signature":[{"kind":"name","text":"IBM855"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM855."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM855."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":659}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM857","anchor":"IBM857","kind":"enumConstant","name":"IBM857","signature":[{"kind":"name","text":"IBM857"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM857."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM857."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":665}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM860","anchor":"IBM860","kind":"enumConstant","name":"IBM860","signature":[{"kind":"name","text":"IBM860"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM860."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM860."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":671}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM861","anchor":"IBM861","kind":"enumConstant","name":"IBM861","signature":[{"kind":"name","text":"IBM861"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM861."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM861."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":677}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM862","anchor":"IBM862","kind":"enumConstant","name":"IBM862","signature":[{"kind":"name","text":"IBM862"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM862."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM862."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":683}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM863","anchor":"IBM863","kind":"enumConstant","name":"IBM863","signature":[{"kind":"name","text":"IBM863"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM863."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM863."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":689}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM864","anchor":"IBM864","kind":"enumConstant","name":"IBM864","signature":[{"kind":"name","text":"IBM864"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM864."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM864."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":695}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM865","anchor":"IBM865","kind":"enumConstant","name":"IBM865","signature":[{"kind":"name","text":"IBM865"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM865."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM865."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":701}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM866","anchor":"IBM866","kind":"enumConstant","name":"IBM866","signature":[{"kind":"name","text":"IBM866"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM866."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM866."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":707}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM869","anchor":"IBM869","kind":"enumConstant","name":"IBM869","signature":[{"kind":"name","text":"IBM869"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM869."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM869."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":713}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_10","anchor":"ISO_8859_10","kind":"enumConstant","name":"ISO_8859_10","signature":[{"kind":"name","text":"ISO_8859_10"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-10."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-10."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":719}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_11","anchor":"ISO_8859_11","kind":"enumConstant","name":"ISO_8859_11","signature":[{"kind":"name","text":"ISO_8859_11"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-11."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-11."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":725}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_13","anchor":"ISO_8859_13","kind":"enumConstant","name":"ISO_8859_13","signature":[{"kind":"name","text":"ISO_8859_13"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-13."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-13."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":731}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_14","anchor":"ISO_8859_14","kind":"enumConstant","name":"ISO_8859_14","signature":[{"kind":"name","text":"ISO_8859_14"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-14."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-14."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":737}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_15","anchor":"ISO_8859_15","kind":"enumConstant","name":"ISO_8859_15","signature":[{"kind":"name","text":"ISO_8859_15"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-15."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-15."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":743}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_16","anchor":"ISO_8859_16","kind":"enumConstant","name":"ISO_8859_16","signature":[{"kind":"name","text":"ISO_8859_16"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-16."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-16."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":749}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_2","anchor":"ISO_8859_2","kind":"enumConstant","name":"ISO_8859_2","signature":[{"kind":"name","text":"ISO_8859_2"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-2."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-2."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":755}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_3","anchor":"ISO_8859_3","kind":"enumConstant","name":"ISO_8859_3","signature":[{"kind":"name","text":"ISO_8859_3"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-3."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-3."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":761}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_4","anchor":"ISO_8859_4","kind":"enumConstant","name":"ISO_8859_4","signature":[{"kind":"name","text":"ISO_8859_4"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-4."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-4."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":767}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_5","anchor":"ISO_8859_5","kind":"enumConstant","name":"ISO_8859_5","signature":[{"kind":"name","text":"ISO_8859_5"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-5."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-5."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":773}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_6","anchor":"ISO_8859_6","kind":"enumConstant","name":"ISO_8859_6","signature":[{"kind":"name","text":"ISO_8859_6"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-6."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-6."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":779}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_7","anchor":"ISO_8859_7","kind":"enumConstant","name":"ISO_8859_7","signature":[{"kind":"name","text":"ISO_8859_7"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-7."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-7."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":785}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_8","anchor":"ISO_8859_8","kind":"enumConstant","name":"ISO_8859_8","signature":[{"kind":"name","text":"ISO_8859_8"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-8."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-8."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":791}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_9","anchor":"ISO_8859_9","kind":"enumConstant","name":"ISO_8859_9","signature":[{"kind":"name","text":"ISO_8859_9"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-8859-9."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-8859-9."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":797}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#KOI8_R","anchor":"KOI8_R","kind":"enumConstant","name":"KOI8_R","signature":[{"kind":"name","text":"KOI8_R"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"KOI8-R."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"KOI8-R."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":803}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#KOI8_U","anchor":"KOI8_U","kind":"enumConstant","name":"KOI8_U","signature":[{"kind":"name","text":"KOI8_U"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"KOI8-U."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"KOI8-U."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":809}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacCentEuro","anchor":"MacCentEuro","kind":"enumConstant","name":"MacCentEuro","signature":[{"kind":"name","text":"MacCentEuro"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacCentEuro."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacCentEuro."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":815}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacCroatian","anchor":"MacCroatian","kind":"enumConstant","name":"MacCroatian","signature":[{"kind":"name","text":"MacCroatian"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacCroatian."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacCroatian."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":821}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacCyrillic","anchor":"MacCyrillic","kind":"enumConstant","name":"MacCyrillic","signature":[{"kind":"name","text":"MacCyrillic"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacCyrillic."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacCyrillic."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":827}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacGreek","anchor":"MacGreek","kind":"enumConstant","name":"MacGreek","signature":[{"kind":"name","text":"MacGreek"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacGreek."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacGreek."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":833}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacIceland","anchor":"MacIceland","kind":"enumConstant","name":"MacIceland","signature":[{"kind":"name","text":"MacIceland"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacIceland."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacIceland."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":839}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacJapanese","anchor":"MacJapanese","kind":"enumConstant","name":"MacJapanese","signature":[{"kind":"name","text":"MacJapanese"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacJapanese."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacJapanese."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":845}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacRoman","anchor":"MacRoman","kind":"enumConstant","name":"MacRoman","signature":[{"kind":"name","text":"MacRoman"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacRoman."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacRoman."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":851}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacRomania","anchor":"MacRomania","kind":"enumConstant","name":"MacRomania","signature":[{"kind":"name","text":"MacRomania"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacRomania."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacRomania."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":857}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacThai","anchor":"MacThai","kind":"enumConstant","name":"MacThai","signature":[{"kind":"name","text":"MacThai"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacThai."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacThai."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":863}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacTurkish","anchor":"MacTurkish","kind":"enumConstant","name":"MacTurkish","signature":[{"kind":"name","text":"MacTurkish"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacTurkish."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacTurkish."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":869}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#MacUkraine","anchor":"MacUkraine","kind":"enumConstant","name":"MacUkraine","signature":[{"kind":"name","text":"MacUkraine"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"MacUkraine."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"MacUkraine."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":875}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#SJIS_DoCoMo","anchor":"SJIS_DoCoMo","kind":"enumConstant","name":"SJIS_DoCoMo","signature":[{"kind":"name","text":"SJIS_DoCoMo"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"SJIS-DoCoMo."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"SJIS-DoCoMo."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":881}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#SJIS_KDDI","anchor":"SJIS_KDDI","kind":"enumConstant","name":"SJIS_KDDI","signature":[{"kind":"name","text":"SJIS_KDDI"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"SJIS-KDDI."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"SJIS-KDDI."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":887}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#SJIS_SoftBank","anchor":"SJIS_SoftBank","kind":"enumConstant","name":"SJIS_SoftBank","signature":[{"kind":"name","text":"SJIS_SoftBank"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"SJIS-SoftBank."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"SJIS-SoftBank."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":893}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Shift_JIS","anchor":"Shift_JIS","kind":"enumConstant","name":"Shift_JIS","signature":[{"kind":"name","text":"Shift_JIS"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Shift-JIS."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shift-JIS."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":899}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Stateless_ISO_2022_JP","anchor":"Stateless_ISO_2022_JP","kind":"enumConstant","name":"Stateless_ISO_2022_JP","signature":[{"kind":"name","text":"Stateless_ISO_2022_JP"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Stateless-ISO-2022-JP."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stateless-ISO-2022-JP."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":905}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Stateless_ISO_2022_JP_KDDI","anchor":"Stateless_ISO_2022_JP_KDDI","kind":"enumConstant","name":"Stateless_ISO_2022_JP_KDDI","signature":[{"kind":"name","text":"Stateless_ISO_2022_JP_KDDI"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Stateless-ISO-2022-JP-KDDI."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Stateless-ISO-2022-JP-KDDI."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":911}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#TIS_620","anchor":"TIS_620","kind":"enumConstant","name":"TIS_620","signature":[{"kind":"name","text":"TIS_620"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"TIS-620."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"TIS-620."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":917}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF8_DoCoMo","anchor":"UTF8_DoCoMo","kind":"enumConstant","name":"UTF8_DoCoMo","signature":[{"kind":"name","text":"UTF8_DoCoMo"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF8-DoCoMo."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF8-DoCoMo."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":923}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF8_KDDI","anchor":"UTF8_KDDI","kind":"enumConstant","name":"UTF8_KDDI","signature":[{"kind":"name","text":"UTF8_KDDI"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF8-KDDI."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF8-KDDI."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":929}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF8_MAC","anchor":"UTF8_MAC","kind":"enumConstant","name":"UTF8_MAC","signature":[{"kind":"name","text":"UTF8_MAC"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF8-MAC."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF8-MAC."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":935}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF8_SoftBank","anchor":"UTF8_SoftBank","kind":"enumConstant","name":"UTF8_SoftBank","signature":[{"kind":"name","text":"UTF8_SoftBank"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF8-SoftBank."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF8-SoftBank."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":941}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_1250","anchor":"Windows_1250","kind":"enumConstant","name":"Windows_1250","signature":[{"kind":"name","text":"Windows_1250"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-1250."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-1250."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":947}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_1251","anchor":"Windows_1251","kind":"enumConstant","name":"Windows_1251","signature":[{"kind":"name","text":"Windows_1251"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-1251."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-1251."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":953}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_1252","anchor":"Windows_1252","kind":"enumConstant","name":"Windows_1252","signature":[{"kind":"name","text":"Windows_1252"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-1252."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-1252."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":959}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_1253","anchor":"Windows_1253","kind":"enumConstant","name":"Windows_1253","signature":[{"kind":"name","text":"Windows_1253"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-1253."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-1253."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":965}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_1254","anchor":"Windows_1254","kind":"enumConstant","name":"Windows_1254","signature":[{"kind":"name","text":"Windows_1254"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-1254."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-1254."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":971}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_1255","anchor":"Windows_1255","kind":"enumConstant","name":"Windows_1255","signature":[{"kind":"name","text":"Windows_1255"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-1255."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-1255."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":977}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_1256","anchor":"Windows_1256","kind":"enumConstant","name":"Windows_1256","signature":[{"kind":"name","text":"Windows_1256"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-1256."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-1256."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":983}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_1257","anchor":"Windows_1257","kind":"enumConstant","name":"Windows_1257","signature":[{"kind":"name","text":"Windows_1257"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-1257."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-1257."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":989}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_1258","anchor":"Windows_1258","kind":"enumConstant","name":"Windows_1258","signature":[{"kind":"name","text":"Windows_1258"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-1258."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-1258."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":995}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_31J","anchor":"Windows_31J","kind":"enumConstant","name":"Windows_31J","signature":[{"kind":"name","text":"Windows_31J"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-31J."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-31J."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1001}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#Windows_874","anchor":"Windows_874","kind":"enumConstant","name":"Windows_874","signature":[{"kind":"name","text":"Windows_874"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"Windows-874."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Windows-874."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1007}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CP50220","anchor":"CP50220","kind":"enumConstant","name":"CP50220","signature":[{"kind":"name","text":"CP50220"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CP50220."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CP50220."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1014}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#CP50221","anchor":"CP50221","kind":"enumConstant","name":"CP50221","signature":[{"kind":"name","text":"CP50221"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"CP50221."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"CP50221."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1020}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#IBM037","anchor":"IBM037","kind":"enumConstant","name":"IBM037","signature":[{"kind":"name","text":"IBM037"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"IBM037."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"IBM037."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1026}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_2022_JP","anchor":"ISO_2022_JP","kind":"enumConstant","name":"ISO_2022_JP","signature":[{"kind":"name","text":"ISO_2022_JP"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-2022-JP."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-2022-JP."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1032}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_2022_JP_2","anchor":"ISO_2022_JP_2","kind":"enumConstant","name":"ISO_2022_JP_2","signature":[{"kind":"name","text":"ISO_2022_JP_2"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-2022-JP-2."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-2022-JP-2."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1038}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_2022_JP_KDDI","anchor":"ISO_2022_JP_KDDI","kind":"enumConstant","name":"ISO_2022_JP_KDDI","signature":[{"kind":"name","text":"ISO_2022_JP_KDDI"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"ISO-2022-JP-KDDI."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"ISO-2022-JP-KDDI."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1044}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_7","anchor":"UTF_7","kind":"enumConstant","name":"UTF_7","signature":[{"kind":"name","text":"UTF_7"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF-7."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF-7."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1050}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32","anchor":"UTF_32","kind":"field","name":"UTF_32","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"name","text":"UTF_32"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF-32 in "},{"kind":"emphasis","children":[{"kind":"text","text":"the current system's endianness"}]},{"kind":"text","text":", without byte-order mark, with transparent string compaction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF-32 in "},{"kind":"emphasis","children":[{"kind":"text","text":"the current system's endianness"}]},{"kind":"text","text":", without byte-order mark, with transparent string compaction."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1058}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16","anchor":"UTF_16","kind":"field","name":"UTF_16","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"name","text":"UTF_16"}],"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":{"summary":[{"kind":"text","text":"UTF-16 in "},{"kind":"emphasis","children":[{"kind":"text","text":"the current system's endianness"}]},{"kind":"text","text":", without byte-order mark, with transparent string compaction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF-16 in "},{"kind":"emphasis","children":[{"kind":"text","text":"the current system's endianness"}]},{"kind":"text","text":", without byte-order mark, with transparent string compaction."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1065}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#getEmpty()","anchor":"getEmpty()","kind":"method","name":"getEmpty","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"getEmpty"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Get an empty "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" with this encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get an empty "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" with this encoding."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1146}},{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#fromJCodingName(java.lang.String)","anchor":"fromJCodingName(java.lang.String)","kind":"method","name":"fromJCodingName","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"name","text":"fromJCodingName"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},"doc":{"summary":[{"kind":"text","text":"Get the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding"},"code":true,"children":[{"kind":"text","text":"Encoding"}]},{"kind":"text","text":" corresponding to the given encoding name from the "},{"kind":"code","text":"JCodings"},{"kind":"text","text":" library."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding"},"code":true,"children":[{"kind":"text","text":"Encoding"}]},{"kind":"text","text":" corresponding to the given encoding name from the "},{"kind":"code","text":"JCodings"},{"kind":"text","text":" library."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1158}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"The list of encodings supported by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The list of encodings supported by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" is especially optimized for the following encodings:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"code","text":"UTF-32"},{"kind":"text","text":": this means UTF-32 "},{"kind":"emphasis","children":[{"kind":"text","text":"in your system's endianness"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" transparently compacts UTF-32 strings to 8-bit or 16-bit representations, where possible."}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"UTF-16"},{"kind":"text","text":": this means UTF-16 "},{"kind":"emphasis","children":[{"kind":"text","text":"in your system's endianness"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" transparently compacts UTF-16 strings to 8-bit representations, where possible."}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"UTF-8"}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"ISO-8859-1"}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"US-ASCII"}]}],[{"kind":"paragraph","children":[{"kind":"code","text":"BYTES"},{"kind":"text","text":", which is essentially identical to US-ASCII, with the only difference being that "},{"kind":"code","text":"BYTES"},{"kind":"text","text":" treats all byte values as valid codepoints."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"All other encodings are supported using the JRuby JCodings library, which incurs more "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives$TruffleBoundary"},"code":true,"children":[{"kind":"text","text":"TruffleBoundary"}]},{"kind":"text","text":" calls. NOTE: to enable support for these encodings, "},{"kind":"code","text":"TruffleLanguage.Registration#needsAllEncodings()"},{"kind":"text","text":" must be set to "},{"kind":"code","text":"true"},{"kind":"text","text":" in the truffle language's registration."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":432}},{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode","name":"TruffleString.EqualNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.EqualNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" are byte-by-byte equal when considered in "},{"kind":"code","text":"expectedEncoding"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" are byte-by-byte equal when considered in "},{"kind":"code","text":"expectedEncoding"},{"kind":"text","text":". Note that this method requires both strings to be compatible to the "},{"kind":"code","text":"expectedEncoding"},{"kind":"text","text":", just like all other operations with an "},{"kind":"code","text":"expectedEncoding"},{"kind":"text","text":" parameter!"}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"TruffleString.equals(Object)"}]},{"kind":"text","text":"-method delegates to this method."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7095}},{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.EqualNode","ref":"com.oracle.truffle.api.strings.TruffleString$EqualNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.EqualNode","ref":"com.oracle.truffle.api.strings.TruffleString$EqualNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode"},"code":true,"children":[{"kind":"text","text":"EqualNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode"},"code":true,"children":[{"kind":"text","text":"EqualNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7280}},{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.EqualNode","ref":"com.oracle.truffle.api.strings.TruffleString$EqualNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.EqualNode","ref":"com.oracle.truffle.api.strings.TruffleString$EqualNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode"},"code":true,"children":[{"kind":"text","text":"EqualNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$EqualNode"},"code":true,"children":[{"kind":"text","text":"EqualNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7290}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to check two strings for equality."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to check two strings for equality."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"TruffleString.equals(Object)"}]},{"kind":"text","text":"-method delegates to this node."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7080}},{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling","name":"TruffleString.ErrorHandling","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ErrorHandling"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#BEST_EFFORT","anchor":"BEST_EFFORT","kind":"enumConstant","name":"BEST_EFFORT","signature":[{"kind":"name","text":"BEST_EFFORT"}],"type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}],"doc":{"summary":[{"kind":"text","text":"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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example: best-effort error handling will cause "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtByteIndexNode"}]},{"kind":"text","text":" to return the value of the integer read when reading an invalid codepoint from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":" string."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1622}},{"id":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling#RETURN_NEGATIVE","anchor":"RETURN_NEGATIVE","kind":"enumConstant","name":"RETURN_NEGATIVE","signature":[{"kind":"name","text":"RETURN_NEGATIVE"}],"type":[{"kind":"type","text":"TruffleString.ErrorHandling","ref":"com.oracle.truffle.api.strings.TruffleString$ErrorHandling"}],"doc":{"summary":[{"kind":"text","text":"This mode will cause a negative value to be returned in all error cases."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This mode will cause a negative value to be returned in all error cases."}]},{"kind":"paragraph","children":[{"kind":"text","text":"For example: return-negative error handling will cause "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtByteIndexNode"}]},{"kind":"text","text":" to return a negative value when reading an invalid codepoint from a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":" string."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1633}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Error handling instructions for operations that return integer values, such as indices or code points."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Error handling instructions for operations that return integer values, such as indices or code points."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1609}},{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode","name":"TruffleString.ForceEncodingNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ForceEncodingNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"targetEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"targetEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" assigned to the given encoding, which may be the string itself or a new string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" assigned to the given encoding, which may be the string itself or a new string. The string itself may be returned even if it was originally created using a different encoding, if the string is byte-equivalent in both encodings. If the string is not byte-equivalent in both encodings, a new string containing the same bytes but assigned to the new encoding is returned. "},{"kind":"strong","children":[{"kind":"text","text":"This node does not transcode the string's contents in any way, it is the \"encoding-equivalent\" to a C-style reinterpret-cast."}]}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8777}},{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ForceEncodingNode","ref":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ForceEncodingNode","ref":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"ForceEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"ForceEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8850}},{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ForceEncodingNode","ref":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ForceEncodingNode","ref":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"ForceEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode"},"code":true,"children":[{"kind":"text","text":"ForceEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8860}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to forcibly assign any encoding to a string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to forcibly assign any encoding to a string. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ForceEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8761}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode","name":"TruffleString.FromByteArrayNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromByteArrayNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode#execute(byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode#execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(byte[], int, int, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1966}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode#execute(byte[],com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(byte[],com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode#execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(byte[], int, int, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1976}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode#execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array. The array content is assumed to be encoded in the given encoding already. This operation allows non-copying string creation, i.e. the array parameter can be used directly by passing "},{"kind":"code","text":"copy = false"},{"kind":"text","text":". Caution: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" assumes the array to be immutable, do not modify the byte array after passing it to the non-copying variant of this operation!"}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1989}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2012}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2022}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode#execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(byte[], int, int, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1955}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node","name":"TruffleString.FromByteArrayWithCompactionUTF32Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromByteArrayWithCompactionUTF32Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node#execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)","anchor":"execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"array"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":" "},{"kind":"param","text":"compactionLevel"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"array","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"compactionLevel","type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"describes the given string's compaction level. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#S1"},"code":true,"children":[{"kind":"text","text":"CompactionLevel.S1"}]},{"kind":"text","text":" means one byte per codepoint, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#S2"},"code":true,"children":[{"kind":"text","text":"CompactionLevel.S2"}]},{"kind":"text","text":" means two bytes per codepoint, and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#S4"},"code":true,"children":[{"kind":"text","text":"CompactionLevel.S4"}]},{"kind":"text","text":" corresponds to four bytes per codepoint. Not strictly required to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":", but still recommended, since this parameter being constant avoids two branches and associated stub calls."}]}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"analogous to the "},{"kind":"code","text":"copy"},{"kind":"text","text":" parameter of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":". Must be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(boolean)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"UTF-32-specific version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":" that accepts compacted buffers."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"UTF-32-specific version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":" that accepts compacted buffers. Passing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#S1"},"code":true,"children":[{"kind":"text","text":"CompactionLevel.S1"}]},{"kind":"text","text":" means that the string is compacted to single bytes, i.e. it is equivalent to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_1"},"code":true,"children":[{"kind":"text","text":"Encoding.ISO_8859_1"}]},{"kind":"text","text":" string. Analogously, passing "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#S2"},"code":true,"children":[{"kind":"text","text":"CompactionLevel.S2"}]},{"kind":"text","text":" means that the buffer is equivalent to a "},{"kind":"code","text":"UCS-2"},{"kind":"text","text":" string."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Examples:"}]},{"kind":"code","text":"byte[] array = {'a', 'b', 'c'};\nTruffleString str = fromByteArrayWithCompactionUTF32Node.execute(array, 0, array.length, CompactionLevel.S1, false);\n// returns a UTF-32 string \"abc\", re-using the byte array without copy"},{"kind":"code","text":"byte[] array = {0x34, 0x12, 0x78, 0x56};\nTruffleString str = fromByteArrayWithCompactionUTF32Node.execute(array, 0, array.length, CompactionLevel.S2, false);\n// returns a UTF-32 string \"ሴ噸\", re-using the byte array without copy"},{"kind":"code","text":"byte[] array = {0x45, 0x23, 0x01, 0x00};\nTruffleString str = fromByteArrayWithCompactionUTF32Node.execute(array, 0, array.length, CompactionLevel.S4, false);\n// returns a UTF-32 string containing the single codepoint 0x12345, re-using the byte array\n// without copy"},{"kind":"paragraph","children":[{"kind":"text","text":"Note that this node may further compact (and therefore copy) the array if possible, or inflate if it contains illegal codepoints (i.e. surrogate values):"}]},{"kind":"code","text":"byte[] array = {'a', 0x00, 'b', 0x00};\nTruffleString str = fromByteArrayWithCompactionUTF32Node.execute(array, 0, array.length, CompactionLevel.S2, false);\n// returns a UTF-32 string \"ab\", copying and further compacting the given array despite\n// copy=false"}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2750}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromByteArrayWithCompactionUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromByteArrayWithCompactionUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromByteArrayWithCompactionUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromByteArrayWithCompactionUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2806}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromByteArrayWithCompactionUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromByteArrayWithCompactionUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromByteArrayWithCompactionUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromByteArrayWithCompactionUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2816}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a byte array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node#execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)"},"code":true,"children":[{"kind":"text","text":"execute"}]},{"kind":"text","text":" for details."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2692}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node","name":"TruffleString.FromCharArrayUTF16Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromCharArrayUTF16Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node#execute(char[])","anchor":"execute(char[])","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a UTF-16 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a char array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a UTF-16 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a char array."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2072}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node#execute(char[],int,int)","anchor":"execute(char[],int,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charLength"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]},{"name":"charOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"charLength","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a UTF-16 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a char-array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a UTF-16 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a char-array."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2081}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromCharArrayUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromCharArrayUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},"code":true,"children":[{"kind":"text","text":"FromCharArrayUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},"code":true,"children":[{"kind":"text","text":"FromCharArrayUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2117}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromCharArrayUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromCharArrayUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},"code":true,"children":[{"kind":"text","text":"FromCharArrayUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCharArrayUTF16Node"},"code":true,"children":[{"kind":"text","text":"FromCharArrayUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2127}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new UTF-16 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a char array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new UTF-16 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a char array."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2062}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode","name":"TruffleString.FromCodePointNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromCodePointNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode#execute(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new TruffleString from a given code point."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new TruffleString from a given code point."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1657}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode#execute(int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowUTF16Surrogates"},{"kind":"punct","text":")"}],"params":[{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"allowUTF16Surrogates","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the given codepoint is not defined in the given encoding."}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new TruffleString from a given code point."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new TruffleString from a given code point."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"allowUTF16Surrogates"},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Character#isSurrogate(char)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Character.html#isSurrogate(char)"},"code":true,"children":[{"kind":"text","text":"UTF-16 surrogate values"}]},{"kind":"text","text":" passed as "},{"kind":"code","text":"codepoint"},{"kind":"text","text":" will not result in a "},{"kind":"code","text":"null"},{"kind":"text","text":" return value, but instead be encoded on a best-effort basis. This option is only supported on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"TruffleString.Encoding.UTF_16"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"TruffleString.Encoding.UTF_32"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1674}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},"code":true,"children":[{"kind":"text","text":"FromCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},"code":true,"children":[{"kind":"text","text":"FromCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1839}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},"code":true,"children":[{"kind":"text","text":"FromCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromCodePointNode"},"code":true,"children":[{"kind":"text","text":"FromCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1849}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a single codepoint."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a single codepoint."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1647}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node","name":"TruffleString.FromIntArrayUTF32Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromIntArrayUTF32Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node#execute(int[])","anchor":"execute(int[])","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a UTF-32 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an int-array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a UTF-32 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an int-array."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2349}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node#execute(int[],int,int)","anchor":"execute(int[],int,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"intOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"intLength"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]},{"name":"intOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"intLength","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a UTF-32 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an int-array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a UTF-32 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an int-array."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2358}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromIntArrayUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromIntArrayUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromIntArrayUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromIntArrayUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2395}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromIntArrayUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromIntArrayUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromIntArrayUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromIntArrayUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromIntArrayUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2405}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new UTF-32 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an int-array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new UTF-32 "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an int-array."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2339}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode","name":"TruffleString.FromJavaStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromJavaStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode#execute(java.lang.String,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(java.lang.String,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a Java string, re-using its internal byte array if possible."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a Java string, re-using its internal byte array if possible."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2169}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode#execute(java.lang.String,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(java.lang.String,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"charOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a given region in a Java string, re-using its internal byte array if possible and the region covers the entire string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a given region in a Java string, re-using its internal byte array if possible and the region covers the entire string. If "},{"kind":"code","text":"copy"},{"kind":"text","text":" is "},{"kind":"code","text":"false"},{"kind":"text","text":", the Java string's internal byte array will be re-used even if the region does not cover the entire string. Note that this will keep the Java string's byte array alive as long as the resulting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" is alive."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2182}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromJavaStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromJavaStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2279}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromJavaStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromJavaStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode"},"code":true,"children":[{"kind":"text","text":"FromJavaStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2289}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a Java string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a Java string. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromJavaStringNode#execute(java.lang.String,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(String, int, int, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2158}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode","name":"TruffleString.FromLongNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromLongNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode#execute(long,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(long,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"long"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if true, the string representation of the number is computed lazily the first time it is needed. This parameter is expected to be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerAsserts#partialEvaluationConstant(boolean)"},"code":true,"children":[{"kind":"text","text":"partial evaluation constant"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Creates a 10's complement string from the given long value, using ASCII digits (0x30 - 0x39)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a 10's complement string from the given long value, using ASCII digits (0x30 - 0x39). This operation does not support encodings that are incompatible with the ASCII character set."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1896}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromLongNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromLongNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"},"code":true,"children":[{"kind":"text","text":"FromLongNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"},"code":true,"children":[{"kind":"text","text":"FromLongNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1924}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromLongNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromLongNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"},"code":true,"children":[{"kind":"text","text":"FromLongNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode"},"code":true,"children":[{"kind":"text","text":"FromLongNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1934}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a "},{"kind":"code","text":"long"},{"kind":"text","text":" value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from a "},{"kind":"code","text":"long"},{"kind":"text","text":" value. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromLongNode#execute(long,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(long, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1880}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode","name":"TruffleString.FromNativePointerNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromNativePointerNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer ( "},{"kind":"code","text":"isPointer(pointerObject)"},{"kind":"text","text":" must return "},{"kind":"code","text":"true"},{"kind":"text","text":")."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer ( "},{"kind":"code","text":"isPointer(pointerObject)"},{"kind":"text","text":" must return "},{"kind":"code","text":"true"},{"kind":"text","text":"). The pointer is immediately unboxed with ("},{"kind":"code","text":"asPointer(pointerObject)"},{"kind":"text","text":") and saved in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" instance, i.e. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" assumes that the pointer address does not change. The pointer's content is assumed to be encoded in the given encoding already. If "},{"kind":"code","text":"copy"},{"kind":"text","text":" is "},{"kind":"code","text":"false"},{"kind":"text","text":", the native pointer is used directly as the new string's backing storage. Caution: "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" assumes the pointer's content to be immutable, do not modify the pointer's content after passing it to this operation!"}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"WARNING:"}]},{"kind":"text","text":" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" cannot reason about the lifetime of the native pointer, so it is up to the user to "},{"kind":"strong","children":[{"kind":"text","text":"make sure that the native pointer is valid to access and not freed as long the "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":" is alive"}]},{"kind":"text","text":" (if "},{"kind":"code","text":"copy"},{"kind":"text","text":" is "},{"kind":"code","text":"false"},{"kind":"text","text":"). To help with this the TruffleString keeps a reference to the given "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":", so the "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":" is kept alive at least as long as the TruffleString is used. In order to be able to use the string past the native pointer's life time, convert it to a managed string via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$AsManagedNode"},"code":true,"children":[{"kind":"text","text":"AsManagedNode"}]},{"kind":"text","text":" "},{"kind":"strong","children":[{"kind":"text","text":"before the native pointer is freed"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Since GraalVM version 25.1, the native pointer may also be passed as a boxed long value in place of "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":". Note that in this case, the resulting "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" cannot keep a reference an associated object for life-time tracking. The user is responsible for making sure the native buffer is not freed as long as the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" object is alive."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If "},{"kind":"code","text":"copy"},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", the pointer's contents are copied to a Java byte array, and the pointer can be freed safely after the operation completes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This operation requires native access permissions ("},{"kind":"code","text":"TruffleLanguage.Env#isNativeAccessAllowed()"},{"kind":"text","text":")."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2479}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2512}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2522}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(Object, int, int, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2436}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node","name":"TruffleString.FromNativePointerWithCompactionUTF32Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromNativePointerWithCompactionUTF32Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)","anchor":"execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":" "},{"kind":"param","text":"compactionLevel"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"native buffer, analogous to the "},{"kind":"code","text":"pointerObject"},{"kind":"text","text":" parameter of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}]}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"compactionLevel","type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Native buffer variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromByteArrayWithCompactionUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Native buffer variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromByteArrayWithCompactionUTF32Node"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayWithCompactionUTF32Node#execute(byte[],int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)"},"code":true,"children":[{"kind":"text","text":"FromByteArrayWithCompactionUTF32Node.execute"}]},{"kind":"text","text":" for more details."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2850}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromNativePointerWithCompactionUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromNativePointerWithCompactionUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromNativePointerWithCompactionUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromNativePointerWithCompactionUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2887}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromNativePointerWithCompactionUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromNativePointerWithCompactionUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromNativePointerWithCompactionUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node"},"code":true,"children":[{"kind":"text","text":"FromNativePointerWithCompactionUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2897}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" from an interop object representing a native pointer. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerWithCompactionUTF32Node#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.CompactionLevel,boolean)"},"code":true,"children":[{"kind":"text","text":"execute"}]},{"kind":"text","text":" for details."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2837}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode","name":"TruffleString.FromZeroTerminatedNativePointerNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.FromZeroTerminatedNativePointerNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#execute8Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute8Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute8Bit","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute8Bit"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode.execute"}]},{"kind":"text","text":" 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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode.execute"}]},{"kind":"text","text":" 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."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2566}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#execute16Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute16Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute16Bit","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute16Bit"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode.execute"}]},{"kind":"text","text":" 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."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode.execute"}]},{"kind":"text","text":" 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. Note that the 16-bit zero value's position is checked in 2-byte increments starting from "},{"kind":"code","text":"native pointer + byte offset"},{"kind":"text","text":", so a zero value starting at an odd byte index is ignored."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2579}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#execute32Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute32Bit(java.lang.Object,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute32Bit","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute32Bit"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"pointerObject"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteOffset"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"copy"},{"kind":"punct","text":")"}],"params":[{"name":"pointerObject","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},{"name":"byteOffset","type":[{"kind":"keyword","text":"int"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"copy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode.execute"}]},{"kind":"text","text":" with the only difference being that the native buffer's length is determined by the position of the first 32-bit zero value in the buffer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode#execute(java.lang.Object,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode.execute"}]},{"kind":"text","text":" with the only difference being that the native buffer's length is determined by the position of the first 32-bit zero value in the buffer. Note that the 32-bit zero value's position is checked in 4-byte increments starting from "},{"kind":"code","text":"native pointer + byte offset"},{"kind":"text","text":", so a zero value starting at an index that isn't a multiple of 4 is ignored."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2592}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromZeroTerminatedNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromZeroTerminatedNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2638}},{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.FromZeroTerminatedNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.FromZeroTerminatedNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromZeroTerminatedNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromZeroTerminatedNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2648}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":" for zero-terminated buffers, i.e."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Equivalent to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":" for zero-terminated buffers, i.e. the string's length is determined by the position of the first zero-value found."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This operation requires native access permissions ("},{"kind":"code","text":"TruffleLanguage.Env#isNativeAccessAllowed()"},{"kind":"text","text":")."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":2554}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode","name":"TruffleString.GetByteCodeRangeNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.GetByteCodeRangeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]},"doc":{"summary":[{"kind":"text","text":"Get the string's \"byte-based\" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the string's \"byte-based\" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":". This differs from "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeNode"}]},{"kind":"text","text":" in the following way:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"A string is only considered to be in the "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#ASCII"},"code":true,"children":[{"kind":"text","text":"CodeRange.ASCII"}]},{"kind":"text","text":" code range if its encoding is byte-based, so "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_16"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":" cannot be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#ASCII"},"code":true,"children":[{"kind":"text","text":"CodeRange.ASCII"}]},{"kind":"text","text":"."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#LATIN_1"},"code":true,"children":[{"kind":"text","text":"CodeRange.LATIN_1"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#BMP"},"code":true,"children":[{"kind":"text","text":"CodeRange.BMP"}]},{"kind":"text","text":" are mapped to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#VALID"},"code":true,"children":[{"kind":"text","text":"CodeRange.VALID"}]}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"The return value is always one of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#ASCII"},"code":true,"children":[{"kind":"text","text":"CodeRange.ASCII"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#VALID"},"code":true,"children":[{"kind":"text","text":"CodeRange.VALID"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#BROKEN"},"code":true,"children":[{"kind":"text","text":"CodeRange.BROKEN"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3356}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetByteCodeRangeNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetByteCodeRangeNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetByteCodeRangeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetByteCodeRangeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3370}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetByteCodeRangeNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetByteCodeRangeNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetByteCodeRangeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetByteCodeRangeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3380}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a string's \"byte-based\" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a string's \"byte-based\" "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetByteCodeRangeNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3336}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode","name":"TruffleString.GetCodeRangeImpreciseNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.GetCodeRangeImpreciseNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]},"doc":{"summary":[{"kind":"text","text":"Get the string's possibly imprecise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the string's possibly imprecise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":". This node will never attempt to calculate a more precise code range, instead it will only return what is currently known."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3302}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetCodeRangeImpreciseNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetCodeRangeImpreciseNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeImpreciseNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeImpreciseNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3315}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetCodeRangeImpreciseNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetCodeRangeImpreciseNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeImpreciseNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeImpreciseNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3325}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a string's possibly imprecise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a string's possibly imprecise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeNode"}]}]]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3291}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode","name":"TruffleString.GetCodeRangeNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.GetCodeRangeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]},"doc":{"summary":[{"kind":"text","text":"Get the string's precise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the string's precise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":". This operation will cause a full string scan if the precise code range is currently unknown."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3255}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetCodeRangeNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetCodeRangeNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3269}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetCodeRangeNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetCodeRangeNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3279}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a string's precise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a string's precise "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},"code":true,"children":[{"kind":"text","text":"CodeRange"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetCodeRangeImpreciseNode"},"code":true,"children":[{"kind":"text","text":"GetCodeRangeImpreciseNode"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3244}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode","name":"TruffleString.GetInternalByteArrayNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.GetInternalByteArrayNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"InternalByteArray","ref":"com.oracle.truffle.api.strings.InternalByteArray"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"InternalByteArray","ref":"com.oracle.truffle.api.strings.InternalByteArray"}]},"doc":{"summary":[{"kind":"text","text":"Get the given string's internal byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the given string's internal byte array. The returned byte array must not be modified. Note that this operation may also return a copy of the string's internal storage, if the internal format does not match the regular encoded string format; compacted and native strings will always yield a copy."}]},{"kind":"paragraph","children":[{"kind":"text","text":"CAUTION: TruffleString re-uses internal byte arrays whenever possible, DO NOT modify the arrays returned by this operation. Use this operation only when absolutely necessary. Reading a string's contents should always be done via nodes like "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"ReadByteNode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"ReadCharUTF16Node"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtIndexNode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodePointAtByteIndexNode"},"code":true,"children":[{"kind":"text","text":"CodePointAtByteIndexNode"}]},{"kind":"text","text":" etc., if at all possible. If mutability is required, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.MutableTruffleString"},"code":true,"children":[{"kind":"text","text":"MutableTruffleString"}]},{"kind":"text","text":" instead."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7720}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetInternalByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetInternalByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"},"code":true,"children":[{"kind":"text","text":"GetInternalByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"},"code":true,"children":[{"kind":"text","text":"GetInternalByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7788}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetInternalByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetInternalByteArrayNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"},"code":true,"children":[{"kind":"text","text":"GetInternalByteArrayNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode"},"code":true,"children":[{"kind":"text","text":"GetInternalByteArrayNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7798}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a string's internal byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a string's internal byte array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalByteArrayNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7700}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode","name":"TruffleString.GetInternalNativePointerNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.GetInternalNativePointerNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]},"doc":{"summary":[{"kind":"text","text":"Get the given string's pointer object which was passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the given string's pointer object which was passed to "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromNativePointerNode"},"code":true,"children":[{"kind":"text","text":"FromNativePointerNode"}]},{"kind":"text","text":". If the string was created from a boxed "},{"kind":"link","target":{"id":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},"code":true,"children":[{"kind":"text","text":"Long"}]},{"kind":"text","text":" raw native pointer, this node returns that raw pointer as a boxed "},{"kind":"link","target":{"id":"java.lang.Long","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Long.html"},"code":true,"children":[{"kind":"text","text":"Long"}]},{"kind":"text","text":". In that case, there is no associated object kept alive for lifetime tracking, so the caller remains responsible for ensuring that the native memory remains valid. If the string is not backed by a native pointer, this node will throw an "},{"kind":"link","target":{"id":"java.lang.UnsupportedOperationException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/UnsupportedOperationException.html"},"code":true,"children":[{"kind":"text","text":"UnsupportedOperationException"}]},{"kind":"text","text":". Use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"AbstractTruffleString.isNative()"}]},{"kind":"text","text":" to check whether the string is actually backed by a native pointer before calling this node. Caution: If the given string is a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", the native pointer must not be modified as long as the string is used."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7827}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetInternalNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetInternalNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"},"code":true,"children":[{"kind":"text","text":"GetInternalNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"},"code":true,"children":[{"kind":"text","text":"GetInternalNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7843}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetInternalNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetInternalNativePointerNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"},"code":true,"children":[{"kind":"text","text":"GetInternalNativePointerNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode"},"code":true,"children":[{"kind":"text","text":"GetInternalNativePointerNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7853}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"native"}]},{"kind":"text","text":" string's pointer object or raw pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"native"}]},{"kind":"text","text":" string's pointer object or raw pointer. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetInternalNativePointerNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7809}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode","name":"TruffleString.GetStringCompactionLevelNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.GetStringCompactionLevelNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.CompactionLevel","ref":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"}]},"doc":{"summary":[{"kind":"text","text":"Get the string's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},"code":true,"children":[{"kind":"text","text":"CompactionLevel"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the string's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},"code":true,"children":[{"kind":"text","text":"CompactionLevel"}]},{"kind":"text","text":". Since string compaction is only supported on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_16"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":", this node will return "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel#S1"},"code":true,"children":[{"kind":"text","text":"CompactionLevel.S1"}]},{"kind":"text","text":" on all other encodings."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3573}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetStringCompactionLevelNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetStringCompactionLevelNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"},"code":true,"children":[{"kind":"text","text":"GetStringCompactionLevelNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"},"code":true,"children":[{"kind":"text","text":"GetStringCompactionLevelNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3596}},{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.GetStringCompactionLevelNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.GetStringCompactionLevelNode","ref":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"},"code":true,"children":[{"kind":"text","text":"GetStringCompactionLevelNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$GetStringCompactionLevelNode"},"code":true,"children":[{"kind":"text","text":"GetStringCompactionLevelNode"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3606}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a string's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},"code":true,"children":[{"kind":"text","text":"CompactionLevel"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a string's "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CompactionLevel"},"code":true,"children":[{"kind":"text","text":"CompactionLevel"}]},{"kind":"text","text":"."}]}]},"since":"23.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3561}},{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode","name":"TruffleString.HashCodeNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.HashCodeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the string's hash code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the string's hash code. The hash is dependent on the string's encoding, make sure to convert strings to a common encoding before comparing their hash codes!"}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3677}},{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.HashCodeNode","ref":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.HashCodeNode","ref":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"},"code":true,"children":[{"kind":"text","text":"HashCodeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"},"code":true,"children":[{"kind":"text","text":"HashCodeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3726}},{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.HashCodeNode","ref":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.HashCodeNode","ref":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"},"code":true,"children":[{"kind":"text","text":"HashCodeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode"},"code":true,"children":[{"kind":"text","text":"HashCodeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3736}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a string's hash code."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a string's hash code. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$HashCodeNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#hashCode()"},"code":true,"children":[{"kind":"text","text":"TruffleString.hashCode()"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3666}},{"id":"com.oracle.truffle.api.strings.TruffleString$IllegalByteArrayLengthException","name":"TruffleString.IllegalByteArrayLengthException","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.IllegalByteArrayLengthException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"superclass":[{"kind":"type","text":"IllegalArgumentException","ref":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"}],"ancestors":[{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},{"id":"java.lang.RuntimeException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/RuntimeException.html"},{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#fillInStackTrace()","text":"fillInStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getMessage()","text":"getMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"This exception is thrown when any operation tries to create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"UTF-16"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"UTF-32"}]},{"kind":"text","text":" string with an invalid byte length (not a multiple of 2/4 bytes)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This exception is thrown when any operation tries to create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"UTF-16"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"UTF-32"}]},{"kind":"text","text":" string with an invalid byte length (not a multiple of 2/4 bytes)."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7451}},{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode","name":"TruffleString.IndexOfCodePointNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.IndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Return the codepoint index of the first occurrence of "},{"kind":"code","text":"codepoint"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toIndex"},{"kind":"text","text":" (exclusive), if no occurrence is found return a negative value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return the codepoint index of the first occurrence of "},{"kind":"code","text":"codepoint"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toIndex"},{"kind":"text","text":" (exclusive), if no occurrence is found return a negative value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5293}},{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.IndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.IndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"IndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"IndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5340}},{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.IndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.IndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"IndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"IndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5350}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to find the index of the first occurrence of a given code point."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to find the index of the first occurrence of a given code point. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfCodePointNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5281}},{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode","name":"TruffleString.IndexOfStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.IndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Return the codepoint index of the first occurrence of "},{"kind":"code","text":"string"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toIndex"},{"kind":"text","text":" (exclusive), if no occurrence is found return a negative value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return the codepoint index of the first occurrence of "},{"kind":"code","text":"string"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"toIndex"},{"kind":"text","text":" (exclusive), if no occurrence is found return a negative value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5630}},{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.IndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.IndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5706}},{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.IndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.IndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"IndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5716}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to find the index of the first occurrence of a given string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to find the index of the first occurrence of a given string. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IndexOfStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, AbstractTruffleString, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5618}},{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node","name":"TruffleString.IntIndexOfAnyIntUTF32Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.IntIndexOfAnyIntUTF32Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int[])","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int[])","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIntIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"maxIntIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"values"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIntIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"maxIntIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"values","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Return the int index of the first occurrence of any int contained in "},{"kind":"code","text":"values"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIntIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxIntIndex"},{"kind":"text","text":" (exclusive)."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return the int index of the first occurrence of any int contained in "},{"kind":"code","text":"values"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIntIndex"},{"kind":"text","text":" (inclusive) and "},{"kind":"code","text":"maxIntIndex"},{"kind":"text","text":" (exclusive)."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If none of the values is found, return a negative value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4714}},{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.IntIndexOfAnyIntUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.IntIndexOfAnyIntUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"},"code":true,"children":[{"kind":"text","text":"IntIndexOfAnyIntUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"},"code":true,"children":[{"kind":"text","text":"IntIndexOfAnyIntUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4758}},{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.IntIndexOfAnyIntUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.IntIndexOfAnyIntUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"},"code":true,"children":[{"kind":"text","text":"IntIndexOfAnyIntUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node"},"code":true,"children":[{"kind":"text","text":"IntIndexOfAnyIntUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4768}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to find the index of the first occurrence of any "},{"kind":"code","text":"int"},{"kind":"text","text":" from a given array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to find the index of the first occurrence of any "},{"kind":"code","text":"int"},{"kind":"text","text":" from a given array. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IntIndexOfAnyIntUTF32Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int[])"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, int[])"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4701}},{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode","name":"TruffleString.IsValidNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.IsValidNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the string encoded correctly."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if the string encoded correctly."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3457}},{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.IsValidNode","ref":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.IsValidNode","ref":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"IsValidNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"IsValidNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3471}},{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.IsValidNode","ref":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.IsValidNode","ref":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"IsValidNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"IsValidNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3481}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to check if a string is encoded correctly."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to check if a string is encoded correctly."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3447}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode","name":"TruffleString.LastByteIndexOfCodePointNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.LastByteIndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toByteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfCodePointNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfCodePointNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5536}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.LastByteIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.LastByteIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5596}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.LastByteIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.LastByteIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5606}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfCodePointNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfCodePointNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5526}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode","name":"TruffleString.LastByteIndexOfStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.LastByteIndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5986}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":", but with byte indices. This variant accepts a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask"}]},{"kind":"text","text":" as the search value "},{"kind":"code","text":"b"},{"kind":"text","text":", which changes the searching algorithm in the following manner: whenever the contents of "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" are compared, the mask is OR'ed to "},{"kind":"code","text":"a"},{"kind":"text","text":", as shown in this exemplary method:"}]},{"kind":"code","text":"\nboolean bytesEqualAt(TruffleString a, int byteIndexA, TruffleString.WithMask b, int byteIndexB) {\n    return (readByte(a, byteIndexA) | readByte(b.mask, byteIndexB)) == readByte(b, byteIndexB);\n}"}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6006}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.LastByteIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.LastByteIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6098}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.LastByteIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.LastByteIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6108}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5976}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode","name":"TruffleString.LastIndexOfCodePointNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.LastIndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Return the codepoint index of the last occurrence of "},{"kind":"code","text":"codepoint"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (exclusive upper limit) and "},{"kind":"code","text":"toIndex"},{"kind":"text","text":" (inclusive lower limit), if no occurrence is found return a negative value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return the codepoint index of the last occurrence of "},{"kind":"code","text":"codepoint"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (exclusive upper limit) and "},{"kind":"code","text":"toIndex"},{"kind":"text","text":" (inclusive lower limit), if no occurrence is found return a negative value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5462}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.LastIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.LastIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5506}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.LastIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.LastIndexOfCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5516}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to find the codepoint index of the last occurrence of a given code point."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to find the codepoint index of the last occurrence of a given code point. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfCodePointNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5450}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode","name":"TruffleString.LastIndexOfStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.LastIndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"toIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"toIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Return the codepoint index of the last occurrence of "},{"kind":"code","text":"string"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (exclusive upper limit) and "},{"kind":"code","text":"toIndex"},{"kind":"text","text":" (inclusive lower limit), if no occurrence is found return a negative value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return the codepoint index of the last occurrence of "},{"kind":"code","text":"string"},{"kind":"text","text":", bounded by "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" (exclusive upper limit) and "},{"kind":"code","text":"toIndex"},{"kind":"text","text":" (inclusive lower limit), if no occurrence is found return a negative value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5880}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.LastIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.LastIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5956}},{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.LastIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.LastIndexOfStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastIndexOfStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5966}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to find the index of the last occurrence of a given string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to find the index of the last occurrence of a given string. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastIndexOfStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, AbstractTruffleString, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":5868}},{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode","name":"TruffleString.MaterializeNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.MaterializeNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"doc":{"summary":[{"kind":"text","text":"Forces materialization of any lazy internal data."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Forces materialization of any lazy internal data. Use this node to avoid materialization code inside loops, e.g. when iterating over a string's code points or bytes."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3098}},{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.MaterializeNode","ref":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.MaterializeNode","ref":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"MaterializeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"MaterializeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3120}},{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.MaterializeNode","ref":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.MaterializeNode","ref":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"MaterializeNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"MaterializeNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3130}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to force materialization of any lazy internal data."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to force materialization of any lazy internal data. Use this node to avoid materialization code inside loops, e.g. when iterating over a string's code points or bytes."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3087}},{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode","name":"TruffleString.MaterializeSubstringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.MaterializeSubstringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Extended version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"MaterializeNode"}]},{"kind":"text","text":" that also materializes substrings/string views created via e.g."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Extended version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"MaterializeNode"}]},{"kind":"text","text":" that also materializes substrings/string views created via e.g. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":" with the "},{"kind":"code","text":"lazy"},{"kind":"text","text":" parameter set to "},{"kind":"code","text":"true"},{"kind":"text","text":" or via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":" with the "},{"kind":"code","text":"copy"},{"kind":"text","text":" parameter set to "},{"kind":"code","text":"false"},{"kind":"text","text":". Note that this node returns a potentially new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", because these substrings cannot be materialized internally. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"Native-backed"}]},{"kind":"text","text":" strings are kept as-is, since this node cannot decide whether a native-backed string is a substring/string view."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Lazy substrings keep a reference to the potentially larger byte array they were created from, which may keep more memory alive than necessary (see the caveats mentioned at "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"SubstringNode.execute"}]},{"kind":"text","text":"). With this node, unnecessarily held memory is reclaimed by copying the referenced subregions. This is especially useful if a string is added to a data structure known to be long-lived, e.g. during string interning."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"SubstringNode.execute"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3175}},{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.MaterializeSubstringNode","ref":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.MaterializeSubstringNode","ref":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"},"code":true,"children":[{"kind":"text","text":"MaterializeSubstringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"},"code":true,"children":[{"kind":"text","text":"MaterializeSubstringNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3222}},{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.MaterializeSubstringNode","ref":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.MaterializeSubstringNode","ref":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"},"code":true,"children":[{"kind":"text","text":"MaterializeSubstringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeSubstringNode"},"code":true,"children":[{"kind":"text","text":"MaterializeSubstringNode"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3232}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Extended version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"MaterializeNode"}]},{"kind":"text","text":" that also materializes substrings/string views created via e.g."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Extended version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"MaterializeNode"}]},{"kind":"text","text":" that also materializes substrings/string views created via e.g. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":" with the "},{"kind":"code","text":"lazy"},{"kind":"text","text":" parameter set to "},{"kind":"code","text":"true"},{"kind":"text","text":" or via "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$FromByteArrayNode"},"code":true,"children":[{"kind":"text","text":"FromByteArrayNode"}]},{"kind":"text","text":" with the "},{"kind":"code","text":"copy"},{"kind":"text","text":" parameter set to "},{"kind":"code","text":"false"},{"kind":"text","text":". Note that this node returns a potentially new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", because these substrings cannot be materialized internally. "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.AbstractTruffleString#isNative()"},"code":true,"children":[{"kind":"text","text":"Native-backed"}]},{"kind":"text","text":" strings are kept as-is, since this node cannot decide whether a native-backed string is a substring/string view."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Lazy substrings keep a reference to the potentially larger byte array they were created from, which may keep more memory alive than necessary (see the caveats mentioned at "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"SubstringNode.execute"}]},{"kind":"text","text":"). With this node, unnecessarily held memory is reclaimed by copying the referenced subregions. This is especially useful if a string is added to a data structure known to be long-lived, e.g. during string interning."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"SubstringNode.execute"}]}]]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3152}},{"id":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException","name":"TruffleString.NumberFormatException","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.NumberFormatException"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"superclass":[{"kind":"type","text":"Exception","ref":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"}],"ancestors":[{"id":"java.lang.Exception","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Exception.html"},{"id":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException#getMessage()","anchor":"getMessage()","kind":"method","name":"getMessage","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getMessage"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Throwable#getMessage()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getMessage()"},"doc":{"summary":[{"kind":"text","text":"Returns a detailed error message."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a detailed error message. Not designed to be used on fast paths."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7416}},{"id":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException#fillInStackTrace()","anchor":"fillInStackTrace()","kind":"method","name":"fillInStackTrace","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},{"kind":"punct","text":" "},{"kind":"name","text":"fillInStackTrace"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Throwable","ref":"java.lang.Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"}]},"overrides":{"id":"java.lang.Throwable#fillInStackTrace()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"},"doc":{"summary":[{"kind":"text","text":"No stack trace for this exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"No stack trace for this exception."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7437}}],"inherited":[{"from":{"id":"java.lang.Throwable","text":"Throwable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html"},"kind":"class","members":[{"id":"java.lang.Throwable#addSuppressed(java.lang.Throwable)","text":"addSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"},{"id":"java.lang.Throwable#getCause()","text":"getCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getCause()"},{"id":"java.lang.Throwable#getLocalizedMessage()","text":"getLocalizedMessage","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"},{"id":"java.lang.Throwable#getStackTrace()","text":"getStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"},{"id":"java.lang.Throwable#getSuppressed()","text":"getSuppressed","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"},{"id":"java.lang.Throwable#initCause(java.lang.Throwable)","text":"initCause","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"},{"id":"java.lang.Throwable#printStackTrace()","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintStream)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"},{"id":"java.lang.Throwable#printStackTrace(java.io.PrintWriter)","text":"printStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"},{"id":"java.lang.Throwable#setStackTrace(java.lang.StackTraceElement[])","text":"setStackTrace","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"},{"id":"java.lang.Throwable#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Throwable.html#toString()"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"This exception may be thrown by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"ParseIntNode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"ParseLongNode"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},"code":true,"children":[{"kind":"text","text":"ParseDoubleNode"}]},{"kind":"text","text":" to indicate that the given string cannot be parsed as an integer, long or double value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This exception may be thrown by "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"ParseIntNode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"ParseLongNode"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},"code":true,"children":[{"kind":"text","text":"ParseDoubleNode"}]},{"kind":"text","text":" to indicate that the given string cannot be parsed as an integer, long or double value. This exception does not record stack traces for performance reasons."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7302}},{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode","name":"TruffleString.ParseDoubleNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ParseDoubleNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"returns":{"type":[{"kind":"keyword","text":"double"}]},"throws":[{"type":[{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Parse the given string as a double value, or throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"},"code":true,"children":[{"kind":"text","text":"NumberFormatException"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Parse the given string as a double value, or throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"},"code":true,"children":[{"kind":"text","text":"NumberFormatException"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7633}},{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ParseDoubleNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ParseDoubleNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},"code":true,"children":[{"kind":"text","text":"ParseDoubleNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},"code":true,"children":[{"kind":"text","text":"ParseDoubleNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7679}},{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ParseDoubleNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ParseDoubleNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},"code":true,"children":[{"kind":"text","text":"ParseDoubleNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseDoubleNode"},"code":true,"children":[{"kind":"text","text":"ParseDoubleNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7689}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to parse a given string as a double value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to parse a given string as a double value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7623}},{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode","name":"TruffleString.ParseIntNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ParseIntNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"radix"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"radix","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"throws":[{"type":[{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Parse the given string as an int value, or throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"},"code":true,"children":[{"kind":"text","text":"NumberFormatException"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Parse the given string as an int value, or throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"},"code":true,"children":[{"kind":"text","text":"NumberFormatException"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7475}},{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ParseIntNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ParseIntNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"ParseIntNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"ParseIntNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7527}},{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ParseIntNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ParseIntNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"ParseIntNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseIntNode"},"code":true,"children":[{"kind":"text","text":"ParseIntNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7537}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to parse a given string as an int value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to parse a given string as an int value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7465}},{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode","name":"TruffleString.ParseLongNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ParseLongNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"radix"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"radix","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"long"}]},"throws":[{"type":[{"kind":"type","text":"TruffleString.NumberFormatException","ref":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"}],"declared":true}],"doc":{"summary":[{"kind":"text","text":"Parse the given string as a long value, or throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"},"code":true,"children":[{"kind":"text","text":"NumberFormatException"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Parse the given string as a long value, or throw "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$NumberFormatException"},"code":true,"children":[{"kind":"text","text":"NumberFormatException"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7557}},{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ParseLongNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ParseLongNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"ParseLongNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"ParseLongNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7603}},{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ParseLongNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ParseLongNode","ref":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"ParseLongNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ParseLongNode"},"code":true,"children":[{"kind":"text","text":"ParseLongNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7613}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to parse a given string as a long value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to parse a given string as a long value."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7547}},{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode","name":"TruffleString.ReadByteNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ReadByteNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteIndex"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"byteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Read a single byte from a string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read a single byte from a string. If used inside a loop or repetitively, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$MaterializeNode"},"code":true,"children":[{"kind":"text","text":"MaterializeNode"}]},{"kind":"text","text":" should be used before."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3786}},{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ReadByteNode","ref":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ReadByteNode","ref":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"ReadByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"ReadByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3830}},{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ReadByteNode","ref":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ReadByteNode","ref":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"ReadByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode"},"code":true,"children":[{"kind":"text","text":"ReadByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3840}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to read a single byte from a string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to read a single byte from a string. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadByteNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3775}},{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node","name":"TruffleString.ReadCharUTF16Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ReadCharUTF16Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charIndex"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"charIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"char"}]},"doc":{"summary":[{"kind":"text","text":"Read a single char from a UTF-16 string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read a single char from a UTF-16 string."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3860}},{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node#executeLE(com.oracle.truffle.api.strings.AbstractTruffleString,int)","anchor":"executeLE(com.oracle.truffle.api.strings.AbstractTruffleString,int)","kind":"method","name":"executeLE","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"executeLE"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charIndex"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"charIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"char"}]},"doc":{"summary":[{"kind":"text","text":"Read a single char from a UTF-16LE string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read a single char from a UTF-16LE string."}]}]},"since":"26.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3870}},{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node#executeBE(com.oracle.truffle.api.strings.AbstractTruffleString,int)","anchor":"executeBE(com.oracle.truffle.api.strings.AbstractTruffleString,int)","kind":"method","name":"executeBE","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"name","text":"executeBE"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charIndex"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"charIndex","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"keyword","text":"char"}]},"doc":{"summary":[{"kind":"text","text":"Read a single char from a UTF-16BE string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read a single char from a UTF-16BE string."}]}]},"since":"26.0","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3880}},{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ReadCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ReadCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"ReadCharUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"ReadCharUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3931}},{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ReadCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ReadCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"ReadCharUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ReadCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"ReadCharUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3941}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to read a single char from a UTF-16 string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to read a single char from a UTF-16 string."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":3850}},{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode","name":"TruffleString.RegionEqualByteIndexNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.RegionEqualByteIndexNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndexA"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndexB"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndexB","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks for a region match, byte-by-byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks for a region match, byte-by-byte."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6562}},{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndexA"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndexB"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"b","type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},{"name":"fromByteIndexB","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks for a region match, byte-by-byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks for a region match, byte-by-byte. This variant accepts a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask"}]},{"kind":"text","text":" as the search value "},{"kind":"code","text":"b"},{"kind":"text","text":", which changes the matching algorithm in the following manner: when the contents of "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"b"},{"kind":"text","text":" are compared, the mask is OR'ed to "},{"kind":"code","text":"a"},{"kind":"text","text":", as shown in this exemplary method:"}]},{"kind":"code","text":"\nboolean bytesEqualAt(TruffleString a, int byteIndexA, TruffleString.WithMask b, int byteIndexB) {\n    return (readByte(a, byteIndexA) | readByte(b.mask, byteIndexB)) == readByte(b, byteIndexB);\n}"}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6582}},{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.RegionEqualByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.RegionEqualByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6651}},{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.RegionEqualByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.RegionEqualByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6661}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to check for a region match, byte-by-byte."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to check for a region match, byte-by-byte. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, AbstractTruffleString, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.WithMask,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, TruffleString.WithMask, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6552}},{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode","name":"TruffleString.RegionEqualNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.RegionEqualNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndexA"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndexB"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndexA","type":[{"kind":"keyword","text":"int"}]},{"name":"b","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndexB","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Checks for codepoint equality in a region with the given codepoint index and codepoint length."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks for codepoint equality in a region with the given codepoint index and codepoint length."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Equivalent to:"}]},{"kind":"code","text":"for (int i = 0; i < length; i++) {\n    if (codePointAt(a, fromIndexA + i) != codePointAt(b, fromIndexB + i)) {\n        return false;\n    }\n}\nreturn true;"}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6457}},{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.RegionEqualNode","ref":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.RegionEqualNode","ref":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6528}},{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.RegionEqualNode","ref":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.RegionEqualNode","ref":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6538}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to check codepoint equality of two string regions."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to check codepoint equality of two string regions. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, AbstractTruffleString, int, int, TruffleString.Encoding)"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6435}},{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode","name":"TruffleString.RepeatNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.RepeatNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"n"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"n","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Create a new string by repeating "},{"kind":"code","text":"n"},{"kind":"text","text":" times string "},{"kind":"code","text":"a"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new string by repeating "},{"kind":"code","text":"n"},{"kind":"text","text":" times string "},{"kind":"code","text":"a"},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6804}},{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.RepeatNode","ref":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.RepeatNode","ref":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"},"code":true,"children":[{"kind":"text","text":"RepeatNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"},"code":true,"children":[{"kind":"text","text":"RepeatNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6889}},{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.RepeatNode","ref":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.RepeatNode","ref":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"},"code":true,"children":[{"kind":"text","text":"RepeatNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode"},"code":true,"children":[{"kind":"text","text":"RepeatNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6899}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to repeat a given string "},{"kind":"code","text":"N"},{"kind":"text","text":" times."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to repeat a given string "},{"kind":"code","text":"N"},{"kind":"text","text":" times. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RepeatNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6794}},{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet","name":"TruffleString.StringSet","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.StringSet"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet#fromArray(com.oracle.truffle.api.strings.AbstractTruffleString[],com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"fromArray(com.oracle.truffle.api.strings.AbstractTruffleString[],com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"fromArray","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.StringSet","ref":"com.oracle.truffle.api.strings.TruffleString$StringSet"},{"kind":"punct","text":" "},{"kind":"name","text":"fromArray"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":"[] "},{"kind":"param","text":"strings"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"strings","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"list of strings to search for. Empty and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#BROKEN"},"code":true,"children":[{"kind":"text","text":"CodeRange.BROKEN"}]},{"kind":"text","text":" strings are unsupported."}]}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"strings"},{"kind":"text","text":"' encoding. Must be a "},{"kind":"emphasis","children":[{"kind":"text","text":"supported"}]},{"kind":"text","text":" encoding, i.e. "},{"kind":"code","text":"UTF-8/16/32"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#ISO_8859_1"},"code":true,"children":[{"kind":"text","text":"Encoding.ISO_8859_1"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#US_ASCII"},"code":true,"children":[{"kind":"text","text":"Encoding.US_ASCII"}]},{"kind":"text","text":"."}]}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.StringSet","ref":"com.oracle.truffle.api.strings.TruffleString$StringSet"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet"},"code":true,"children":[{"kind":"text","text":"StringSet"}]},{"kind":"text","text":" from the given array of strings."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet"},"code":true,"children":[{"kind":"text","text":"StringSet"}]},{"kind":"text","text":" from the given array of strings. This operation is expensive, it is recommended to cache the result."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4910}},{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet#fromArray(com.oracle.truffle.api.strings.TruffleString.WithMask[],com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"fromArray(com.oracle.truffle.api.strings.TruffleString.WithMask[],com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"fromArray","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.StringSet","ref":"com.oracle.truffle.api.strings.TruffleString$StringSet"},{"kind":"punct","text":" "},{"kind":"name","text":"fromArray"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":"[] "},{"kind":"param","text":"strings"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"strings","type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":"[]"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.StringSet","ref":"com.oracle.truffle.api.strings.TruffleString$StringSet"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet"},"code":true,"children":[{"kind":"text","text":"StringSet"}]},{"kind":"text","text":" from the given array of strings with masks."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet"},"code":true,"children":[{"kind":"text","text":"StringSet"}]},{"kind":"text","text":" from the given array of strings with masks. This operation is expensive, it is recommended to cache the result. Matching uses the same semantics as "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" with some additional restrictions: a pattern code unit matches a haystack code unit if "},{"kind":"code","text":"(haystack | mask) == pattern"},{"kind":"text","text":", but the mask may only have one set bit per code unit, and it may not have a larger code range than all search patterns, e.g. if all strings are "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$CodeRange#ASCII"},"code":true,"children":[{"kind":"text","text":"CodeRange.ASCII"}]},{"kind":"text","text":", the mask may not have a code unit "},{"kind":"code","text":"0x80"},{"kind":"text","text":". The restrictions of the maskless variant also apply here."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4926}},{"id":"com.oracle.truffle.api.strings.TruffleString$StringSet#isIntrinsicCandidate(com.oracle.truffle.api.strings.TruffleString.CodeRange)","anchor":"isIntrinsicCandidate(com.oracle.truffle.api.strings.TruffleString.CodeRange)","kind":"method","name":"isIntrinsicCandidate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isIntrinsicCandidate"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"},{"kind":"punct","text":" "},{"kind":"param","text":"codeRange"},{"kind":"punct","text":")"}],"params":[{"name":"codeRange","type":[{"kind":"type","text":"TruffleString.CodeRange","ref":"com.oracle.truffle.api.strings.TruffleString$CodeRange"}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringSetNode"}]},{"kind":"text","text":" may implement the search for this particular string set in strings with the given code range by dispatching to a compiler intrinsic."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringSetNode"}]},{"kind":"text","text":" may implement the search for this particular string set in strings with the given code range by dispatching to a compiler intrinsic."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This is useful for use cases where the caller has a faster implementation for non-intrinsified paths."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4941}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A set of strings in a given encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A set of strings in a given encoding. Used in "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringSetNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.StringSet)"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringSetNode.execute(AbstractTruffleString, int, int, TruffleString.StringSet)"}]},{"kind":"text","text":"."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":4885}},{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode","name":"TruffleString.SubstringByteIndexNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.SubstringByteIndexNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7010}},{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.SubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.SubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7058}},{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.SubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.SubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"SubstringByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7068}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":", but with byte indices."}],"body":[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":", but with byte indices."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":7000}},{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode","name":"TruffleString.SubstringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.SubstringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"length"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"length","type":[{"kind":"keyword","text":"int"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Create a substring of "},{"kind":"code","text":"a"},{"kind":"text","text":", starting from codepoint index "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":", with codepoint length "},{"kind":"code","text":"length"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a substring of "},{"kind":"code","text":"a"},{"kind":"text","text":", starting from codepoint index "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":", with codepoint length "},{"kind":"code","text":"length"},{"kind":"text","text":". If "},{"kind":"code","text":"lazy"},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", "},{"kind":"code","text":"a"},{"kind":"text","text":"'s internal storage will be re-used instead of creating a copy of the requested range. Since the resulting string will have a reference to "},{"kind":"code","text":"a"},{"kind":"text","text":"'s internal storage, and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" currently does "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" resize/trim the substring's internal storage at any point, the "},{"kind":"code","text":"lazy"},{"kind":"text","text":" variant effectively creates a memory leak! The caller is responsible for deciding whether this is acceptable or not."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6927}},{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.SubstringNode","ref":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.SubstringNode","ref":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6980}},{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.SubstringNode","ref":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.SubstringNode","ref":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode"},"code":true,"children":[{"kind":"text","text":"SubstringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6990}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a substring of a given string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a substring of a given string. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SubstringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int,int,com.oracle.truffle.api.strings.TruffleString.Encoding,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, int, int, TruffleString.Encoding, boolean)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":6911}},{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode","name":"TruffleString.SwitchEncodingNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.SwitchEncodingNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that is encoded in the given encoding, which may be the string itself or a converted version."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that is encoded in the given encoding, which may be the string itself or a converted version. Note that the string itself may be returned even if it was originally created using a different encoding, if the string is byte-equivalent in both encodings."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If no lossless conversion is possible, the string is converted on a best-effort basis; no exception is thrown and characters which cannot be mapped in the target encoding are replaced by "},{"kind":"code","text":"'�'"},{"kind":"text","text":" (for UTF-*) or "},{"kind":"code","text":"'?'"},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8552}},{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TranscodingErrorHandler)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding,com.oracle.truffle.api.strings.TranscodingErrorHandler)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"},{"kind":"punct","text":" "},{"kind":"param","text":"errorHandler"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"errorHandler","type":[{"kind":"type","text":"TranscodingErrorHandler","ref":"com.oracle.truffle.api.strings.TranscodingErrorHandler"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that is encoded in the given encoding, which may be the string itself or a converted version."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that is encoded in the given encoding, which may be the string itself or a converted version. Note that the string itself may be returned even if it was originally created using a different encoding, if the string is byte-equivalent in both encodings. Transcoding errors are handled with "},{"kind":"code","text":"errorHandler"},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8565}},{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.SwitchEncodingNode","ref":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.SwitchEncodingNode","ref":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"SwitchEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"SwitchEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8578}},{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.SwitchEncodingNode","ref":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.SwitchEncodingNode","ref":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"SwitchEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"SwitchEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8588}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a given string in a specific encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a given string in a specific encoding. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8535}},{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode","name":"TruffleString.ToJavaStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ToJavaStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"doc":{"summary":[{"kind":"text","text":"Return a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":" representation of the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Return a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":" representation of the given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8103}},{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ToJavaStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ToJavaStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"},"code":true,"children":[{"kind":"text","text":"ToJavaStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"},"code":true,"children":[{"kind":"text","text":"ToJavaStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8269}},{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ToJavaStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ToJavaStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"},"code":true,"children":[{"kind":"text","text":"ToJavaStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToJavaStringNode"},"code":true,"children":[{"kind":"text","text":"ToJavaStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8279}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to get a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":" representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to get a "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":" representation of a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8093}},{"id":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode","name":"TruffleString.ToValidStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.ToValidStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that contains only valid codepoints, which may be the string itself or a converted version."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a version of string "},{"kind":"code","text":"a"},{"kind":"text","text":" that contains only valid codepoints, which may be the string itself or a converted version. Invalid byte sequences are replaced with "},{"kind":"code","text":"'�'"},{"kind":"text","text":" (for UTF-*) or "},{"kind":"code","text":"'?'"},{"kind":"text","text":". This is useful for string sanitization in all uses cases where a string is required to actually be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"valid"}]},{"kind":"text","text":", such as libraries that actively reject broken input, network and file system I/O, etc."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8470}},{"id":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ToValidStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ToValidStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"SwitchEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"SwitchEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8514}},{"id":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.ToValidStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.ToValidStringNode","ref":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"SwitchEncodingNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$SwitchEncodingNode"},"code":true,"children":[{"kind":"text","text":"SwitchEncodingNode"}]},{"kind":"text","text":"."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8524}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to replace all invalid bytes in a given string, such that the resulting string is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"valid"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to replace all invalid bytes in a given string, such that the resulting string is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$IsValidNode"},"code":true,"children":[{"kind":"text","text":"valid"}]},{"kind":"text","text":". See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ToValidStringNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(AbstractTruffleString, TruffleString.Encoding)"}]},{"kind":"text","text":" for details."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":8456}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask","name":"TruffleString.WithMask","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.WithMask"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask#createUncached(com.oracle.truffle.api.strings.AbstractTruffleString,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"createUncached(com.oracle.truffle.api.strings.AbstractTruffleString,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"createUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"name","text":"createUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"mask","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"CreateNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"CreateNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1468}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask#createUTF16Uncached(com.oracle.truffle.api.strings.AbstractTruffleString,char[])","anchor":"createUTF16Uncached(com.oracle.truffle.api.strings.AbstractTruffleString,char[])","kind":"method","name":"createUTF16Uncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"name","text":"createUTF16Uncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"mask","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node"},"code":true,"children":[{"kind":"text","text":"CreateUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node"},"code":true,"children":[{"kind":"text","text":"CreateUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1529}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask#createUTF32Uncached(com.oracle.truffle.api.strings.AbstractTruffleString,int[])","anchor":"createUTF32Uncached(com.oracle.truffle.api.strings.AbstractTruffleString,int[])","kind":"method","name":"createUTF32Uncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"name","text":"createUTF32Uncached"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"mask","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node"},"code":true,"children":[{"kind":"text","text":"CreateUTF32Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node"},"code":true,"children":[{"kind":"text","text":"CreateUTF32Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1592}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Extended parameter type for the operations "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringNode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfStringNode"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Extended parameter type for the operations "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringNode"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfStringNode"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualByteIndexNode"}]},{"kind":"text","text":". These operations can optionally perform a logical OR operation when matching their string parameters against each other, in the following way:"}]},{"kind":"paragraph","children":[{"kind":"text","text":"Given a parameter "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" "},{"kind":"code","text":"b"},{"kind":"text","text":", region equality will be checked as shown in this exemplary method:"}]},{"kind":"code","text":"\nboolean regionEquals(TruffleString a, int fromIndexA, TruffleString.WithMask b, int fromIndexB) {\n    for (int i = 0; i < length; i++) {\n        if ((readRaw(a, fromIndexA + i) | readRaw(b.mask, i)) != readRaw(b.string, fromIndexB + i)) {\n            return false;\n        }\n    }\n    return true;\n}"}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"ByteIndexOfStringNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$LastByteIndexOfStringNode"},"code":true,"children":[{"kind":"text","text":"LastByteIndexOfStringNode"}]}],[{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$RegionEqualByteIndexNode"},"code":true,"children":[{"kind":"text","text":"RegionEqualByteIndexNode"}]}]]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1401}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode","name":"TruffleString.WithMask.CreateNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.WithMask.CreateNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString$WithMask","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode#execute(com.oracle.truffle.api.strings.AbstractTruffleString,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,byte[],com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"mask","type":[{"kind":"keyword","text":"byte"},{"kind":"punct","text":"[]"}]},{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":". "},{"kind":"code","text":"mask.length"},{"kind":"text","text":" must be equal to the string's length in bytes. Cannot be used for UTF-16 or UTF-32 strings."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1429}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask.CreateNode","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask.CreateNode","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1448}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask.CreateNode","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask.CreateNode","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1458}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from a string and a byte array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from a string and a byte array. See "},{"kind":"code","text":"#execute(AbstractTruffleString, byte[], Encoding)"},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1417}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node","name":"TruffleString.WithMask.CreateUTF16Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.WithMask.CreateUTF16Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString$WithMask","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,char[])","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,char[])","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"mask","type":[{"kind":"keyword","text":"char"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":". "},{"kind":"code","text":"mask.length"},{"kind":"text","text":" must be equal to the string's length in "},{"kind":"code","text":"char"},{"kind":"text","text":"s."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1489}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask.CreateUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask.CreateUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1509}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask.CreateUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask.CreateUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1519}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from a UTF-16 string and a char array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from a UTF-16 string and a char array. See "},{"kind":"code","text":"#execute(AbstractTruffleString, char[])"},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1478}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node","name":"TruffleString.WithMask.CreateUTF32Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleString.WithMask.CreateUTF32Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleString$WithMask","members":[{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node#execute(com.oracle.truffle.api.strings.AbstractTruffleString,int[])","anchor":"execute(com.oracle.truffle.api.strings.AbstractTruffleString,int[])","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":"[] "},{"kind":"param","text":"mask"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"mask","type":[{"kind":"keyword","text":"int"},{"kind":"punct","text":"[]"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from "},{"kind":"code","text":"a"},{"kind":"text","text":" and "},{"kind":"code","text":"mask"},{"kind":"text","text":". "},{"kind":"code","text":"mask.length"},{"kind":"text","text":" must be equal to the string's length in "},{"kind":"code","text":"int"},{"kind":"text","text":"s."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1550}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask.CreateUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask.CreateUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1572}},{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString.WithMask.CreateUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString.WithMask.CreateUTF32Node","ref":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateUTF32Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask$CreateNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.WithMask.CreateNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1582}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from a UTF-32 string and an int array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$WithMask"},"code":true,"children":[{"kind":"text","text":"WithMask"}]},{"kind":"text","text":" from a UTF-32 string and an int array. See "},{"kind":"code","text":"#execute(AbstractTruffleString, int[])"},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleString.java","line":1539}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder","name":"TruffleStringBuilder","kind":"class","language":"java","modifiers":["public","abstract","sealed"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"sealed"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"keyword","text":"permits"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilderGeneric","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderGeneric"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"permits":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilderGeneric"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}],"members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#isEmpty()","anchor":"isEmpty()","kind":"method","name":"isEmpty","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isEmpty"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns true if this string builder is empty."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if this string builder is empty."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":102}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#byteLength()","anchor":"byteLength()","kind":"method","name":"byteLength","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"byteLength"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns this string builder's byte length."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns this string builder's byte length."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":111}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#create(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"create(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Create a new string builder with the given encoding."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new string builder with the given encoding."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the encoding is known ahead of time, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8()"},"code":true,"children":[{"kind":"text","text":"createUTF8()"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16()"},"code":true,"children":[{"kind":"text","text":"createUTF16()"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32()"},"code":true,"children":[{"kind":"text","text":"createUTF32()"}]},{"kind":"text","text":" instead."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":136}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#create(com.oracle.truffle.api.strings.TruffleString.Encoding,int)","anchor":"create(com.oracle.truffle.api.strings.TruffleString.Encoding,int)","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"initialCapacity"},{"kind":"punct","text":")"}],"params":[{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]},{"name":"initialCapacity","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},"doc":{"summary":[{"kind":"text","text":"Create a new string builder with the given encoding, and pre-allocate the given number of bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new string builder with the given encoding, and pre-allocate the given number of bytes."}]},{"kind":"paragraph","children":[{"kind":"text","text":"If the encoding is known ahead of time, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8(int)"},"code":true,"children":[{"kind":"text","text":"createUTF8(int)"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16(int)"},"code":true,"children":[{"kind":"text","text":"createUTF16(int)"}]},{"kind":"text","text":" or "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32(int)"},"code":true,"children":[{"kind":"text","text":"createUTF32(int)"}]},{"kind":"text","text":" instead."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":149}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8()","anchor":"createUTF8()","kind":"method","name":"createUTF8","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"name","text":"createUTF8"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},"doc":{"summary":[{"kind":"text","text":"Create a new UTF-8 string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new UTF-8 string builder."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":165}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8(int)","anchor":"createUTF8(int)","kind":"method","name":"createUTF8","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"name","text":"createUTF8"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"initialCapacity"},{"kind":"punct","text":")"}],"params":[{"name":"initialCapacity","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},"doc":{"summary":[{"kind":"text","text":"Create a new UTF-8 string builder and pre-allocate the given number of bytes."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new UTF-8 string builder and pre-allocate the given number of bytes."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":174}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16()","anchor":"createUTF16()","kind":"method","name":"createUTF16","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"name","text":"createUTF16"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},"doc":{"summary":[{"kind":"text","text":"Create a new UTF-16 string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new UTF-16 string builder."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":183}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16(int)","anchor":"createUTF16(int)","kind":"method","name":"createUTF16","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"name","text":"createUTF16"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"initialCapacity"},{"kind":"punct","text":")"}],"params":[{"name":"initialCapacity","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},"doc":{"summary":[{"kind":"text","text":"Create a new UTF-16 string builder and pre-allocate the given number of chars."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new UTF-16 string builder and pre-allocate the given number of chars."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":192}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32()","anchor":"createUTF32()","kind":"method","name":"createUTF32","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"name","text":"createUTF32"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},"doc":{"summary":[{"kind":"text","text":"Create a new UTF-32 string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new UTF-32 string builder."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":201}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32(int)","anchor":"createUTF32(int)","kind":"method","name":"createUTF32","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"name","text":"createUTF32"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"initialCapacity"},{"kind":"punct","text":")"}],"params":[{"name":"initialCapacity","type":[{"kind":"keyword","text":"int"}]}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},"doc":{"summary":[{"kind":"text","text":"Create a new UTF-32 string builder and pre-allocate the given number of codepoints."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new UTF-32 string builder and pre-allocate the given number of codepoints."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":210}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendByteUncached(byte)","anchor":"appendByteUncached(byte)","kind":"method","name":"appendByteUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendByteUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"},"code":true,"children":[{"kind":"text","text":"AppendByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"},"code":true,"children":[{"kind":"text","text":"AppendByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":304}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCharUTF16Uncached(char)","anchor":"appendCharUTF16Uncached(char)","kind":"method","name":"appendCharUTF16Uncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendCharUTF16Uncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"char"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendCharUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendCharUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":385}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int)","anchor":"appendCodePointUncached(int)","kind":"method","name":"appendCodePointUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":")"}],"params":[{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":762}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int,int)","anchor":"appendCodePointUncached(int,int)","kind":"method","name":"appendCodePointUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":")"}],"params":[{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":772}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int,int,boolean)","anchor":"appendCodePointUncached(int,int,boolean)","kind":"method","name":"appendCodePointUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendCodePointUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowUTF16Surrogates"},{"kind":"punct","text":")"}],"params":[{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]},{"name":"allowUTF16Surrogates","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":782}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendIntNumberUncached(int)","anchor":"appendIntNumberUncached(int)","kind":"method","name":"appendIntNumberUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendIntNumberUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendIntNumberNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendIntNumberNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":922}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendLongNumberUncached(long)","anchor":"appendLongNumberUncached(long)","kind":"method","name":"appendLongNumberUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendLongNumberUncached"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendLongNumberNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendLongNumberNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1062}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendStringUncached(com.oracle.truffle.api.strings.TruffleString)","anchor":"appendStringUncached(com.oracle.truffle.api.strings.TruffleString)","kind":"method","name":"appendStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendStringUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"},"code":true,"children":[{"kind":"text","text":"AppendStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"},"code":true,"children":[{"kind":"text","text":"AppendStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1315}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendSubstringByteIndexUncached(com.oracle.truffle.api.strings.TruffleString,int,int)","anchor":"appendSubstringByteIndexUncached(com.oracle.truffle.api.strings.TruffleString,int,int)","kind":"method","name":"appendSubstringByteIndexUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendSubstringByteIndexUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"AppendSubstringByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"AppendSubstringByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1641}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendJavaStringUTF16Uncached(java.lang.String)","anchor":"appendJavaStringUTF16Uncached(java.lang.String)","kind":"method","name":"appendJavaStringUTF16Uncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendJavaStringUTF16Uncached"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendJavaStringUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendJavaStringUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1744}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendJavaStringUTF16Uncached(java.lang.String,int,int)","anchor":"appendJavaStringUTF16Uncached(java.lang.String,int,int)","kind":"method","name":"appendJavaStringUTF16Uncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendJavaStringUTF16Uncached"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromCharIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charLength"},{"kind":"punct","text":")"}],"params":[{"name":"a","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"fromCharIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"charLength","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendJavaStringUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendJavaStringUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1754}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#toStringUncached()","anchor":"toStringUncached()","kind":"method","name":"toStringUncached","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"toStringUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"},"code":true,"children":[{"kind":"text","text":"ToStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"},"code":true,"children":[{"kind":"text","text":"ToStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1951}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Convert the string builder's content to a java string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Convert the string builder's content to a java string. Do not use this on a fast path."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":2046}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" equivalent to "},{"kind":"link","target":{"id":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"},"code":true,"children":[{"kind":"text","text":"java.lang.StringBuilder"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" equivalent to "},{"kind":"link","target":{"id":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"},"code":true,"children":[{"kind":"text","text":"java.lang.StringBuilder"}]},{"kind":"text","text":". This builder eagerly fills up a byte array with all strings passed to its "},{"kind":"code","text":"Append"},{"kind":"text","text":"-nodes. For lazy string concatenation, use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$ConcatNode"},"code":true,"children":[{"kind":"text","text":"TruffleString.ConcatNode"}]},{"kind":"text","text":" instead."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":79}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode","name":"TruffleStringBuilder.AppendByteNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder.AppendByteNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringBuilder","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,byte)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder,byte)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Append a single byte to the string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append a single byte to the string builder. Does not support UTF-16 and UTF-32; use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendCharUTF16Node"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":" instead."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":243}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,byte)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,byte)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"byte"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},{"name":"value","type":[{"kind":"keyword","text":"byte"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,byte)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, byte)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,byte)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, byte)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":250}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendByteNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendByteNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"},"code":true,"children":[{"kind":"text","text":"AppendByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"},"code":true,"children":[{"kind":"text","text":"AppendByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":284}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendByteNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendByteNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"},"code":true,"children":[{"kind":"text","text":"AppendByteNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendByteNode"},"code":true,"children":[{"kind":"text","text":"AppendByteNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":294}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to append a single byte to a string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to append a single byte to a string builder."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":232}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node","name":"TruffleStringBuilder.AppendCharUTF16Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder.AppendCharUTF16Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringBuilder","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,char)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,char)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"char"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"value","type":[{"kind":"keyword","text":"char"}]}],"doc":{"summary":[{"kind":"text","text":"Append a single char to the string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append a single char to the string builder. For UTF-16 only."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":324}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendCharUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendCharUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":365}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendCharUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendCharUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCharUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendCharUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":375}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to append a single char to a string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to append a single char to a string builder. For UTF-16 only."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":314}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode","name":"TruffleStringBuilder.AppendCodePointNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder.AppendCodePointNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringBuilder","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Append a codepoint to the string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append a codepoint to the string builder."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":405}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":414}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":423}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":432}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Append a codepoint to the string builder, "},{"kind":"code","text":"repeat"},{"kind":"text","text":" times."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append a codepoint to the string builder, "},{"kind":"code","text":"repeat"},{"kind":"text","text":" times."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":441}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,int,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,int,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":450}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,int,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,int,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":459}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,int,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,int,int)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":468}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int,boolean)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowUTF16Surrogates"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]},{"name":"allowUTF16Surrogates","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Append a codepoint to the string builder, "},{"kind":"code","text":"repeat"},{"kind":"text","text":" times."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append a codepoint to the string builder, "},{"kind":"code","text":"repeat"},{"kind":"text","text":" times. If "},{"kind":"code","text":"allowUTF16Surrogates"},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Character#isSurrogate(char)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Character.html#isSurrogate(char)"},"code":true,"children":[{"kind":"text","text":"UTF-16 surrogate values"}]},{"kind":"text","text":" passed as "},{"kind":"code","text":"codepoint"},{"kind":"text","text":" will not cause an "},{"kind":"link","target":{"id":"java.lang.IllegalArgumentException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html"},"code":true,"children":[{"kind":"text","text":"IllegalArgumentException"}]},{"kind":"text","text":", but instead be encoded on a best-effort basis. This option is only supported on "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_16"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_16"}]},{"kind":"text","text":" and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString$Encoding#UTF_32"},"code":true,"children":[{"kind":"text","text":"Encoding.UTF_32"}]},{"kind":"text","text":"."}]}]},"since":"22.2","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":482}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,int,int,boolean)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,int,int,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowUTF16Surrogates"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]},{"name":"allowUTF16Surrogates","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int, boolean)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int, boolean)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":490}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,int,int,boolean)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,int,int,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowUTF16Surrogates"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]},{"name":"allowUTF16Surrogates","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int, boolean)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int, boolean)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":498}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,int,int,boolean)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,int,int,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"codepoint"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"repeat"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"allowUTF16Surrogates"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},{"name":"codepoint","type":[{"kind":"keyword","text":"int"}]},{"name":"repeat","type":[{"kind":"keyword","text":"int"}]},{"name":"allowUTF16Surrogates","type":[{"kind":"keyword","text":"boolean"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int, boolean)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int,int,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int, int, boolean)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":506}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":522}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendCodePointNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendCodePointNode"},"code":true,"children":[{"kind":"text","text":"AppendCodePointNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":532}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to append a codepoint to a string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to append a codepoint to a string builder."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":395}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode","name":"TruffleStringBuilder.AppendIntNumberNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder.AppendIntNumberNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringBuilder","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Append the base-10 string equivalent of a given integer to the string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append the base-10 string equivalent of a given integer to the string builder. For ASCII-compatible encodings only."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":804}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":811}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":818}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},{"name":"value","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":825}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendIntNumberNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendIntNumberNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendIntNumberNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendIntNumberNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":902}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendIntNumberNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendIntNumberNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendIntNumberNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendIntNumberNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":912}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to append an integer to a string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to append an integer to a string builder. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendIntNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, int)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":793}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node","name":"TruffleStringBuilder.AppendJavaStringUTF16Node","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder.AppendJavaStringUTF16Node"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringBuilder","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,java.lang.String)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,java.lang.String)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"a","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"doc":{"summary":[{"kind":"text","text":"Append a substring of a given "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":" to the string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append a substring of a given "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":" to the string builder. For UTF-16 only."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1663}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,java.lang.String,int,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,java.lang.String,int,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromCharIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"charLength"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"a","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"fromCharIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"charLength","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Append a substring of a given "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":", starting at char index "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" and ending at "},{"kind":"code","text":"fromIndex + length"},{"kind":"text","text":", to the string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append a substring of a given "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":", starting at char index "},{"kind":"code","text":"fromIndex"},{"kind":"text","text":" and ending at "},{"kind":"code","text":"fromIndex + length"},{"kind":"text","text":", to the string builder. For UTF-16 only."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1674}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendJavaStringUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendJavaStringUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendJavaStringUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendJavaStringUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1724}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendJavaStringUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendJavaStringUTF16Node","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendJavaStringUTF16Node"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node"},"code":true,"children":[{"kind":"text","text":"AppendJavaStringUTF16Node"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1734}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to append a substring of a given "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":" to a string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to append a substring of a given "},{"kind":"link","target":{"id":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},"code":true,"children":[{"kind":"text","text":"java.lang.String"}]},{"kind":"text","text":" to a string builder. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendJavaStringUTF16Node#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,java.lang.String,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilderUTF16, String, int, int)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1652}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode","name":"TruffleStringBuilder.AppendLongNumberNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder.AppendLongNumberNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringBuilder","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,long)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder,long)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Append the base-10 string equivalent of a given long value to the string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append the base-10 string equivalent of a given long value to the string builder. For ASCII-compatible encodings only."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":944}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,long)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,long)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,long)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, long)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,long)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, long)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":951}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,long)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,long)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,long)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, long)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,long)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, long)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":958}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,long)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,long)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"long"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},{"name":"value","type":[{"kind":"keyword","text":"long"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,long)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, long)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,long)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, long)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":965}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendLongNumberNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendLongNumberNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendLongNumberNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendLongNumberNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1042}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendLongNumberNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendLongNumberNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendLongNumberNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode"},"code":true,"children":[{"kind":"text","text":"AppendLongNumberNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1052}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to append a "},{"kind":"code","text":"long"},{"kind":"text","text":" value to a string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to append a "},{"kind":"code","text":"long"},{"kind":"text","text":" value to a string builder. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendLongNumberNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,long)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, long)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":933}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode","name":"TruffleStringBuilder.AppendStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder.AppendStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringBuilder","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"doc":{"summary":[{"kind":"text","text":"Append a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to the string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to the string builder."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1082}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1084}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1086}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,com.oracle.truffle.api.strings.AbstractTruffleString)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,com.oracle.truffle.api.strings.AbstractTruffleString)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]}],"source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1088}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendStringNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendStringNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"},"code":true,"children":[{"kind":"text","text":"AppendStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"},"code":true,"children":[{"kind":"text","text":"AppendStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1101}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendStringNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendStringNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"},"code":true,"children":[{"kind":"text","text":"AppendStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendStringNode"},"code":true,"children":[{"kind":"text","text":"AppendStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1111}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to append a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to a string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to append a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to a string builder."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1072}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode","name":"TruffleStringBuilder.AppendSubstringByteIndexNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder.AppendSubstringByteIndexNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringBuilder","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Append a substring of a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", starting at byte index "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" and ending at byte index "},{"kind":"code","text":"fromByteIndex + byteLength"},{"kind":"text","text":", to the string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Append a substring of a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":", starting at byte index "},{"kind":"code","text":"fromByteIndex"},{"kind":"text","text":" and ending at byte index "},{"kind":"code","text":"fromByteIndex + byteLength"},{"kind":"text","text":", to the string builder."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1338}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, AbstractTruffleString, int, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, AbstractTruffleString, int, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1346}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, AbstractTruffleString, int, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, AbstractTruffleString, int, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1354}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"},{"kind":"punct","text":" "},{"kind":"param","text":"a"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromByteIndex"},{"kind":"punct","text":", "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"byteLength"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},{"name":"a","type":[{"kind":"type","text":"AbstractTruffleString","ref":"com.oracle.truffle.api.strings.AbstractTruffleString"}]},{"name":"fromByteIndex","type":[{"kind":"keyword","text":"int"}]},{"name":"byteLength","type":[{"kind":"keyword","text":"int"}]}],"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, AbstractTruffleString, int, int)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, AbstractTruffleString, int, int)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1362}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendSubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendSubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"AppendSubstringByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"AppendSubstringByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1621}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.AppendSubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.AppendSubstringByteIndexNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"AppendSubstringByteIndexNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode"},"code":true,"children":[{"kind":"text","text":"AppendSubstringByteIndexNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1631}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to append a substring of a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to a string builder."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to append a substring of a given "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" to a string builder. See "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$AppendSubstringByteIndexNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,com.oracle.truffle.api.strings.AbstractTruffleString,int,int)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, AbstractTruffleString, int, int)"}]},{"kind":"text","text":" for details."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1326}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode","name":"TruffleStringBuilder.ToStringNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilder.ToStringNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringBuilder","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Materialize this string builder to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Materialize this string builder to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1774}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1783}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1792}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32)","kind":"method","name":"execute","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1801}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,boolean)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilder,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Materialize this string builder to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Materialize this string builder to a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":". If "},{"kind":"code","text":"lazy"},{"kind":"text","text":" is "},{"kind":"code","text":"true"},{"kind":"text","text":", "},{"kind":"code","text":"sb"},{"kind":"text","text":"'s internal storage will be re-used even if there are unused bytes. Since the resulting string will have a reference to "},{"kind":"code","text":"sb"},{"kind":"text","text":"'s internal storage, and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":" currently does "},{"kind":"emphasis","children":[{"kind":"text","text":"not"}]},{"kind":"text","text":" resize/trim the substring's internal storage at any point, the "},{"kind":"code","text":"lazy"},{"kind":"text","text":" variant effectively creates a memory leak! The caller is responsible for deciding whether this is acceptable or not."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1816}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,boolean)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF8,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF8","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, boolean)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, boolean)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1823}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,boolean)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF16","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, boolean)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, boolean)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1830}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,boolean)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringBuilderUTF32,boolean)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"lazy"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"TruffleStringBuilderUTF32","ref":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32"}]},{"name":"lazy","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TruffleString","ref":"com.oracle.truffle.api.strings.TruffleString"}]},"doc":{"summary":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, boolean)"}]},{"kind":"text","text":" for performance reasons."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Overload of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#execute(com.oracle.truffle.api.strings.TruffleStringBuilder,boolean)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringBuilder, boolean)"}]},{"kind":"text","text":" for performance reasons."}]}]},"since":"25.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1837}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.ToStringNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.ToStringNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"},"code":true,"children":[{"kind":"text","text":"ToStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"},"code":true,"children":[{"kind":"text","text":"ToStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1850}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder.ToStringNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringBuilder.ToStringNode","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"},"code":true,"children":[{"kind":"text","text":"ToStringNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder$ToStringNode"},"code":true,"children":[{"kind":"text","text":"ToStringNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1860}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Node to materialize a string builder as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Node to materialize a string builder as a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilder.java","line":1764}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilderFactory","name":"TruffleStringBuilderFactory","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilderFactory"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilderFactory#<init>()","anchor":"<init>()","kind":"constructor","name":"TruffleStringBuilderFactory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilderFactory"},{"kind":"punct","text":"()"}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new TruffleStringBuilderFactory instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new TruffleStringBuilderFactory instance."}]}]}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilderFactory.java","line":36}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF16","name":"TruffleStringBuilderUTF16","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilderUTF16"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}],"superclass":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"inherited":[{"from":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder","text":"TruffleStringBuilder"},"kind":"class","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendByteUncached(byte)","text":"appendByteUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCharUTF16Uncached(char)","text":"appendCharUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int)","text":"appendCodePointUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int,int)","text":"appendCodePointUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int,int,boolean)","text":"appendCodePointUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendIntNumberUncached(int)","text":"appendIntNumberUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendJavaStringUTF16Uncached(java.lang.String)","text":"appendJavaStringUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendJavaStringUTF16Uncached(java.lang.String,int,int)","text":"appendJavaStringUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendLongNumberUncached(long)","text":"appendLongNumberUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendStringUncached(com.oracle.truffle.api.strings.TruffleString)","text":"appendStringUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendSubstringByteIndexUncached(com.oracle.truffle.api.strings.TruffleString,int,int)","text":"appendSubstringByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#byteLength()","text":"byteLength"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#create(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"create"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#create(com.oracle.truffle.api.strings.TruffleString.Encoding,int)","text":"create"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16()","text":"createUTF16"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16(int)","text":"createUTF16"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32()","text":"createUTF32"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32(int)","text":"createUTF32"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8()","text":"createUTF8"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8(int)","text":"createUTF8"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#isEmpty()","text":"isEmpty"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#toString()","text":"toString"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#toStringUncached()","text":"toStringUncached"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"The UTF-16-specific variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},"code":true,"children":[{"kind":"text","text":"TruffleStringBuilder"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The UTF-16-specific variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},"code":true,"children":[{"kind":"text","text":"TruffleStringBuilder"}]},{"kind":"text","text":". For best performance, use this type explicitly wherever possible."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilderUTF16.java","line":49}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF32","name":"TruffleStringBuilderUTF32","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilderUTF32"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}],"superclass":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"inherited":[{"from":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder","text":"TruffleStringBuilder"},"kind":"class","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendByteUncached(byte)","text":"appendByteUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCharUTF16Uncached(char)","text":"appendCharUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int)","text":"appendCodePointUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int,int)","text":"appendCodePointUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int,int,boolean)","text":"appendCodePointUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendIntNumberUncached(int)","text":"appendIntNumberUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendJavaStringUTF16Uncached(java.lang.String)","text":"appendJavaStringUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendJavaStringUTF16Uncached(java.lang.String,int,int)","text":"appendJavaStringUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendLongNumberUncached(long)","text":"appendLongNumberUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendStringUncached(com.oracle.truffle.api.strings.TruffleString)","text":"appendStringUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendSubstringByteIndexUncached(com.oracle.truffle.api.strings.TruffleString,int,int)","text":"appendSubstringByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#byteLength()","text":"byteLength"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#create(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"create"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#create(com.oracle.truffle.api.strings.TruffleString.Encoding,int)","text":"create"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16()","text":"createUTF16"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16(int)","text":"createUTF16"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32()","text":"createUTF32"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32(int)","text":"createUTF32"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8()","text":"createUTF8"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8(int)","text":"createUTF8"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#isEmpty()","text":"isEmpty"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#toString()","text":"toString"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#toStringUncached()","text":"toStringUncached"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"The UTF-32-specific variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},"code":true,"children":[{"kind":"text","text":"TruffleStringBuilder"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The UTF-32-specific variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},"code":true,"children":[{"kind":"text","text":"TruffleStringBuilder"}]},{"kind":"text","text":". For best performance, use this type explicitly wherever possible."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilderUTF32.java","line":49}},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilderUTF8","name":"TruffleStringBuilderUTF8","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringBuilderUTF8"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}],"superclass":[{"kind":"type","text":"TruffleStringBuilder","ref":"com.oracle.truffle.api.strings.TruffleStringBuilder"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"inherited":[{"from":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder","text":"TruffleStringBuilder"},"kind":"class","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendByteUncached(byte)","text":"appendByteUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCharUTF16Uncached(char)","text":"appendCharUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int)","text":"appendCodePointUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int,int)","text":"appendCodePointUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendCodePointUncached(int,int,boolean)","text":"appendCodePointUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendIntNumberUncached(int)","text":"appendIntNumberUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendJavaStringUTF16Uncached(java.lang.String)","text":"appendJavaStringUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendJavaStringUTF16Uncached(java.lang.String,int,int)","text":"appendJavaStringUTF16Uncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendLongNumberUncached(long)","text":"appendLongNumberUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendStringUncached(com.oracle.truffle.api.strings.TruffleString)","text":"appendStringUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#appendSubstringByteIndexUncached(com.oracle.truffle.api.strings.TruffleString,int,int)","text":"appendSubstringByteIndexUncached"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#byteLength()","text":"byteLength"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#create(com.oracle.truffle.api.strings.TruffleString.Encoding)","text":"create"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#create(com.oracle.truffle.api.strings.TruffleString.Encoding,int)","text":"create"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16()","text":"createUTF16"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF16(int)","text":"createUTF16"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32()","text":"createUTF32"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF32(int)","text":"createUTF32"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8()","text":"createUTF8"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#createUTF8(int)","text":"createUTF8"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#isEmpty()","text":"isEmpty"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#toString()","text":"toString"},{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder#toStringUncached()","text":"toStringUncached"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"The UTF-8-specific variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},"code":true,"children":[{"kind":"text","text":"TruffleStringBuilder"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The UTF-8-specific variant of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringBuilder"},"code":true,"children":[{"kind":"text","text":"TruffleStringBuilder"}]},{"kind":"text","text":". For best performance, use this type explicitly wherever possible."}]}]},"since":"23.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringBuilderUTF8.java","line":49}},{"id":"com.oracle.truffle.api.strings.TruffleStringFactory","name":"TruffleStringFactory","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringFactory"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.strings.TruffleStringFactory#<init>()","anchor":"<init>()","kind":"constructor","name":"TruffleStringFactory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringFactory"},{"kind":"punct","text":"()"}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new TruffleStringFactory instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new TruffleStringFactory instance."}]}]}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/strings/TruffleStringFactory.java","line":139}},{"id":"com.oracle.truffle.api.strings.TruffleStringFactory$WithMaskFactory","name":"TruffleStringFactory.WithMaskFactory","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringFactory.WithMaskFactory"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringFactory","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringFactory$WithMaskFactory#<init>()","anchor":"<init>()","kind":"constructor","name":"WithMaskFactory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"WithMaskFactory"},{"kind":"punct","text":"()"}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new WithMaskFactory instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new WithMaskFactory instance."}]}]}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/strings/TruffleStringFactory.java","line":143}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator","name":"TruffleStringIterator","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringIterator"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.strings.TruffleStringIterator#hasNext()","anchor":"hasNext()","kind":"method","name":"hasNext","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasNext"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if there are more codepoints remaining."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if there are more codepoints remaining."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":151}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator#hasPrevious()","anchor":"hasPrevious()","kind":"method","name":"hasPrevious","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"hasPrevious"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}]},"doc":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if there are more codepoints remaining in reverse direction."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns "},{"kind":"code","text":"true"},{"kind":"text","text":" if there are more codepoints remaining in reverse direction."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":160}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator#getByteIndex()","anchor":"getByteIndex()","kind":"method","name":"getByteIndex","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"getByteIndex"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"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 "},{"kind":"emphasis","children":[{"kind":"text","text":"after"}]},{"kind":"text","text":" the codepoint."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"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 "},{"kind":"emphasis","children":[{"kind":"text","text":"after"}]},{"kind":"text","text":" the codepoint."}]}]},"since":"22.3","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":171}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator#nextUncached()","anchor":"nextUncached()","kind":"method","name":"nextUncached","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.0\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"nextUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},"code":true,"children":[{"kind":"text","text":"NextNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},"code":true,"children":[{"kind":"text","text":"NextNode"}]},{"kind":"text","text":"."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator#nextUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"nextUncached(Encoding)"}]},{"kind":"text","text":" instead."}]}],"since":"25.0"},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":533}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator#nextUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"nextUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"nextUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"nextUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},"code":true,"children":[{"kind":"text","text":"NextNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},"code":true,"children":[{"kind":"text","text":"NextNode"}]},{"kind":"text","text":"."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":544}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator#previousUncached()","anchor":"previousUncached()","kind":"method","name":"previousUncached","modifiers":["public"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.0\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"previousUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},"code":true,"children":[{"kind":"text","text":"PreviousNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},"code":true,"children":[{"kind":"text","text":"PreviousNode"}]},{"kind":"text","text":"."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator#previousUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"previousUncached(Encoding)"}]},{"kind":"text","text":" instead."}]}],"since":"25.0"},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":849}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator#previousUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"previousUncached(com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"previousUncached","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"previousUncached"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"expectedEncoding"},{"kind":"punct","text":")"}],"params":[{"name":"expectedEncoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},"code":true,"children":[{"kind":"text","text":"PreviousNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Shorthand for calling the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},"code":true,"children":[{"kind":"text","text":"PreviousNode"}]},{"kind":"text","text":"."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":860}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An iterator object that allows iterating over a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"'s codepoints, without having to re-calculate codepoint indices on every access."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An iterator object that allows iterating over a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleString"},"code":true,"children":[{"kind":"text","text":"TruffleString"}]},{"kind":"text","text":"'s codepoints, without having to re-calculate codepoint indices on every access."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Usage Example:"}]},{"kind":"code","text":"\n\nabstract static class SomeNode extends Node {\n\n    &#64;Specialization\n    static void someSpecialization(\n                    TruffleString string,\n                    &#64;Cached TruffleString.CreateCodePointIteratorNode createCodePointIteratorNode,\n                    &#64;Cached TruffleStringIterator.NextNode nextNode,\n                    &#64;Cached TruffleString.CodePointLengthNode codePointLengthNode,\n                    &#64;Cached TruffleString.CodePointAtIndexNode codePointAtIndexNode) {\n\n        // iterating over a string's code points using TruffleStringIterator\n        TruffleStringIterator iterator = createCodePointIteratorNode.execute(string, Encoding.UTF_8);\n        while (iterator.hasNext()) {\n            System.out.printf(\"%x%n\", nextNode.execute(iterator));\n        }\n\n        // uncached variant:\n        TruffleStringIterator iterator2 = string.createCodePointIteratorUncached(Encoding.UTF_8);\n        while (iterator2.hasNext()) {\n            System.out.printf(\"%x%n\", iterator2.nextUncached());\n        }\n\n        // suboptimal variant: using CodePointAtIndexNode in a loop\n        int codePointLength = codePointLengthNode.execute(string, Encoding.UTF_8);\n        for (int i = 0; i < codePointLength; i++) {\n            // performance problem: codePointAtIndexNode may have to calculate the byte index\n            // corresponding\n            // to codepoint index i for every loop iteration\n            System.out.printf(\"%x%n\", codePointAtIndexNode.execute(string, i, Encoding.UTF_8));\n        }\n    }\n}"}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":121}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode","name":"TruffleStringIterator.NextNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringIterator.NextNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringIterator","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode#execute(com.oracle.truffle.api.strings.TruffleStringIterator)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringIterator)","kind":"method","name":"execute","modifiers":["public","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.0\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"param","text":"it"},{"kind":"punct","text":")"}],"params":[{"name":"it","type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the next codepoint in the string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the next codepoint in the string."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode#execute(com.oracle.truffle.api.strings.TruffleStringIterator,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringIterator, Encoding)"}]},{"kind":"text","text":" instead."}]}],"since":"25.0"},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":489}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode#execute(com.oracle.truffle.api.strings.TruffleStringIterator,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringIterator,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"param","text":"it"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"it","type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the next codepoint in the string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the next codepoint in the string."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":499}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator.NextNode","ref":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator.NextNode","ref":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},"code":true,"children":[{"kind":"text","text":"NextNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},"code":true,"children":[{"kind":"text","text":"NextNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":512}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator.NextNode","ref":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator.NextNode","ref":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},"code":true,"children":[{"kind":"text","text":"NextNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$NextNode"},"code":true,"children":[{"kind":"text","text":"NextNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":522}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Returns the next codepoint in the string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the next codepoint in the string."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":478}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode","name":"TruffleStringIterator.PreviousNode","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringIterator.PreviousNode"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"superclass":[{"kind":"type","text":"AbstractPublicNode","ref":"com.oracle.truffle.api.strings.AbstractPublicNode"}],"ancestors":[{"id":"com.oracle.truffle.api.strings.AbstractPublicNode"},{"id":"com.oracle.truffle.api.nodes.Node"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.strings.TruffleStringIterator","members":[{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode#execute(com.oracle.truffle.api.strings.TruffleStringIterator)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringIterator)","kind":"method","name":"execute","modifiers":["public","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"25.0\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"param","text":"it"},{"kind":"punct","text":")"}],"params":[{"name":"it","type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the previous codepoint in the string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the previous codepoint in the string."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"use "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode#execute(com.oracle.truffle.api.strings.TruffleStringIterator,com.oracle.truffle.api.strings.TruffleString.Encoding)"},"code":true,"children":[{"kind":"text","text":"execute(TruffleStringIterator, Encoding)"}]},{"kind":"text","text":" instead."}]}],"since":"25.0"},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":565}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode#execute(com.oracle.truffle.api.strings.TruffleStringIterator,com.oracle.truffle.api.strings.TruffleString.Encoding)","anchor":"execute(com.oracle.truffle.api.strings.TruffleStringIterator,com.oracle.truffle.api.strings.TruffleString.Encoding)","kind":"method","name":"execute","modifiers":["public","abstract"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"execute"},{"kind":"punct","text":"("},{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"},{"kind":"punct","text":" "},{"kind":"param","text":"it"},{"kind":"punct","text":", "},{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"},{"kind":"punct","text":" "},{"kind":"param","text":"encoding"},{"kind":"punct","text":")"}],"params":[{"name":"it","type":[{"kind":"type","text":"TruffleStringIterator","ref":"com.oracle.truffle.api.strings.TruffleStringIterator"}]},{"name":"encoding","type":[{"kind":"type","text":"TruffleString.Encoding","ref":"com.oracle.truffle.api.strings.TruffleString$Encoding"}]}],"returns":{"type":[{"kind":"keyword","text":"int"}]},"doc":{"summary":[{"kind":"text","text":"Returns the previous codepoint in the string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the previous codepoint in the string."}]}]},"since":"25.0","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":575}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode#create()","anchor":"create()","kind":"method","name":"create","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator.PreviousNode","ref":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator.PreviousNode","ref":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"}]},"doc":{"summary":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},"code":true,"children":[{"kind":"text","text":"PreviousNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a new "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},"code":true,"children":[{"kind":"text","text":"PreviousNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":588}},{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode#getUncached()","anchor":"getUncached()","kind":"method","name":"getUncached","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TruffleStringIterator.PreviousNode","ref":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},{"kind":"punct","text":" "},{"kind":"name","text":"getUncached"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TruffleStringIterator.PreviousNode","ref":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"}]},"doc":{"summary":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},"code":true,"children":[{"kind":"text","text":"PreviousNode"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the uncached version of "},{"kind":"link","target":{"id":"com.oracle.truffle.api.strings.TruffleStringIterator$PreviousNode"},"code":true,"children":[{"kind":"text","text":"PreviousNode"}]},{"kind":"text","text":"."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":598}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.nodes.Node","text":"Node"},"kind":"class","members":[{"id":"com.oracle.truffle.api.nodes.Node#accept(com.oracle.truffle.api.nodes.NodeVisitor)","text":"accept"},{"id":"com.oracle.truffle.api.nodes.Node#adoptChildren()","text":"adoptChildren"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.lang.Runnable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#atomic(java.util.concurrent.Callable)","text":"atomic"},{"id":"com.oracle.truffle.api.nodes.Node#copy()","text":"copy"},{"id":"com.oracle.truffle.api.nodes.Node#deepCopy()","text":"deepCopy"},{"id":"com.oracle.truffle.api.nodes.Node#getChildren()","text":"getChildren"},{"id":"com.oracle.truffle.api.nodes.Node#getCost()","text":"getCost"},{"id":"com.oracle.truffle.api.nodes.Node#getDebugProperties()","text":"getDebugProperties"},{"id":"com.oracle.truffle.api.nodes.Node#getDescription()","text":"getDescription"},{"id":"com.oracle.truffle.api.nodes.Node#getEncapsulatingSourceSection()","text":"getEncapsulatingSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#getLock()","text":"getLock"},{"id":"com.oracle.truffle.api.nodes.Node#getParent()","text":"getParent"},{"id":"com.oracle.truffle.api.nodes.Node#getRootNode()","text":"getRootNode"},{"id":"com.oracle.truffle.api.nodes.Node#getSourceSection()","text":"getSourceSection"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T)","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#insert(T[])","text":"insert"},{"id":"com.oracle.truffle.api.nodes.Node#isAdoptable()","text":"isAdoptable"},{"id":"com.oracle.truffle.api.nodes.Node#isSafelyReplaceableBy(com.oracle.truffle.api.nodes.Node)","text":"isSafelyReplaceableBy"},{"id":"com.oracle.truffle.api.nodes.Node#notifyInserted(com.oracle.truffle.api.nodes.Node)","text":"notifyInserted"},{"id":"com.oracle.truffle.api.nodes.Node#onReplace(com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"onReplace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#replace(T,java.lang.CharSequence)","text":"replace"},{"id":"com.oracle.truffle.api.nodes.Node#reportPolymorphicSpecialize()","text":"reportPolymorphicSpecialize"},{"id":"com.oracle.truffle.api.nodes.Node#reportReplace(com.oracle.truffle.api.nodes.Node,com.oracle.truffle.api.nodes.Node,java.lang.CharSequence)","text":"reportReplace"},{"id":"com.oracle.truffle.api.nodes.Node#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Returns the previous codepoint in the string."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the previous codepoint in the string."}]}]},"since":"22.1","source":{"path":"com/oracle/truffle/api/strings/TruffleStringIterator.java","line":554}},{"id":"com.oracle.truffle.api.strings.TruffleStringIteratorFactory","name":"TruffleStringIteratorFactory","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringIteratorFactory"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.strings.TruffleStringIteratorFactory#<init>()","anchor":"<init>()","kind":"constructor","name":"TruffleStringIteratorFactory","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleStringIteratorFactory"},{"kind":"punct","text":"()"}],"implicit":true,"doc":{"summary":[{"kind":"text","text":"Creates a new TruffleStringIteratorFactory instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new TruffleStringIteratorFactory instance."}]}]}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"source":{"path":"com/oracle/truffle/api/strings/TruffleStringIteratorFactory.java","line":28}}]},{"id":"com.oracle.truffle.api.utilities","name":"com.oracle.truffle.api.utilities","doc":{"summary":[{"kind":"text","text":"Various utility classes that aim to make the development of TruffleLanguage guest languages easier."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Various utility classes that aim to make the development of TruffleLanguage guest languages easier."}]},{"kind":"paragraph","children":[{"kind":"text","text":"We try to capture common language patterns in this package. Here is an overview of patterns that we have captured so far:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.AssumedValue"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.utilities.AssumedValue"}]},{"kind":"text","text":" speculates on global values to remain unchanged."}]}],[{"kind":"paragraph","children":[{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.CyclicAssumption"},"code":true,"children":[{"kind":"text","text":"com.oracle.truffle.api.utilities.CyclicAssumption"}]},{"kind":"text","text":" speculates on assumptions that might invalidate more often but are assumed to stabilize over time."}]}]]}]},"since":"0.8 or older","types":[{"id":"com.oracle.truffle.api.utilities.AssumedValue","name":"AssumedValue","kind":"class","language":"java","modifiers":["public"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"AssumedValue"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.utilities.AssumedValue#<init>(T)","anchor":"<init>(T)","kind":"constructor","name":"AssumedValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"AssumedValue"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"initialValue"},{"kind":"punct","text":")"}],"params":[{"name":"initialValue","type":[{"kind":"typeParam","text":"T"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/AssumedValue.java","line":74}},{"id":"com.oracle.truffle.api.utilities.AssumedValue#<init>(java.lang.String,T)","anchor":"<init>(java.lang.String,T)","kind":"constructor","name":"AssumedValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"AssumedValue"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":", "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"initialValue"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"initialValue","type":[{"kind":"typeParam","text":"T"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/AssumedValue.java","line":79}},{"id":"com.oracle.truffle.api.utilities.AssumedValue#get()","anchor":"get()","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"typeParam","text":"T"}]},"doc":{"summary":[{"kind":"text","text":"Get the current value, updating it if it has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.AssumedValue#set(T)"},"code":true,"children":[{"kind":"text","text":"set"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Get the current value, updating it if it has been "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.AssumedValue#set(T)"},"code":true,"children":[{"kind":"text","text":"set"}]},{"kind":"text","text":". The compiler may be able to make this method return a constant value, but still accommodate mutation."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/AssumedValue.java","line":92}},{"id":"com.oracle.truffle.api.utilities.AssumedValue#set(T)","anchor":"set(T)","kind":"method","name":"set","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"set"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"newValue"},{"kind":"punct","text":")"}],"params":[{"name":"newValue","type":[{"kind":"typeParam","text":"T"}]}],"doc":{"summary":[{"kind":"text","text":"Set a new value, which will be picked up the next time "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.AssumedValue#get()"},"code":true,"children":[{"kind":"text","text":"get"}]},{"kind":"text","text":" is called."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Set a new value, which will be picked up the next time "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.AssumedValue#get()"},"code":true,"children":[{"kind":"text","text":"get"}]},{"kind":"text","text":" is called."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/AssumedValue.java","line":119}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"A value that the compiler can assume is constant, but can be changed by invalidation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"A value that the compiler can assume is constant, but can be changed by invalidation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Compiled code that uses the value will be invalidated each time the value changes, so you should take care to only change values infrequently, or to monitor the number of times the value has changed and at some point to replace the value with something more generic so that it does not have to be changed and code does not have to keep being recompiled."}]}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/AssumedValue.java","line":62}},{"id":"com.oracle.truffle.api.utilities.CyclicAssumption","name":"CyclicAssumption","kind":"class","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"CyclicAssumption"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.utilities.CyclicAssumption#<init>(java.lang.String)","anchor":"<init>(java.lang.String)","kind":"constructor","name":"CyclicAssumption","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"CyclicAssumption"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/CyclicAssumption.java","line":86}},{"id":"com.oracle.truffle.api.utilities.CyclicAssumption#invalidate()","anchor":"invalidate()","kind":"method","name":"invalidate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"invalidate"},{"kind":"punct","text":"()"}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/CyclicAssumption.java","line":92}},{"id":"com.oracle.truffle.api.utilities.CyclicAssumption#invalidate(java.lang.String)","anchor":"invalidate(java.lang.String)","kind":"method","name":"invalidate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"invalidate"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"message"},{"kind":"punct","text":")"}],"params":[{"name":"message","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"since":"0.33","source":{"path":"com/oracle/truffle/api/utilities/CyclicAssumption.java","line":98}},{"id":"com.oracle.truffle.api.utilities.CyclicAssumption#getAssumption()","anchor":"getAssumption()","kind":"method","name":"getAssumption","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"},{"kind":"punct","text":" "},{"kind":"name","text":"getAssumption"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Assumption","ref":"com.oracle.truffle.api.Assumption"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/CyclicAssumption.java","line":106}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Holds an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]},{"kind":"text","text":", and knows how to recreate it with the same properties on invalidation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Holds an "},{"kind":"link","target":{"id":"com.oracle.truffle.api.Assumption"},"code":true,"children":[{"kind":"text","text":"Assumption"}]},{"kind":"text","text":", and knows how to recreate it with the same properties on invalidation. Used as an Assumption factory that safely invalidates the previous Assumption and creates a new Assumption on invalidation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"Note that you should be careful that repeated invalidations do not cause a deoptimization loop in that same way that you would with any other assumption."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The Assumption instance should be obtained before doing the operation depending on it. In other words:"}]},{"kind":"list","ordered":true,"items":[[{"kind":"paragraph","children":[{"kind":"text","text":"Obtain the current Assumption with "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.CyclicAssumption#getAssumption()"},"code":true,"children":[{"kind":"text","text":"CyclicAssumption.getAssumption()"}]}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Perform the operation/lookup which depends on the assumption"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"Cache the result and the Assumption"}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"On the fast-path, first check if the assumption is valid and in that case return the cached result. When invalidating, first write the new value, then invalidate the CyclicAssumption."}]},{"kind":"code","language":"java","text":"class MyContext {\n    CyclicAssumption symbolsRedefined = new CyclicAssumption(\"symbols\");\n    Map<String, Object> symbols = new ConcurrentHashMap<>();\n\n    public void redefineSymbol(String symbol, Object value) {\n        symbols.put(symbol, value);\n        symbolsRedefined.invalidate();\n    }\n}\n\nclass SymbolLookupNode extends Node {\n    final MyContext context;\n    final String symbol;\n\n    @CompilationFinal volatile LookupResult cachedLookup;\n\n    SymbolLookupNode(MyContext context, String symbol) {\n        this.context = context;\n        this.symbol = symbol;\n    }\n\n    public Object execute() {\n        LookupResult lookup = cachedLookup;\n        if (lookup == null || !lookup.assumption.isValid()) {\n            CompilerDirectives.transferToInterpreterAndInvalidate();\n            cachedLookup = doLookup(symbol);\n        }\n        return cachedLookup.value;\n    }\n\n    private LookupResult doLookup(String name) {\n        // First get the Assumption\n        CyclicAssumption symbolsRedefined = context.symbolsRedefined;\n        Assumption assumption = symbolsRedefined.getAssumption();\n        // Then lookup the value\n        Object value = context.symbols.get(name);\n        return new LookupResult(assumption, value);\n    }\n}\n\nclass LookupResult {\n    final Assumption assumption;\n    final Object value;\n\n    LookupResult(Assumption assumption, Object value) {\n        this.assumption = assumption;\n        this.value = value;\n    }\n}"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/CyclicAssumption.java","line":78}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet","name":"FinalBitSet","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"FinalBitSet"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.utilities.FinalBitSet#EMPTY","anchor":"EMPTY","kind":"field","name":"EMPTY","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"},{"kind":"punct","text":" "},{"kind":"name","text":"EMPTY"}],"type":[{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"}],"doc":{"summary":[{"kind":"text","text":"An empty bit set of size 0."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An empty bit set of size 0."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":64}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#toLongArray()","anchor":"toLongArray()","kind":"method","name":"toLongArray","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"long"},{"kind":"punct","text":"[] "},{"kind":"name","text":"toLongArray"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"long"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a long array containing a little-endian representation of all the bits in this bit set"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a new long array containing all the bits in this bit set."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new long array containing all the bits in this bit set. This method is designed for partial evaluation."}]},{"kind":"paragraph","children":[{"kind":"text","text":"More precisely, if "},{"kind":"break"},{"kind":"text","text":" "},{"kind":"code","text":"long[] longs = s.toLongArray();"},{"kind":"text","text":" "},{"kind":"break"},{"kind":"text","text":" then "},{"kind":"code","text":"longs.length == (s.length()+63)/64"},{"kind":"text","text":" and "},{"kind":"break"},{"kind":"text","text":" "},{"kind":"code","text":"s.get(n) == ((longs[n/64] & (1L<<(n%64))) != 0)"},{"kind":"text","text":" "},{"kind":"break"},{"kind":"text","text":" for all "},{"kind":"code","text":"n < 64 * longs.length"},{"kind":"text","text":"."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":111}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#get(int)","anchor":"get(int)","kind":"method","name":"get","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"get"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"bitIndex"},{"kind":"punct","text":")"}],"params":[{"name":"bitIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the bit index"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value of the bit with the specified index"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the specified index is negative"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the value of the bit with the specified index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the value of the bit with the specified index. The value is "},{"kind":"code","text":"true"},{"kind":"text","text":" if the bit with the index "},{"kind":"code","text":"bitIndex"},{"kind":"text","text":" is currently set in this "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":"; otherwise, the result is "},{"kind":"code","text":"false"},{"kind":"text","text":". This method is designed for partial evaluation and is guaranteed to fold if the receiver and the bitIndex parameter are constant."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":127}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#length()","anchor":"length()","kind":"method","name":"length","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"length"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the logical size of this "},{"kind":"code","text":"FinalBitSet"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the \"logical size\" of this "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":": the index of the highest set bit in the "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" plus one."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the \"logical size\" of this "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":": the index of the highest set bit in the "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" plus one. Returns zero if the "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" contains no set bits. This method is designed for partial evaluation and is guaranteed to fold if the receiver is constant."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":148}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#isEmpty()","anchor":"isEmpty()","kind":"method","name":"isEmpty","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isEmpty"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"boolean indicating whether this "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" is empty"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns true if this "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" contains no bits that are set to "},{"kind":"code","text":"true"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns true if this "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" contains no bits that are set to "},{"kind":"code","text":"true"},{"kind":"text","text":". This method is designed for partial evaluation and is guaranteed to fold if the receiver is constant."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":164}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#equals(java.lang.Object)","anchor":"equals(java.lang.Object)","kind":"method","name":"equals","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"equals"},{"kind":"punct","text":"("},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"obj"},{"kind":"punct","text":")"}],"params":[{"name":"obj","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the object to compare with"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"code","text":"true"},{"kind":"text","text":" if the objects are the same; "},{"kind":"code","text":"false"},{"kind":"text","text":" otherwise"}]}]},"overrides":{"id":"java.lang.Object#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},"doc":{"summary":[{"kind":"text","text":"Compares this object against the specified object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Compares this object against the specified object. The result is "},{"kind":"code","text":"true"},{"kind":"text","text":" if and only if the argument is not "},{"kind":"code","text":"null"},{"kind":"text","text":" and is a "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" object that has exactly the same set of bits set to "},{"kind":"code","text":"true"},{"kind":"text","text":" as this bit set. That is, for every nonnegative "},{"kind":"code","text":"int"},{"kind":"text","text":" index "},{"kind":"code","text":"k"},{"kind":"text","text":","}]},{"kind":"code","text":"((BitSet) obj).get(k) == this.get(k)"},{"kind":"paragraph","children":[{"kind":"text","text":"must be true. The current sizes of the two bit sets are not compared."}]}],"see":[[{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.FinalBitSet#size()"},"code":true,"children":[{"kind":"text","text":"size()"}]}]]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":186}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#hashCode()","anchor":"hashCode()","kind":"method","name":"hashCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"hashCode"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the hash code value for this bit set"}]}]},"overrides":{"id":"java.lang.Object#hashCode()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},"doc":{"summary":[{"kind":"text","text":"Returns the hash code value for this bit set."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the hash code value for this bit set. The hash code depends only on which bits are set within this "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The hash code is defined to be the result of the following calculation:"}]},{"kind":"code","text":"\npublic int hashCode() {\n    long h = 1234;\n    long[] words = toLongArray();\n    for (int i = words.length; --i >= 0;)\n        h ^= words[i] * (i + 1);\n    return (int) ((h >> 32) ^ h);\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"Note that the hash code changes if the set of bits is altered."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":231}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#size()","anchor":"size()","kind":"method","name":"size","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"size"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of bits currently in this bit set"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of bits of space actually in use by this "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" to represent bit values."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of bits of space actually in use by this "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" to represent bit values. The maximum element in the set is the size - 1st element. This method is designed for partial evaluation and is guaranteed to fold if the receiver is constant."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":248}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#cardinality()","anchor":"cardinality()","kind":"method","name":"cardinality","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"cardinality"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the number of bits set to "},{"kind":"code","text":"true"},{"kind":"text","text":" in this "},{"kind":"code","text":"BitSet"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the number of bits set to "},{"kind":"code","text":"true"},{"kind":"text","text":" in this "},{"kind":"code","text":"BitSet"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the number of bits set to "},{"kind":"code","text":"true"},{"kind":"text","text":" in this "},{"kind":"code","text":"BitSet"},{"kind":"text","text":"."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":258}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#nextSetBit(int)","anchor":"nextSetBit(int)","kind":"method","name":"nextSetBit","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"nextSetBit"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":")"}],"params":[{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index to start checking from (inclusive)"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the next set bit, or "},{"kind":"code","text":"-1"},{"kind":"text","text":" if there is no such bit"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the specified index is negative"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the index of the first bit that is set to "},{"kind":"code","text":"true"},{"kind":"text","text":" that occurs on or after the specified starting index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the first bit that is set to "},{"kind":"code","text":"true"},{"kind":"text","text":" that occurs on or after the specified starting index. If no such bit exists then "},{"kind":"code","text":"-1"},{"kind":"text","text":" is returned."}]},{"kind":"paragraph","children":[{"kind":"text","text":"To iterate over the "},{"kind":"code","text":"true"},{"kind":"text","text":" bits in a "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":", use the following loop:"}]},{"kind":"code","text":"\nfor (int i = bs.nextSetBit(0); i >= 0; i = bs.nextSetBit(i + 1)) {\n    // operate on index i here\n    if (i == Integer.MAX_VALUE) {\n        break; // or (i+1) would overflow\n    }\n}"}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":289}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#nextClearBit(int)","anchor":"nextClearBit(int)","kind":"method","name":"nextClearBit","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"name","text":"nextClearBit"},{"kind":"punct","text":"("},{"kind":"keyword","text":"int"},{"kind":"punct","text":" "},{"kind":"param","text":"fromIndex"},{"kind":"punct","text":")"}],"params":[{"name":"fromIndex","type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index to start checking from (inclusive)"}]}]}],"returns":{"type":[{"kind":"keyword","text":"int"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the index of the next clear bit"}]}]},"throws":[{"type":[{"kind":"type","text":"IndexOutOfBoundsException","ref":"java.lang.IndexOutOfBoundsException","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IndexOutOfBoundsException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"if the specified index is negative"}]}]}],"doc":{"summary":[{"kind":"text","text":"Returns the index of the first bit that is set to "},{"kind":"code","text":"false"},{"kind":"text","text":" that occurs on or after the specified starting index."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the index of the first bit that is set to "},{"kind":"code","text":"false"},{"kind":"text","text":" that occurs on or after the specified starting index."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":321}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a string representation of this bit set"}]}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"doc":{"summary":[{"kind":"text","text":"Returns a string representation of this bit set."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a string representation of this bit set. For every index for which this "},{"kind":"code","text":"BitSet"},{"kind":"text","text":" contains a bit in the set state, the decimal representation of that index is included in the result. Such indices are listed in order from lowest to highest, separated by \", \" (a comma and a space) and surrounded by braces, resulting in the usual mathematical notation for a set of integers."}]}],"see":[[{"kind":"link","target":{"id":"java.util.BitSet#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/BitSet.html#toString()"},"code":true,"children":[{"kind":"text","text":"BitSet.toString()"}]}]]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":355}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#valueOf(long[])","anchor":"valueOf(long[])","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"keyword","text":"long"},{"kind":"punct","text":"[] "},{"kind":"param","text":"longs"},{"kind":"punct","text":")"}],"params":[{"name":"longs","type":[{"kind":"keyword","text":"long"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a long array containing a little-endian representation of a sequence of bits to be used as the initial bits of the new bit set"}]}]}],"returns":{"type":[{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a "},{"kind":"code","text":"FinalBitSet"},{"kind":"text","text":" containing all the bits in the long array"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a new bit set containing all the bits in the given long array."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new bit set containing all the bits in the given long array."}]},{"kind":"paragraph","children":[{"kind":"text","text":"More precisely, "},{"kind":"break"},{"kind":"text","text":" "},{"kind":"code","text":"FinalBitSet.valueOf(longs).get(n) == ((longs[n/64] & (1L<<(n%64))) != 0)"},{"kind":"text","text":" "},{"kind":"break"},{"kind":"text","text":" for all "},{"kind":"code","text":"n < 64 * longs.length"},{"kind":"text","text":"."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":396}},{"id":"com.oracle.truffle.api.utilities.FinalBitSet#valueOf(java.util.BitSet)","anchor":"valueOf(java.util.BitSet)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"BitSet","ref":"java.util.BitSet","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/BitSet.html"},{"kind":"punct","text":" "},{"kind":"param","text":"originalBitSet"},{"kind":"punct","text":")"}],"params":[{"name":"originalBitSet","type":[{"kind":"type","text":"BitSet","ref":"java.util.BitSet","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/BitSet.html"}]}],"returns":{"type":[{"kind":"type","text":"FinalBitSet","ref":"com.oracle.truffle.api.utilities.FinalBitSet"}]},"doc":{"summary":[{"kind":"text","text":"Returns a new final bit set from a Java "},{"kind":"link","target":{"id":"java.util.BitSet","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/BitSet.html"},"code":true,"children":[{"kind":"text","text":"BitSet"}]},{"kind":"text","text":" instance."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a new final bit set from a Java "},{"kind":"link","target":{"id":"java.util.BitSet","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/BitSet.html"},"code":true,"children":[{"kind":"text","text":"BitSet"}]},{"kind":"text","text":" instance. The original bit set will be copied."}]}]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":412}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Read-only bitset designed for partial evaluation."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Read-only bitset designed for partial evaluation. The implementation is partially re-used from "},{"kind":"link","target":{"id":"java.util.BitSet","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/BitSet.html"},"code":true,"children":[{"kind":"text","text":"BitSet"}]},{"kind":"text","text":"."}]}],"see":[[{"kind":"link","target":{"id":"java.util.BitSet","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/BitSet.html"},"code":true,"children":[{"kind":"text","text":"BitSet"}]}]]},"since":"20.0","source":{"path":"com/oracle/truffle/api/utilities/FinalBitSet.java","line":57}},{"id":"com.oracle.truffle.api.utilities.JSONHelper","name":"JSONHelper","kind":"class","language":"java","modifiers":["public","final"],"annotations":[[{"kind":"annotation","text":"@Deprecated","ref":"java.lang.Deprecated","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Deprecated.html"},{"kind":"punct","text":"("},{"kind":"param","text":"since"},{"kind":"punct","text":" = "},{"kind":"literal","text":"\"24.1.0\""},{"kind":"punct","text":")"}]],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"JSONHelper"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.utilities.JSONHelper#object()","anchor":"object()","kind":"method","name":"object","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"object"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":103}},{"id":"com.oracle.truffle.api.utilities.JSONHelper#array()","anchor":"array()","kind":"method","name":"array","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"array"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":108}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Helper function that allows to dump the AST during creation to a JSON format."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Helper function that allows to dump the AST during creation to a JSON format."}]}]},"deprecated":{"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"This class is deprecated and will be removed in a future version."}]}],"since":"24.1.0"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":54}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder","name":"JSONHelper.JSONArrayBuilder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"JSONHelper.JSONArrayBuilder"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONStringBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"}],"superclass":[{"kind":"type","text":"JSONHelper.JSONStringBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"}],"ancestors":[{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.utilities.JSONHelper","members":[{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder#add(java.lang.String)","anchor":"add(java.lang.String)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":201}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder#add(java.lang.Number)","anchor":"add(java.lang.Number)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"type","text":"Number","ref":"java.lang.Number","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Number.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Number","ref":"java.lang.Number","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Number.html"}]}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":207}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder#add(java.lang.Boolean)","anchor":"add(java.lang.Boolean)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"}]}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":213}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder#add(com.oracle.truffle.api.utilities.JSONHelper.JSONStringBuilder)","anchor":"add(com.oracle.truffle.api.utilities.JSONHelper.JSONStringBuilder)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"type","text":"JSONHelper.JSONStringBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"JSONHelper.JSONStringBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"}]}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONArrayBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":219}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONArrayBuilder#appendTo(java.lang.StringBuilder)","anchor":"appendTo(java.lang.StringBuilder)","kind":"method","name":"appendTo","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendTo"},{"kind":"punct","text":"("},{"kind":"type","text":"StringBuilder","ref":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"StringBuilder","ref":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"}]}],"overrides":{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder#appendTo(java.lang.StringBuilder)"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":225}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder","text":"JSONHelper.JSONStringBuilder"},"kind":"class","members":[{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder#appendValue(java.lang.StringBuilder,java.lang.Object)","text":"appendValue"},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":194}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder","name":"JSONHelper.JSONObjectBuilder","kind":"class","language":"java","modifiers":["public","static","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"JSONHelper.JSONObjectBuilder"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONStringBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"}],"superclass":[{"kind":"type","text":"JSONHelper.JSONStringBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"}],"ancestors":[{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.utilities.JSONHelper","members":[{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder#add(java.lang.String,java.lang.String)","anchor":"add(java.lang.String,java.lang.String)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"value","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":151}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder#add(java.lang.String,java.lang.Number)","anchor":"add(java.lang.String,java.lang.Number)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Number","ref":"java.lang.Number","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Number.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"value","type":[{"kind":"type","text":"Number","ref":"java.lang.Number","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Number.html"}]}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":157}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder#add(java.lang.String,java.lang.Boolean)","anchor":"add(java.lang.String,java.lang.Boolean)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"value","type":[{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"}]}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":163}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder#add(java.lang.String,com.oracle.truffle.api.utilities.JSONHelper.JSONStringBuilder)","anchor":"add(java.lang.String,com.oracle.truffle.api.utilities.JSONHelper.JSONStringBuilder)","kind":"method","name":"add","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"},{"kind":"punct","text":" "},{"kind":"name","text":"add"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"key"},{"kind":"punct","text":", "},{"kind":"type","text":"JSONHelper.JSONStringBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"key","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},{"name":"value","type":[{"kind":"type","text":"JSONHelper.JSONStringBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder"}]}],"returns":{"type":[{"kind":"type","text":"JSONHelper.JSONObjectBuilder","ref":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder"}]},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":169}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONObjectBuilder#appendTo(java.lang.StringBuilder)","anchor":"appendTo(java.lang.StringBuilder)","kind":"method","name":"appendTo","modifiers":["protected"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendTo"},{"kind":"punct","text":"("},{"kind":"type","text":"StringBuilder","ref":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"StringBuilder","ref":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"}]}],"overrides":{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder#appendTo(java.lang.StringBuilder)"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":175}}],"inherited":[{"from":{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder","text":"JSONHelper.JSONStringBuilder"},"kind":"class","members":[{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder#appendValue(java.lang.StringBuilder,java.lang.Object)","text":"appendValue"},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder#toString()","text":"toString"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":144}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder","name":"JSONHelper.JSONStringBuilder","kind":"class","language":"java","modifiers":["public","abstract","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"JSONHelper.JSONStringBuilder"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"enclosing":"com.oracle.truffle.api.utilities.JSONHelper","members":[{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder#toString()","anchor":"toString()","kind":"method","name":"toString","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"name","text":"toString"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}]},"overrides":{"id":"java.lang.Object#toString()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":121}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder#appendTo(java.lang.StringBuilder)","anchor":"appendTo(java.lang.StringBuilder)","kind":"method","name":"appendTo","modifiers":["protected","abstract"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"abstract"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendTo"},{"kind":"punct","text":"("},{"kind":"type","text":"StringBuilder","ref":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"StringBuilder","ref":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":129}},{"id":"com.oracle.truffle.api.utilities.JSONHelper$JSONStringBuilder#appendValue(java.lang.StringBuilder,java.lang.Object)","anchor":"appendValue(java.lang.StringBuilder,java.lang.Object)","kind":"method","name":"appendValue","modifiers":["protected","static"],"signature":[{"kind":"keyword","text":"protected"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"appendValue"},{"kind":"punct","text":"("},{"kind":"type","text":"StringBuilder","ref":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"},{"kind":"punct","text":" "},{"kind":"param","text":"sb"},{"kind":"punct","text":", "},{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"sb","type":[{"kind":"type","text":"StringBuilder","ref":"java.lang.StringBuilder","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/StringBuilder.html"}]},{"name":"value","type":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":132}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"since":"0.8 or earlier","source":{"path":"com/oracle/truffle/api/utilities/JSONHelper.java","line":115}},{"id":"com.oracle.truffle.api.utilities.MathUtils","name":"MathUtils","kind":"class","language":"java","modifiers":["public","final"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"MathUtils"}],"superclass":[{"kind":"type","text":"Object","ref":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"ancestors":[{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.utilities.MathUtils#asinh(double)","anchor":"asinh(double)","kind":"method","name":"asinh","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"asinh"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The number whose inverse hyperbolic sine is to be returned."}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The inverse hyperbolic sine of "},{"kind":"code","text":"x"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Computes the inverse (area) hyperbolic sine (asinh) of a "},{"kind":"code","text":"double"},{"kind":"text","text":" value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Computes the inverse (area) hyperbolic sine (asinh) of a "},{"kind":"code","text":"double"},{"kind":"text","text":" value."}]},{"kind":"code","text":"\nasinh(x); derived from fdlibm (s_asinh.c)\nMethod :\n Based on\n     asinh(x) = sign(x) * log [ |x| + sqrt(x*x+1) ]\n we have\n asinh(x) := x  if  1+x*x=1,\n          := sign(x)*(log(x)+ln2)) for large |x|, else\n          := sign(x)*log(2|x|+1/(|x|+sqrt(x*x+1))) if|x|>2, else\n          := sign(x)*log1p(|x| + x^2/(1 + sqrt(1+x^2)))"}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/utilities/MathUtils.java","line":86}},{"id":"com.oracle.truffle.api.utilities.MathUtils#acosh(double)","anchor":"acosh(double)","kind":"method","name":"acosh","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"acosh"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The number whose inverse hyperbolic cosine is to be returned."}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The inverse hyperbolic cosine of "},{"kind":"code","text":"x"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Computes the inverse (area) hyperbolic cosine (acosh) of a "},{"kind":"code","text":"double"},{"kind":"text","text":" value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Computes the inverse (area) hyperbolic cosine (acosh) of a "},{"kind":"code","text":"double"},{"kind":"text","text":" value."}]},{"kind":"code","text":"\n__ieee754_acosh(x); derived from fdlibm (e_acosh.c)\nMethod :\n Based on\n     acosh(x) = log [ x + sqrt(x*x-1) ]\n we have\n     acosh(x) := log(x)+ln2, if x is large; else\n     acosh(x) := log(2x-1/(sqrt(x*x-1)+x)) if x>2; else\n     acosh(x) := log1p(t+sqrt(2.0*t+t*t)); where t=x-1.\n\nSpecial cases:\n     acosh(x) is NaN with signal if x<1.\n     acosh(NaN) is NaN without signal."}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/utilities/MathUtils.java","line":134}},{"id":"com.oracle.truffle.api.utilities.MathUtils#atanh(double)","anchor":"atanh(double)","kind":"method","name":"atanh","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"name","text":"atanh"},{"kind":"punct","text":"("},{"kind":"keyword","text":"double"},{"kind":"punct","text":" "},{"kind":"param","text":"x"},{"kind":"punct","text":")"}],"params":[{"name":"x","type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The number whose inverse hyperbolic tangent is to be returned."}]}]}],"returns":{"type":[{"kind":"keyword","text":"double"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The inverse hyperbolic tangent of "},{"kind":"code","text":"x"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Computes the inverse (area) hyperbolic tangent (atanh) of a "},{"kind":"code","text":"double"},{"kind":"text","text":" value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Computes the inverse (area) hyperbolic tangent (atanh) of a "},{"kind":"code","text":"double"},{"kind":"text","text":" value."}]},{"kind":"code","text":"\n__ieee754_atanh(x); derived from fdlibm (e_atanh.c)\nMethod :\n   1.Reduced x to positive by atanh(-x) = -atanh(x)\n   2.For x>=0.5\n                 1              2x                          x\n     atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------)\n                 2             1 - x                      1 - x\n\n     For x<0.5\n     atanh(x) = 0.5*log1p(2x+2x*x/(1-x))\n\nSpecial cases:\n     atanh(x) is NaN if |x| > 1 with signal;\n     atanh(NaN) is that NaN with no signal;\n     atanh(+-1) is +-INF with signal."}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/utilities/MathUtils.java","line":184}}],"inherited":[{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()"},{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"This class contains mathematical methods that are not already provided by "},{"kind":"link","target":{"id":"java.lang.Math","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Math.html"},"code":true,"children":[{"kind":"text","text":"java.lang.Math"}]},{"kind":"text","text":" that are generally useful for language implementations."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"This class contains mathematical methods that are not already provided by "},{"kind":"link","target":{"id":"java.lang.Math","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Math.html"},"code":true,"children":[{"kind":"text","text":"java.lang.Math"}]},{"kind":"text","text":" that are generally useful for language implementations."}]}]},"since":"24.1","source":{"path":"com/oracle/truffle/api/utilities/MathUtils.java","line":51}},{"id":"com.oracle.truffle.api.utilities.TriState","name":"TriState","kind":"enum","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"enum"},{"kind":"punct","text":" "},{"kind":"name","text":"TriState"}],"superclass":[{"kind":"type","text":"Enum","ref":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"kind":"punct","text":"<"},{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.utilities.TriState#values()","anchor":"values()","kind":"method","name":"values","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"},{"kind":"punct","text":"[] "},{"kind":"name","text":"values"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"},{"kind":"punct","text":"[]"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constants in declaration order."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constants in declaration order."}]}]}},{"id":"com.oracle.truffle.api.utilities.TriState#valueOf(java.lang.String)","anchor":"valueOf(java.lang.String)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"},{"kind":"punct","text":" "},{"kind":"param","text":"name"},{"kind":"punct","text":")"}],"params":[{"name":"name","type":[{"kind":"type","text":"String","ref":"java.lang.String","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"The exact name of the enum constant."}]}]}],"returns":{"type":[{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the enum constant with the given name."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the enum constant with the given name."}]}]}},{"id":"com.oracle.truffle.api.utilities.TriState#TRUE","anchor":"TRUE","kind":"enumConstant","name":"TRUE","signature":[{"kind":"name","text":"TRUE"}],"type":[{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"}],"doc":{"summary":[{"kind":"text","text":"The state is true."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The state is true. Similar to "},{"kind":"link","target":{"id":"java.lang.Boolean#TRUE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html#TRUE"},"code":true,"children":[{"kind":"text","text":"Boolean.TRUE"}]},{"kind":"text","text":"."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/utilities/TriState.java","line":59}},{"id":"com.oracle.truffle.api.utilities.TriState#FALSE","anchor":"FALSE","kind":"enumConstant","name":"FALSE","signature":[{"kind":"name","text":"FALSE"}],"type":[{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"}],"doc":{"summary":[{"kind":"text","text":"The state is false."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The state is false. Similar to "},{"kind":"link","target":{"id":"java.lang.Boolean#FALSE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html#FALSE"},"code":true,"children":[{"kind":"text","text":"Boolean.FALSE"}]},{"kind":"text","text":"."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/utilities/TriState.java","line":66}},{"id":"com.oracle.truffle.api.utilities.TriState#UNDEFINED","anchor":"UNDEFINED","kind":"enumConstant","name":"UNDEFINED","signature":[{"kind":"name","text":"UNDEFINED"}],"type":[{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"}],"doc":{"summary":[{"kind":"text","text":"The state is undefined."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The state is undefined. Similar to "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/utilities/TriState.java","line":73}},{"id":"com.oracle.truffle.api.utilities.TriState#valueOf(boolean)","anchor":"valueOf(boolean)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"keyword","text":"boolean"}]}],"returns":{"type":[{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"}]},"doc":{"summary":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState"},"code":true,"children":[{"kind":"text","text":"TriState"}]},{"kind":"text","text":" from a primitive boolean."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState"},"code":true,"children":[{"kind":"text","text":"TriState"}]},{"kind":"text","text":" from a primitive boolean."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/utilities/TriState.java","line":80}},{"id":"com.oracle.truffle.api.utilities.TriState#valueOf(java.lang.Boolean)","anchor":"valueOf(java.lang.Boolean)","kind":"method","name":"valueOf","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"},{"kind":"punct","text":" "},{"kind":"name","text":"valueOf"},{"kind":"punct","text":"("},{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},{"kind":"punct","text":" "},{"kind":"param","text":"b"},{"kind":"punct","text":")"}],"params":[{"name":"b","type":[{"kind":"type","text":"Boolean","ref":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"}]}],"returns":{"type":[{"kind":"type","text":"TriState","ref":"com.oracle.truffle.api.utilities.TriState"}]},"doc":{"summary":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState"},"code":true,"children":[{"kind":"text","text":"TriState"}]},{"kind":"text","text":" from a boxed "},{"kind":"link","target":{"id":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},"code":true,"children":[{"kind":"text","text":"Boolean"}]},{"kind":"text","text":" explicitely checking for "},{"kind":"code","text":"null"},{"kind":"text","text":" and returning "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#UNDEFINED"},"code":true,"children":[{"kind":"text","text":"UNDEFINED"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Create a "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState"},"code":true,"children":[{"kind":"text","text":"TriState"}]},{"kind":"text","text":" from a boxed "},{"kind":"link","target":{"id":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},"code":true,"children":[{"kind":"text","text":"Boolean"}]},{"kind":"text","text":" explicitely checking for "},{"kind":"code","text":"null"},{"kind":"text","text":" and returning "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#UNDEFINED"},"code":true,"children":[{"kind":"text","text":"UNDEFINED"}]},{"kind":"text","text":"."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/utilities/TriState.java","line":90}}],"inherited":[{"from":{"id":"java.lang.Enum","text":"Enum","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html"},"kind":"class","members":[{"id":"java.lang.Enum#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()"},{"id":"java.lang.Enum#compareTo(E)","text":"compareTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)"},{"id":"java.lang.Enum#describeConstable()","text":"describeConstable","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()"},{"id":"java.lang.Enum#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"},{"id":"java.lang.Enum#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()"},{"id":"java.lang.Enum#getDeclaringClass()","text":"getDeclaringClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"},{"id":"java.lang.Enum#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()"},{"id":"java.lang.Enum#name()","text":"name","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()"},{"id":"java.lang.Enum#ordinal()","text":"ordinal","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()"},{"id":"java.lang.Enum#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()"},{"id":"java.lang.Enum#valueOf(java.lang.Class,java.lang.String)","text":"valueOf","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"An utility value with three states, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#FALSE"},"code":true,"children":[{"kind":"text","text":"FALSE"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#UNDEFINED"},"code":true,"children":[{"kind":"text","text":"UNDEFINED"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"An utility value with three states, "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#TRUE"},"code":true,"children":[{"kind":"text","text":"TRUE"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#FALSE"},"code":true,"children":[{"kind":"text","text":"FALSE"}]},{"kind":"text","text":", and "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState#UNDEFINED"},"code":true,"children":[{"kind":"text","text":"UNDEFINED"}]},{"kind":"text","text":". "},{"kind":"link","target":{"id":"com.oracle.truffle.api.utilities.TriState"},"code":true,"children":[{"kind":"text","text":"TriState"}]},{"kind":"text","text":" is preferable to using a "},{"kind":"link","target":{"id":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},"code":true,"children":[{"kind":"text","text":"Boolean"}]},{"kind":"text","text":" value with "},{"kind":"link","target":{"id":"java.lang.Boolean#TRUE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html#TRUE"},"code":true,"children":[{"kind":"text","text":"Boolean.TRUE"}]},{"kind":"text","text":", "},{"kind":"link","target":{"id":"java.lang.Boolean#FALSE","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html#FALSE"},"code":true,"children":[{"kind":"text","text":"Boolean.FALSE"}]},{"kind":"text","text":" and "},{"kind":"code","text":"null"},{"kind":"text","text":", because "},{"kind":"link","target":{"id":"java.lang.Boolean","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html"},"code":true,"children":[{"kind":"text","text":"Boolean"}]},{"kind":"text","text":" has a public constructor which requires the use of "},{"kind":"link","target":{"id":"java.lang.Boolean#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Boolean.equals(Object)"}]},{"kind":"text","text":" to compare the values. The comparison with "},{"kind":"link","target":{"id":"java.lang.Boolean#equals(java.lang.Object)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Boolean.html#equals(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"Boolean.equals(Object)"}]},{"kind":"text","text":" is too slow."}]}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/utilities/TriState.java","line":52}},{"id":"com.oracle.truffle.api.utilities.TruffleWeakReference","name":"TruffleWeakReference","kind":"class","language":"java","modifiers":["public","final"],"typeParams":[{"name":"T"}],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"final"},{"kind":"punct","text":" "},{"kind":"keyword","text":"class"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleWeakReference"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"WeakReference","ref":"java.lang.ref.WeakReference","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/WeakReference.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"superclass":[{"kind":"type","text":"WeakReference","ref":"java.lang.ref.WeakReference","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/WeakReference.html"},{"kind":"punct","text":"<"},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}],"ancestors":[{"id":"java.lang.ref.WeakReference","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/WeakReference.html"},{"id":"java.lang.ref.Reference","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html"},{"id":"java.lang.Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"}],"members":[{"id":"com.oracle.truffle.api.utilities.TruffleWeakReference#<init>(T)","anchor":"<init>(T)","kind":"constructor","name":"TruffleWeakReference","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleWeakReference"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"t"},{"kind":"punct","text":")"}],"params":[{"name":"t","type":[{"kind":"typeParam","text":"T"}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new Truffle weak reference that refers to the given object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new Truffle weak reference that refers to the given object. The new reference is not registered with any queue."}]}],"see":[[{"kind":"link","target":{"id":"java.lang.ref.WeakReference#<init>(T)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/WeakReference.html#%3Cinit%3E(T)"},"code":true,"children":[{"kind":"text","text":"WeakReference.WeakReference(Object)"}]}]]},"since":"20.2","source":{"path":"com/oracle/truffle/api/utilities/TruffleWeakReference.java","line":109}},{"id":"com.oracle.truffle.api.utilities.TruffleWeakReference#<init>(T,java.lang.ref.ReferenceQueue)","anchor":"<init>(T,java.lang.ref.ReferenceQueue)","kind":"constructor","name":"TruffleWeakReference","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"name","text":"TruffleWeakReference"},{"kind":"punct","text":"("},{"kind":"typeParam","text":"T"},{"kind":"punct","text":" "},{"kind":"param","text":"referent"},{"kind":"punct","text":", "},{"kind":"type","text":"ReferenceQueue","ref":"java.lang.ref.ReferenceQueue","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/ReferenceQueue.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"super"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":"> "},{"kind":"param","text":"q"},{"kind":"punct","text":")"}],"params":[{"name":"referent","type":[{"kind":"typeParam","text":"T"}]},{"name":"q","type":[{"kind":"type","text":"ReferenceQueue","ref":"java.lang.ref.ReferenceQueue","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/ReferenceQueue.html"},{"kind":"punct","text":"<? "},{"kind":"keyword","text":"super"},{"kind":"punct","text":" "},{"kind":"typeParam","text":"T"},{"kind":"punct","text":">"}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new Truffle weak reference that refers to the given object and is registered with the given queue."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new Truffle weak reference that refers to the given object and is registered with the given queue."}]}],"see":[[{"kind":"link","target":{"id":"java.lang.ref.WeakReference#<init>(T,java.lang.ref.ReferenceQueue)","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/WeakReference.html#%3Cinit%3E(T,java.lang.ref.ReferenceQueue)"},"code":true,"children":[{"kind":"text","text":"WeakReference.WeakReference(Object, ReferenceQueue)"}]}]]},"since":"20.2","source":{"path":"com/oracle/truffle/api/utilities/TruffleWeakReference.java","line":120}}],"inherited":[{"from":{"id":"java.lang.ref.Reference","text":"Reference","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html"},"kind":"class","members":[{"id":"java.lang.ref.Reference#clear()","text":"clear","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html#clear()"},{"id":"java.lang.ref.Reference#clone()","text":"clone","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html#clone()"},{"id":"java.lang.ref.Reference#enqueue()","text":"enqueue","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html#enqueue()"},{"id":"java.lang.ref.Reference#get()","text":"get","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html#get()"},{"id":"java.lang.ref.Reference#isEnqueued()","text":"isEnqueued","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html#isEnqueued()"},{"id":"java.lang.ref.Reference#reachabilityFence(java.lang.Object)","text":"reachabilityFence","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html#reachabilityFence(java.lang.Object)"},{"id":"java.lang.ref.Reference#refersTo(T)","text":"refersTo","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html#refersTo(T)"}]},{"from":{"id":"java.lang.Object","text":"Object","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html"},"kind":"class","members":[{"id":"java.lang.Object#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#finalize()","text":"finalize","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","text":"notifyAll","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()"},{"id":"java.lang.Object#toString()","text":"toString","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()"},{"id":"java.lang.Object#wait()","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()"},{"id":"java.lang.Object#wait(long)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)"},{"id":"java.lang.Object#wait(long,int)","text":"wait","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)"}]}],"doc":{"summary":[{"kind":"text","text":"Creates a new weak reference that is safe to be used in compiled code paths."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new weak reference that is safe to be used in compiled code paths. If a weak reference is "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#isPartialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"PE constant"}]},{"kind":"text","text":" then the "},{"kind":"link","target":{"id":"java.lang.ref.Reference#get()","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/ref/Reference.html#get()"},"code":true,"children":[{"kind":"text","text":"referenced object"}]},{"kind":"text","text":" will be "},{"kind":"link","target":{"id":"com.oracle.truffle.api.CompilerDirectives#isPartialEvaluationConstant(java.lang.Object)"},"code":true,"children":[{"kind":"text","text":"PE constant"}]},{"kind":"text","text":" as well."}]},{"kind":"paragraph","children":[{"kind":"text","text":"When a language is compiled using native-image then a closed world closure of all runtime compiled methods is computed. That list of methods can rely on static type information only. If the host application or any of the loaded libraries uses custom weak reference sub-classes that were not designed for partial evaluation then these method will be listed as runtime compilable methods, causing black listed method errors at native-image compilation time. To avoid this problem use this custom weak reference subclass which is designed for PE if used as exact class of the field."}]},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Wrong usage"}]},{"kind":"text","text":" of weak references in compiled code paths:"}]},{"kind":"code","text":"class MyNode extends Node {\n\n    @CompilationFinal private WeakReference reference;\n\n    Object execute(Object arg) {\n        if (reference == null) {\n            CompilerDirectives.transferToInterpreterAndInvalidate();\n            reference = new WeakReference<>(arg);\n        }\n        return reference.get();\n    }\n\n}"},{"kind":"paragraph","children":[{"kind":"strong","children":[{"kind":"text","text":"Correct usage"}]},{"kind":"text","text":" of weak references in compiled code paths :"}]},{"kind":"code","text":"static class MyNode extends Node {\n\n    @CompilationFinal private TruffleWeakReference reference;\n\n    Object execute(Object arg) {\n        if (reference == null) {\n            CompilerDirectives.transferToInterpreterAndInvalidate();\n            reference = new TruffleWeakReference(arg);\n        }\n        return reference.get();\n    }\n\n}"}]},"since":"20.2","source":{"path":"com/oracle/truffle/api/utilities/TruffleWeakReference.java","line":100}}]}]}